From 49a0cd97335f9430af3c6dc13248df3392a72a98 Mon Sep 17 00:00:00 2001 From: Tomas Vosicky Date: Sat, 9 Dec 2023 15:58:00 +0100 Subject: [PATCH 1/2] create project settings page --- src/router/user.js | 6 ++++++ src/views/ProjectSettings.vue | 21 +++++++++++++++++++++ src/views/ProjectView.vue | 1 + 3 files changed, 28 insertions(+) create mode 100644 src/views/ProjectSettings.vue diff --git a/src/router/user.js b/src/router/user.js index 84fefe1..3c72ec5 100644 --- a/src/router/user.js +++ b/src/router/user.js @@ -15,6 +15,7 @@ import LayerSettings from '@/views/LayerSettings.vue' import PublishView from '@/views/PublishView.vue' import ProjectTopics from '@/views/ProjectTopics.vue' import ProjectAccess from '@/views/ProjectAccess.vue' +import ProjectSettings from '@/views/ProjectSettings.vue' import ProjectUpdate from '@/views/ProjectUpdate.vue' Vue.use(VueRouter) @@ -86,6 +87,11 @@ const routes = [ name: 'access', component: ProjectAccess }, + { + path: 'settings', + name: 'settings', + component: ProjectSettings + }, { path: 'update', name: 'update', diff --git a/src/views/ProjectSettings.vue b/src/views/ProjectSettings.vue new file mode 100644 index 0000000..34901cd --- /dev/null +++ b/src/views/ProjectSettings.vue @@ -0,0 +1,21 @@ + + + diff --git a/src/views/ProjectView.vue b/src/views/ProjectView.vue index d7fd677..cd3e587 100644 --- a/src/views/ProjectView.vue +++ b/src/views/ProjectView.vue @@ -76,6 +76,7 @@ Layers Topics Permissions + Settings
From d5fb2fa9780622116a8978f6eb3c148bf4e57964 Mon Sep 17 00:00:00 2001 From: Tomas Vosicky Date: Mon, 4 Dec 2023 22:23:49 +0100 Subject: [PATCH 2/2] language per project --- src/views/ProjectSettings.vue | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/src/views/ProjectSettings.vue b/src/views/ProjectSettings.vue index 34901cd..28ad21e 100644 --- a/src/views/ProjectSettings.vue +++ b/src/views/ProjectSettings.vue @@ -3,6 +3,15 @@

Project settings

+ +
@@ -17,5 +26,26 @@ export default { project: Object, settings: Object, }, + setup() { + return { + availableLanguages: [ + { + id: 'en', + code: 'en-us', + title: 'English', + }, + { + id: 'cs', + code: 'cs-cz', + title: 'Czech', + }, + { + id: 'sk', + code: 'sk-sk', + title: 'Slovak', + }, + ], + } + }, }