From 22a5da9ad1b4e28e88dd166689d4703768856854 Mon Sep 17 00:00:00 2001 From: Roo Date: Thu, 4 Jun 2026 07:19:32 +0000 Subject: [PATCH] =?UTF-8?q?feat(i18n):=20T=C3=B6bbnyelv=C5=B1s=C3=A9g=20al?= =?UTF-8?q?apjainak=20be=C3=A1ll=C3=ADt=C3=A1sa=20=C3=A9s=20UI=20takar?= =?UTF-8?q?=C3=ADt=C3=A1s?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/components/DashboardHeader.vue | 288 ++++++++++++++++++++ frontend/src/i18n/en.ts | 29 ++ frontend/src/i18n/hu.ts | 29 ++ frontend/src/main.ts | 28 ++ frontend/src/views/DashboardView.vue | 266 ++++++++++++++++++ 5 files changed, 640 insertions(+) create mode 100644 frontend/src/components/DashboardHeader.vue create mode 100644 frontend/src/i18n/en.ts create mode 100644 frontend/src/i18n/hu.ts create mode 100644 frontend/src/main.ts create mode 100644 frontend/src/views/DashboardView.vue diff --git a/frontend/src/components/DashboardHeader.vue b/frontend/src/components/DashboardHeader.vue new file mode 100644 index 0000000..240faba --- /dev/null +++ b/frontend/src/components/DashboardHeader.vue @@ -0,0 +1,288 @@ + + + diff --git a/frontend/src/i18n/en.ts b/frontend/src/i18n/en.ts new file mode 100644 index 0000000..004434c --- /dev/null +++ b/frontend/src/i18n/en.ts @@ -0,0 +1,29 @@ +export default { + menu: { + features: 'Features', + garage: 'Vehicles', + calendar: 'Service Calendar', + finance: 'Finance & Costs', + diagnostic: 'Live Diagnostics', + addVehicle: '+ Add New Vehicle', + }, + header: { + welcome: 'Welcome', + userMenu: 'User menu', + profile: 'Profile Settings', + logout: 'Logout', + subtitle: 'Your dashboard and vehicle overview', + }, + dashboard: { + loading: 'Loading...', + errorRetry: 'Retry', + statusActive: 'Active', + statusUnknown: 'Unknown', + condition: 'Condition', + mileage: 'km', + }, + zen: { + hide: 'Hide UI (Zen mode)', + show: 'Show UI', + }, +} diff --git a/frontend/src/i18n/hu.ts b/frontend/src/i18n/hu.ts new file mode 100644 index 0000000..b989614 --- /dev/null +++ b/frontend/src/i18n/hu.ts @@ -0,0 +1,29 @@ +export default { + menu: { + features: 'Funkciók', + garage: 'Járművek', + calendar: 'Szerviznaptár', + finance: 'Pénzügyek és Költségek', + diagnostic: 'Élő Diagnosztika', + addVehicle: '+ Új Jármű Hozzáadása', + }, + header: { + welcome: 'Üdvözlünk', + userMenu: 'Felhasználói menü', + profile: 'Profil beállítások', + logout: 'Kilépés', + subtitle: 'Irányítópultod és járműveid áttekintése', + }, + dashboard: { + loading: 'Betöltés...', + errorRetry: 'Újrapróbálkozás', + statusActive: 'Aktív', + statusUnknown: 'Ismeretlen', + condition: 'Állapot', + mileage: 'km', + }, + zen: { + hide: 'UI elrejtése (Zen mód)', + show: 'UI megjelenítése', + }, +} diff --git a/frontend/src/main.ts b/frontend/src/main.ts new file mode 100644 index 0000000..9deed38 --- /dev/null +++ b/frontend/src/main.ts @@ -0,0 +1,28 @@ +import { createApp } from 'vue' +import { createPinia } from 'pinia' +import { createI18n } from 'vue-i18n' +import App from './App.vue' +import router from './router' +import hu from './i18n/hu' +import en from './i18n/en' +import './assets/main.css' + +const messages = { + hu, + en, +} + +const i18n = createI18n({ + legacy: false, + locale: 'hu', + fallbackLocale: 'en', + messages, +}) + +const app = createApp(App) + +app.use(createPinia()) +app.use(router) +app.use(i18n) + +app.mount('#app') diff --git a/frontend/src/views/DashboardView.vue b/frontend/src/views/DashboardView.vue new file mode 100644 index 0000000..d041aee --- /dev/null +++ b/frontend/src/views/DashboardView.vue @@ -0,0 +1,266 @@ + + +