Add a Settings page with about card (app name + version) and an update section that uses the Tauri v2 updater plugin to check GitHub Releases, download signed installers, and relaunch. Includes full state machine (idle/checking/available/downloading/readyToInstall/installing/error) with progress bar and retry. Database in %APPDATA% is never touched. - Add tauri-plugin-updater and tauri-plugin-process (Rust + npm) - Configure updater endpoint, pubkey placeholder, and passive install mode - Add signing env vars and updaterJsonPreferNsis to release workflow - Add Settings nav item, route, and fr/en translations Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
55 lines
1 KiB
TypeScript
55 lines
1 KiB
TypeScript
import type { NavItem } from "../types";
|
|
|
|
export const APP_NAME = "Simpl'Résultat";
|
|
export const DB_NAME = "sqlite:simpl_resultat.db";
|
|
|
|
export const NAV_ITEMS: NavItem[] = [
|
|
{
|
|
key: "dashboard",
|
|
path: "/",
|
|
icon: "LayoutDashboard",
|
|
labelKey: "nav.dashboard",
|
|
},
|
|
{
|
|
key: "import",
|
|
path: "/import",
|
|
icon: "Upload",
|
|
labelKey: "nav.import",
|
|
},
|
|
{
|
|
key: "transactions",
|
|
path: "/transactions",
|
|
icon: "ArrowLeftRight",
|
|
labelKey: "nav.transactions",
|
|
},
|
|
{
|
|
key: "categories",
|
|
path: "/categories",
|
|
icon: "Tags",
|
|
labelKey: "nav.categories",
|
|
},
|
|
{
|
|
key: "adjustments",
|
|
path: "/adjustments",
|
|
icon: "SlidersHorizontal",
|
|
labelKey: "nav.adjustments",
|
|
},
|
|
{
|
|
key: "budget",
|
|
path: "/budget",
|
|
icon: "PiggyBank",
|
|
labelKey: "nav.budget",
|
|
},
|
|
{
|
|
key: "reports",
|
|
path: "/reports",
|
|
icon: "BarChart3",
|
|
labelKey: "nav.reports",
|
|
},
|
|
{
|
|
key: "settings",
|
|
path: "/settings",
|
|
icon: "Settings",
|
|
labelKey: "nav.settings",
|
|
},
|
|
];
|