-
-
Account Name
-
Account ID
-
-
-
PROJECTS
- {#if $session.user}
- {#each data as account}
-
- {/each}
- {:else}
-
Nothing to see here
- {/if}
+
-
+
(toggle = !toggle)}
+ class="fixed top-0 left-0 w-full h-full z-40 bg-black bg-opacity-75
+ cursor-pointer {toggle ? 'hidden' : ''}" />
\ No newline at end of file
+ -->
diff --git a/src/helpers/accountData.js b/src/helpers/accountData.js
deleted file mode 100644
index e40a3c6..0000000
--- a/src/helpers/accountData.js
+++ /dev/null
@@ -1,7 +0,0 @@
-import * as api from "api.js";
-
-export default async function accountData(path, token, uderId) {
- const res = await api.get(path, token, uderId)
- const data = res.data;
- return { data }
-}
\ No newline at end of file
diff --git a/src/routes/_layout.svelte b/src/routes/_layout.svelte
index d87f141..2bb5f6b 100644
--- a/src/routes/_layout.svelte
+++ b/src/routes/_layout.svelte
@@ -1,11 +1,11 @@
diff --git a/src/routes/account/[_id].svelte b/src/routes/account/[_id].svelte
index 550b9e6..29270e8 100644
--- a/src/routes/account/[_id].svelte
+++ b/src/routes/account/[_id].svelte
@@ -1,49 +1,56 @@
- {accountData.accountName}
+ {accountData.accountName}
-
{accountData.accountName}
\ No newline at end of file
+ {#if projects}
+ {#each projects as project}
+
+
+ {project.projectName}
+
+
+ {:else}
+
+ No projects found or call has not been made
+
+ {/each}
+ {/if}
+
diff --git a/src/routes/accounts.svelte b/src/routes/accounts.svelte
index 95a3fe9..b1d7192 100644
--- a/src/routes/accounts.svelte
+++ b/src/routes/accounts.svelte
@@ -1,32 +1,23 @@
-
-
\ No newline at end of file
+ {/if}
+
diff --git a/src/routes/login.svelte b/src/routes/login.svelte
index 91c48f4..becca78 100644
--- a/src/routes/login.svelte
+++ b/src/routes/login.svelte
@@ -1,10 +1,10 @@
diff --git a/src/store/accountStore.js b/src/store/accountStore.js
new file mode 100644
index 0000000..5ca5cc6
--- /dev/null
+++ b/src/store/accountStore.js
@@ -0,0 +1,3 @@
+import { writable } from 'svelte/store';
+
+export const accountStore = writable([]);
\ No newline at end of file
diff --git a/src/store/accounts.js b/src/store/accounts.js
new file mode 100644
index 0000000..28f33ef
--- /dev/null
+++ b/src/store/accounts.js
@@ -0,0 +1,12 @@
+import { writable } from 'svelte/store';
+
+function createAccounts() {
+ const { subscribe, set, update } = writable([]);
+
+ return {
+ subscribe,
+ setupAccounts: (arg) => set(arg)
+ };
+}
+
+export const accounts = createAccounts();