feat: tela de cadastro /register e configurações com perfil completo

- register.vue: cadastro PF/PJ com nome fantasia, razão social, CPF/CNPJ, slug
  - auto-gera slug a partir do nome fantasia
  - toggle PF/PJ muda label dos campos dinamicamente
- configuracoes.vue: exibe e edita todos os campos do perfil do tenant
- auth.global.ts: /register liberado sem autenticação
- login.vue: link para /register + remove erro duplicado

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Junior
2026-03-14 15:38:44 -03:00
parent 2e5eee15ad
commit 9d4cb5b996
4 changed files with 236 additions and 9 deletions

View File

@@ -75,6 +75,10 @@ async function handleSubmit() {
>
Entrar
</UButton>
<p class="register-link">
Não tem conta? <NuxtLink to="/register">Criar conta</NuxtLink>
</p>
</form>
</div>
</template>
@@ -99,4 +103,6 @@ async function handleSubmit() {
background: linear-gradient(135deg, #667eea, #764ba2) !important;
box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}
.register-link { text-align: center; font-size: 13px; color: #64748b; margin-top: 16px; }
.register-link a { color: #667eea; font-weight: 600; text-decoration: none; }
</style>