coolify/src/lib/store.ts

14 lines
509 B
TypeScript
Raw Normal View History

2022-05-02 07:43:38 +00:00
import { writable, type Writable, type Readable, readable } from 'svelte/store';
2022-04-06 19:51:19 +00:00
export const gitTokens: Writable<{ githubToken: string | null; gitlabToken: string | null }> =
writable({
githubToken: null,
gitlabToken: null
});
export const disabledButton: Writable<boolean> = writable(false);
2022-05-02 07:43:38 +00:00
export const features: Readable<{ latestVersion: string; beta: boolean }> = readable({
beta: window.localStorage.getItem('beta') === 'true',
latestVersion: window.localStorage.getItem('latestVersion')
});