clone of repo on github
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

15 lines
673 B

import { browser } from "$app/environment";
import { writable, type Writable } from "svelte/store";
import type { Tab } from "./types.ts";
export const pathLoaded: Writable<boolean> = writable(false);
export const tabs: Writable<Tab[]> = writable([{ id: 0, type: "welcome" }]);
export const tabBehaviour: Writable<string> = writable(
(browser && localStorage.getItem("wikinostr_tabBehaviour")) || "normal",
);
export const userPublickey: Writable<string> = writable(
(browser && localStorage.getItem("wikinostr_loggedInPublicKey")) || "",
);
export const networkFetchLimit: Writable<number> = writable(5);
export const levelsToRender: Writable<number> = writable(3);