Initial Commit

This commit is contained in:
Damian Wessels
2025-09-08 11:01:51 +02:00
commit fd33b5ceba
81 changed files with 17432 additions and 0 deletions

26
electron/src/App.tsx Normal file
View File

@@ -0,0 +1,26 @@
import React, { useEffect } from "react";
import { createRoot } from "react-dom/client";
import { syncThemeWithLocal } from "./helpers/theme_helpers";
import { useTranslation } from "react-i18next";
import "./localization/i18n";
import { updateAppLanguage } from "./helpers/language_helpers";
import { router } from "./routes/router";
import { RouterProvider } from "@tanstack/react-router";
export default function App() {
const { i18n } = useTranslation();
useEffect(() => {
syncThemeWithLocal();
updateAppLanguage(i18n);
}, [i18n]);
return <RouterProvider router={router} />;
}
const root = createRoot(document.getElementById("app")!);
root.render(
<React.StrictMode>
<App />
</React.StrictMode>,
);