quiz w two levels

This commit is contained in:
lingdocs 2022-04-13 18:26:19 +05:00
parent 6f9b129008
commit f3f7dc3669
9 changed files with 41 additions and 7216 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": "1.9.9",
"@lingdocs/pashto-inflector": "2.0.3",
"@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": "1.9.9"
"@lingdocs/pashto-inflector": "2.0.3"
}
}

3949
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -17,7 +17,7 @@
"url": "git@github.com-lingdocs:lingdocs/lingdocs-main.git"
},
"peerDependencies": {
"@lingdocs/pashto-inflector": "1.9.9"
"@lingdocs/pashto-inflector": "2.0.3"
},
"author": "lingdocs.com",
"license": "MIT",
@ -26,7 +26,7 @@
"passport-github2": "^0.1.12",
"passport-google-oauth": "^2.0.0",
"passport-twitter": "^1.0.4",
"@lingdocs/pashto-inflector": "1.9.9"
"@lingdocs/pashto-inflector": "2.0.3"
},
"devDependencies": {
"@types/passport-github2": "^1.2.5",

View File

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

View File

@ -411,8 +411,10 @@ class App extends Component<RouteComponentProps, State> {
this.props.history.push(`/word?id=${isolatedEntry.ts}`);
}
}
private checkUserCronJob = new CronJob("1/45 * * * * *", () => {
// TODO: right now not checking user very often cause it messes with the state?
// causes the verb quizzer to reset?
private checkUserCronJob = new CronJob("1/20 * * * *", () => {
this.handleLoadUser();
})

View File

@ -209,8 +209,7 @@ function IsolatedEntry({ state, dictionary, isolateEntry }: {
{/*
// @ts-ignore */}
{tp.isVerbEntry({ entry, complement }) && <div className="pb-4">
<div className="h6">🆕 New Verb Explorer</div>
<p className="text-muted">You can build phrases with nouns, quiz your verbs etc. It's still a bit rough - work in process 🚧</p>
<div className="h5 text-center">🆕 New Verb Playground/Quiz Feature! 🤓👇</div>
<VPExplorer
verb={{
// TODO: CLEAN THIS UP!

View File

@ -1585,10 +1585,10 @@
"@types/yargs" "^16.0.0"
chalk "^4.0.0"
"@lingdocs/pashto-inflector@1.9.9":
version "1.9.9"
resolved "https://npm.lingdocs.com/@lingdocs%2fpashto-inflector/-/pashto-inflector-1.9.9.tgz#1882a52a9b6284dd67b6af3c7b0faecec8474b19"
integrity sha512-Ml1tOIM7Fa8zLkpQjBDSxBZG4ge9cizef0VI4AcSwORKXaHmnhji22VLO/a+qq3Uy0fti8DMnVFBDtc5unwKVA==
"@lingdocs/pashto-inflector@2.0.3":
version "2.0.3"
resolved "https://npm.lingdocs.com/@lingdocs%2fpashto-inflector/-/pashto-inflector-2.0.3.tgz#60fac385951d54c1395f9ec86a38d5d17f9f0dc9"
integrity sha512-r2Bb/4YlY7XFNp8BB6X9JZss7MqsZ0GlY8D5neWP2VHHix5bXWJWT76Gn4CpRPzo0KNULQ8/A8h6okfArHOS/g==
dependencies:
classnames "^2.2.6"
pbf "^3.2.1"

View File

@ -168,10 +168,10 @@
"resolved" "https://registry.npmjs.org/@hapi/hoek/-/hoek-9.2.1.tgz"
"version" "9.2.1"
"@lingdocs/pashto-inflector@1.9.9":
"integrity" "sha512-Ml1tOIM7Fa8zLkpQjBDSxBZG4ge9cizef0VI4AcSwORKXaHmnhji22VLO/a+qq3Uy0fti8DMnVFBDtc5unwKVA=="
"resolved" "https://npm.lingdocs.com/@lingdocs%2fpashto-inflector/-/pashto-inflector-1.9.9.tgz"
"version" "1.9.9"
"@lingdocs/pashto-inflector@2.0.2":
"integrity" "sha512-qdipDSe86FLjZyXeZadFxeQptPRUWGMGskVdRSTwm54QzW24pmBBYCwv8VSzEQPLQzhq53aSQl6opqXQDh8dGQ=="
"resolved" "https://npm.lingdocs.com/@lingdocs%2fpashto-inflector/-/pashto-inflector-2.0.2.tgz"
"version" "2.0.2"
dependencies:
"classnames" "^2.2.6"
"pbf" "^3.2.1"