update frontend
This commit is contained in:
parent
9314caec42
commit
862e9f4303
|
|
@ -125,7 +125,7 @@ export default function TopBar({ theme = "dark", onChangeTheme }) {
|
|||
|
||||
if (truthyParam(verified)) {
|
||||
const who = (email || uname || last?.email || last?.username || "").trim();
|
||||
setSignupInfo("✅ Email confirmé" + (who ? " (" + who + ")" : "") + ". Tu peux te connecter.");
|
||||
setSignupInfo("✅ Email confirmed" + (who ? " (" + who + ")" : "") + ". You can log in.");
|
||||
setMode("login");
|
||||
setShowAuth(true);
|
||||
|
||||
|
|
@ -133,7 +133,7 @@ export default function TopBar({ theme = "dark", onChangeTheme }) {
|
|||
if (prefill) setLoginUser(prefill);
|
||||
} else if (truthyParam(signup)) {
|
||||
const who = (email || uname || last?.email || last?.username || "").trim();
|
||||
setSignupInfo("✅ Compte créé" + (who ? " (" + who + ")" : "") + ". Vérifie tes emails (et le spam), puis connecte-toi.");
|
||||
setSignupInfo("✅ Account created" + (who ? " (" + who + ")" : "") + ". Check your emails (spam too), then log in.");
|
||||
setMode("login");
|
||||
setShowAuth(true);
|
||||
|
||||
|
|
@ -195,7 +195,7 @@ export default function TopBar({ theme = "dark", onChangeTheme }) {
|
|||
localStorage.setItem(LAST_SIGNUP_KEY, JSON.stringify({ username: u, email: em }));
|
||||
} catch {}
|
||||
|
||||
setSignupInfo("✅ Compte créé (" + em + "). Vérifie tes emails (spam aussi), puis connecte-toi.");
|
||||
setSignupInfo("✅ Account created (" + em + "). Check your emails (spam too), then log in.");
|
||||
setMode("login");
|
||||
setLoginUser(u || em);
|
||||
setLoginPass("");
|
||||
|
|
@ -210,7 +210,7 @@ export default function TopBar({ theme = "dark", onChangeTheme }) {
|
|||
const toast = useMemo(() => {
|
||||
if (lastError) {
|
||||
const t = needsEmailVerification ? "warn" : "error";
|
||||
const title = needsEmailVerification ? "Vérification email requise" : "Connexion impossible";
|
||||
const title = needsEmailVerification ? "Email verification required" : "Login failed";
|
||||
return { type: t, title, message: lastError };
|
||||
}
|
||||
if (lastInfo) {
|
||||
|
|
@ -225,7 +225,7 @@ export default function TopBar({ theme = "dark", onChangeTheme }) {
|
|||
const e = new Event('beforeinstallprompt');
|
||||
window.dispatchEvent(e);
|
||||
} else {
|
||||
alert('Installation PWA non supportée sur ce navigateur.');
|
||||
alert('PWA installation not supported on this browser.');
|
||||
}
|
||||
};
|
||||
|
||||
|
|
@ -290,7 +290,7 @@ export default function TopBar({ theme = "dark", onChangeTheme }) {
|
|||
boxShadow: '0 2px 8px rgba(0,0,0,0.3)',
|
||||
}}
|
||||
>
|
||||
<i className="fa-solid fa-download"></i> Installer
|
||||
<i className="fa-solid fa-download"></i> Install
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
|
|
@ -386,7 +386,7 @@ export default function TopBar({ theme = "dark", onChangeTheme }) {
|
|||
|
||||
{needsEmailVerification ? (
|
||||
<div className="auth-notice auth-notice-warn" style={{ marginTop: 10 }}>
|
||||
⚠️ Ton compte demande une vérification email. Confirme ton email, puis réessaie de te connecter.
|
||||
⚠️ Your account requires email verification. Confirm your email, then try logging in again.
|
||||
</div>
|
||||
) : null}
|
||||
</form>
|
||||
|
|
|
|||
Loading…
Reference in New Issue