Making progress on pulling this together.
This commit is contained in:
@@ -1,4 +1,7 @@
|
||||
import { localStorageStore } from '@skeletonlabs/skeleton'
|
||||
import { readable, writable } from 'svelte/store';
|
||||
import type { Writable } from 'svelte/store';
|
||||
|
||||
|
||||
import { PUBLIC_TESTING, PUBLIC_AE_API_PROTOCOL, PUBLIC_AE_API_SERVER, PUBLIC_AE_API_BAK_SERVER, PUBLIC_AE_API_PORT, PUBLIC_AE_API_PATH, PUBLIC_AE_API_SECRET_KEY, PUBLIC_AE_API_CRUD_SUPER_KEY, PUBLIC_AE_ACCOUNT_ID } from '$env/static/public';
|
||||
console.log(`Aether Config - TESTING:`, PUBLIC_TESTING);
|
||||
@@ -29,7 +32,7 @@ type key_val = {
|
||||
|
||||
// *** BEGIN *** Longer-term app data. This should be stored to local storage.
|
||||
export let ae_app_local_data_struct: key_val = {
|
||||
'ver': '0.0.1',
|
||||
'ver': '0.0.5',
|
||||
'name': 'Aether App Template',
|
||||
'theme': 'light',
|
||||
'account_id': ae_account_id, // OSIT Demo _XY7DXtc9MY
|
||||
@@ -50,7 +53,16 @@ export let ae_app_local_data_struct: key_val = {
|
||||
},
|
||||
}
|
||||
console.log(`Aether Config - App Local Storage Data:`, ae_app_local_data_struct);
|
||||
export let ae_loc = writable(ae_app_local_data_struct);
|
||||
|
||||
// This does not work yet...
|
||||
// const ae_loc_store: Writable<string> = localStorageStore('ae_loc', ae_app_local_data_struct);
|
||||
// console.log(`store - $ae_loc:`, ae_loc_store);
|
||||
|
||||
// Testing:
|
||||
export let ae_loc: Writable<key_val> = localStorageStore('ae_loc', ae_app_local_data_struct);
|
||||
|
||||
// This works:
|
||||
// export let ae_loc = writable(ae_loc_store);
|
||||
|
||||
|
||||
// *** BEGIN *** Temporary app data. This should be stored to session storage.
|
||||
|
||||
Reference in New Issue
Block a user