Skip to content

Commit

Permalink
chore: deps bump (#92)
Browse files Browse the repository at this point in the history
* chore(deps): bump axios from 0.24.0 to 1.3.6

* chore(deps): bump eslint from 7.32.0 to 8.39.0

- eslint from 7.32.0 to 8.39.0
- @typescript-eslint/eslint-plugin from 4.33.0 to 5.59.1
- @typescript-eslint/parser from 4.33.0 to 5.59.1
- eslint-plugin-parser from 4.0.0 to 4.2.1
- eslint-config-parser from 8.3.0 to 8.8.1
- correct assignment of license attributes in <meta>

* chore(deps): bump i18next and react-i18next

- i18next from 22.4.13 to 22.4.15
- react-i18next from 12.2.0 to 12.2.2

* chore(deps): bump ts-node from 10.3.0 to 10.9.1

* chore(deps): bump ts-prune from 0.10.1 to 0.10.3

* chore(deps): bump underscore from 1.13.1 to 1.13.6

* chore(deps): bump rimraf from 3.0.2 to 5.0.0

* chore(deps): bump @types/underscore from 1.11.3 to 1.11.4

* chore(deps): bump react-collapsible from 2.8.4 to 2.8.10

* chore(deps): bump prettier from 2.4.1 to 2.8.8

- add parentheses for `TypeofTypeAnnotation`
  (prettier/prettier#14458,
  prettier/prettier#14042)

* chore(deps): bump mkdirp from 1.0.4 to 3.0.1

* chore(deps): bump react-to-print from 2.14.0 to 2.14.12

* chore(deps): bump react-icons from 4.3.1 to 4.8.0

* chore(deps): bump gh-pages from 3.2.3 to 4.0.0

note: latest is 5.0.0, but it requires Node>=14

* chore(deps): bump typescript from 4.4.3 to 4.9.5*

* typescript v5 is not currently supported by react-scripts (see facebook/create-react-app#13080)

* chore(deps): bump google-spreadsheet from 3.1.15 to 3.3.0

* chore(deps): bump depcheck from 1.4.2 to 1.4.3

---------

Co-authored-by: Federico Grandi <fgrandi30@gmail.com>
  • Loading branch information
lorenzocorallo and EndBug committed Apr 28, 2023
1 parent 19ab791 commit 70d87b1
Show file tree
Hide file tree
Showing 8 changed files with 19,073 additions and 22,982 deletions.
41,983 changes: 19,038 additions & 22,945 deletions package-lock.json

Large diffs are not rendered by default.

48 changes: 24 additions & 24 deletions package.json
Expand Up @@ -17,45 +17,45 @@
"test": "npm run build && npm run lint && npm run exports"
},
"dependencies": {
"@types/google-spreadsheet": "^3.1.5",
"@types/google-spreadsheet": "^3.3.1",
"@types/node": "^16.10.3",
"@types/react": "^17.0.27",
"@types/react-dom": "^17.0.9",
"@types/react-latex": "^2.0.0",
"@types/underscore": "^1.11.3",
"@typescript-eslint/eslint-plugin": "^4.33.0",
"@typescript-eslint/parser": "^4.33.0",
"axios": "^0.24.0",
"depcheck": "^1.4.2",
"@types/underscore": "^1.11.4",
"@typescript-eslint/eslint-plugin": "^5.59.1",
"@typescript-eslint/parser": "^5.59.1",
"axios": "^1.3.6",
"depcheck": "^1.4.3",
"dotenv": "^10.0.0",
"eslint": "^7.32.0",
"eslint-config-prettier": "^8.3.0",
"eslint-plugin-prettier": "^4.0.0",
"eslint": "^8.39.0",
"eslint-config-prettier": "^8.8.0",
"eslint-plugin-prettier": "^4.2.1",
"fraction.js": "^4.1.2",
"fromentries": "^1.3.2",
"gh-pages": "^3.2.3",
"google-spreadsheet": "^3.1.15",
"gh-pages": "^4.0.0",
"google-spreadsheet": "^3.3.0",
"googleapis": "^39.2.0",
"i18next": "^22.4.13",
"i18next": "^22.4.15",
"i18next-browser-languagedetector": "^7.0.1",
"mkdirp": "^1.0.4",
"prettier": "^2.4.1",
"mkdirp": "^3.0.1",
"prettier": "^2.8.8",
"react": "^17.0.2",
"react-collapsible": "^2.8.4",
"react-collapsible": "^2.10.0",
"react-dom": "^17.0.2",
"react-i18next": "^12.2.0",
"react-icons": "^4.3.1",
"react-i18next": "^12.2.2",
"react-icons": "^4.8.0",
"react-latex": "^2.0.0",
"react-ribbons": "github:EndBug/react-ribbons#custom",
"react-router-dom": "^6.10.0",
"react-scripts": "4.0.3",
"react-scripts": "^5.0.1",
"react-timer-hook": "^3.0.5",
"react-to-print": "^2.14.0",
"rimraf": "^3.0.2",
"ts-node": "^10.3.0",
"ts-prune": "^0.10.1",
"typescript": "^4.4.3",
"underscore": "^1.13.1"
"react-to-print": "^2.14.12",
"rimraf": "^5.0.0",
"ts-node": "^10.9.1",
"ts-prune": "^0.10.3",
"typescript": "^4.9.5",
"underscore": "^1.13.6"
},
"engines": {
"node": "^16.0.0"
Expand Down
3 changes: 3 additions & 0 deletions public/index.html
Expand Up @@ -14,6 +14,9 @@
<meta property="og:url" content="https://tol.polinetwork.org" />
<meta property="og:image" content="%PUBLIC_URL%/logo3000.webp" />
<meta property="og:locale" content="it_IT" />
<meta property="dct:title" content="The TOL Project" xmlns:dct="https://purl.org/dc/terms/" />
<meta property="cc:attributionName" content="PoliNetwork" />
<meta property="cc:morePermissions" content="https://github.com/PoliNetworkOrg/TheTOLProject/blob/main/LICENSE" xmlns:cc="https://creativecommons.org/ns#" />
<link rel="apple-touch-icon" href="%PUBLIC_URL%/logo3000.webp" />
<!--
manifest.json provides metadata used when your web app is installed on a
Expand Down
8 changes: 0 additions & 8 deletions src/components/pages/License.tsx
Expand Up @@ -22,16 +22,9 @@ const styles = StyleSheet.create({
export default function License() {
const { i18n } = useTranslation()
const components = {
title: (
<span
{...{ 'xmlns:dct': 'https://purl.org/dc/terms/' }}
property="dct:title"
/>
),
network: (
<a
href="https://polinetwork.org/it/projects/"
property="cc:attributionName"
rel="cc:attributionURL noreferrer noopener"
target="_blank"
/>
Expand All @@ -45,7 +38,6 @@ export default function License() {
),
githubLicense: (
<a
{...{ 'xmlns:cc': 'https://creativecommons.org/ns#' }}
href={links.githubLicense}
rel="cc:morePermissions noreferrer noopener"
target="_blank"
Expand Down
7 changes: 5 additions & 2 deletions src/components/pages/Results.tsx
Expand Up @@ -157,7 +157,10 @@ export default function Results(props: ResultsProps) {
)

const score = (
Object.entries(correctionGrid) as [Section, typeof correctionGrid[string]][]
Object.entries(correctionGrid) as [
Section,
(typeof correctionGrid)[string]
][]
)
.map(([, correction]) => correction.score.mul(correction.weight))
.reduce((acc, curr) => acc.add(curr), new Fraction(0))
Expand Down Expand Up @@ -203,7 +206,7 @@ export default function Results(props: ResultsProps) {
{(
Object.entries(correctionGrid) as [
Section,
typeof correctionGrid[Section]
(typeof correctionGrid)[Section]
][]
)
.sort((a, b) => sectionInfo[a[0]].order - sectionInfo[b[0]].order)
Expand Down
2 changes: 1 addition & 1 deletion src/locales/en.json
Expand Up @@ -17,7 +17,7 @@
}
},
"license": {
"main": "<title>The TOL Project</title> by <network>PoliNetwork</network> is licensed under a <cc4>Creative Commons Attribution-ShareAlike 4.0 International License</cc4> <br/> Permissions beyond the scope of this license may be available <githubLicense>here</githubLicense>."
"main": "The TOL Project by <network>PoliNetwork</network> is licensed under a <cc4>Creative Commons Attribution-ShareAlike 4.0 International License</cc4> <br/> Permissions beyond the scope of this license may be available <githubLicense>here</githubLicense>."
},
"privacy": {
"localStorage": "This website uses the browser <link /> to save user preferences, for example the test mode (regular or SLD) or the website language. These settings are never sent to any server, instead they are handled locally by the browser. Moreover, preferences are deleted after 6 months from the last change."
Expand Down
2 changes: 1 addition & 1 deletion src/locales/it.json
Expand Up @@ -17,7 +17,7 @@
}
},
"license": {
"main": "<title>The TOL Project</title> by <network>PoliNetwork</network> è rilasciato sotto una licenza <cc4>Creative Commons Attribution-ShareAlike 4.0 International License</cc4>. <br /> Permessi che vanno oltre l'ambito di questa licenza posso essere disponibili <githubLicense>qui</githubLicense>."
"main": "The TOL Project by <network>PoliNetwork</network> è rilasciato sotto una licenza <cc4>Creative Commons Attribution-ShareAlike 4.0 International License</cc4>. <br /> Permessi che vanno oltre l'ambito di questa licenza posso essere disponibili <githubLicense>qui</githubLicense>."
},
"privacy": {
"localStorage": "Questo sito utilizza il <link /> per salvare preferenze e impostazioni utente, come la modalità del test (Regolare o DSA) o la lingua di visualizzazione del sito. Queste impostazioni non vengono mai inviate ad alcun server, ma vengono gestite localmente dal browser. Inoltre, queste vengono eliminate 6 mesi dopo l'ultima modifica."
Expand Down
2 changes: 1 addition & 1 deletion src/utils/database.ts
Expand Up @@ -10,7 +10,7 @@ export const sheetDict = {
quesiti_COM: 'com',
quesiti_FIS: 'fis'
} as const
export type Section = typeof sheetDict[keyof typeof sheetDict]
export type Section = (typeof sheetDict)[keyof typeof sheetDict]

export type AnswerLetter = 'a' | 'b' | 'c' | 'd' | 'e'

Expand Down

0 comments on commit 70d87b1

Please sign in to comment.