Enhance routing and layout in SvelteKit project by adding new routes for accounts and transactions, updating existing routes, and improving layout parameters. Refactor item handling and integrate barcode scanning functionality for better user experience.
This commit is contained in:
Vendored
+9
-6
@@ -27,18 +27,21 @@ export {};
|
||||
|
||||
declare module "$app/types" {
|
||||
export interface AppTypes {
|
||||
RouteId(): "/" | "/access-denied" | "/items" | "/login" | "/logout";
|
||||
RouteId(): "/" | "/access-denied" | "/accounts" | "/items" | "/items/[id]" | "/login" | "/logout" | "/transactions";
|
||||
RouteParams(): {
|
||||
|
||||
"/items/[id]": { id: string }
|
||||
};
|
||||
LayoutParams(): {
|
||||
"/": Record<string, never>;
|
||||
"/": { id?: string };
|
||||
"/access-denied": Record<string, never>;
|
||||
"/items": Record<string, never>;
|
||||
"/accounts": Record<string, never>;
|
||||
"/items": { id?: string };
|
||||
"/items/[id]": { id: string };
|
||||
"/login": Record<string, never>;
|
||||
"/logout": Record<string, never>
|
||||
"/logout": Record<string, never>;
|
||||
"/transactions": Record<string, never>
|
||||
};
|
||||
Pathname(): "/" | "/items" | "/login" | "/logout";
|
||||
Pathname(): "/" | "/accounts" | "/items" | `/items/${string}` & {} | "/login" | "/logout" | "/transactions";
|
||||
ResolvedPathname(): `${"" | `/${string}`}${ReturnType<AppTypes['Pathname']>}`;
|
||||
Asset(): string & {};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user