This commit is contained in:
parent
c850e1c50f
commit
c6f852c7e1
File diff suppressed because it is too large
Load Diff
|
@ -14,7 +14,7 @@
|
||||||
"main": "lib/functions/src/index.js",
|
"main": "lib/functions/src/index.js",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@google-cloud/storage": "^5.8.1",
|
"@google-cloud/storage": "^5.8.1",
|
||||||
"@lingdocs/pashto-inflector": "2.5.9",
|
"@lingdocs/pashto-inflector": "2.6.1",
|
||||||
"@types/cors": "^2.8.10",
|
"@types/cors": "^2.8.10",
|
||||||
"@types/google-spreadsheet": "^3.0.2",
|
"@types/google-spreadsheet": "^3.0.2",
|
||||||
"cors": "^2.8.5",
|
"cors": "^2.8.5",
|
||||||
|
@ -35,6 +35,6 @@
|
||||||
},
|
},
|
||||||
"private": true,
|
"private": true,
|
||||||
"peerDependencies": {
|
"peerDependencies": {
|
||||||
"@lingdocs/pashto-inflector": "2.5.9"
|
"@lingdocs/pashto-inflector": "2.6.1"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -17,12 +17,12 @@
|
||||||
"url": "git@github.com-lingdocs:lingdocs/lingdocs-main.git"
|
"url": "git@github.com-lingdocs:lingdocs/lingdocs-main.git"
|
||||||
},
|
},
|
||||||
"peerDependencies": {
|
"peerDependencies": {
|
||||||
"@lingdocs/pashto-inflector": "2.5.9"
|
"@lingdocs/pashto-inflector": "2.6.1"
|
||||||
},
|
},
|
||||||
"author": "lingdocs.com",
|
"author": "lingdocs.com",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@lingdocs/pashto-inflector": "2.5.9",
|
"@lingdocs/pashto-inflector": "2.6.1",
|
||||||
"lokijs": "^1.5.12",
|
"lokijs": "^1.5.12",
|
||||||
"nano": "^9.0.5",
|
"nano": "^9.0.5",
|
||||||
"passport-github2": "^0.1.12",
|
"passport-github2": "^0.1.12",
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
"private": true,
|
"private": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@fortawesome/fontawesome-free": "^5.15.2",
|
"@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/jest-dom": "^5.11.4",
|
||||||
"@testing-library/react": "^11.1.0",
|
"@testing-library/react": "^11.1.0",
|
||||||
"@testing-library/user-event": "^12.1.10",
|
"@testing-library/user-event": "^12.1.10",
|
||||||
|
@ -111,6 +111,6 @@
|
||||||
"user-event": "^4.0.0"
|
"user-event": "^4.0.0"
|
||||||
},
|
},
|
||||||
"peerDependencies": {
|
"peerDependencies": {
|
||||||
"@lingdocs/pashto-inflector": "2.5.9"
|
"@lingdocs/pashto-inflector": "2.6.1"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -500,7 +500,10 @@ class App extends Component<RouteComponentProps, State> {
|
||||||
<About state={this.state} />
|
<About state={this.state} />
|
||||||
</Route>
|
</Route>
|
||||||
<Route path="/phrase-builder">
|
<Route path="/phrase-builder">
|
||||||
<PhraseBuilder state={this.state} />
|
<PhraseBuilder
|
||||||
|
state={this.state}
|
||||||
|
isolateEntry={this.handleIsolateEntry}
|
||||||
|
/>
|
||||||
</Route>
|
</Route>
|
||||||
<Route path="/settings">
|
<Route path="/settings">
|
||||||
<Options
|
<Options
|
||||||
|
|
|
@ -5,52 +5,52 @@ import {
|
||||||
State,
|
State,
|
||||||
} from "../types/dictionary-types";
|
} from "../types/dictionary-types";
|
||||||
import {
|
import {
|
||||||
// VPExplorer,
|
VPExplorer,
|
||||||
EPExplorer,
|
EPExplorer,
|
||||||
// EntrySelect,
|
EntrySelect,
|
||||||
// useStickyState,
|
useStickyState,
|
||||||
// Types as T,
|
Types as T,
|
||||||
} from "@lingdocs/pashto-inflector";
|
} from "@lingdocs/pashto-inflector";
|
||||||
import { getTextOptions } from "../lib/get-text-options";
|
import { getTextOptions } from "../lib/get-text-options";
|
||||||
|
|
||||||
|
|
||||||
function PhraseBuilder({ state }: {
|
function PhraseBuilder({ state, isolateEntry }: {
|
||||||
state: State,
|
state: State,
|
||||||
// isolateEntry: (ts: number) => void,
|
isolateEntry: (ts: number) => void,
|
||||||
}) {
|
}) {
|
||||||
// const [entry, setEntry] = useStickyState<T.VerbEntry | undefined>(undefined, "vEntrySelect");
|
const [entry, setEntry] = useStickyState<T.VerbEntry | undefined>(undefined, "vEntrySelect");
|
||||||
return <div style={{ maxWidth: "1250px", margin: "0 auto" }}>
|
return <div style={{ maxWidth: "1250px", margin: "0 auto 200px auto" }}>
|
||||||
<h3 className="mb-4">Equative Phrase Builder</h3>
|
<h3 className="mb-4">Equative Phrase Builder</h3>
|
||||||
<EPExplorer
|
<EPExplorer
|
||||||
opts={getTextOptions(state)}
|
opts={getTextOptions(state)}
|
||||||
entryFeeder={entryFeeder}
|
entryFeeder={entryFeeder}
|
||||||
/>
|
/>
|
||||||
<h3 style={{ marginTop: "10rem" }}>Verb Phrase Builder</h3>
|
<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>
|
||||||
// {/* <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;
|
export default PhraseBuilder;
|
|
@ -1590,10 +1590,10 @@
|
||||||
"@types/yargs" "^16.0.0"
|
"@types/yargs" "^16.0.0"
|
||||||
chalk "^4.0.0"
|
chalk "^4.0.0"
|
||||||
|
|
||||||
"@lingdocs/pashto-inflector@2.5.9":
|
"@lingdocs/pashto-inflector@2.6.1":
|
||||||
version "2.5.9"
|
version "2.6.1"
|
||||||
resolved "https://npm.lingdocs.com/@lingdocs%2fpashto-inflector/-/pashto-inflector-2.5.9.tgz#5fd0a2ec62b728360f931dfb40d6279fdd78c5ec"
|
resolved "https://npm.lingdocs.com/@lingdocs%2fpashto-inflector/-/pashto-inflector-2.6.1.tgz#56884e83e6f3633c18365b790292025d25e92227"
|
||||||
integrity sha512-5Z/g6gv4Fu0BsITqJrIIDmERCAfoNlJBNAHS9iJKCY54NgpJCPEEf5nFr+7aYfcG4QbWEgJtUCokVPOv10FFfQ==
|
integrity sha512-aW3LIk9wByCV5Vrd4y8yeafvVAetVqoFwekBe6C1uftm6vcW9hDTeZKSh5RZjZd29muHc2VseNjfkkxlH7TD4A==
|
||||||
dependencies:
|
dependencies:
|
||||||
"@formkit/auto-animate" "^1.0.0-beta.1"
|
"@formkit/auto-animate" "^1.0.0-beta.1"
|
||||||
assert-never "^1.2.1"
|
assert-never "^1.2.1"
|
||||||
|
|
|
@ -173,10 +173,10 @@
|
||||||
"resolved" "https://registry.npmjs.org/@hapi/hoek/-/hoek-9.2.1.tgz"
|
"resolved" "https://registry.npmjs.org/@hapi/hoek/-/hoek-9.2.1.tgz"
|
||||||
"version" "9.2.1"
|
"version" "9.2.1"
|
||||||
|
|
||||||
"@lingdocs/pashto-inflector@2.5.9":
|
"@lingdocs/pashto-inflector@2.6.0":
|
||||||
"integrity" "sha512-5Z/g6gv4Fu0BsITqJrIIDmERCAfoNlJBNAHS9iJKCY54NgpJCPEEf5nFr+7aYfcG4QbWEgJtUCokVPOv10FFfQ=="
|
"integrity" "sha512-vx4iSEQ9kVXpMjw5zx5dCvY+F6sjFwRKhMd+H8nA7Hg2dHDa6AlNeJ7hq11g02HLdT0DoguDOQTpUQ+hj8Uf+g=="
|
||||||
"resolved" "https://npm.lingdocs.com/@lingdocs%2fpashto-inflector/-/pashto-inflector-2.5.9.tgz"
|
"resolved" "https://npm.lingdocs.com/@lingdocs%2fpashto-inflector/-/pashto-inflector-2.6.0.tgz"
|
||||||
"version" "2.5.9"
|
"version" "2.6.0"
|
||||||
dependencies:
|
dependencies:
|
||||||
"@formkit/auto-animate" "^1.0.0-beta.1"
|
"@formkit/auto-animate" "^1.0.0-beta.1"
|
||||||
"assert-never" "^1.2.1"
|
"assert-never" "^1.2.1"
|
||||||
|
|
Loading…
Reference in New Issue