mirror of
https://github.com/gurucomputing/headscale-ui.git
synced 2026-07-18 00:46:59 +00:00
20 lines
No EOL
866 B
JavaScript
20 lines
No EOL
866 B
JavaScript
import { writable } from 'svelte/store';
|
|
import { Device, User } from '$lib/common/classes';
|
|
|
|
// used to store the value of an alert across all components
|
|
export const alertStore = writable('');
|
|
// used to determine if the API is functioning
|
|
export const apiTestStore = writable('');
|
|
// stores the theme
|
|
export const headscaleThemeStore = writable('');
|
|
// stores URL and API Key
|
|
export const headscaleURLStore = writable('');
|
|
export const headscaleAPIKeyStore = writable('');
|
|
// stores preauth key preference
|
|
export const preAuthHideStore = writable(false);
|
|
// stores user and device data
|
|
export const headscaleUserStore = writable([new User()]);
|
|
export const headscaleDeviceStore = writable([new Device()]);
|
|
// stores sorting preferences
|
|
export const headscaleDeviceSortStore = writable('id');
|
|
export const headscaleDeviceSortDirectionStore = writable('ascending'); |