From 9e855d52c766befe547223f57b354099f10306dd Mon Sep 17 00:00:00 2001 From: eiiko6 Date: Sat, 3 Jan 2026 23:32:54 +0100 Subject: [PATCH] renamed account page to settings page and improved layout --- src/api/account.ts | 4 +- src/components/Navbar.vue | 2 +- src/components/UpdateAccountModal.vue | 20 ++-- src/locales/en.ftl | 35 +++--- src/locales/fr.ftl | 35 +++--- src/pages/LoginPage.vue | 100 +++++++++--------- src/pages/RegisterPage.vue | 2 +- .../{AccountPage.vue => SettingsPage.vue} | 26 +++-- src/router.ts | 4 +- 9 files changed, 118 insertions(+), 110 deletions(-) rename src/pages/{AccountPage.vue => SettingsPage.vue} (85%) diff --git a/src/api/account.ts b/src/api/account.ts index 165093e..cf83b37 100644 --- a/src/api/account.ts +++ b/src/api/account.ts @@ -2,8 +2,8 @@ import { UpdateUserResponse } from '../types'; import { apiFetch } from './client' // import type { User } from '../types' -export function updateAccount(username: string, email: string, password: string) { - return apiFetch('/account', { +export function updateSettings(username: string, email: string, password: string) { + return apiFetch('/settings', { method: 'PUT', body: JSON.stringify({ username, email, password }), }); diff --git a/src/components/Navbar.vue b/src/components/Navbar.vue index a5068a9..cf66d67 100644 --- a/src/components/Navbar.vue +++ b/src/components/Navbar.vue @@ -14,7 +14,7 @@ {{ totalCount }} - + diff --git a/src/components/UpdateAccountModal.vue b/src/components/UpdateAccountModal.vue index 3c406ad..abb325c 100644 --- a/src/components/UpdateAccountModal.vue +++ b/src/components/UpdateAccountModal.vue @@ -1,8 +1,8 @@