From 8da5fe8e267575018ffa4af0f43cdae42c322472 Mon Sep 17 00:00:00 2001 From: Mika Date: Thu, 11 Jul 2024 22:48:12 +0200 Subject: [PATCH] =?UTF-8?q?web:=20implemented=20d=C3=B6nerteller?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- web/components.d.ts | 4 +- web/src/components/HeaderBar.vue | 2 +- .../NavBarIcons/UsersDeleteActions.vue | 44 +++++++ .../components/NavBarIcons/UsersDialog.vue | 11 +- .../NavBarIcons/UsersEditActions.vue | 112 ++++++++++++++++++ web/src/types.ts | 8 ++ 6 files changed, 177 insertions(+), 4 deletions(-) create mode 100644 web/src/components/NavBarIcons/UsersDeleteActions.vue create mode 100644 web/src/components/NavBarIcons/UsersEditActions.vue diff --git a/web/components.d.ts b/web/components.d.ts index 77c5d50..c278089 100644 --- a/web/components.d.ts +++ b/web/components.d.ts @@ -9,13 +9,15 @@ declare module 'vue' { export interface GlobalComponents { CategoryContainer: typeof import('./src/components/CategoryContainer.vue')['default'] Clipboard: typeof import('./src/components/Clipboard.vue')['default'] - copy: typeof import('./src/components/UpdateDialog copy.vue')['default'] + copy: typeof import("./src/components/UpdateDialog copy.vue")["default"] DeleteDialog: typeof import('./src/components/DeleteDialog.vue')['default'] HeaderBar: typeof import('./src/components/HeaderBar.vue')['default'] ListViewElement: typeof import('./src/components/ListViewElement.vue')['default'] LoginPage: typeof import('./src/components/loginPage.vue')['default'] MainPage: typeof import('./src/components/MainPage.vue')['default'] UpdateDialog: typeof import('./src/components/UpdateDialog.vue')['default'] + UsersDeleteActions: typeof import('./src/components/NavBarIcons/UsersDeleteActions.vue')['default'] UsersDialog: typeof import('./src/components/NavBarIcons/UsersDialog.vue')['default'] + UsersEditActions: typeof import('./src/components/NavBarIcons/UsersEditActions.vue')['default'] } } diff --git a/web/src/components/HeaderBar.vue b/web/src/components/HeaderBar.vue index ba39074..eb10b99 100644 --- a/web/src/components/HeaderBar.vue +++ b/web/src/components/HeaderBar.vue @@ -3,7 +3,7 @@ - +
diff --git a/web/src/components/NavBarIcons/UsersDeleteActions.vue b/web/src/components/NavBarIcons/UsersDeleteActions.vue new file mode 100644 index 0000000..54b9bb6 --- /dev/null +++ b/web/src/components/NavBarIcons/UsersDeleteActions.vue @@ -0,0 +1,44 @@ + + + + + diff --git a/web/src/components/NavBarIcons/UsersDialog.vue b/web/src/components/NavBarIcons/UsersDialog.vue index b07dbcc..2391950 100644 --- a/web/src/components/NavBarIcons/UsersDialog.vue +++ b/web/src/components/NavBarIcons/UsersDialog.vue @@ -17,7 +17,12 @@ :items-per-page="10" item-key="name" class="elevation-5" - > + > + + @@ -30,6 +35,8 @@ + + diff --git a/web/src/types.ts b/web/src/types.ts index 11e2599..03d7f18 100644 --- a/web/src/types.ts +++ b/web/src/types.ts @@ -25,6 +25,14 @@ export interface CreateLicenseDto { note?: string; } +export interface UserDto { + id: string; + name: string; + email: string; +} + export type CreateGroupDto = Omit; export type UpdateLicenseDto = Omit; + +export type UpdateUserDto = Omit;