From 9e092823e4f1cbc7926f1a899954fae47723ada9 Mon Sep 17 00:00:00 2001 From: flfeders Date: Fri, 22 Dec 2023 17:50:22 +0100 Subject: [PATCH] Added Vehicles Added Bankimport, BankAccounts, BankStatements Some Visual Changes Added Contacts Changes in VendorInvoices Added layouts with default an one for Login PAge Added Input Group Component --- docu | 8 +- spaces/app.vue | 44 ++- spaces/components/DocumentDisplay.vue | 36 ++- spaces/components/InputGroup.vue | 20 ++ spaces/layouts/default.vue | 21 ++ spaces/layouts/notLoggedIn.vue | 11 + spaces/pages/banking/[account].vue | 18 -- spaces/pages/banking/index.vue | 171 +++++----- .../banking/statements/[[accountId]].vue | 142 +++++++++ spaces/pages/contacts/[mode]/[[id]].vue | 291 ++++++++++++++++++ spaces/pages/contacts/index.vue | 90 ++++++ spaces/pages/contracts/[mode]/[[id]].vue | 4 +- spaces/pages/customers/[mode]/[[id]].vue | 26 +- spaces/pages/jobs/[mode]/[[id]].vue | 6 +- spaces/pages/settings/users.vue | 16 + spaces/pages/timetracking.vue | 38 ++- spaces/pages/vehicles/[mode]/[[id]].vue | 223 ++++++++++++++ spaces/pages/vehicles/index.vue | 74 +++++ spaces/pages/vendorinvoices/[mode]/[[id]].vue | 210 +++++++------ spaces/pages/vendorinvoices/index.vue | 51 ++- spaces/stores/data.ts | 50 ++- test/bankImport/index.mjs | 168 ++++++++++ 22 files changed, 1475 insertions(+), 243 deletions(-) create mode 100644 spaces/components/InputGroup.vue create mode 100644 spaces/layouts/default.vue create mode 100644 spaces/layouts/notLoggedIn.vue delete mode 100644 spaces/pages/banking/[account].vue create mode 100644 spaces/pages/banking/statements/[[accountId]].vue create mode 100644 spaces/pages/contacts/[mode]/[[id]].vue create mode 100644 spaces/pages/contacts/index.vue create mode 100644 spaces/pages/settings/users.vue create mode 100644 spaces/pages/vehicles/[mode]/[[id]].vue create mode 100644 spaces/pages/vehicles/index.vue create mode 100644 test/bankImport/index.mjs diff --git a/docu b/docu index 18a3d24..5a17aab 100644 --- a/docu +++ b/docu @@ -24,4 +24,10 @@ Admin Client: Client Id: 7d1d57c6-6368-4aea-811d-9e651fd55a36 Client Secret: 30579e3c-8fbb-4684-a344-a521f962fd7c -Data Decryption Key: 3598063141d04b3b97c60c15fe4c9099 \ No newline at end of file +Data Decryption Key: 3598063141d04b3b97c60c15fe4c9099 + + + +GoCardless: +Sec: 65a3ffe63e403a19241ddd8f316566cb3f41e3fa065946ab582f881e16e8bed0f1b86ee29667950c88a43dcfb1c71d27049ee686a777f85d86383df28664ec55 +Key: 478cba26-f265-4e17-b8a8-679e0e8a855b diff --git a/spaces/app.vue b/spaces/app.vue index 546e862..eec01bc 100644 --- a/spaces/app.vue +++ b/spaces/app.vue @@ -10,7 +10,7 @@ const colorMode = useColorMode() const supabase = useSupabaseClient() const tenants = (await supabase.from("tenants").select()).data const {loaded, profiles} = storeToRefs(useDataStore()) -const {fetchData, getProfileById} = useDataStore() +const {fetchData, getProfileById, clearStore} = useDataStore() const userProfile = (user.value ? getProfileById(user.value.id) : {}) //console.log(userProfile) @@ -43,6 +43,11 @@ const navLinks = [ to: "/vendors", icon: "i-heroicons-truck" }, + { + label: "Kontakte", + to: "/contacts", + icon: "i-heroicons-user-group" + }, ] }, { @@ -54,6 +59,11 @@ const navLinks = [ to: "/vendorinvoices", icon: "i-heroicons-user-group" }, + { + label: "Bank", + to: "/banking", + icon: "i-heroicons-currency-euro" + }, ] }, { @@ -128,6 +138,11 @@ const navLinks = [ to: "/inventory/spaces", icon: "i-heroicons-square-3-stack-3d" }, + { + label: "Fahrzeuge", + to: "/vehicles", + icon: "i-heroicons-truck" + }, ] }, ] @@ -201,8 +216,9 @@ const items = [ icon: 'i-heroicons-cog-8-tooth', to: "/settings/externalDevices" },{ - label: 'Settings', - icon: 'i-heroicons-cog-8-tooth' + label: 'Benutzer', + icon: 'i-heroicons-user-group', + to: "/settings/users" }], /*[{ label: 'Documentation', icon: 'i-heroicons-book-open' @@ -215,9 +231,11 @@ const items = [ }],*/ [{ label: 'Sign out', icon: 'i-heroicons-arrow-left-on-rectangle', - click: () => { - supabase.auth.signOut() - router.push("/login") + click: async () => { + await supabase.auth.signOut() + await clearStore() + await router.push("/login") + } }] ] @@ -251,6 +269,7 @@ const items = [ + + \ No newline at end of file diff --git a/spaces/pages/banking/statements/[[accountId]].vue b/spaces/pages/banking/statements/[[accountId]].vue new file mode 100644 index 0000000..675fd65 --- /dev/null +++ b/spaces/pages/banking/statements/[[accountId]].vue @@ -0,0 +1,142 @@ + + + + + \ No newline at end of file diff --git a/spaces/pages/contacts/[mode]/[[id]].vue b/spaces/pages/contacts/[mode]/[[id]].vue new file mode 100644 index 0000000..84bbb72 --- /dev/null +++ b/spaces/pages/contacts/[mode]/[[id]].vue @@ -0,0 +1,291 @@ + + + + + \ No newline at end of file diff --git a/spaces/pages/contacts/index.vue b/spaces/pages/contacts/index.vue new file mode 100644 index 0000000..e7a30c7 --- /dev/null +++ b/spaces/pages/contacts/index.vue @@ -0,0 +1,90 @@ + + + + + \ No newline at end of file diff --git a/spaces/pages/contracts/[mode]/[[id]].vue b/spaces/pages/contracts/[mode]/[[id]].vue index 1e6bb99..f08a9e3 100644 --- a/spaces/pages/contracts/[mode]/[[id]].vue +++ b/spaces/pages/contracts/[mode]/[[id]].vue @@ -119,7 +119,9 @@ setupPage() Beschreibung:
{{currentContract.description}}
- + + {{currentContract}} + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/spaces/pages/vehicles/index.vue b/spaces/pages/vehicles/index.vue new file mode 100644 index 0000000..7a78b20 --- /dev/null +++ b/spaces/pages/vehicles/index.vue @@ -0,0 +1,74 @@ + + + + + \ No newline at end of file diff --git a/spaces/pages/vendorinvoices/[mode]/[[id]].vue b/spaces/pages/vendorinvoices/[mode]/[[id]].vue index 5ea8293..0fcabec 100644 --- a/spaces/pages/vendorinvoices/[mode]/[[id]].vue +++ b/spaces/pages/vendorinvoices/[mode]/[[id]].vue @@ -9,146 +9,166 @@
- + +
- + - + - - - + + + + - - - + + + + + + + + + + + + - - - - - - - + + + + + + + + + Speichern + + + + + {{itemInfo}}
+ {{currentVendorInvoice}}
+ {{currentDocument}} +
- - {{vendorInvoiceData}}
- {{currentVendorInvoice}}
- {{getDocumentById(78)}}