diff --git a/src/App.svelte b/src/App.svelte index c66320a7..57b05f17 100644 --- a/src/App.svelte +++ b/src/App.svelte @@ -8,6 +8,7 @@ import Public from "./pages/Public.svelte"; import Main from "./pages/profiles/Main.svelte"; import Status from './pages/status.svelte'; + import Member from './pages/Member.svelte'; // theme cdns (I might make some myself too) let light = "https://cdn.jsdelivr.net/npm/bootstrap@5.1.0/dist/css/bootstrap.min.css"; @@ -37,6 +38,8 @@ localStorage.setItem("pk-style", "dark"); }; }; + + let falseBool = false; @@ -47,15 +50,14 @@ +
hey please provide a system - - member - + hey please provide a member diff --git a/src/lib/member/Body.svelte b/src/lib/member/Body.svelte index 80048dd8..a6a26fdc 100644 --- a/src/lib/member/Body.svelte +++ b/src/lib/member/Body.svelte @@ -14,6 +14,7 @@ export let groups: Group[] = []; export let member: Member; export let isPublic: boolean = false; + export let isPage: boolean = false; let editMode: boolean = false; let groupMode: boolean = false; @@ -145,6 +146,11 @@ {#if !isPublic} {/if} + {#if !isPage} + + {:else} + + {/if} {:else if editMode} {:else if groupMode} diff --git a/src/pages/Member.svelte b/src/pages/Member.svelte new file mode 100644 index 00000000..1857873f --- /dev/null +++ b/src/pages/Member.svelte @@ -0,0 +1,108 @@ + + +{#if settings && settings.appearance.color_background} +
+{/if} + + + + {#if err} + {err} + {:else if loading} + + {:else if member && member.id} + + + + + + + + + + + {/if} + {#if groupLoading} + fetching groups... + {:else if groupErr} + {groupErr} + {:else if groups && groups.length > 0} + {#each groups as group} + {group.name} ({group.id})
+ {/each} + {/if} + +
+
+ + \ No newline at end of file