From 13c417fceec6ffd4192d95a48c149eb0bf150930 Mon Sep 17 00:00:00 2001 From: venashial Date: Wed, 3 Aug 2022 00:24:44 -0700 Subject: [PATCH] Run `pnpm format` --- theseus_gui/src/app.d.ts | 8 +- theseus_gui/src/app.html | 22 +- theseus_gui/src/components/CardRow.svelte | 87 +++--- .../src/components/GlobalSettings.svelte | 100 +++---- theseus_gui/src/components/Instance.svelte | 153 ++++++----- .../src/components/TitledSection.svelte | 72 ++--- theseus_gui/src/components/VerticalNav.svelte | 48 ++-- .../src/components/WindowSettings.svelte | 14 +- theseus_gui/src/global.d.ts | 10 +- theseus_gui/src/hooks.ts | 8 +- theseus_gui/src/layout/Page.svelte | 80 +++--- theseus_gui/src/layout/Sidebar.svelte | 252 +++++++++--------- theseus_gui/src/layout/StatusBar.svelte | 110 ++++---- theseus_gui/src/routes/index.svelte | 40 ++- theseus_gui/src/routes/library/index.svelte | 3 - .../library/instance/[id]/__layout.svelte | 65 ++--- .../library/instance/[id]/settings.svelte | 13 +- theseus_gui/src/routes/settings.svelte | 5 +- theseus_gui/src/stores/account.ts | 4 +- theseus_gui/src/styles/components.postcss | 32 +-- theseus_gui/src/styles/global.postcss | 18 +- 21 files changed, 579 insertions(+), 565 deletions(-) diff --git a/theseus_gui/src/app.d.ts b/theseus_gui/src/app.d.ts index 7090ee710..f5cdcd668 100644 --- a/theseus_gui/src/app.d.ts +++ b/theseus_gui/src/app.d.ts @@ -3,11 +3,11 @@ // See https://kit.svelte.dev/docs/typescript // for information about these interfaces declare namespace App { - interface Locals {} + interface Locals {} - interface Platform {} + interface Platform {} - interface Session {} + interface Session {} - interface Stuff {} + interface Stuff {} } diff --git a/theseus_gui/src/app.html b/theseus_gui/src/app.html index f88fd6183..3510174a7 100644 --- a/theseus_gui/src/app.html +++ b/theseus_gui/src/app.html @@ -1,14 +1,14 @@ - - - - - - - %sveltekit.head% - - - %sveltekit.body% - + + + + + + + %sveltekit.head% + + + %sveltekit.body% + diff --git a/theseus_gui/src/components/CardRow.svelte b/theseus_gui/src/components/CardRow.svelte index f46fb33a2..ffec75d1a 100644 --- a/theseus_gui/src/components/CardRow.svelte +++ b/theseus_gui/src/components/CardRow.svelte @@ -1,54 +1,53 @@
-
{title}
-
- -
+
{title}
+
+ +
- \ No newline at end of file + + &__items { + display: flex; + grid-gap: 1rem; + align-items: flex-start; + overflow-x: auto; + padding: 0 1rem; + + /* Hide scrollbar */ + -ms-overflow-style: none; + scrollbar-width: none; + &::-webkit-scrollbar { + display: none; + } + } + + &:nth-of-type(even) { + background-color: hsla(0, 0%, 0%, 0.2); + } + } + diff --git a/theseus_gui/src/components/GlobalSettings.svelte b/theseus_gui/src/components/GlobalSettings.svelte index 91f985cf9..514af9196 100644 --- a/theseus_gui/src/components/GlobalSettings.svelte +++ b/theseus_gui/src/components/GlobalSettings.svelte @@ -1,58 +1,58 @@
- - - - - - - - - - - - - - - - - - - - - - -
- - - -
-
- - -
- - - -
-
- - - - - - - - - -
+ + + + + + + + + + + + + + + + + + + + + + +
+ + + +
+
+ + +
+ + + +
+
+ + + + + + + + + +
diff --git a/theseus_gui/src/components/TitledSection.svelte b/theseus_gui/src/components/TitledSection.svelte index be2873e10..c6cde6ab8 100644 --- a/theseus_gui/src/components/TitledSection.svelte +++ b/theseus_gui/src/components/TitledSection.svelte @@ -1,49 +1,49 @@
-
- {#if toggleable}{title} - {:else}{title} - {/if} -
-
- {#if !toggleable || enabled}{/if} -
+
+ {#if toggleable}{title} + {:else}{title} + {/if} +
+
+ {#if !toggleable || enabled}{/if} +
diff --git a/theseus_gui/src/components/VerticalNav.svelte b/theseus_gui/src/components/VerticalNav.svelte index 42db1d812..b8e2a1a52 100644 --- a/theseus_gui/src/components/VerticalNav.svelte +++ b/theseus_gui/src/components/VerticalNav.svelte @@ -1,36 +1,34 @@
- {#each items as item (item.href)} - - - {item.label} - - {/each} + {#each items as item (item.href)} + + + {item.label} + + {/each}
diff --git a/theseus_gui/src/components/WindowSettings.svelte b/theseus_gui/src/components/WindowSettings.svelte index 2d2e2f059..fdef7ba00 100644 --- a/theseus_gui/src/components/WindowSettings.svelte +++ b/theseus_gui/src/components/WindowSettings.svelte @@ -1,14 +1,14 @@
- - - - - - + + + + + +
\ No newline at end of file + :global(.v-thumb) { + margin: 4px auto 4px auto !important; + } + diff --git a/theseus_gui/src/layout/Sidebar.svelte b/theseus_gui/src/layout/Sidebar.svelte index 16483c325..bb5f11bb8 100644 --- a/theseus_gui/src/layout/Sidebar.svelte +++ b/theseus_gui/src/layout/Sidebar.svelte @@ -1,144 +1,146 @@ diff --git a/theseus_gui/src/routes/library/instance/[id]/settings.svelte b/theseus_gui/src/routes/library/instance/[id]/settings.svelte index 2110068d1..29ff9f067 100644 --- a/theseus_gui/src/routes/library/instance/[id]/settings.svelte +++ b/theseus_gui/src/routes/library/instance/[id]/settings.svelte @@ -1,18 +1,17 @@
- - - + + +