Reconciliar fontes instaladas 423bd512d8c5 com main

This commit is contained in:
2026-10-20 14:45:19 +02:00
parent 507387502c
commit 9ab721c97f
108 changed files with 2766 additions and 494 deletions
+16 -14
View File
@@ -1,3 +1,4 @@
import { participationIdentity } from '@/lib/participation-identity';
import { Form, Head } from '@inertiajs/react';
import InputError from '@/components/input-error';
import PasswordInput from '@/components/password-input';
@@ -16,7 +17,7 @@ type Props = {
export default function Register({ passwordRules }: Props) {
return (
<>
<Head title="Register" />
<Head title="Criar conta" />
<Form
{...store.form()}
resetOnSuccess={['password', 'password_confirmation']}
@@ -27,16 +28,16 @@ export default function Register({ passwordRules }: Props) {
<>
<div className="grid gap-6">
<div className="grid gap-2">
<Label htmlFor="name">Name</Label>
<Label htmlFor="name">Nome</Label>
<Input
id="name"
defaultValue={participationIdentity().name}
type="text"
required
autoFocus
tabIndex={1}
autoComplete="name"
name="name"
placeholder="Full name"
placeholder="Nome completo"
/>
<InputError
message={errors.name}
@@ -45,9 +46,10 @@ export default function Register({ passwordRules }: Props) {
</div>
<div className="grid gap-2">
<Label htmlFor="email">Email address</Label>
<Label htmlFor="email">Email</Label>
<Input
id="email"
defaultValue={participationIdentity().email}
type="email"
required
tabIndex={2}
@@ -59,14 +61,14 @@ export default function Register({ passwordRules }: Props) {
</div>
<div className="grid gap-2">
<Label htmlFor="password">Password</Label>
<Label htmlFor="password">Palavra-passe</Label>
<PasswordInput
id="password"
required
tabIndex={3}
autoComplete="new-password"
name="password"
placeholder="Password"
placeholder="Palavra-passe"
passwordrules={passwordRules}
/>
<InputError message={errors.password} />
@@ -74,7 +76,7 @@ export default function Register({ passwordRules }: Props) {
<div className="grid gap-2">
<Label htmlFor="password_confirmation">
Confirm password
Confirmar palavra-passe
</Label>
<PasswordInput
id="password_confirmation"
@@ -82,7 +84,7 @@ export default function Register({ passwordRules }: Props) {
tabIndex={4}
autoComplete="new-password"
name="password_confirmation"
placeholder="Confirm password"
placeholder="Confirmar palavra-passe"
passwordrules={passwordRules}
/>
<InputError
@@ -97,14 +99,14 @@ export default function Register({ passwordRules }: Props) {
data-test="register-user-button"
>
{processing && <Spinner />}
Create account
Criar conta
</Button>
</div>
<div className="text-muted-foreground text-center text-sm">
Already have an account?{' '}
Já tem conta?{' '}
<TextLink href={login()} tabIndex={6}>
Log in
Entrar
</TextLink>
</div>
</>
@@ -115,6 +117,6 @@ export default function Register({ passwordRules }: Props) {
}
Register.layout = {
title: 'Create an account',
description: 'Enter your details below to create your account',
title: 'Criar conta',
description: 'Crie uma conta simples para continuar e acompanhar a sua operação. Não é necessário configurar MFA para participar.',
};