diff --git a/composables/useSupabase.js b/composables/useSupabase.js deleted file mode 100644 index 4618aa1..0000000 --- a/composables/useSupabase.js +++ /dev/null @@ -1,54 +0,0 @@ -import {useDataStore} from "~/stores/data.js"; - - -export const useSupabaseSelect = async (relation,select = '*', sortColumn = null, ascending = true,noArchivedFiltering = false) => { - const supabase = useSupabaseClient() - const profileStore = useProfileStore() - let data = null - const dataStore = useDataStore() - - const dataType = dataStore.dataTypes[relation] - - if(sortColumn !== null ) { - data = (await supabase - .from(relation) - .select(select) - .eq("tenant", profileStore.currentTenant) - .order(sortColumn, {ascending: ascending})).data - } else { - data = (await supabase - .from(relation) - .select(select) - .eq("tenant", profileStore.currentTenant)).data - } - - if(dataType && dataType.isArchivable && !noArchivedFiltering) { - data = data.filter(i => !i.archived) - } - - return data -} - -export const useSupabaseSelectSingle = async (relation,idToEq,select = '*' ) => { - const supabase = useSupabaseClient() - const profileStore = useProfileStore() - let data = null - - - if(idToEq !== null) { - data = (await supabase - .from(relation) - .select(select) - .eq("tenant", profileStore.currentTenant) - .eq("id",idToEq) - .single()).data - } else { - data = (await supabase - .from(relation) - .select(select) - .eq("tenant", profileStore.currentTenant) - .single()).data - } - - return data -} \ No newline at end of file diff --git a/pages/formSubmissions/[id].vue b/pages/formSubmissions/[id].vue deleted file mode 100644 index 059dfef..0000000 --- a/pages/formSubmissions/[id].vue +++ /dev/null @@ -1,88 +0,0 @@ - - - - - \ No newline at end of file diff --git a/pages/inventory/index.vue b/pages/inventory/index.vue deleted file mode 100644 index 9d344ff..0000000 --- a/pages/inventory/index.vue +++ /dev/null @@ -1,426 +0,0 @@ - - - - - \ No newline at end of file diff --git a/pages/inventory/stocks.vue b/pages/inventory/stocks.vue deleted file mode 100644 index eabfbcd..0000000 --- a/pages/inventory/stocks.vue +++ /dev/null @@ -1,150 +0,0 @@ - - - - - \ No newline at end of file diff --git a/pages/settings/labels/[mode]/[[id]].vue b/pages/settings/labels/[mode]/[[id]].vue deleted file mode 100644 index ca0b2a0..0000000 --- a/pages/settings/labels/[mode]/[[id]].vue +++ /dev/null @@ -1,127 +0,0 @@ - - - - - - - \ No newline at end of file diff --git a/pages/settings/labels/index.vue b/pages/settings/labels/index.vue deleted file mode 100644 index d81fe8a..0000000 --- a/pages/settings/labels/index.vue +++ /dev/null @@ -1,111 +0,0 @@ - - - - - - - \ No newline at end of file