This commit is contained in:
lingdocs 2022-05-25 19:39:17 -05:00
parent c850e1c50f
commit c6f852c7e1
9 changed files with 80 additions and 7365 deletions

File diff suppressed because it is too large Load Diff

View File

@ -14,7 +14,7 @@
"main": "lib/functions/src/index.js",
"dependencies": {
"@google-cloud/storage": "^5.8.1",
"@lingdocs/pashto-inflector": "2.5.9",
"@lingdocs/pashto-inflector": "2.6.1",
"@types/cors": "^2.8.10",
"@types/google-spreadsheet": "^3.0.2",
"cors": "^2.8.5",
@ -35,6 +35,6 @@
},
"private": true,
"peerDependencies": {
"@lingdocs/pashto-inflector": "2.5.9"
"@lingdocs/pashto-inflector": "2.6.1"
}
}

4019
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -17,12 +17,12 @@
"url": "git@github.com-lingdocs:lingdocs/lingdocs-main.git"
},
"peerDependencies": {
"@lingdocs/pashto-inflector": "2.5.9"
"@lingdocs/pashto-inflector": "2.6.1"
},
"author": "lingdocs.com",
"license": "MIT",
"dependencies": {
"@lingdocs/pashto-inflector": "2.5.9",
"@lingdocs/pashto-inflector": "2.6.1",
"lokijs": "^1.5.12",
"nano": "^9.0.5",
"passport-github2": "^0.1.12",

View File

@ -6,7 +6,7 @@
"private": true,
"dependencies": {
"@fortawesome/fontawesome-free": "^5.15.2",
"@lingdocs/pashto-inflector": "2.5.9",
"@lingdocs/pashto-inflector": "2.6.1",
"@testing-library/jest-dom": "^5.11.4",
"@testing-library/react": "^11.1.0",
"@testing-library/user-event": "^12.1.10",
@ -111,6 +111,6 @@
"user-event": "^4.0.0"
},
"peerDependencies": {
"@lingdocs/pashto-inflector": "2.5.9"
"@lingdocs/pashto-inflector": "2.6.1"
}
}

View File

@ -500,7 +500,10 @@ class App extends Component<RouteComponentProps, State> {
<About state={this.state} />
</Route>
<Route path="/phrase-builder">
<PhraseBuilder state={this.state} />
<PhraseBuilder
state={this.state}
isolateEntry={this.handleIsolateEntry}
/>
</Route>
<Route path="/settings">
<Options

View File

@ -5,52 +5,52 @@ import {
State,
} from "../types/dictionary-types";
import {
// VPExplorer,
VPExplorer,
EPExplorer,
// EntrySelect,
// useStickyState,
// Types as T,
EntrySelect,
useStickyState,
Types as T,
} from "@lingdocs/pashto-inflector";
import { getTextOptions } from "../lib/get-text-options";
function PhraseBuilder({ state }: {
function PhraseBuilder({ state, isolateEntry }: {
state: State,
// isolateEntry: (ts: number) => void,
isolateEntry: (ts: number) => void,
}) {
// const [entry, setEntry] = useStickyState<T.VerbEntry | undefined>(undefined, "vEntrySelect");
return <div style={{ maxWidth: "1250px", margin: "0 auto" }}>
const [entry, setEntry] = useStickyState<T.VerbEntry | undefined>(undefined, "vEntrySelect");
return <div style={{ maxWidth: "1250px", margin: "0 auto 200px auto" }}>
<h3 className="mb-4">Equative Phrase Builder</h3>
<EPExplorer
opts={getTextOptions(state)}
entryFeeder={entryFeeder}
/>
<h3 style={{ marginTop: "10rem" }}>Verb Phrase Builder</h3>
<div>Coming soon...</div>
<div style={{ maxWidth: "300px" }}>
<div className="h5">Verb:</div>
<EntrySelect
value={entry}
onChange={setEntry}
entryFeeder={entryFeeder.verbs}
opts={getTextOptions(state)}
isVerbSelect
name="Verb"
/>
</div>
<div style={{ margin: "0 auto" }}>
{entry
? <VPExplorer
verb={entry}
opts={getTextOptions(state)}
entryFeeder={entryFeeder}
handleLinkClick={isolateEntry}
/>
: <div className="lead">
Choose a verb to start building
</div>}
</div>
</div>
// {/* <div style={{ maxWidth: "300px" }}>
// <div className="h5">Verb:</div>
// <EntrySelect
// value={entry}
// onChange={setEntry}
// entryFeeder={entryFeeder.verbs}
// opts={getTextOptions(state)}
// isVerbSelect
// name="Verb"
// />
// </div>
// <div style={{ margin: "0 auto" }}>
// {entry
// ? <VPExplorer
// verb={entry}
// opts={getTextOptions(state)}
// entryFeeder={entryFeeder}
// handleLinkClick={isolateEntry}
// />
// : <div className="lead">
// Choose a verb to start building
// </div>}
// </div> */}
}
export default PhraseBuilder;

View File

@ -1590,10 +1590,10 @@
"@types/yargs" "^16.0.0"
chalk "^4.0.0"
"@lingdocs/pashto-inflector@2.5.9":
version "2.5.9"
resolved "https://npm.lingdocs.com/@lingdocs%2fpashto-inflector/-/pashto-inflector-2.5.9.tgz#5fd0a2ec62b728360f931dfb40d6279fdd78c5ec"
integrity sha512-5Z/g6gv4Fu0BsITqJrIIDmERCAfoNlJBNAHS9iJKCY54NgpJCPEEf5nFr+7aYfcG4QbWEgJtUCokVPOv10FFfQ==
"@lingdocs/pashto-inflector@2.6.1":
version "2.6.1"
resolved "https://npm.lingdocs.com/@lingdocs%2fpashto-inflector/-/pashto-inflector-2.6.1.tgz#56884e83e6f3633c18365b790292025d25e92227"
integrity sha512-aW3LIk9wByCV5Vrd4y8yeafvVAetVqoFwekBe6C1uftm6vcW9hDTeZKSh5RZjZd29muHc2VseNjfkkxlH7TD4A==
dependencies:
"@formkit/auto-animate" "^1.0.0-beta.1"
assert-never "^1.2.1"

View File

@ -173,10 +173,10 @@
"resolved" "https://registry.npmjs.org/@hapi/hoek/-/hoek-9.2.1.tgz"
"version" "9.2.1"
"@lingdocs/pashto-inflector@2.5.9":
"integrity" "sha512-5Z/g6gv4Fu0BsITqJrIIDmERCAfoNlJBNAHS9iJKCY54NgpJCPEEf5nFr+7aYfcG4QbWEgJtUCokVPOv10FFfQ=="
"resolved" "https://npm.lingdocs.com/@lingdocs%2fpashto-inflector/-/pashto-inflector-2.5.9.tgz"
"version" "2.5.9"
"@lingdocs/pashto-inflector@2.6.0":
"integrity" "sha512-vx4iSEQ9kVXpMjw5zx5dCvY+F6sjFwRKhMd+H8nA7Hg2dHDa6AlNeJ7hq11g02HLdT0DoguDOQTpUQ+hj8Uf+g=="
"resolved" "https://npm.lingdocs.com/@lingdocs%2fpashto-inflector/-/pashto-inflector-2.6.0.tgz"
"version" "2.6.0"
dependencies:
"@formkit/auto-animate" "^1.0.0-beta.1"
"assert-never" "^1.2.1"