Convert multiple pages into SPA
This commit is contained in:
12
svelte/src/wrap/RouterStore.ts
Normal file
12
svelte/src/wrap/RouterStore.ts
Normal file
@@ -0,0 +1,12 @@
|
||||
import type { ComponentType } from "svelte";
|
||||
import { writable } from "svelte/store";
|
||||
|
||||
export type Tab = {
|
||||
path: string,
|
||||
prefix?: string,
|
||||
title: string,
|
||||
component?: ComponentType,
|
||||
footer?: boolean,
|
||||
login?: boolean,
|
||||
};
|
||||
export let current_page_store = writable({} as Tab);
|
||||
Reference in New Issue
Block a user