Removed Supabase
This commit is contained in:
@@ -2,7 +2,6 @@
|
|||||||
|
|
||||||
import dayjs from "dayjs";
|
import dayjs from "dayjs";
|
||||||
import {useSum} from "~/composables/useSum.js";
|
import {useSum} from "~/composables/useSum.js";
|
||||||
import {useSupabaseSelect} from "~/composables/useSupabase.js";
|
|
||||||
defineShortcuts({
|
defineShortcuts({
|
||||||
/*'/': () => {
|
/*'/': () => {
|
||||||
//console.log(searchinput)
|
//console.log(searchinput)
|
||||||
|
|||||||
@@ -1,7 +1,6 @@
|
|||||||
<script setup>
|
<script setup>
|
||||||
|
|
||||||
import dayjs from "dayjs";
|
import dayjs from "dayjs";
|
||||||
import {useSupabaseSelect} from "~/composables/useSupabase.js";
|
|
||||||
|
|
||||||
let unallocatedStatements = ref(0)
|
let unallocatedStatements = ref(0)
|
||||||
let bankaccounts = ref([])
|
let bankaccounts = ref([])
|
||||||
|
|||||||
@@ -51,7 +51,6 @@ const type = "incominginvoices"
|
|||||||
const dataType = dataStore.dataTypes[type]
|
const dataType = dataStore.dataTypes[type]
|
||||||
|
|
||||||
const setupPage = async () => {
|
const setupPage = async () => {
|
||||||
//items.value = await useSupabaseSelect("incominginvoices","*, vendor(id,name), statementallocations(id,amount)","created_at",false)
|
|
||||||
items.value = await useEntities(type).select("*, vendor(id,name), statementallocations(id,amount)",sort.value.column,sort.value.direction === "asc")
|
items.value = await useEntities(type).select("*, vendor(id,name), statementallocations(id,amount)",sort.value.column,sort.value.direction === "asc")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -5,7 +5,6 @@ import dayjs from "dayjs";
|
|||||||
|
|
||||||
const dataStore = useDataStore()
|
const dataStore = useDataStore()
|
||||||
const profileStore = useProfileStore()
|
const profileStore = useProfileStore()
|
||||||
const supabase = useSupabaseClient()
|
|
||||||
const route = useRoute()
|
const route = useRoute()
|
||||||
const router = useRouter()
|
const router = useRouter()
|
||||||
|
|
||||||
@@ -43,7 +42,6 @@ const loading = ref(true)
|
|||||||
|
|
||||||
const setupPage = async () => {
|
const setupPage = async () => {
|
||||||
if((mode.value === "show") && route.params.id){
|
if((mode.value === "show") && route.params.id){
|
||||||
//itemInfo.value = await useSupabaseSelectSingle("incominginvoices",route.params.id,"*, files(*), vendor(*)")
|
|
||||||
itemInfo.value = await useEntities("incominginvoices").selectSingle(route.params.id,"*, files(*), vendor(*)")
|
itemInfo.value = await useEntities("incominginvoices").selectSingle(route.params.id,"*, files(*), vendor(*)")
|
||||||
if(process.dev) console.log(itemInfo.value)
|
if(process.dev) console.log(itemInfo.value)
|
||||||
currentDocument.value = await useFiles().selectDocument(itemInfo.value.files[0].id)
|
currentDocument.value = await useFiles().selectDocument(itemInfo.value.files[0].id)
|
||||||
|
|||||||
@@ -30,13 +30,7 @@ const checkBIC = async () => {
|
|||||||
|
|
||||||
const generateLink = async (bankId) => {
|
const generateLink = async (bankId) => {
|
||||||
try {
|
try {
|
||||||
/*const {data,error} = await supabase.functions.invoke(`bankstatement_gateway`,{
|
|
||||||
body: {
|
|
||||||
method: "generateLink",
|
|
||||||
institutionId: bankData.value.id,
|
|
||||||
tenant: profileStore.currentTenant
|
|
||||||
}
|
|
||||||
})*/
|
|
||||||
const link = await useFunctions().useBankingGenerateLink(bankId || bankData.value.id)
|
const link = await useFunctions().useBankingGenerateLink(bankId || bankData.value.id)
|
||||||
|
|
||||||
await navigateTo(link, {
|
await navigateTo(link, {
|
||||||
|
|||||||
@@ -2,7 +2,6 @@
|
|||||||
|
|
||||||
const dataStore = useDataStore()
|
const dataStore = useDataStore()
|
||||||
const profileStore = useProfileStore()
|
const profileStore = useProfileStore()
|
||||||
const supabase = useSupabaseClient()
|
|
||||||
const router = useRouter()
|
const router = useRouter()
|
||||||
|
|
||||||
const items = [{
|
const items = [{
|
||||||
|
|||||||
Reference in New Issue
Block a user