feat: adding pycache to gitignore

This commit is contained in:
Hydra 2024-04-24 10:22:12 +01:00
parent 18de7ca671
commit ca1b9b2170
No known key found for this signature in database
15 changed files with 1084 additions and 1319 deletions

View file

@ -1,15 +1,10 @@
<!doctype html>
<html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<title>Electron</title>
<!-- https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP -->
<!-- <meta
http-equiv="Content-Security-Policy"
content="default-src 'self'; script-src 'self'; style-src 'self' 'unsafe-inline'; img-src 'self' data:"
/> -->
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Hydra</title>
</head>
<body>
<div id="root"></div>
<script type="module" src="/src/main.tsx"></script>

View file

@ -22,7 +22,7 @@ import {
document.body.classList.add(themeClass);
export function App() {
export function App({ children }: any) {
const contentRef = useRef<HTMLDivElement>(null);
const { updateLibrary } = useLibrary();
@ -112,7 +112,7 @@ export function App() {
/>
<section ref={contentRef} className={styles.content}>
<Outlet />
{children}
</section>
</article>
</main>

View file

@ -4,7 +4,7 @@ import i18n from "i18next";
import { initReactI18next } from "react-i18next";
import { Provider } from "react-redux";
import LanguageDetector from "i18next-browser-languagedetector";
import { createHashRouter, RouterProvider } from "react-router-dom";
import { HashRouter, Route, Routes } from "react-router-dom";
import { init } from "@sentry/electron/renderer";
import { init as reactInit } from "@sentry/react";
@ -46,39 +46,6 @@ if (import.meta.env.RENDERER_VITE_SENTRY_DSN) {
);
}
const router = createHashRouter([
{
path: "/",
Component: App,
children: [
{
path: "/",
Component: Home,
},
{
path: "/catalogue",
Component: Catalogue,
},
{
path: "/downloads",
Component: Downloads,
},
{
path: "/game/:shop/:objectID",
Component: GameDetails,
},
{
path: "/search",
Component: SearchResults,
},
{
path: "/settings",
Component: Settings,
},
],
},
]);
i18n
.use(LanguageDetector)
.use(initReactI18next)
@ -96,7 +63,19 @@ i18n
ReactDOM.createRoot(document.getElementById("root")!).render(
<React.StrictMode>
<Provider store={store}>
<RouterProvider router={router} />
<HashRouter>
<App>
<Routes>
<Route path="/" Component={Home} />
<Route path="/catalogue" Component={Catalogue} />
<Route path="/downloads" Component={Downloads} />
<Route path="/game/:shop/:objectID" Component={GameDetails} />
<Route path="/search" Component={SearchResults} />
<Route path="/settings" Component={Settings} />
</Routes>
</App>
</HashRouter>
{/* <RouterProvider router={router} /> */}
</Provider>
</React.StrictMode>
);