From 8da05a33cb3ee906072ad66876f0330447b8bed8 Mon Sep 17 00:00:00 2001 From: Neshura Date: Wed, 6 Dec 2023 21:00:13 +0100 Subject: [PATCH] Move Components to new Directory --- src/lib/components/consts.ts | 2 -- src/lib/{components => components_custom}/Button.svelte | 0 src/lib/{components => components_custom}/DropDown.svelte | 0 .../DropDownElement.svelte | 0 .../LoadingSpinner.svelte | 0 .../LoadingSpinnerLocal.svelte | 0 src/lib/components_custom/consts.ts | 2 ++ src/routes/+layout.svelte | 2 +- src/routes/Settings.svelte | 7 ++----- src/routes/admin/+page.server.ts | 2 +- src/routes/admin/+page.svelte | 4 ++-- src/routes/admin/+page.ts | 2 +- src/routes/admin/EmpireDetails.svelte | 6 +++--- src/routes/legacy/graphs/+layout.ts | 2 +- src/routes/legacy/graphs/GameGroupSelection.svelte | 4 ++-- src/routes/legacy/graphs/GameSelection.svelte | 4 ++-- src/routes/legacy/graphs/excel-style/+page.svelte | 2 +- src/routes/legacy/legacy-graphs/+page.svelte | 2 +- src/routes/legacy/legacy-graphs/+page.ts | 2 +- 19 files changed, 20 insertions(+), 23 deletions(-) delete mode 100644 src/lib/components/consts.ts rename src/lib/{components => components_custom}/Button.svelte (100%) rename src/lib/{components => components_custom}/DropDown.svelte (100%) rename src/lib/{components => components_custom}/DropDownElement.svelte (100%) rename src/lib/{components => components_custom}/LoadingSpinner.svelte (100%) rename src/lib/{components => components_custom}/LoadingSpinnerLocal.svelte (100%) create mode 100644 src/lib/components_custom/consts.ts diff --git a/src/lib/components/consts.ts b/src/lib/components/consts.ts deleted file mode 100644 index de9f2a5..0000000 --- a/src/lib/components/consts.ts +++ /dev/null @@ -1,2 +0,0 @@ -export const apiBaseUrl = 'https://wip.chellaris.net/api'; -export const MACHINE_GROUP_ID = 12; \ No newline at end of file diff --git a/src/lib/components/Button.svelte b/src/lib/components_custom/Button.svelte similarity index 100% rename from src/lib/components/Button.svelte rename to src/lib/components_custom/Button.svelte diff --git a/src/lib/components/DropDown.svelte b/src/lib/components_custom/DropDown.svelte similarity index 100% rename from src/lib/components/DropDown.svelte rename to src/lib/components_custom/DropDown.svelte diff --git a/src/lib/components/DropDownElement.svelte b/src/lib/components_custom/DropDownElement.svelte similarity index 100% rename from src/lib/components/DropDownElement.svelte rename to src/lib/components_custom/DropDownElement.svelte diff --git a/src/lib/components/LoadingSpinner.svelte b/src/lib/components_custom/LoadingSpinner.svelte similarity index 100% rename from src/lib/components/LoadingSpinner.svelte rename to src/lib/components_custom/LoadingSpinner.svelte diff --git a/src/lib/components/LoadingSpinnerLocal.svelte b/src/lib/components_custom/LoadingSpinnerLocal.svelte similarity index 100% rename from src/lib/components/LoadingSpinnerLocal.svelte rename to src/lib/components_custom/LoadingSpinnerLocal.svelte diff --git a/src/lib/components_custom/consts.ts b/src/lib/components_custom/consts.ts new file mode 100644 index 0000000..ee213af --- /dev/null +++ b/src/lib/components_custom/consts.ts @@ -0,0 +1,2 @@ +export const apiBaseUrl = 'https://www.chellaris.net/api'; +export const MACHINE_GROUP_ID = 12; \ No newline at end of file diff --git a/src/routes/+layout.svelte b/src/routes/+layout.svelte index e298d02..6ecd8e0 100644 --- a/src/routes/+layout.svelte +++ b/src/routes/+layout.svelte @@ -5,7 +5,7 @@ import { browser } from '$app/environment'; import { writable } from 'svelte/store'; import { themes } from '$lib/types/themes' - import { apiBaseUrl } from '$lib/components/consts'; + import { apiBaseUrl } from '$lib/components_custom/consts'; import { LeanChellarisDataStore } from '$lib/stores/ChellarisData'; import Header from './Header.svelte'; import Settings from './Settings.svelte'; diff --git a/src/routes/Settings.svelte b/src/routes/Settings.svelte index 2abc279..bce137d 100644 --- a/src/routes/Settings.svelte +++ b/src/routes/Settings.svelte @@ -1,12 +1,9 @@