many many updates (check commit detail)

- updated dependencies
  - bumped react version 17 -> 18
- changed navbar button tag from `a` to `button`
- added locale info to url (made sure same url = same content)
- fixed 0 gettingconsidered as "unknown length" for
  word count in `PostCard`
- moved functions from `Page.tsx` to `helper.ts`
- added "translation not available" page
This commit is contained in:
Kim, Jimin 2022-04-17 21:49:54 +09:00
parent 56bf555bd7
commit d1a33ccf1e
17 changed files with 2569 additions and 2383 deletions

View file

@ -6,6 +6,9 @@
"quick-start": "react-scripts start",
"build": "yarn generate && react-scripts build"
},
"resolutions": {
"@types/react": "18.0.5"
},
"dependencies": {
"@fortawesome/fontawesome-svg-core": "^6.1.1",
"@fortawesome/free-brands-svg-icons": "^6.1.1",
@ -13,52 +16,50 @@
"@fortawesome/free-solid-svg-icons": "^6.1.1",
"@fortawesome/react-fontawesome": "^0.1.18",
"elasticlunr": "^0.9.5",
"highlight.js": "^11.3.1",
"katex": "^0.15.1",
"highlight.js": "^11.5.1",
"katex": "^0.15.3",
"local-storage-fallback": "^4.1.2",
"react": "^17.0.2",
"react": "^18.0.0",
"react-collapse": "^5.1.1",
"react-date-range": "^1.4.0",
"react-device-detect": "^2.1.2",
"react-dnd": "^14.0.5",
"react-dnd-html5-backend": "^14.1.0",
"react-dom": "^17.0.2",
"react-helmet-async": "^1.2.2",
"react-router-dom": "^6.2.1",
"react-router-hash-link": "^2.4.3",
"react-scripts": "^5.0.0",
"react-select": "^5.2.1",
"react-device-detect": "^2.2.2",
"react-dnd": "^16.0.0",
"react-dnd-html5-backend": "^16.0.0",
"react-dom": "^18.0.0",
"react-helmet-async": "^1.3.0",
"react-router-dom": "^6.3.0",
"react-scripts": "^5.0.1",
"react-select": "^5.3.0",
"react-tooltip": "^4.2.21",
"styled-components": "^5.3.3"
"styled-components": "^5.3.5"
},
"devDependencies": {
"@types/ejs": "^3.1.0",
"@types/elasticlunr": "^0.9.4",
"@types/highlight.js": "^10.1.0",
"@types/jsdom": "^16.2.14",
"@types/katex": "^0.11.1",
"@types/katex": "^0.14.0",
"@types/markdown-it": "^12.2.3",
"@types/node": "^17.0.8",
"@types/react": "^17.0.38",
"@types/node": "^17.0.24",
"@types/react": "^18.0.5",
"@types/react-collapse": "^5.0.1",
"@types/react-date-range": "^1.4.2",
"@types/react-dom": "^17.0.11",
"@types/react-router-hash-link": "^2.4.4",
"@types/react-date-range": "^1.4.3",
"@types/react-dom": "^18.0.1",
"@types/react-select": "^5.0.1",
"@types/styled-components": "^5.1.19",
"@types/svgo": "^2.6.0",
"@types/styled-components": "^5.1.25",
"@types/svgo": "^2.6.3",
"@types/tinycolor2": "^1.4.3",
"@typescript-eslint/eslint-plugin": "^5.9.0",
"@typescript-eslint/parser": "^5.9.0",
"@typescript-eslint/eslint-plugin": "^5.19.0",
"@typescript-eslint/parser": "^5.19.0",
"ejs": "^3.1.6",
"eslint-config-prettier": "^8.3.0",
"eslint-config-prettier": "^8.5.0",
"eslint-plugin-json": "^3.1.0",
"eslint-plugin-react": "^7.28.0",
"eslint-plugin-react": "^7.29.4",
"gray-matter": "^4.0.3",
"jsdom": "^19.0.0",
"jspdf": "^2.5.0",
"markdown-it": "^12.3.0",
"markdown-it-anchor": "^8.4.1",
"jspdf": "^2.5.1",
"markdown-it": "^12.3.2",
"markdown-it-anchor": "^8.6.2",
"markdown-it-attrs": "^4.1.3",
"markdown-it-footnote": "^3.0.3",
"markdown-it-highlight-lines": "^1.0.2",
@ -68,14 +69,14 @@
"markdown-it-task-checkbox": "^1.0.6",
"markdown-it-texmath": "^0.9.7",
"markdown-toc": "^1.2.0",
"prettier": "^2.5.1",
"prettier": "^2.6.2",
"read-time-estimate": "^0.0.3",
"simple-icons": "^6.9.0",
"simple-icons": "^6.19.0",
"svgo": "^2.8.0",
"tinycolor2": "^1.4.2",
"ts-node": "^10.4.0",
"ts-node": "^10.7.0",
"tslint-config-prettier": "^1.18.0",
"typescript": "^4.5.4"
"typescript": "^4.6.3"
},
"browserslist": {
"production": [