From 9cdb4b6634dabd01efca5caba67b0a8c57d11f88 Mon Sep 17 00:00:00 2001 From: Emily Wangler Date: Mon, 23 Oct 2023 12:01:56 +0200 Subject: [PATCH] update dependencies (#24) * update dependencies * fix links and language switch * some cleanup --- .tool-versions | 2 +- package.json | 68 +- src/App.tsx | 24 +- src/components/Footer.tsx | 20 +- src/components/FooterSvg.tsx | 12 + src/components/Navigation.tsx | 6 +- src/components/PbsLogoSvg.tsx | 304 + src/components/Section.tsx | 2 +- src/helper/MarkdownComponents.tsx | 2 +- src/images/pbs_logo.svg | 296 +- src/index.tsx | 17 +- src/pages/CalendarPage.tsx | 2 +- src/pages/HomePage .tsx | 2 +- src/pages/ImpressumPage.tsx | 2 +- src/pages/SectionPage.tsx | 2 +- src/styles/calendar.less | 2 +- yarn.lock | 13814 ++++++++++++++-------------- 17 files changed, 7548 insertions(+), 7029 deletions(-) create mode 100644 src/components/FooterSvg.tsx create mode 100644 src/components/PbsLogoSvg.tsx diff --git a/.tool-versions b/.tool-versions index f9bbe86..cebe1b6 100644 --- a/.tool-versions +++ b/.tool-versions @@ -1,2 +1,2 @@ -nodejs 14.15.0 +nodejs 18.0.0 diff --git a/package.json b/package.json index 23d9528..8938252 100644 --- a/package.json +++ b/package.json @@ -4,37 +4,44 @@ "version": "0.1.0", "private": true, "dependencies": { - "@craco/craco": "^6.3.0", - "@emotion/babel-preset-css-prop": "^11.2.0", - "@emotion/react": "^11.4.0", - "@emotion/styled": "^11.3.0", - "@fortawesome/fontawesome-svg-core": "^1.2.36", - "@fortawesome/free-solid-svg-icons": "^5.15.4", - "@fortawesome/react-fontawesome": "^0.1.15", - "@testing-library/jest-dom": "^5.11.4", - "@testing-library/react": "^11.1.0", - "@testing-library/user-event": "^12.1.10", - "@types/jest": "^26.0.15", - "@types/node": "^12.0.0", - "@types/react": "^17.0.0", - "@types/react-dom": "^17.0.0", - "axios": "^0.21.4", - "craco-less": "^1.20.0", - "i18next": "^21.2.0", - "i18next-browser-languagedetector": "^6.1.2", + "@emotion/babel-preset-css-prop": "^11.10.0", + "@emotion/react": "^11.10.5", + "@emotion/styled": "^11.10.5", + "@fortawesome/fontawesome-svg-core": "^6.2.1", + "@fortawesome/free-solid-svg-icons": "^6.2.1", + "@fortawesome/react-fontawesome": "^0.2.0", + "assert": "^2.1.0", + "axios": "^1.2.6", + "file-loader": "^6.2.0", + "i18next": "^22.4.9", + "i18next-browser-languagedetector": "^7.0.1", "ics": "^2.31.0", - "react": "^17.0.2", - "react-dom": "^17.0.2", + "react": "^18.2.0", + "react-dom": "^18.2.0", "react-helmet": "^6.1.0", - "react-i18next": "^11.12.0", - "react-markdown": "^7.0.1", - "react-router": "^5.2.1", - "react-router-dom": "^5.3.0", + "react-i18next": "^12.1.4", + "react-markdown": "^8.0.5", + "react-quiz-component": "^0.5.1", + "react-router": "^6.8.0", + "react-router-dom": "^6.8.0", "react-router-hash-link": "^2.4.3", - "react-scripts": "4.0.3", - "remark-gfm": "^2.0.0", - "typescript": "^4.1.2", - "web-vitals": "^1.0.1" + "remark-gfm": "^3.0.1", + "typescript": "^4.9.4", + "web-vitals": "^3.1.1" + }, + "devDependencies": { + "@craco/craco": "7.0.0", + "@svgr/webpack": "^6.5.1", + "@types/jest": "^29.4.0", + "@types/node": "^18.11.18", + "@types/react": "^18.0.28", + "@types/react-dom": "^18.0.10", + "@types/react-helmet": "^6.1.7", + "@types/react-router-dom": "^5.3.3", + "@types/react-router-hash-link": "^2.4.5", + "craco-less": "2.1.0-alpha.0", + "react-scripts": "^5.0.1", + "serve": "^14.2.0" }, "scripts": { "start": "PORT=3001 craco start", @@ -59,10 +66,5 @@ "last 1 firefox version", "last 1 safari version" ] - }, - "devDependencies": { - "@types/react-helmet": "^6.1.1", - "@types/react-router-dom": "^5.1.9", - "@types/react-router-hash-link": "^2.4.2" } } diff --git a/src/App.tsx b/src/App.tsx index 208a635..c78a116 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -1,8 +1,8 @@ import React, { useEffect } from 'react'; import { HashRouter as Router, - Switch, Route, + Routes, } from "react-router-dom"; import { faCalendar, faExclamationTriangle, faBars } from '@fortawesome/free-solid-svg-icons' import { library } from '@fortawesome/fontawesome-svg-core' @@ -74,21 +74,13 @@ function App() {
- - - - - - - - } /> - - - - - - - + + } /> + } /> + } /> + } /> + } /> +