style: atualiza todo design interno da aplicacao
This commit is contained in:
@@ -19,11 +19,6 @@
|
||||
Gerencie seu apelido, bio, país e preferências de plataformas e jogos.
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<NuxtLink to="/home"
|
||||
class="inline-flex h-10 items-center justify-center rounded-full border border-[#d6d3d1] bg-transparent px-5 text-[15px] font-medium leading-none text-[#0c0a09] transition hover:border-[#0c0a09]">
|
||||
Voltar
|
||||
</NuxtLink>
|
||||
</header>
|
||||
|
||||
<section
|
||||
@@ -120,8 +115,8 @@
|
||||
|
||||
<div class="flex flex-col items-center gap-2 text-center text-xs leading-[1.4] tracking-[0.16px] text-[#777169]">
|
||||
<p>
|
||||
Microsserviço consumido: <span
|
||||
class="font-medium text-[#4e4e4e]">https://perfilgameredivaldo-production.up.railway.app/api</span>
|
||||
Microsserviço consumido:
|
||||
<span class="font-medium text-[#4e4e4e]">https://perfilgameredivaldo-production.up.railway.app/api</span>
|
||||
· Feito por Edivaldo Rodrigues
|
||||
</p>
|
||||
<span class="inline-flex items-center gap-1.5">
|
||||
@@ -135,7 +130,8 @@
|
||||
|
||||
<script setup>
|
||||
definePageMeta({
|
||||
middleware: 'auth'
|
||||
middleware: 'auth',
|
||||
layout: 'protected'
|
||||
})
|
||||
|
||||
const PERFIL_GAMER_API_BASE_URL = 'https://perfilgameredivaldo-production.up.railway.app/api'
|
||||
@@ -165,7 +161,9 @@ const form = reactive({
|
||||
const isCreateMode = computed(() => !perfil.value)
|
||||
|
||||
const modeLabel = computed(() => (isCreateMode.value ? 'Novo' : 'Editar'))
|
||||
const modeTitle = computed(() => (isCreateMode.value ? 'Criar perfil gamer' : 'Editar perfil gamer'))
|
||||
const modeTitle = computed(() =>
|
||||
isCreateMode.value ? 'Criar perfil gamer' : 'Editar perfil gamer'
|
||||
)
|
||||
const submitLabel = computed(() => (isCreateMode.value ? 'Criar perfil' : 'Salvar alterações'))
|
||||
|
||||
const clearToken = () => {
|
||||
@@ -289,7 +287,8 @@ async function salvarPerfil() {
|
||||
|
||||
const validationMessage = error?.data?.message
|
||||
const nicknameError = error?.data?.errors?.nickname?.[0]
|
||||
errorMessage.value = nicknameError ?? validationMessage ?? 'Não foi possível salvar o perfil gamer.'
|
||||
errorMessage.value =
|
||||
nicknameError ?? validationMessage ?? 'Não foi possível salvar o perfil gamer.'
|
||||
$toast.error(errorMessage.value, { duration: 8000 })
|
||||
} finally {
|
||||
isSaving.value = false
|
||||
|
||||
Reference in New Issue
Block a user