add pricing

This commit is contained in:
Emily
2024-06-05 15:40:51 +02:00
parent f7891a94cd
commit 854d6eb528
22 changed files with 435 additions and 294 deletions

View File

@@ -75,17 +75,6 @@ function onHideClicked() {
const activeProject = useActiveProject();
async function payment() {
// const res = await $fetch(`/api/pay/${activeProject.value?._id.toString()}/create`, {
// ...signHeaders({ 'content-type': 'application/json' }),
// method: 'POST',
// body: JSON.stringify({ planId: 1 })
// })
// console.log(res);
const res = await $fetch(`/api/pay/${activeProject.value?._id.toString()}/invoices`, signHeaders())
console.log(res);
}
</script>
@@ -93,7 +82,7 @@ async function payment() {
<div class="bg-bg overflow-y-auto w-full h-dvh p-6 gap-6 flex flex-col">
<div @click="payment()" v-if="!isAdminHidden"
<div @click="onHideClicked()" v-if="!isAdminHidden"
class="bg-menu hover:bg-menu/70 cursor-pointer flex gap-2 rounded-lg w-fit px-6 py-4 text-text-sub">
<div class="text-text-sub/90"> <i class="far fa-eye"></i> </div>
<div> Nascondi dalla barra </div>