* refactor: move to tanstack start * refactor: auth flow & volumes * refactor: repo & snapshot details * refactor: backups, create repo, volumes * refactor: create volume & restore snapshot * refactor: notifications * refactor: settings * refactor: breadcrumbs * fix: ts issues * refactor: prod deployment * fix: import css production * refactor: nitro build * refactor: winston -> consola * fix: memory leak is sse events cleanup * fix: cli usage * chore: remove rr routes file * refactor: pr feedbacks * refactor: patch api client to have a global client per call * refactor: pr feedbacks * fix(dockerfile): add explicit port * fix(e2e): healthcheck under /api
28 lines
763 B
TypeScript
28 lines
763 B
TypeScript
import { createFileRoute } from "@tanstack/react-router";
|
|
import { listBackupSchedulesOptions } from "~/client/api-client/@tanstack/react-query.gen";
|
|
import { BackupsPage } from "~/client/modules/backups/routes/backups";
|
|
|
|
export const Route = createFileRoute("/(dashboard)/backups/")({
|
|
component: RouteComponent,
|
|
loader: async ({ context }) => {
|
|
await context.queryClient.ensureQueryData({
|
|
...listBackupSchedulesOptions(),
|
|
});
|
|
},
|
|
staticData: {
|
|
breadcrumb: () => [{ label: "Backup Jobs" }],
|
|
},
|
|
head: () => ({
|
|
meta: [
|
|
{ title: "Zerobyte - Backup Jobs" },
|
|
{
|
|
name: "description",
|
|
content: "Automate volume backups with scheduled jobs and retention policies.",
|
|
},
|
|
],
|
|
}),
|
|
});
|
|
|
|
function RouteComponent() {
|
|
return <BackupsPage />;
|
|
}
|