mirror of
https://github.com/nicotsx/ironmount.git
synced 2025-12-10 12:10:51 +01:00
* feat: add custom restore target directory Adds the ability to restore snapshots to a custom directory instead of only the original path. Closes #12. Changes: - Add target parameter to restore API endpoint - Add directory picker UI in file browser restore dialog - Add target input field in snapshot restore form - Create reusable PathSelector component Note: Run `bun run gen:api-client` after merging to regenerate types. * refactor: path selector design * refactor: unify restore snapshot dialogs * refactor: restore snapshot as a page * chore: fix liniting issues * chore(create-notification): remove un-used prop --------- Co-authored-by: Deepseek1 <Deepseek1@users.noreply.github.com>
27 lines
1.8 KiB
TypeScript
27 lines
1.8 KiB
TypeScript
import { layout, type RouteConfig, route } from "@react-router/dev/routes";
|
|
|
|
export default [
|
|
route("onboarding", "./client/modules/auth/routes/onboarding.tsx"),
|
|
route("login", "./client/modules/auth/routes/login.tsx"),
|
|
route("download-recovery-key", "./client/modules/auth/routes/download-recovery-key.tsx"),
|
|
layout("./client/components/layout.tsx", [
|
|
route("/", "./client/routes/root.tsx"),
|
|
route("volumes", "./client/modules/volumes/routes/volumes.tsx"),
|
|
route("volumes/create", "./client/modules/volumes/routes/create-volume.tsx"),
|
|
route("volumes/:name", "./client/modules/volumes/routes/volume-details.tsx"),
|
|
route("backups", "./client/modules/backups/routes/backups.tsx"),
|
|
route("backups/create", "./client/modules/backups/routes/create-backup.tsx"),
|
|
route("backups/:id", "./client/modules/backups/routes/backup-details.tsx"),
|
|
route("backups/:id/:snapshotId/restore", "./client/modules/backups/routes/restore-snapshot.tsx"),
|
|
route("repositories", "./client/modules/repositories/routes/repositories.tsx"),
|
|
route("repositories/create", "./client/modules/repositories/routes/create-repository.tsx"),
|
|
route("repositories/:name", "./client/modules/repositories/routes/repository-details.tsx"),
|
|
route("repositories/:name/:snapshotId", "./client/modules/repositories/routes/snapshot-details.tsx"),
|
|
route("repositories/:name/:snapshotId/restore", "./client/modules/repositories/routes/restore-snapshot.tsx"),
|
|
route("notifications", "./client/modules/notifications/routes/notifications.tsx"),
|
|
route("notifications/create", "./client/modules/notifications/routes/create-notification.tsx"),
|
|
route("notifications/:id", "./client/modules/notifications/routes/notification-details.tsx"),
|
|
route("settings", "./client/modules/settings/routes/settings.tsx"),
|
|
]),
|
|
] satisfies RouteConfig;
|