From 0dd5ad09a88f96c694111df99f96c4db153968de Mon Sep 17 00:00:00 2001 From: Julian Krauser Date: Mon, 9 Sep 2024 13:13:45 +0200 Subject: [PATCH] CRUD base types --- src/components/Modal.vue | 2 +- .../admin/settings/award/AwardListItem.vue | 47 +++++++ .../admin/settings/award/CreateAwardModal.vue | 80 +++++++++++ .../admin/settings/award/DeleteAwardModal.vue | 75 ++++++++++ .../CommunicationTypeListItem.vue | 61 ++++++++ .../CreateCommunicationTypeModal.vue | 131 ++++++++++++++++++ .../DeleteCommunicationTypeModal.vue | 74 ++++++++++ .../CreateExecutivePositionModal.vue | 80 +++++++++++ .../DeleteExecutivePositionModal.vue | 75 ++++++++++ .../ExecutivePositionListItem.vue | 51 +++++++ .../CreateMembershipStatusModal.vue | 80 +++++++++++ .../DeleteMembershipStatusModal.vue | 75 ++++++++++ .../MembershipStatusListItem.vue | 51 +++++++ .../CreateQualificationModal.vue | 85 ++++++++++++ .../DeleteQualificationModal.vue | 75 ++++++++++ .../qualification/QualificationListItem.vue | 55 ++++++++ .../admin/user/role/CreateRoleModal.vue | 21 ++- .../admin/user/role/DeleteRoleModal.vue | 21 ++- .../admin/user/user/DeleteUserModal.vue | 21 ++- src/router/index.ts | 103 +++++++++++++- src/stores/admin/award.ts | 90 ++++++++++++ src/stores/admin/communicationType.ts | 109 +++++++++++++++ src/stores/admin/executivePosition.ts | 93 +++++++++++++ src/stores/admin/membershipStatus.ts | 93 +++++++++++++ src/stores/admin/navigation.ts | 5 +- src/stores/admin/permission.ts | 12 -- src/stores/admin/qualification.ts | 95 +++++++++++++ src/viewmodels/admin/award.models.ts | 8 ++ .../admin/communicationType.models.ts | 10 ++ .../admin/executivePosition.models.ts | 8 ++ .../admin/membershipStatus.models.ts | 8 ++ src/viewmodels/admin/qualification.models.ts | 10 ++ src/views/Login.vue | 2 - src/views/admin/settings/Award.vue | 48 +++++++ src/views/admin/settings/AwardEdit.vue | 66 +++++++++ .../admin/settings/CommunicationType.vue | 56 ++++++++ .../admin/settings/CommunicationTypeEdit.vue | 130 +++++++++++++++++ .../admin/settings/ExecutivePosition.vue | 56 ++++++++ .../admin/settings/ExecutivePositionEdit.vue | 70 ++++++++++ src/views/admin/settings/MembershipStatus.vue | 56 ++++++++ .../admin/settings/MembershipStatusEdit.vue | 70 ++++++++++ src/views/admin/settings/Qualification.vue | 54 ++++++++ .../admin/settings/QualificationEdit.vue | 71 ++++++++++ 43 files changed, 2457 insertions(+), 26 deletions(-) create mode 100644 src/components/admin/settings/award/AwardListItem.vue create mode 100644 src/components/admin/settings/award/CreateAwardModal.vue create mode 100644 src/components/admin/settings/award/DeleteAwardModal.vue create mode 100644 src/components/admin/settings/communicationType/CommunicationTypeListItem.vue create mode 100644 src/components/admin/settings/communicationType/CreateCommunicationTypeModal.vue create mode 100644 src/components/admin/settings/communicationType/DeleteCommunicationTypeModal.vue create mode 100644 src/components/admin/settings/executivePosition/CreateExecutivePositionModal.vue create mode 100644 src/components/admin/settings/executivePosition/DeleteExecutivePositionModal.vue create mode 100644 src/components/admin/settings/executivePosition/ExecutivePositionListItem.vue create mode 100644 src/components/admin/settings/membershipStatus/CreateMembershipStatusModal.vue create mode 100644 src/components/admin/settings/membershipStatus/DeleteMembershipStatusModal.vue create mode 100644 src/components/admin/settings/membershipStatus/MembershipStatusListItem.vue create mode 100644 src/components/admin/settings/qualification/CreateQualificationModal.vue create mode 100644 src/components/admin/settings/qualification/DeleteQualificationModal.vue create mode 100644 src/components/admin/settings/qualification/QualificationListItem.vue create mode 100644 src/stores/admin/award.ts create mode 100644 src/stores/admin/communicationType.ts create mode 100644 src/stores/admin/executivePosition.ts create mode 100644 src/stores/admin/membershipStatus.ts delete mode 100644 src/stores/admin/permission.ts create mode 100644 src/stores/admin/qualification.ts create mode 100644 src/viewmodels/admin/award.models.ts create mode 100644 src/viewmodels/admin/communicationType.models.ts create mode 100644 src/viewmodels/admin/executivePosition.models.ts create mode 100644 src/viewmodels/admin/membershipStatus.models.ts create mode 100644 src/viewmodels/admin/qualification.models.ts create mode 100644 src/views/admin/settings/Award.vue create mode 100644 src/views/admin/settings/AwardEdit.vue create mode 100644 src/views/admin/settings/CommunicationType.vue create mode 100644 src/views/admin/settings/CommunicationTypeEdit.vue create mode 100644 src/views/admin/settings/ExecutivePosition.vue create mode 100644 src/views/admin/settings/ExecutivePositionEdit.vue create mode 100644 src/views/admin/settings/MembershipStatus.vue create mode 100644 src/views/admin/settings/MembershipStatusEdit.vue create mode 100644 src/views/admin/settings/Qualification.vue create mode 100644 src/views/admin/settings/QualificationEdit.vue diff --git a/src/components/Modal.vue b/src/components/Modal.vue index a4faa39..7825dfc 100644 --- a/src/components/Modal.vue +++ b/src/components/Modal.vue @@ -4,8 +4,8 @@ class="absolute inset-0 w-full h-full flex justify-center items-center bg-black/50 select-none z-50 p-2" v-show="show" @contextmenu.prevent - @click="closeModal" > + diff --git a/src/components/admin/settings/award/AwardListItem.vue b/src/components/admin/settings/award/AwardListItem.vue new file mode 100644 index 0000000..2d0ee58 --- /dev/null +++ b/src/components/admin/settings/award/AwardListItem.vue @@ -0,0 +1,47 @@ + + + + + diff --git a/src/components/admin/settings/award/CreateAwardModal.vue b/src/components/admin/settings/award/CreateAwardModal.vue new file mode 100644 index 0000000..54fc5a8 --- /dev/null +++ b/src/components/admin/settings/award/CreateAwardModal.vue @@ -0,0 +1,80 @@ + + + + + diff --git a/src/components/admin/settings/award/DeleteAwardModal.vue b/src/components/admin/settings/award/DeleteAwardModal.vue new file mode 100644 index 0000000..bfcf2b4 --- /dev/null +++ b/src/components/admin/settings/award/DeleteAwardModal.vue @@ -0,0 +1,75 @@ + + + + + diff --git a/src/components/admin/settings/communicationType/CommunicationTypeListItem.vue b/src/components/admin/settings/communicationType/CommunicationTypeListItem.vue new file mode 100644 index 0000000..626e85c --- /dev/null +++ b/src/components/admin/settings/communicationType/CommunicationTypeListItem.vue @@ -0,0 +1,61 @@ + + + + + diff --git a/src/components/admin/settings/communicationType/CreateCommunicationTypeModal.vue b/src/components/admin/settings/communicationType/CreateCommunicationTypeModal.vue new file mode 100644 index 0000000..2178f27 --- /dev/null +++ b/src/components/admin/settings/communicationType/CreateCommunicationTypeModal.vue @@ -0,0 +1,131 @@ + + + + + diff --git a/src/components/admin/settings/communicationType/DeleteCommunicationTypeModal.vue b/src/components/admin/settings/communicationType/DeleteCommunicationTypeModal.vue new file mode 100644 index 0000000..27049a6 --- /dev/null +++ b/src/components/admin/settings/communicationType/DeleteCommunicationTypeModal.vue @@ -0,0 +1,74 @@ + + + + + diff --git a/src/components/admin/settings/executivePosition/CreateExecutivePositionModal.vue b/src/components/admin/settings/executivePosition/CreateExecutivePositionModal.vue new file mode 100644 index 0000000..12b1e50 --- /dev/null +++ b/src/components/admin/settings/executivePosition/CreateExecutivePositionModal.vue @@ -0,0 +1,80 @@ + + + + + diff --git a/src/components/admin/settings/executivePosition/DeleteExecutivePositionModal.vue b/src/components/admin/settings/executivePosition/DeleteExecutivePositionModal.vue new file mode 100644 index 0000000..f3d3f75 --- /dev/null +++ b/src/components/admin/settings/executivePosition/DeleteExecutivePositionModal.vue @@ -0,0 +1,75 @@ + + + + + diff --git a/src/components/admin/settings/executivePosition/ExecutivePositionListItem.vue b/src/components/admin/settings/executivePosition/ExecutivePositionListItem.vue new file mode 100644 index 0000000..14185d2 --- /dev/null +++ b/src/components/admin/settings/executivePosition/ExecutivePositionListItem.vue @@ -0,0 +1,51 @@ + + + + + diff --git a/src/components/admin/settings/membershipStatus/CreateMembershipStatusModal.vue b/src/components/admin/settings/membershipStatus/CreateMembershipStatusModal.vue new file mode 100644 index 0000000..9ed19f6 --- /dev/null +++ b/src/components/admin/settings/membershipStatus/CreateMembershipStatusModal.vue @@ -0,0 +1,80 @@ + + + + + diff --git a/src/components/admin/settings/membershipStatus/DeleteMembershipStatusModal.vue b/src/components/admin/settings/membershipStatus/DeleteMembershipStatusModal.vue new file mode 100644 index 0000000..3cfbd0d --- /dev/null +++ b/src/components/admin/settings/membershipStatus/DeleteMembershipStatusModal.vue @@ -0,0 +1,75 @@ + + + + + diff --git a/src/components/admin/settings/membershipStatus/MembershipStatusListItem.vue b/src/components/admin/settings/membershipStatus/MembershipStatusListItem.vue new file mode 100644 index 0000000..801af12 --- /dev/null +++ b/src/components/admin/settings/membershipStatus/MembershipStatusListItem.vue @@ -0,0 +1,51 @@ + + + + + diff --git a/src/components/admin/settings/qualification/CreateQualificationModal.vue b/src/components/admin/settings/qualification/CreateQualificationModal.vue new file mode 100644 index 0000000..5dc8d4b --- /dev/null +++ b/src/components/admin/settings/qualification/CreateQualificationModal.vue @@ -0,0 +1,85 @@ + + + + + diff --git a/src/components/admin/settings/qualification/DeleteQualificationModal.vue b/src/components/admin/settings/qualification/DeleteQualificationModal.vue new file mode 100644 index 0000000..9735269 --- /dev/null +++ b/src/components/admin/settings/qualification/DeleteQualificationModal.vue @@ -0,0 +1,75 @@ + + + + + diff --git a/src/components/admin/settings/qualification/QualificationListItem.vue b/src/components/admin/settings/qualification/QualificationListItem.vue new file mode 100644 index 0000000..e35d4eb --- /dev/null +++ b/src/components/admin/settings/qualification/QualificationListItem.vue @@ -0,0 +1,55 @@ + + + + + diff --git a/src/components/admin/user/role/CreateRoleModal.vue b/src/components/admin/user/role/CreateRoleModal.vue index b3ea3f0..60a2a29 100644 --- a/src/components/admin/user/role/CreateRoleModal.vue +++ b/src/components/admin/user/role/CreateRoleModal.vue @@ -21,7 +21,7 @@
- +
@@ -39,9 +39,28 @@ import { useRoleStore } from "@/stores/admin/role"; diff --git a/src/views/admin/settings/Award.vue b/src/views/admin/settings/Award.vue new file mode 100644 index 0000000..88963e0 --- /dev/null +++ b/src/views/admin/settings/Award.vue @@ -0,0 +1,48 @@ + + + + + diff --git a/src/views/admin/settings/AwardEdit.vue b/src/views/admin/settings/AwardEdit.vue new file mode 100644 index 0000000..619f413 --- /dev/null +++ b/src/views/admin/settings/AwardEdit.vue @@ -0,0 +1,66 @@ + + + + + diff --git a/src/views/admin/settings/CommunicationType.vue b/src/views/admin/settings/CommunicationType.vue new file mode 100644 index 0000000..c49cb08 --- /dev/null +++ b/src/views/admin/settings/CommunicationType.vue @@ -0,0 +1,56 @@ + + + + + diff --git a/src/views/admin/settings/CommunicationTypeEdit.vue b/src/views/admin/settings/CommunicationTypeEdit.vue new file mode 100644 index 0000000..3755a66 --- /dev/null +++ b/src/views/admin/settings/CommunicationTypeEdit.vue @@ -0,0 +1,130 @@ + + + + + diff --git a/src/views/admin/settings/ExecutivePosition.vue b/src/views/admin/settings/ExecutivePosition.vue new file mode 100644 index 0000000..68a01cd --- /dev/null +++ b/src/views/admin/settings/ExecutivePosition.vue @@ -0,0 +1,56 @@ + + + + + diff --git a/src/views/admin/settings/ExecutivePositionEdit.vue b/src/views/admin/settings/ExecutivePositionEdit.vue new file mode 100644 index 0000000..fc298b2 --- /dev/null +++ b/src/views/admin/settings/ExecutivePositionEdit.vue @@ -0,0 +1,70 @@ + + + + + diff --git a/src/views/admin/settings/MembershipStatus.vue b/src/views/admin/settings/MembershipStatus.vue new file mode 100644 index 0000000..812fa00 --- /dev/null +++ b/src/views/admin/settings/MembershipStatus.vue @@ -0,0 +1,56 @@ + + + + + diff --git a/src/views/admin/settings/MembershipStatusEdit.vue b/src/views/admin/settings/MembershipStatusEdit.vue new file mode 100644 index 0000000..d70ac44 --- /dev/null +++ b/src/views/admin/settings/MembershipStatusEdit.vue @@ -0,0 +1,70 @@ + + + + + diff --git a/src/views/admin/settings/Qualification.vue b/src/views/admin/settings/Qualification.vue new file mode 100644 index 0000000..03ef994 --- /dev/null +++ b/src/views/admin/settings/Qualification.vue @@ -0,0 +1,54 @@ + + + + + diff --git a/src/views/admin/settings/QualificationEdit.vue b/src/views/admin/settings/QualificationEdit.vue new file mode 100644 index 0000000..857017f --- /dev/null +++ b/src/views/admin/settings/QualificationEdit.vue @@ -0,0 +1,71 @@ + + + + +