diff --git a/frontend/index.html b/frontend/index.html
index fe2461c..8871f44 100644
--- a/frontend/index.html
+++ b/frontend/index.html
@@ -6,7 +6,7 @@
-
gntodo
+ GNexus Tasks
diff --git a/frontend/src/App.vue b/frontend/src/App.vue
index 643c70a..7965574 100644
--- a/frontend/src/App.vue
+++ b/frontend/src/App.vue
@@ -26,7 +26,7 @@
// глубокие страницы: задача → страница задачи, проект → раздел проектов
if (route.path.startsWith('/tasks/')) return t('nav.task')
if (route.path.startsWith('/projects/')) return t('nav.projects')
- return 'gntodo'
+ return 'GNexus Tasks'
})
onMounted(async () => {
@@ -51,7 +51,7 @@
{
+ const key = to.meta.title as string | undefined
+ setPageTitle(key ? i18n.global.t(key) : undefined)
+})
+
createApp(App).use(router).use(i18n).use(GnexusUiVue).mount('#app')
\ No newline at end of file
diff --git a/frontend/src/taskui.ts b/frontend/src/taskui.ts
index 43f90ba..8690451 100644
--- a/frontend/src/taskui.ts
+++ b/frontend/src/taskui.ts
@@ -10,6 +10,14 @@
return i18n.global.t(key, params ?? {})
}
+// Название сервиса — шапка, тайтлы вкладок
+export const APP_NAME = 'GNexus Tasks'
+
+// Тайтл вкладки: «{страница} — GNexus Tasks»; без части — просто название сервиса
+export function setPageTitle(page?: string): void {
+ document.title = page ? `${page} — ${APP_NAME}` : APP_NAME
+}
+
// Ключ отсутствует в словаре (неизвестный код статуса) → отдаём код как есть
function tOr(key: string, fallback: string): string {
return i18n.global.te(key) ? i18n.global.t(key) : fallback
diff --git a/frontend/src/views/ListView.vue b/frontend/src/views/ListView.vue
index bd914ae..59a9337 100644
--- a/frontend/src/views/ListView.vue
+++ b/frontend/src/views/ListView.vue
@@ -86,7 +86,7 @@
-
+
{{ t('list.count', { n: tasks.length }) }}
diff --git a/frontend/src/views/OptionsView.vue b/frontend/src/views/OptionsView.vue
index 67e8d93..3070901 100644
--- a/frontend/src/views/OptionsView.vue
+++ b/frontend/src/views/OptionsView.vue
@@ -63,7 +63,7 @@
-
+
diff --git a/frontend/src/views/ProjectView.vue b/frontend/src/views/ProjectView.vue
index 7ec6b92..bec01e9 100644
--- a/frontend/src/views/ProjectView.vue
+++ b/frontend/src/views/ProjectView.vue
@@ -1,10 +1,10 @@