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.
28 lines
567 B
28 lines
567 B
2 years ago
|
import { writable } from 'svelte/store';
|
||
|
|
||
|
|
||
|
// look in api/login.js and client/pages/Login.svelte for where this is initially setup
|
||
|
export const user = writable({
|
||
|
authenticated: undefined, // yes, this is on purpose
|
||
|
});
|
||
|
|
||
|
export const cache = writable({
|
||
|
courses: {},
|
||
|
modules: {},
|
||
|
lessons: {},
|
||
|
recents: {}
|
||
|
});
|
||
|
|
||
|
export const cache_reset = () => {
|
||
|
cache.update(() => ({
|
||
|
courses: {},
|
||
|
modules: {},
|
||
|
lessons: {},
|
||
|
recents: {}
|
||
|
}));
|
||
|
}
|
||
|
|
||
|
export const video_config = writable({video_ready: false});
|
||
|
|
||
|
export const darkmode = writable({theme: "light"});
|