From f61d4c559198f72512f6c09c7b7fe784f8f4c349 Mon Sep 17 00:00:00 2001 From: lingdocs <71590811+lingdocs@users.noreply.github.com> Date: Tue, 9 Mar 2021 17:41:57 +0400 Subject: [PATCH] website build issues --- package.json | 6 ++++-- src/components/VerbFormDisplay.tsx | 2 +- src/index.js | 3 +++ yarn.lock | 10 ++++++++++ 4 files changed, 18 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index b899163..d282754 100644 --- a/package.json +++ b/package.json @@ -3,7 +3,7 @@ "version": "0.1.7", "author": "lingdocs.com", "description": "A Pashto inflection and verb conjugation engine, inculding React components for displaying Pashto text, inflections, and conjugations", - "homepage": "https://github.com/lingdocs/pashto-inflector#readme", + "homepage": "https://verbs.lingdocs.com", "license": "MIT", "main": "dist-cjs/library.js", "module": "dist/library.js", @@ -20,12 +20,13 @@ "url": "https://github.com/lingdocs/pashto-inflector.git" }, "publishConfig": { - "registry":"https://reg.lingdocs.com" + "registry": "https://reg.lingdocs.com" }, "dependencies": { "classnames": "^2.2.6" }, "devDependencies": { + "@fortawesome/fontawesome-free": "^5.15.2", "@rollup/plugin-commonjs": "^17.1.0", "@rollup/plugin-image": "^2.0.6", "@rollup/plugin-node-resolve": "^11.2.0", @@ -36,6 +37,7 @@ "@types/node": "^14.14.32", "@types/react": "^17.0.3", "@types/react-dom": "^17.0.2", + "bootstrap": "^4.6.0", "node-fetch": "^2.6.1", "react": "^17.0.1", "react-bootstrap": "^1.5.1", diff --git a/src/components/VerbFormDisplay.tsx b/src/components/VerbFormDisplay.tsx index 37b5832..dfd908b 100644 --- a/src/components/VerbFormDisplay.tsx +++ b/src/components/VerbFormDisplay.tsx @@ -61,7 +61,7 @@ function VerbFormDisplay({ displayForm, textOptions, info, showingFormInfo, engl setLength("long"); } // setPersInf("mascSing"); - setShowingExplanation(false); + // setShowingExplanation(false); }, [block, length, chosenPersInf]); // TODO: This could be handled better to avoid the react-hooks/exhaustive-deps warning ? useEffect(() => { diff --git a/src/index.js b/src/index.js index ef2edf8..092b9ae 100644 --- a/src/index.js +++ b/src/index.js @@ -3,6 +3,9 @@ import ReactDOM from 'react-dom'; import './index.css'; import App from './App'; import reportWebVitals from './reportWebVitals'; +import "@fortawesome/fontawesome-free/css/all.css"; +import 'bootstrap/dist/css/bootstrap.css'; +import './App.css'; ReactDOM.render( diff --git a/yarn.lock b/yarn.lock index 3b04d0e..674ef8b 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1189,6 +1189,11 @@ minimatch "^3.0.4" strip-json-comments "^3.1.1" +"@fortawesome/fontawesome-free@^5.15.2": + version "5.15.2" + resolved "https://registry.yarnpkg.com/@fortawesome/fontawesome-free/-/fontawesome-free-5.15.2.tgz#218cd7276ab4f9ab57cc3d2efa2697e6a579f25d" + integrity sha512-7l/AX41m609L/EXI9EKH3Vs3v0iA8tKlIOGtw+kgcoanI7p+e4I4GYLqW3UXWiTnjSFymKSmTTPKYrivzbxxqA== + "@hapi/address@2.x.x": version "2.1.4" resolved "https://registry.yarnpkg.com/@hapi/address/-/address-2.1.4.tgz#5d67ed43f3fd41a69d4b9ff7b56e7c0d1d0a81e5" @@ -2924,6 +2929,11 @@ boolbase@^1.0.0, boolbase@~1.0.0: resolved "https://registry.yarnpkg.com/boolbase/-/boolbase-1.0.0.tgz#68dff5fbe60c51eb37725ea9e3ed310dcc1e776e" integrity sha1-aN/1++YMUes3cl6p4+0xDcwed24= +bootstrap@^4.6.0: + version "4.6.0" + resolved "https://registry.yarnpkg.com/bootstrap/-/bootstrap-4.6.0.tgz#97b9f29ac98f98dfa43bf7468262d84392552fd7" + integrity sha512-Io55IuQY3kydzHtbGvQya3H+KorS/M9rSNyfCGCg9WZ4pyT/lCxIlpJgG1GXW/PswzC84Tr2fBYi+7+jFVQQBw== + brace-expansion@^1.1.7: version "1.1.11" resolved "https://registry.yarnpkg.com/brace-expansion/-/brace-expansion-1.1.11.tgz#3c7fcbf529d87226f3d2f52b966ff5271eb441dd"