From 11dcff450ce4f63495eb108999c58eb91319709b Mon Sep 17 00:00:00 2001 From: Hayden <64056131+hay-kot@users.noreply.github.com> Date: Fri, 2 Sep 2022 09:46:20 -0800 Subject: [PATCH] stuff --- frontend/components/App/Header.vue | 17 +-- frontend/components/Base/Button.vue | 7 ++ frontend/components/Base/Modal.vue | 6 +- frontend/components/Form/Multiselect.vue | 80 ++++++++++++++ frontend/components/Form/Select.vue | 54 +++++++++ frontend/components/Form/TextArea.vue | 45 ++++++++ frontend/components/Form/TextField.vue | 10 +- frontend/components/Item/CreateModal.vue | 87 +++++++++++++++ frontend/composables/use-preferences.ts | 4 +- frontend/lib/api/classes/labels.ts | 5 +- frontend/package.json | 5 +- frontend/pages/item/new.vue | 95 ++++++++++++++++ frontend/pages/label/[id].vue | 134 +++++++++++++++++++++++ frontend/pages/location/[id].vue | 2 +- frontend/pnpm-lock.yaml | 7 ++ 15 files changed, 536 insertions(+), 22 deletions(-) create mode 100644 frontend/components/Form/Multiselect.vue create mode 100644 frontend/components/Form/Select.vue create mode 100644 frontend/components/Form/TextArea.vue create mode 100644 frontend/components/Item/CreateModal.vue create mode 100644 frontend/pages/item/new.vue create mode 100644 frontend/pages/label/[id].vue diff --git a/frontend/components/App/Header.vue b/frontend/components/App/Header.vue index 49c67bd..03e0b31 100644 --- a/frontend/components/App/Header.vue +++ b/frontend/components/App/Header.vue @@ -26,24 +26,24 @@ ]; const modals = reactive({ + item: false, location: false, label: false, - item: false, }); const dropdown = [ - { - name: 'Location', - action: () => { - modals.location = true; - }, - }, { name: 'Item / Asset', action: () => { modals.item = true; }, }, + { + name: 'Location', + action: () => { + modals.location = true; + }, + }, { name: 'Label', action: () => { @@ -60,6 +60,7 @@ up the tree --> + @@ -93,7 +94,7 @@