Bump dependencies on web frontend
This commit is contained in:
parent
b57cac1639
commit
269765ee59
3 changed files with 610 additions and 531 deletions
|
@ -7,29 +7,29 @@
|
||||||
"preview": "vite preview"
|
"preview": "vite preview"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@mdi/js": "^6.5.95",
|
"@mdi/js": "^7.4.47",
|
||||||
"@mdi/react": "^1.5.0",
|
"@mdi/react": "^1.6.1",
|
||||||
"@types/axios": "^0.14.0",
|
"@types/axios": "^0.14.0",
|
||||||
"@types/core-js": "^2.5.5",
|
"@types/core-js": "^2.5.8",
|
||||||
"@types/styled-components": "^5.1.21",
|
"@types/styled-components": "^5.1.34",
|
||||||
"automod": "^0.1.0",
|
"automod": "^0.1.0",
|
||||||
"axios": "^0.25.0",
|
"axios": "^1.7.2",
|
||||||
"core-js": "^3.20.3",
|
"core-js": "^3.37.1",
|
||||||
"katex": "^0.16.0",
|
"katex": "^0.16.11",
|
||||||
"localforage": "^1.10.0",
|
"localforage": "^1.10.0",
|
||||||
"prop-types": "^15.8.1",
|
"prop-types": "^15.8.1",
|
||||||
"react": "^17.0.2",
|
"react": "^18.3.1",
|
||||||
"react-dom": "^17.0.2",
|
"react-dom": "^18.3.1",
|
||||||
"react-router-dom": "^6.2.1",
|
"react-router-dom": "^6.24.1",
|
||||||
"styled-components": "^5.3.3"
|
"styled-components": "^6.1.11"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@types/katex": "^0.14.0",
|
"@types/katex": "^0.16.7",
|
||||||
"@types/react": "^17.0.33",
|
"@types/react": "^18.3.3",
|
||||||
"@types/react-dom": "^17.0.10",
|
"@types/react-dom": "^18.3.0",
|
||||||
"@vitejs/plugin-react": "^1.0.7",
|
"@vitejs/plugin-react": "^4.3.1",
|
||||||
"typescript": "^4.4.4",
|
"typescript": "^5.5.3",
|
||||||
"vite": "^2.7.2"
|
"vite": "^5.3.3"
|
||||||
},
|
},
|
||||||
"packageManager": "yarn@4.3.1",
|
"packageManager": "yarn@4.3.1",
|
||||||
"resolutions": {
|
"resolutions": {
|
||||||
|
|
|
@ -2,7 +2,11 @@ import { FunctionComponent, useState, useEffect } from "react";
|
||||||
import Login from "../pages/Login";
|
import Login from "../pages/Login";
|
||||||
import { getAuth } from "../utils";
|
import { getAuth } from "../utils";
|
||||||
|
|
||||||
const RequireAuth: FunctionComponent = (props) => {
|
interface RequireAuthProps {
|
||||||
|
children: React.ReactNode;
|
||||||
|
}
|
||||||
|
|
||||||
|
const RequireAuth: FunctionComponent<RequireAuthProps> = (props) => {
|
||||||
const [loggedIn, setLoggedIn] = useState(true);
|
const [loggedIn, setLoggedIn] = useState(true);
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
|
|
1101
web/yarn.lock
1101
web/yarn.lock
File diff suppressed because it is too large
Load diff
Loading…
Reference in a new issue