diff --git a/src/routes/graphs/+layout.svelte b/src/routes/graphs/+layout.svelte new file mode 100644 index 0000000..ed5bc24 --- /dev/null +++ b/src/routes/graphs/+layout.svelte @@ -0,0 +1,31 @@ + + +
+ + +
+ +
+
+ + diff --git a/src/routes/graphs/+page.svelte b/src/routes/graphs/+page.svelte new file mode 100644 index 0000000..9457396 --- /dev/null +++ b/src/routes/graphs/+page.svelte @@ -0,0 +1,16 @@ + + + + Graphs + + + +

WIP

+ + diff --git a/src/routes/graphs/SubNav.svelte b/src/routes/graphs/SubNav.svelte new file mode 100644 index 0000000..c694c6f --- /dev/null +++ b/src/routes/graphs/SubNav.svelte @@ -0,0 +1,122 @@ + + +
+
+
+ + + +
+
+
+ + diff --git a/src/routes/graphs/tab/+page.svelte b/src/routes/graphs/tab/+page.svelte new file mode 100644 index 0000000..8a741cb --- /dev/null +++ b/src/routes/graphs/tab/+page.svelte @@ -0,0 +1 @@ +

Example Tab

\ No newline at end of file diff --git a/src/routes/graphs/tab2/+page.svelte b/src/routes/graphs/tab2/+page.svelte new file mode 100644 index 0000000..8a741cb --- /dev/null +++ b/src/routes/graphs/tab2/+page.svelte @@ -0,0 +1 @@ +

Example Tab

\ No newline at end of file diff --git a/src/routes/legacy-graphs/+page.svelte b/src/routes/legacy-graphs/+page.svelte index 276196e..5dd1e38 100644 --- a/src/routes/legacy-graphs/+page.svelte +++ b/src/routes/legacy-graphs/+page.svelte @@ -39,7 +39,7 @@ .fullscreen-margin { display: flex; flex-direction: row; - min-height: 100%; + height: 90vh; flex-grow: 1; padding: 2rem; } diff --git a/src/routes/legacy-graphs/+page.ts b/src/routes/legacy-graphs/+page.ts index bb3374a..f104b11 100644 --- a/src/routes/legacy-graphs/+page.ts +++ b/src/routes/legacy-graphs/+page.ts @@ -1,5 +1,5 @@ -/** @type {import('./$types').PageLoad} */ -export async function load({ fetch }) { +import type { PageLoad } from "../$types"; +export const load: PageLoad = async ({ fetch }) => { const apiBaseUrl = 'https://www.chellaris.net/api/v1'; const popsRet: { speciesArray: Array } = await (await fetch(apiBaseUrl + '/species')).json(); const popsData: Array = popsRet.speciesArray; diff --git a/src/routes/legacy-graphs/EthicsWeb.svelte b/src/routes/legacy-graphs/EthicsWeb.svelte index 76c8abb..d84ca36 100644 --- a/src/routes/legacy-graphs/EthicsWeb.svelte +++ b/src/routes/legacy-graphs/EthicsWeb.svelte @@ -149,8 +149,7 @@ options.scales.r.max = scaleLimit; if (typeof localStorage !== "undefined") { - console.log("Set Store to ", weighted) - localStorage.setItem("weighted", weighted.toString()) + localStorage.setItem("weighted", weighted.toString()); } }