+
+ Only show
+
+
+
+
+
+
+
+ {/if}
+
+ {#if !isPublic}
+
+
+ {#if itemType === "member"}
+
+ {:else if itemType === "group"}
+
+ {/if}
+
+ groupSearchMode = "include"} on:keyup={e => e.key === "Enter" ? groupSearchMode = "include" : ""} tabindex={0}>{@html groupSearchMode === "include" ? "include" : "include"}
+ | groupSearchMode = "exclude"} on:keyup={e => e.key === "Enter" ? groupSearchMode = "exclude" : ""} tabindex={0}>{@html groupSearchMode === "exclude" ? "exclude" : "exclude"}
+ | groupSearchMode = "match"} on:keyup={e => e.key === "Enter" ? groupSearchMode = "match" : ""} tabindex={0}>{@html groupSearchMode === "match" ? "exact match" : "exact match"}
+ | groupSearchMode = "none"} on:keyup={e => e.key === "Enter" ? groupSearchMode = "none" : ""} tabindex={0}>{@html groupSearchMode === "none" ? "none" : "none"}
+ Includes every member who's a part of any of the groups.
+ Excludes every member who's a part of any of the groups, the opposite of include.
+ Only includes members who are a part of every group.
+ Only includes members that are in no groups.
+ {/if}
+
+
\ No newline at end of file
diff --git a/dashboard/src/lib/list/ListSearch.svelte b/dashboard/src/lib/list/ListSearch.svelte
new file mode 100644
index 00000000..8b8e7562
--- /dev/null
+++ b/dashboard/src/lib/list/ListSearch.svelte
@@ -0,0 +1,23 @@
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/dashboard/src/lib/member/List.svelte b/dashboard/src/lib/member/List.svelte
deleted file mode 100644
index 33efa25a..00000000
--- a/dashboard/src/lib/member/List.svelte
+++ /dev/null
@@ -1,366 +0,0 @@
-
-
-
-
-
-
-
-
- Only show
-
-
-
-
-
-
-
- {/if}
-
- {#if !isPublic}
-
-
-
-
- groupSearchMode = "include"} on:keyup={e => e.key === "Enter" ? groupSearchMode = "include" : ""} tabindex={0}>{@html groupSearchMode === "include" ? "include" : "include"}
- | groupSearchMode = "exclude"} on:keyup={e => e.key === "Enter" ? groupSearchMode = "exclude" : ""} tabindex={0}>{@html groupSearchMode === "exclude" ? "exclude" : "exclude"}
- | groupSearchMode = "match"} on:keyup={e => e.key === "Enter" ? groupSearchMode = "match" : ""} tabindex={0}>{@html groupSearchMode === "match" ? "exact match" : "exact match"}
- | groupSearchMode = "none"} on:keyup={e => e.key === "Enter" ? groupSearchMode = "none" : ""} tabindex={0}>{@html groupSearchMode === "none" ? "none" : "none"}
- Includes every member who's a part of any of the groups.
- Excludes every member who's a part of any of the groups, the opposite of include.
- Only includes members who are a part of every group.
- Only includes members that are in no groups.
- {/if}
-
-
-
-
-{#if listLoading && !err}
-
-{/if}
-
-{/if}
\ No newline at end of file
diff --git a/dashboard/src/pages/Dash.svelte b/dashboard/src/pages/Dash.svelte
index dec5190b..cbf09b83 100644
--- a/dashboard/src/pages/Dash.svelte
+++ b/dashboard/src/pages/Dash.svelte
@@ -4,14 +4,11 @@
import { currentUser, loggedIn } from '../stores';
import SystemMain from '../lib/system/Main.svelte';
- import MemberList from '../lib/member/List.svelte';
- import GroupList from '../lib/group/List.svelte';
+ import List from '../lib/list/List.svelte';
import { System } from '../api/types';
import api from '../api';
- let isPublic = false;
-
// get the state from the navigator so that we know which tab to start on
let location = useLocation();
let params = $location.search && new URLSearchParams($location.search);
@@ -82,13 +79,13 @@
Viewing your own system
-
+
-
+
-
+
diff --git a/dashboard/src/pages/profiles/Main.svelte b/dashboard/src/pages/profiles/Main.svelte
index c394c2b9..d6e48f48 100644
--- a/dashboard/src/pages/profiles/Main.svelte
+++ b/dashboard/src/pages/profiles/Main.svelte
@@ -4,8 +4,7 @@
import { onMount } from 'svelte';
import SystemMain from '../../lib/system/Main.svelte';
- import MemberList from '../../lib/member/List.svelte';
- import GroupList from '../../lib/group/List.svelte';
+ import List from '../../lib/list/List.svelte';
import { System } from '../../api/types';
import api from '../../api';
@@ -72,10 +71,10 @@
-
+
-
+
{/if}