This is the template project that's checked out and configured when you run the bando-up command from ljsthw-bandolier. This is where the code really lives.
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.
 
 
 
 
bandolier-template/client/stores.js

27 lines
567 B

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"});