Compare commits
3
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
bbca5a36cc | ||
|
|
0d4a048d16 | ||
|
|
57fe6dc9ac |
@@ -30,7 +30,6 @@
|
|||||||
"react": "^17.0.0 || ^18.0.0 || ^19.0.0",
|
"react": "^17.0.0 || ^18.0.0 || ^19.0.0",
|
||||||
"react-dom": "^17.0.0 || ^18.0.0 || ^19.0.0",
|
"react-dom": "^17.0.0 || ^18.0.0 || ^19.0.0",
|
||||||
"react-i18next": "^17.0.8",
|
"react-i18next": "^17.0.8",
|
||||||
"react-toastify": "^11.1.0",
|
|
||||||
"tailwindcss": "^4.3.0",
|
"tailwindcss": "^4.3.0",
|
||||||
"validator": "^13.15.35",
|
"validator": "^13.15.35",
|
||||||
"zod": "^4.4.3"
|
"zod": "^4.4.3"
|
||||||
|
|||||||
+3
-19
@@ -1,9 +1,9 @@
|
|||||||
import { createRouter, RouterProvider } from "@tanstack/react-router";
|
import { createRouter, RouterProvider } from "@tanstack/react-router";
|
||||||
import "./App.css";
|
import "./App.css";
|
||||||
import { ToastContainer } from "react-toastify";
|
|
||||||
import { routeTree } from "./routeTree.gen";
|
import { routeTree } from "./routeTree.gen";
|
||||||
|
import { NotFound } from "./components/NotFound.tsx";
|
||||||
|
|
||||||
const router = createRouter({ routeTree });
|
const router = createRouter({ routeTree, defaultNotFoundComponent: NotFound });
|
||||||
|
|
||||||
declare module "@tanstack/react-router" {
|
declare module "@tanstack/react-router" {
|
||||||
interface Register {
|
interface Register {
|
||||||
@@ -12,23 +12,7 @@ declare module "@tanstack/react-router" {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function App() {
|
function App() {
|
||||||
return (
|
return <RouterProvider router={router} />;
|
||||||
<>
|
|
||||||
<ToastContainer
|
|
||||||
position="top-right"
|
|
||||||
autoClose={5000}
|
|
||||||
hideProgressBar={false}
|
|
||||||
newestOnTop={false}
|
|
||||||
closeOnClick={false}
|
|
||||||
rtl={false}
|
|
||||||
pauseOnFocusLoss
|
|
||||||
draggable
|
|
||||||
pauseOnHover
|
|
||||||
theme="colored"
|
|
||||||
/>
|
|
||||||
<RouterProvider router={router} />
|
|
||||||
</>
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
export default App;
|
export default App;
|
||||||
|
|||||||
@@ -0,0 +1,17 @@
|
|||||||
|
import { Typography } from "@mui/joy";
|
||||||
|
import { useTranslation } from "react-i18next";
|
||||||
|
|
||||||
|
export const NotFound = () => {
|
||||||
|
const { t } = useTranslation();
|
||||||
|
|
||||||
|
return (
|
||||||
|
<div className={"flex flex-col items-center gap-2"}>
|
||||||
|
<Typography color={"primary"} level={"h1"}>
|
||||||
|
{t("not-found-header")}
|
||||||
|
</Typography>
|
||||||
|
<Typography className={"text-slate-900"} level={"body-lg"}>
|
||||||
|
{t("not-found-body")}
|
||||||
|
</Typography>
|
||||||
|
</div>
|
||||||
|
);
|
||||||
|
};
|
||||||
@@ -178,7 +178,7 @@ export const Settings = () => {
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div className="flex flex-wrap items-center justify-between gap-3">
|
<div className="flex flex-wrap items-center justify-end gap-3">
|
||||||
<Button
|
<Button
|
||||||
type="submit"
|
type="submit"
|
||||||
size="lg"
|
size="lg"
|
||||||
|
|||||||
@@ -58,6 +58,8 @@
|
|||||||
"success": "Erfolg",
|
"success": "Erfolg",
|
||||||
"submit": "Absenden",
|
"submit": "Absenden",
|
||||||
"logout-success-text": "Logout erfolgreich!",
|
"logout-success-text": "Logout erfolgreich!",
|
||||||
|
"not-found-header": "404 - Nicht gefunden",
|
||||||
|
"not-found-body": "Die Seite nach der du gesucht hast, gibt es nicht.",
|
||||||
"SU005": "Das Passwort wurde erfolgreich geändert!",
|
"SU005": "Das Passwort wurde erfolgreich geändert!",
|
||||||
"SE001": "Die Einstellungen wurden erfolgreich geändert!",
|
"SE001": "Die Einstellungen wurden erfolgreich geändert!",
|
||||||
"EG001": "Ein unerwarteter Fehler ist aufgetreten. Bitte versuchen Sie es später erneut.",
|
"EG001": "Ein unerwarteter Fehler ist aufgetreten. Bitte versuchen Sie es später erneut.",
|
||||||
|
|||||||
@@ -58,6 +58,8 @@
|
|||||||
"success": "Success",
|
"success": "Success",
|
||||||
"submit": "Submit",
|
"submit": "Submit",
|
||||||
"logout-success-text": "Logout successful!",
|
"logout-success-text": "Logout successful!",
|
||||||
|
"not-found-header": "404 - Not found",
|
||||||
|
"not-found-body": "The page you were looking for, does not exist.",
|
||||||
"SU005": "Your password is updated successfully!",
|
"SU005": "Your password is updated successfully!",
|
||||||
"SE001": "The settings are updated successfully!",
|
"SE001": "The settings are updated successfully!",
|
||||||
"EG001": "An unexpected error occurred. Please try again later.",
|
"EG001": "An unexpected error occurred. Please try again later.",
|
||||||
|
|||||||
Generated
-1
@@ -59,7 +59,6 @@
|
|||||||
"react": "^17.0.0 || ^18.0.0 || ^19.0.0",
|
"react": "^17.0.0 || ^18.0.0 || ^19.0.0",
|
||||||
"react-dom": "^17.0.0 || ^18.0.0 || ^19.0.0",
|
"react-dom": "^17.0.0 || ^18.0.0 || ^19.0.0",
|
||||||
"react-i18next": "^17.0.8",
|
"react-i18next": "^17.0.8",
|
||||||
"react-toastify": "^11.1.0",
|
|
||||||
"tailwindcss": "^4.3.0",
|
"tailwindcss": "^4.3.0",
|
||||||
"validator": "^13.15.35",
|
"validator": "^13.15.35",
|
||||||
"zod": "^4.4.3"
|
"zod": "^4.4.3"
|
||||||
|
|||||||
Reference in New Issue
Block a user