From 1ba3d9c3e971622e2366e19cb97e50e41cb7c873 Mon Sep 17 00:00:00 2001 From: florianfederspiel Date: Sun, 22 Dec 2024 22:13:34 +0100 Subject: [PATCH] Deprecated following as non standardEntity tasks, products, productcategories, services, servicecategories --- components/EntityEdit.vue | 16 +- components/EntityList.vue | 9 +- components/MainNav.vue | 14 +- components/columnRenderings/created_at.vue | 15 ++ components/columnRenderings/profile.vue | 15 ++ components/columnRenderings/profiles.vue | 18 ++ components/columnRenderings/project.vue | 13 ++ components/columnRenderings/purchasePrice.vue | 13 ++ composables/useRole.js | 12 ++ .../productcategories/[mode]/[[id]].vue | 0 .../entitys}/productcategories/index.vue | 0 .../entitys}/products/[mode]/[[id]].vue | 0 .../entitys}/products/index.vue | 0 .../servicecategories/[mode]/[[id]].vue | 0 .../entitys}/servicecategories/index.vue | 0 .../entitys}/services/[mode]/[[id]].vue | 0 .../entitys}/services/index.vue | 0 .../entitys}/tasks/[mode]/[[id]].vue | 0 .../{ => deprecated/entitys}/tasks/index.vue | 30 +-- stores/data.js | 195 +++++++++++++++--- 20 files changed, 287 insertions(+), 63 deletions(-) create mode 100644 components/columnRenderings/created_at.vue create mode 100644 components/columnRenderings/profile.vue create mode 100644 components/columnRenderings/profiles.vue create mode 100644 components/columnRenderings/project.vue create mode 100644 components/columnRenderings/purchasePrice.vue rename pages/{ => deprecated/entitys}/productcategories/[mode]/[[id]].vue (100%) rename pages/{ => deprecated/entitys}/productcategories/index.vue (100%) rename pages/{ => deprecated/entitys}/products/[mode]/[[id]].vue (100%) rename pages/{ => deprecated/entitys}/products/index.vue (100%) rename pages/{ => deprecated/entitys}/servicecategories/[mode]/[[id]].vue (100%) rename pages/{ => deprecated/entitys}/servicecategories/index.vue (100%) rename pages/{ => deprecated/entitys}/services/[mode]/[[id]].vue (100%) rename pages/{ => deprecated/entitys}/services/index.vue (100%) rename pages/{ => deprecated/entitys}/tasks/[mode]/[[id]].vue (100%) rename pages/{ => deprecated/entitys}/tasks/index.vue (87%) diff --git a/components/EntityEdit.vue b/components/EntityEdit.vue index b8a173d..e69a29c 100644 --- a/components/EntityEdit.vue +++ b/components/EntityEdit.vue @@ -79,6 +79,8 @@ const loadOptions = async () => { for await(const option of optionsToLoad) { if(option.option === "countrys") { loadedOptions.value[option.option] = (await supabase.from("countrys").select()).data + } else if(option.option === "units") { + loadedOptions.value[option.option] = (await supabase.from("units").select()).data } else { loadedOptions.value[option.option] = (await useSupabaseSelect(option.option)) @@ -87,6 +89,8 @@ const loadOptions = async () => { } } } + + console.log(loadedOptions.value) } loadOptions() @@ -174,7 +178,11 @@ const contentChanged = (content, datapoint) => { :searchable="datapoint.selectSearchAttributes" :search-attributes="datapoint.selectSearchAttributes" :multiple="datapoint.selectMultiple" - /> + > + + { :search-attributes="datapoint.selectSearchAttributes" :multiple="datapoint.selectMultiple" searchable-placeholder="Suche..." - /> + > + + i.name)) const selectedFilters = ref(dataType.filters.filter(i => i.default).map(i => i.name) || []) -console.log(selectableFilters) -console.log(selectedFilters) const filteredRows = computed(() => { @@ -132,6 +130,7 @@ const filteredRows = computed(() => { class="hidden lg:block" by="key" :color="selectedColumns.length !== dataType.templateColumns.filter(i => !i.disabledInTable).length ? 'primary' : 'white'" + :ui-menu="{ width: 'min-w-max' }" >