Copyright, Financeiro, Lançamentos, aprimoramentos de ui

This commit is contained in:
Leonardo
2026-03-21 08:05:40 -03:00
parent 29ed349cf2
commit a89d1f5560
268 changed files with 58870 additions and 1752 deletions
+17 -7
View File
@@ -1,4 +1,19 @@
<!-- src/views/pages/billing/ClinicMeuPlanoPage.vue -->
<!--
|--------------------------------------------------------------------------
| Agência PSI
|--------------------------------------------------------------------------
| Criado e desenvolvido por Leonardo Nohama
|
| Tecnologia aplicada à escuta.
| Estrutura para o cuidado.
|
| Arquivo: src/views/pages/billing/ClinicMeuPlanoPage.vue
| Data: 2026
| Local: São Carlos/SP Brasil
|--------------------------------------------------------------------------
| © 2026 Todos os direitos reservados
|--------------------------------------------------------------------------
-->
<script setup>
import { computed, onMounted, ref } from 'vue'
import { useRoute, useRouter } from 'vue-router'
@@ -422,7 +437,6 @@ onMounted(fetchMeuPlanoClinic)
</script>
<template>
<Toast />
<!-- Sentinel -->
<div class="h-px" />
@@ -686,8 +700,4 @@ onMounted(fetchMeuPlanoClinic)
</div>
</div>
</div>
</template>
<style scoped>
/* (intencionalmente vazio) */
</style>
</template>
@@ -1,4 +1,19 @@
<!-- src/views/pages/billing/TherapistMeuPlanoPage.vue -->
<!--
|--------------------------------------------------------------------------
| Agência PSI
|--------------------------------------------------------------------------
| Criado e desenvolvido por Leonardo Nohama
|
| Tecnologia aplicada à escuta.
| Estrutura para o cuidado.
|
| Arquivo: src/views/pages/billing/TherapistMeuPlanoPage.vue
| Data: 2026
| Local: São Carlos/SP Brasil
|--------------------------------------------------------------------------
| © 2026 Todos os direitos reservados
|--------------------------------------------------------------------------
-->
<script setup>
import { computed, onMounted, onBeforeUnmount, ref } from 'vue'
import { useRouter } from 'vue-router'
@@ -8,7 +23,8 @@ import { supabase } from '@/lib/supabase/client'
const router = useRouter()
const toast = useToast()
const loading = ref(false)
const loading = ref(false)
const hasLoaded = ref(false)
const subscription = ref(null)
const plan = ref(null)
const price = ref(null)
@@ -282,6 +298,7 @@ async function fetchMeuPlanoTherapist() {
toast.add({ severity: 'error', summary: 'Erro', detail: e?.message || String(e), life: 5000 })
} finally {
loading.value = false
hasLoaded.value = true
}
}
@@ -299,7 +316,6 @@ onBeforeUnmount(() => { _observer?.disconnect() })
</script>
<template>
<Toast />
<!-- Sentinel -->
<div ref="headerSentinelRef" class="h-px" />
@@ -553,10 +569,9 @@ onBeforeUnmount(() => { _observer?.disconnect() })
</div>
</div>
<LoadedPhraseBlock v-if="hasLoaded" />
</template>
</div>
</template>
<style scoped>
/* (intencionalmente vazio) */
</style>
</template>
@@ -1,4 +1,19 @@
<!-- src/views/pages/billing/TherapistUpgradePage.vue -->
<!--
|--------------------------------------------------------------------------
| Agência PSI
|--------------------------------------------------------------------------
| Criado e desenvolvido por Leonardo Nohama
|
| Tecnologia aplicada à escuta.
| Estrutura para o cuidado.
|
| Arquivo: src/views/pages/billing/TherapistUpgradePage.vue
| Data: 2026
| Local: São Carlos/SP Brasil
|--------------------------------------------------------------------------
| © 2026 Todos os direitos reservados
|--------------------------------------------------------------------------
-->
<script setup>
import { computed, onMounted, ref } from 'vue'
import { useRoute, useRouter } from 'vue-router'
@@ -254,7 +269,6 @@ onMounted(loadData)
</script>
<template>
<Toast />
<!-- Sentinel -->
<div class="h-px" />
@@ -467,8 +481,4 @@ onMounted(loadData)
</div>
</div>
</template>
<style scoped>
/* (intencionalmente vazio) */
</style>
</template>
+16 -2
View File
@@ -1,4 +1,19 @@
<!-- src/views/pages/billing/UpgradePage.vue -->
<!--
|--------------------------------------------------------------------------
| Agência PSI
|--------------------------------------------------------------------------
| Criado e desenvolvido por Leonardo Nohama
|
| Tecnologia aplicada à escuta.
| Estrutura para o cuidado.
|
| Arquivo: src/views/pages/billing/UpgradePage.vue
| Data: 2026
| Local: São Carlos/SP Brasil
|--------------------------------------------------------------------------
| © 2026 Todos os direitos reservados
|--------------------------------------------------------------------------
-->
<script setup>
import { computed, onMounted, ref, watch } from 'vue'
import { useRoute, useRouter } from 'vue-router'
@@ -309,7 +324,6 @@ watch(() => tenantStore.user?.id, () => { fetchAll() })
</script>
<template>
<Toast />
<!-- Sentinel -->
<div class="h-px" />