From 0e8c0b452e13642c07dcc5843fc8d7ecc98e7795 Mon Sep 17 00:00:00 2001 From: Timothy Jaeryang Baek Date: Thu, 14 Nov 2024 02:20:34 -0800 Subject: [PATCH] wip: frontend --- src/lib/components/admin/Users.svelte | 32 +- src/lib/components/admin/Users/Groups.svelte | 52 +- .../admin/Users/Groups/AddGroupModal.svelte | 148 +++++ ...roupModal.svelte => EditGroupModal.svelte} | 107 ++-- .../admin/Users/Groups/GroupItem.svelte | 45 ++ .../admin/Users/Groups/Permissions.svelte | 45 +- .../admin/Users/Groups/Users.svelte | 135 +++- .../components/admin/Users/UserList.svelte | 598 +++++++++--------- src/lib/components/layout/Sidebar.svelte | 70 +- .../workspace/Knowledge/Collection.svelte | 2 +- src/lib/components/workspace/Models.svelte | 83 +-- src/routes/(app)/workspace/+layout.svelte | 48 +- 12 files changed, 870 insertions(+), 495 deletions(-) create mode 100644 src/lib/components/admin/Users/Groups/AddGroupModal.svelte rename src/lib/components/admin/Users/Groups/{GroupModal.svelte => EditGroupModal.svelte} (70%) create mode 100644 src/lib/components/admin/Users/Groups/GroupItem.svelte diff --git a/src/lib/components/admin/Users.svelte b/src/lib/components/admin/Users.svelte index 738496575..18dba5857 100644 --- a/src/lib/components/admin/Users.svelte +++ b/src/lib/components/admin/Users.svelte @@ -1,14 +1,38 @@ {#if loaded} - +
{$i18n.t('Groups')} @@ -146,35 +156,21 @@
{#each filteredGroups as group} -
-
-
- -
- {group.name} -
- -
- {group.user_ids.length} - -
- -
-
- -
- -
-
+ {/each}
{/if}
- +
+ +
+
+
{ + e.preventDefault(); + submitHandler(); + }} + > +
+
+
{$i18n.t('Name')}
+ +
+ +
+
+
+ +
+
{$i18n.t('Description')}
+ +
+