chore: remove unused route files and fix script permissions
This commit is contained in:
@@ -1,13 +0,0 @@
|
|||||||
import { createRootRoute, Outlet } from "@tanstack/react-router";
|
|
||||||
import { TanStackRouterDevtools } from "@tanstack/react-router-devtools";
|
|
||||||
import { Toaster } from "@/components/ui/sonner";
|
|
||||||
|
|
||||||
export const Route = createRootRoute({
|
|
||||||
component: () => (
|
|
||||||
<div className="min-h-screen bg-background text-foreground">
|
|
||||||
<Outlet />
|
|
||||||
<Toaster />
|
|
||||||
{import.meta.env.DEV && <TanStackRouterDevtools />}
|
|
||||||
</div>
|
|
||||||
),
|
|
||||||
});
|
|
||||||
@@ -1,52 +0,0 @@
|
|||||||
import { useEffect } from "react";
|
|
||||||
import { createRoute, Outlet } from "@tanstack/react-router";
|
|
||||||
import { Route as rootRoute } from "./__root";
|
|
||||||
import { Sidebar } from "@/components/shell/sidebar";
|
|
||||||
import { Topbar } from "@/components/shell/topbar";
|
|
||||||
import { CommandPalette } from "@/components/shell/command-palette";
|
|
||||||
import { ShortcutsHelp } from "@/components/shell/shortcuts-help";
|
|
||||||
import { useKeyboardShortcuts } from "@/hooks/use-keyboard-shortcuts";
|
|
||||||
|
|
||||||
function AppLayout() {
|
|
||||||
useKeyboardShortcuts();
|
|
||||||
|
|
||||||
// Apply persisted appearance preferences (density, reduced motion, font size)
|
|
||||||
// right after the first paint. The settings page updates these live while
|
|
||||||
// open; this covers reloads where the settings page was never visited.
|
|
||||||
useEffect(() => {
|
|
||||||
const root = document.documentElement;
|
|
||||||
root.classList.remove("density-compact", "density-spacious", "reduce-motion");
|
|
||||||
const density = localStorage.getItem("density");
|
|
||||||
if (density === "compact") root.classList.add("density-compact");
|
|
||||||
if (density === "spacious") root.classList.add("density-spacious");
|
|
||||||
if (localStorage.getItem("reduced-motion") === "true") root.classList.add("reduce-motion");
|
|
||||||
const fontSize = localStorage.getItem("font-size");
|
|
||||||
if (fontSize === "large") root.style.fontSize = "18px";
|
|
||||||
else if (fontSize === "small") root.style.fontSize = "13px";
|
|
||||||
else root.style.fontSize = "16px";
|
|
||||||
}, []);
|
|
||||||
|
|
||||||
return (
|
|
||||||
<div className="flex min-h-screen">
|
|
||||||
<Sidebar />
|
|
||||||
<div className="flex flex-1 flex-col">
|
|
||||||
<Topbar />
|
|
||||||
<main
|
|
||||||
id="main-content"
|
|
||||||
className="flex-1 overflow-auto p-[calc(1rem*var(--density-scale))] md:p-[calc(1.5rem*var(--density-scale))]"
|
|
||||||
tabIndex={-1}
|
|
||||||
>
|
|
||||||
<Outlet />
|
|
||||||
</main>
|
|
||||||
</div>
|
|
||||||
<CommandPalette />
|
|
||||||
<ShortcutsHelp />
|
|
||||||
</div>
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
export const Route = createRoute({
|
|
||||||
getParentRoute: () => rootRoute,
|
|
||||||
id: "_app",
|
|
||||||
component: AppLayout,
|
|
||||||
});
|
|
||||||
@@ -1,62 +0,0 @@
|
|||||||
{
|
|
||||||
"version": "7",
|
|
||||||
"dialect": "postgresql",
|
|
||||||
"entries": [
|
|
||||||
{
|
|
||||||
"idx": 0,
|
|
||||||
"version": "7",
|
|
||||||
"when": 1785317538917,
|
|
||||||
"tag": "0000_outstanding_zuras",
|
|
||||||
"breakpoints": true
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"idx": 1,
|
|
||||||
"version": "7",
|
|
||||||
"when": 1785323079216,
|
|
||||||
"tag": "0001_warm_eternity",
|
|
||||||
"breakpoints": true
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"idx": 2,
|
|
||||||
"version": "7",
|
|
||||||
"when": 1785324000000,
|
|
||||||
"tag": "0002_steep_black_widow",
|
|
||||||
"breakpoints": true
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"idx": 3,
|
|
||||||
"version": "7",
|
|
||||||
"when": 1785325253083,
|
|
||||||
"tag": "0003_amazing_saracen",
|
|
||||||
"breakpoints": true
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"idx": 4,
|
|
||||||
"version": "7",
|
|
||||||
"when": 1785455000000,
|
|
||||||
"tag": "0004_add_owner_id_to_domains",
|
|
||||||
"breakpoints": true
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"idx": 5,
|
|
||||||
"version": "7",
|
|
||||||
"when": 1785557679802,
|
|
||||||
"tag": "0005_search_vector_trigger",
|
|
||||||
"breakpoints": true
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"idx": 6,
|
|
||||||
"version": "7",
|
|
||||||
"when": 1786392464857,
|
|
||||||
"tag": "0006_minor_doctor_octopus",
|
|
||||||
"breakpoints": true
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"idx": 7,
|
|
||||||
"version": "7",
|
|
||||||
"when": 1786392464858,
|
|
||||||
"tag": "0007_drop_canvas_reports",
|
|
||||||
"breakpoints": true
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
Executable → Regular
Executable → Regular
Executable → Regular
Reference in New Issue
Block a user