From ddff409b76e0698a876207f28d3790616b047887 Mon Sep 17 00:00:00 2001 From: ThatOneCalculator Date: Tue, 13 Sep 2022 21:10:54 -0700 Subject: [PATCH] feat: Add groups back --- packages/client/src/navbar.ts | 5 + .../client/src/pages/my-groups/groups.vue | 188 ++++++++++++++++++ packages/client/src/pages/my-groups/index.vue | 106 ++++++++++ packages/client/src/router.ts | 8 + 4 files changed, 307 insertions(+) create mode 100644 packages/client/src/pages/my-groups/groups.vue create mode 100644 packages/client/src/pages/my-groups/index.vue diff --git a/packages/client/src/navbar.ts b/packages/client/src/navbar.ts index 03e00b1c1..029ef1665 100644 --- a/packages/client/src/navbar.ts +++ b/packages/client/src/navbar.ts @@ -86,6 +86,11 @@ export const navbarItemDef = reactive({ icon: 'fas fa-icons', to: '/gallery', }, + groups: { + title: 'groups', + icon: 'fas fa-users', + to: '/my/groups', + }, clips: { title: 'clip', icon: 'fas fa-paperclip', diff --git a/packages/client/src/pages/my-groups/groups.vue b/packages/client/src/pages/my-groups/groups.vue new file mode 100644 index 000000000..5e5ba034d --- /dev/null +++ b/packages/client/src/pages/my-groups/groups.vue @@ -0,0 +1,188 @@ + + + + + diff --git a/packages/client/src/pages/my-groups/index.vue b/packages/client/src/pages/my-groups/index.vue new file mode 100644 index 000000000..84d1fa5ff --- /dev/null +++ b/packages/client/src/pages/my-groups/index.vue @@ -0,0 +1,106 @@ + + + + + diff --git a/packages/client/src/router.ts b/packages/client/src/router.ts index 111b15e0a..0bf3d71d7 100644 --- a/packages/client/src/router.ts +++ b/packages/client/src/router.ts @@ -425,6 +425,14 @@ export const routes = [{ path: '/my/clips', component: page(() => import('./pages/my-clips/index.vue')), loginRequired: true, +}, { + path: '/my/groups', + component: page(() => import('./pages/my-groups/index.vue')), + loginRequired: true, +}, { + path: '/my/groups/:groupId', + component: page(() => import('./pages/my-groups/group.vue')), + loginRequired: true, }, { path: '/my/antennas/create', component: page(() => import('./pages/my-antennas/create.vue')),