diff --git a/src/lib/components/LoadingSpinner.svelte b/src/lib/components/LoadingSpinner.svelte new file mode 100644 index 0000000..9a20317 --- /dev/null +++ b/src/lib/components/LoadingSpinner.svelte @@ -0,0 +1,78 @@ + + +
+ + diff --git a/src/lib/types/spinner.ts b/src/lib/types/spinner.ts new file mode 100644 index 0000000..9d97dd2 --- /dev/null +++ b/src/lib/types/spinner.ts @@ -0,0 +1,17 @@ +export type SpinnerTypes = { + size: string | number; + color: string; + unit: string; + duration: string; + pause: boolean; +}; + +export type Circle2Types = { + colorOuter: string; + colorCenter: string; + colorInner: string; + durationMultiplier: number; + durationOuter: string; + durationInner: string; + durationCenter: string; +} & SpinnerTypes; \ No newline at end of file diff --git a/src/routes/graphs/excel-style/+page.svelte b/src/routes/graphs/excel-style/+page.svelte index 500aa1d..9e585aa 100644 --- a/src/routes/graphs/excel-style/+page.svelte +++ b/src/routes/graphs/excel-style/+page.svelte @@ -14,6 +14,7 @@ import type { LayoutData } from '../$types'; import type { Ethic } from '$lib/types/stellaris'; import { page } from '$app/stores'; + import LoadingSpinner from '$lib/components/LoadingSpinner.svelte'; export let data: LayoutData; let selectedGameGroups: ArrayEthic | -# Regular | -# Fanatic | -
---|---|---|
{ethicData[1].displayName} | -{ethicData[1].regular} | -{ethicData[1].fanatic} | -
Total Gestalts: {pageData.gestaltCount.total}
-> Hive Minds: {pageData.gestaltCount.total - pageData.gestaltCount.machines}
-> Machines: {pageData.gestaltCount.machines}
-Machine Ethic | -# | -
---|---|
{ethicData[1].displayName} | -{ethicData[1].regular} | -
Species | - {#each Array(18) as _, index (index)} -{index + 1} | - {/each} -
---|
{portraitGroup[1].displayName} | - {#each portraitGroup[1].portraits as portrait} -- - - | +Ethic | +# Regular | +# Fanatic | +
---|---|---|---|---|
{ethicData[1].displayName} | +{ethicData[1].regular} | +{ethicData[1].fanatic} | +
Total Gestalts: {pageData.gestaltCount.total}
+> Hive Minds: {pageData.gestaltCount.total - pageData.gestaltCount.machines}
+> Machines: {pageData.gestaltCount.machines}
+Machine Ethic | +# | +
---|---|
{ethicData[1].displayName} | +{ethicData[1].regular} | +
Species | + {#each Array(18) as _, index (index)} +{index + 1} | {/each}
---|