beta features
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import { writable, type Writable } from 'svelte/store';
|
||||
import { writable, type Writable, type Readable, readable } from 'svelte/store';
|
||||
|
||||
export const gitTokens: Writable<{ githubToken: string | null; gitlabToken: string | null }> =
|
||||
writable({
|
||||
@@ -6,3 +6,8 @@ export const gitTokens: Writable<{ githubToken: string | null; gitlabToken: stri
|
||||
gitlabToken: null
|
||||
});
|
||||
export const disabledButton: Writable<boolean> = writable(false);
|
||||
|
||||
export const features: Readable<{ latestVersion: string; beta: boolean }> = readable({
|
||||
beta: window.localStorage.getItem('beta') === 'true',
|
||||
latestVersion: window.localStorage.getItem('latestVersion')
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user