diff --git a/src/lib/member/Body.svelte b/src/lib/member/Body.svelte new file mode 100644 index 00000000..9d2c26d1 --- /dev/null +++ b/src/lib/member/Body.svelte @@ -0,0 +1,132 @@ + + + + {#if !editMode && !groupMode} + + {#if member.id} + + ID: {member.id} + + {/if} + {#if member.name} + + Name: {member.name} + + {/if} + {#if member.display_name} + + Display Name: {member.display_name} + + {/if} + {#if member.pronouns} + + Pronouns: {@html htmlPronouns} + + {/if} + {#if member.birthday} + + Birthday: {birthday} + + {/if} + {#if member.created} + + Created: {created} + + {/if} + {#if member.color} + + Color: {member.color} + + {/if} + {#if member.banner} + + Banner: + +
+ Your system banner +
+
+ + {/if} + {#if member.privacy} + + Privacy: + + + {#if privacyLoading}
{/if} Edit privacy +
+ + whoops! this is yet to be added. + +
+ + {/if} +
+
+ Description:
+ {@html htmlDescription} +
+ {#if (member.banner && ((settings && settings.appearance.banner_bottom) || !settings))} + your system banner + {/if} + {#if !isPublic} + + {/if} + {:else if editMode} + editing tba o_o + {:else if groupMode} + + {/if} +
\ No newline at end of file diff --git a/src/lib/member/GroupEdit.svelte b/src/lib/member/GroupEdit.svelte new file mode 100644 index 00000000..28d650e3 --- /dev/null +++ b/src/lib/member/GroupEdit.svelte @@ -0,0 +1,98 @@ + + + + +
+ +
Current Groups
+ + {#if finalGroupsList.length > 0} + + {#each finalGroupsList as group, index (group.id)} + {group.name} ({group.id}) {@html group.display_name ? `${toHTML(group.display_name)}` : ""} + {/each} + + {:else} +

This member is inside no groups.

+

You can add groups in this menu!

+ {/if} + + +
+ +
Add to Groups
+ +

(this is nonfunctional at the moment)

+
+
+ +
Remove from Groups
+ +

(this is ALSO nonfunctional)

+ +
+ \ No newline at end of file diff --git a/src/lib/member/List.svelte b/src/lib/member/List.svelte index 10658612..c1960298 100644 --- a/src/lib/member/List.svelte +++ b/src/lib/member/List.svelte @@ -11,6 +11,7 @@ import ListPagination from '../ListPagination.svelte'; import Svelecte, { addFormatter } from 'svelecte'; import FaLock from 'svelte-icons/fa/FaLock.svelte'; + import Body from './Body.svelte'; export let isPublic: boolean; let itemLoading: boolean[] = []; @@ -261,12 +262,14 @@ + {:else} + {/if} {/each}