diff --git a/dashboard/src/lib/components/Card.svelte b/dashboard/src/lib/components/Card.svelte index dfb0e54..8023ab5 100644 --- a/dashboard/src/lib/components/Card.svelte +++ b/dashboard/src/lib/components/Card.svelte @@ -11,14 +11,21 @@ $: back = side === "corp" ? BACK_CORPORATION : BACK_RUNNER; - $: url = code ? `https://card-images.netrunnerdb.com/v1/large/{code}.jpg`.replace("{code}", code) : false; + $: url = code + ? `https://card-images.netrunnerdb.com/v1/large/{code}.jpg`.replace( + "{code}", + code, + ) + : false;
{#if PUBLIC_WEBSOCKET_CONNECTION.toLowerCase() === "true"} -

+ {/if} diff --git a/dashboard/src/lib/components/dashboard/Counter.svelte b/dashboard/src/lib/components/dashboard/Counter.svelte index 5d759d5..b8a50fa 100644 --- a/dashboard/src/lib/components/dashboard/Counter.svelte +++ b/dashboard/src/lib/components/dashboard/Counter.svelte @@ -3,7 +3,6 @@ import { createEventDispatcher } from "svelte"; import { Button } from "$lib/components/ui/button"; import { Input } from "$lib/components/ui/input"; - import { Label } from "$lib/components/ui/label"; const dispatch = createEventDispatcher(); diff --git a/dashboard/src/lib/components/dashboard/Country.svelte b/dashboard/src/lib/components/dashboard/Country.svelte index 44e7116..c737385 100644 --- a/dashboard/src/lib/components/dashboard/Country.svelte +++ b/dashboard/src/lib/components/dashboard/Country.svelte @@ -13,9 +13,10 @@ let open = false; let value = ""; - $: selected = - JSON_COUNTRIES.find((f: any) => f.alpha2 === value) ?? - "Select a country"; + $: selected = JSON_COUNTRIES.find((f: any) => f.alpha2 === value) ?? { + name: "Select a country", + alpha2: "", + }; // We want to refocus the trigger button when the user selects // an item from the list so users can continue navigating the diff --git a/dashboard/src/lib/components/dashboard/GlobalSettings.svelte b/dashboard/src/lib/components/dashboard/GlobalSettings.svelte index 4da69e8..fe446e3 100644 --- a/dashboard/src/lib/components/dashboard/GlobalSettings.svelte +++ b/dashboard/src/lib/components/dashboard/GlobalSettings.svelte @@ -2,15 +2,11 @@ import { createEventDispatcher } from "svelte"; import Card from "$components/dashboard/ui/Card.svelte"; import { globalData, deploy } from "$lib/store"; - import Heading from "$components/dashboard/ui/Heading.svelte"; import * as Dialog from "$lib/components/ui/dialog"; // Icons - import ICON_CLICKS from "$lib/assets/icons/NSG_CLICK.svg"; - import ICON_CREDITS from "$lib/assets/icons/NSG_CREDIT.svg"; - import ICON_AGENDAS from "$lib/assets/icons/NSG_AGENDA.svg"; import { Settings } from "lucide-svelte"; - import { Button, buttonVariants } from "$lib/components/ui/button"; + import { buttonVariants } from "$lib/components/ui/button"; import Column from "./ui/Column.svelte"; import { Label } from "$lib/components/ui/label"; import { Switch } from "$lib/components/ui/switch"; @@ -19,15 +15,14 @@ import type { GlobalData as TGlobalData } from "$lib/types"; import { Slider } from "$lib/components/ui/slider"; import { Input } from "$lib/components/ui/input"; - import * as Select from "$lib/components/ui/select"; let global: TGlobalData = $globalData; let deployType: boolean = $deploy.type !== "automatic"; const icons: Record = { - clicks: ICON_CLICKS, - credits: ICON_CREDITS, - agendas: ICON_AGENDAS, + clicks: "/NSG_CLICK.svg", + credits: "/NSG_CREDIT.svg", + agendas: "/NSG_AGENDA.svg", }; const dispatch = createEventDispatcher(); @@ -43,32 +38,39 @@ {$t("global_settings")}

- - - - - Deployment type - - { - $deploy.type = deployType - ? "automatic" - : "manual"; - $deploy.proceed = - $deploy.type === "automatic"; - }} - /> - - - - + + + + Deployment type + + { + $deploy.type = deployType + ? "automatic" + : "manual"; + $deploy.proceed = + $deploy.type === "automatic"; + }} + /> + + + + + +
+ + {$t("global_settings")} + +
+ + -
diff --git a/dashboard/src/lib/components/dashboard/Header.svelte b/dashboard/src/lib/components/dashboard/Header.svelte index 62f8071..4cb41b5 100644 --- a/dashboard/src/lib/components/dashboard/Header.svelte +++ b/dashboard/src/lib/components/dashboard/Header.svelte @@ -1,5 +1,4 @@ @@ -142,7 +131,7 @@