2022-05-02 11:00:13 +00:00
|
|
|
import { browser } from '$app/env';
|
2022-05-02 07:43:38 +00:00
|
|
|
import { writable, type Writable, type Readable, readable } from 'svelte/store';
|
2022-02-21 11:35:20 +00:00
|
|
|
|
2022-04-06 19:51:19 +00:00
|
|
|
export const gitTokens: Writable<{ githubToken: string | null; gitlabToken: string | null }> =
|
|
|
|
|
writable({
|
|
|
|
|
githubToken: null,
|
|
|
|
|
gitlabToken: null
|
|
|
|
|
});
|
2022-04-20 20:24:41 +00:00
|
|
|
export const disabledButton: Writable<boolean> = writable(false);
|
2022-05-02 07:43:38 +00:00
|
|
|
|
|
|
|
|
export const features: Readable<{ latestVersion: string; beta: boolean }> = readable({
|
2022-05-02 11:00:13 +00:00
|
|
|
beta: browser && window.localStorage.getItem('beta') === 'true',
|
|
|
|
|
latestVersion: browser && window.localStorage.getItem('latestVersion')
|
2022-05-02 07:43:38 +00:00
|
|
|
});
|
2022-05-12 14:53:22 +00:00
|
|
|
|
|
|
|
|
export const isTraefikUsed: Writable<boolean> = writable(false);
|