From d0c26770fad7d11b9c3be218f73a00f085d4a681 Mon Sep 17 00:00:00 2001 From: Jeroen De Meerleer Date: Mon, 28 Aug 2023 10:15:24 +0200 Subject: [PATCH] feat: Update globalstore and sessionstore variable names - Renamed `globals` to `globalstore` in `stores.js` - Updated import statements in affected files to reflect the change --- src/lib/stores.js | 4 ++-- src/routes/+layout.svelte | 4 ++-- src/routes/+page.svelte | 4 ++-- src/routes/account/+layout.svelte | 4 ++-- src/routes/account/login/+page.svelte | 4 ++-- src/routes/account/login/Login.svelte | 21 ++++++++++----------- src/routes/account/login/Server.svelte | 16 ++++++++-------- src/routes/account/register/+page.svelte | 8 ++++---- 8 files changed, 32 insertions(+), 33 deletions(-) diff --git a/src/lib/stores.js b/src/lib/stores.js index 583a339..6df6f81 100644 --- a/src/lib/stores.js +++ b/src/lib/stores.js @@ -8,7 +8,7 @@ export const urls = { register: "/register" } export const alerts = writable([]) -export const globals = writable({ +export const globalstore = writable({ server: { url: '', caps: { @@ -19,4 +19,4 @@ export const globals = writable({ } }); -export const sessionvars = localStorageStore('vars', [], {storage: 'session'}) \ No newline at end of file +export const sessionstore = localStorageStore('vars', [], {storage: 'session'}) \ No newline at end of file diff --git a/src/routes/+layout.svelte b/src/routes/+layout.svelte index f817c8d..3b0f32e 100644 --- a/src/routes/+layout.svelte +++ b/src/routes/+layout.svelte @@ -7,7 +7,7 @@ // Most of your app wide CSS should be put in this file import '../app.postcss'; - import {alerts, globals} from "$lib/stores.js"; + import {alerts, globalstore} from "$lib/stores.js"; import { autoModeWatcher } from '@skeletonlabs/skeleton'; let alertsvar; @@ -23,7 +23,7 @@ alerts.subscribe((value) => { alertsvar = value; }); - globals.subscribe(value => { + globalstore.subscribe(value => { globalvars = value; }); diff --git a/src/routes/+page.svelte b/src/routes/+page.svelte index 0a76f4c..d3f82e4 100644 --- a/src/routes/+page.svelte +++ b/src/routes/+page.svelte @@ -1,9 +1,9 @@ diff --git a/src/routes/account/+layout.svelte b/src/routes/account/+layout.svelte index bd64867..5686997 100644 --- a/src/routes/account/+layout.svelte +++ b/src/routes/account/+layout.svelte @@ -36,7 +36,7 @@ \ No newline at end of file diff --git a/src/routes/account/login/+page.svelte b/src/routes/account/login/+page.svelte index 1a42b02..16c56a5 100644 --- a/src/routes/account/login/+page.svelte +++ b/src/routes/account/login/+page.svelte @@ -8,11 +8,11 @@ \ No newline at end of file diff --git a/src/routes/account/login/Login.svelte b/src/routes/account/login/Login.svelte index 87c7328..bdc4cb2 100644 --- a/src/routes/account/login/Login.svelte +++ b/src/routes/account/login/Login.svelte @@ -28,8 +28,7 @@ \ No newline at end of file diff --git a/src/routes/account/login/Server.svelte b/src/routes/account/login/Server.svelte index f0c28ae..1595a37 100644 --- a/src/routes/account/login/Server.svelte +++ b/src/routes/account/login/Server.svelte @@ -16,21 +16,21 @@