feat: add user authentication UI to header component
Add login and register dialogs, user dropdown menu with profile link and logout option, and integrate with session management hook. Prevent hydration mismatches by conditionally rendering auth elements after mount. Update package-lock.json with new @esbuild dependencies for build tooling.
This commit is contained in:
1 parent
e641138887
commit
55eebde0ba
55 files changed
+7353
-7
No files matched your search
@@ -329,5 +329,77 @@
|
||||
"share": "Compartilhe com amigos",
|
||||
"back": "Voltar ao início"
|
||||
}
|
||||
},
|
||||
"auth": {
|
||||
"login": {
|
||||
"title": "Entrar",
|
||||
"description": "Faça login para acessar sua conta",
|
||||
"emailOrUsername": "Email ou Username",
|
||||
"emailOrUsernamePlaceholder": "[email protected] ou username",
|
||||
"password": "Senha",
|
||||
"passwordPlaceholder": "••••••••",
|
||||
"loginButton": "Entrar",
|
||||
"loggingIn": "Entrando...",
|
||||
"invalidCredentials": "Credenciais inválidas"
|
||||
},
|
||||
"register": {
|
||||
"title": "Criar Conta",
|
||||
"description": "Registre-se para começar a negociar",
|
||||
"username": "Username",
|
||||
"usernamePlaceholder": "seu_username",
|
||||
"usernameHint": "3-50 caracteres, letras, números e _",
|
||||
"email": "Email",
|
||||
"emailPlaceholder": "[email protected]",
|
||||
"password": "Senha",
|
||||
"passwordPlaceholder": "••••••••",
|
||||
"passwordHint": "Mín. 8 caracteres, 1 maiúscula, 1 minúscula, 1 número",
|
||||
"confirmPassword": "Confirmar Senha",
|
||||
"confirmPasswordPlaceholder": "••••••••",
|
||||
"firstName": "Nome",
|
||||
"firstNamePlaceholder": "Seu nome",
|
||||
"lastName": "Sobrenome",
|
||||
"lastNamePlaceholder": "Seu sobrenome",
|
||||
"phone": "Telefone (opcional)",
|
||||
"phonePlaceholder": "(11) 98888-7777",
|
||||
"phoneHint": "Selecione o país e informe o telefone",
|
||||
"searchCountry": "Buscar país...",
|
||||
"servers": "Servidores",
|
||||
"serversDescription": "Selecione os servidores onde você joga",
|
||||
"selectServer": "Selecionar Servidor",
|
||||
"characterName": "Nome do Personagem",
|
||||
"characterNamePlaceholder": "Nome do seu personagem",
|
||||
"characterNameHint": "Mín. 3 caracteres",
|
||||
"addServer": "Adicionar Servidor",
|
||||
"removeServer": "Remover",
|
||||
"mainCharacter": "Personagem Principal",
|
||||
"atLeastOneServer": "Selecione pelo menos um servidor",
|
||||
"characterRequired": "Nome do personagem é obrigatório",
|
||||
"submit": "Criar Conta",
|
||||
"submitting": "Criando conta...",
|
||||
"success": "Conta criada com sucesso!",
|
||||
"errors": {
|
||||
"emailExists": "Este email já está cadastrado",
|
||||
"usernameExists": "Este username já está em uso",
|
||||
"characterExists": "Este personagem já está cadastrado neste servidor",
|
||||
"serverNotFound": "Servidor não encontrado ou inativo",
|
||||
"passwordMismatch": "As senhas não coincidem",
|
||||
"weakPassword": "Senha muito fraca",
|
||||
"invalidEmail": "Email inválido",
|
||||
"invalidPhone": "Telefone inválido",
|
||||
"noServers": "Selecione pelo menos um servidor",
|
||||
"characterNameRequired": "Nome do personagem é obrigatório para todos os servidores selecionados"
|
||||
},
|
||||
"passwordStrength": {
|
||||
"weak": "Fraca",
|
||||
"medium": "Média",
|
||||
"strong": "Forte"
|
||||
},
|
||||
"passwordRequirements": {
|
||||
"minLength": "Mínimo 8 caracteres",
|
||||
"uppercase": "1 letra maiúscula",
|
||||
"lowercase": "1 letra minúscula",
|
||||
"number": "1 número"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user