Remove unused assets, refactor migration handling, and add crash reporting
- Deleted obsolete icons, layout files, and SVG assets. - Added `useAutoUpdate` hook for streamlined update logic. - Introduced `auto_migrate_electron` and migration commands for Electron-to-Tauri data migration. - Implemented `init_panic_hook` for improved crash reporting. - Updated `.gitignore` for Tauri build output and IDE-specific files.
This commit is contained in:
@@ -1,31 +0,0 @@
|
||||
import type {Metadata} from "next";
|
||||
import "./globals.css";
|
||||
import {ReactNode} from "react";
|
||||
import ScribeShell from "@/components/layout/ScribeShell";
|
||||
|
||||
export const metadata: Metadata = {
|
||||
title: "ERitors Scribe",
|
||||
description: "Les meilleurs livres sont ceux qui ont le meilleur plan.",
|
||||
icons: {
|
||||
icon: "/eritors-favicon-white.png"
|
||||
},
|
||||
robots: {
|
||||
index: false,
|
||||
follow: false,
|
||||
},
|
||||
};
|
||||
|
||||
export default function RootLayout(
|
||||
{
|
||||
children,
|
||||
}: Readonly<{
|
||||
children: ReactNode;
|
||||
}>) {
|
||||
return (
|
||||
<html lang="fr">
|
||||
<body>
|
||||
<ScribeShell>{children}</ScribeShell>
|
||||
</body>
|
||||
</html>
|
||||
);
|
||||
}
|
||||
@@ -8,7 +8,7 @@ import * as tauri from '@/lib/tauri';
|
||||
import PulseLoader from '@/components/ui/PulseLoader';
|
||||
import {useTranslations} from '@/lib/i18n';
|
||||
|
||||
listen('auth-success', () => window.location.reload());
|
||||
listen('auth-success', () => window.location.reload()).then();
|
||||
|
||||
type MigrationState = 'pending' | 'error' | 'done';
|
||||
|
||||
|
||||
@@ -1,6 +0,0 @@
|
||||
'use client';
|
||||
import BookList from '@/components/book/BookList';
|
||||
|
||||
export default function HomePage() {
|
||||
return <BookList/>;
|
||||
}
|
||||
Reference in New Issue
Block a user