From 786eb2e9a57cd9e48052dee10ba9e7361738772f Mon Sep 17 00:00:00 2001 From: Hironsan Date: Thu, 28 Jan 2021 16:56:26 +0900 Subject: [PATCH] Add project edit page --- .../organisms/layout/TheSideBar.vue | 3 +- frontend/i18n/en/index.js | 4 +- frontend/i18n/en/projects/settings.js | 3 + .../pages/projects/_id/settings/index.vue | 225 ++++++++++++++++++ 4 files changed, 233 insertions(+), 2 deletions(-) create mode 100644 frontend/i18n/en/projects/settings.js create mode 100644 frontend/pages/projects/_id/settings/index.vue diff --git a/frontend/components/organisms/layout/TheSideBar.vue b/frontend/components/organisms/layout/TheSideBar.vue index 9992d080..0b33b48d 100644 --- a/frontend/components/organisms/layout/TheSideBar.vue +++ b/frontend/components/organisms/layout/TheSideBar.vue @@ -66,7 +66,8 @@ export default { { icon: 'label', text: this.$t('labels.labels'), link: 'labels', adminOnly: true }, { icon: 'person', text: this.$t('members.members'), link: 'members', adminOnly: true }, { icon: 'mdi-book-open-outline', text: this.$t('guideline.guideline'), link: 'guideline', adminOnly: true }, - { icon: 'mdi-chart-bar', text: this.$t('statistics.statistics'), link: 'statistics', adminOnly: true } + { icon: 'mdi-chart-bar', text: this.$t('statistics.statistics'), link: 'statistics', adminOnly: true }, + { icon: 'mdi-cog', text: this.$t('settings.title'), link: 'settings', adminOnly: true } ] return items.filter(item => this.isVisible(item)) } diff --git a/frontend/i18n/en/index.js b/frontend/i18n/en/index.js index 0f1ae8e6..0cb5adb3 100644 --- a/frontend/i18n/en/index.js +++ b/frontend/i18n/en/index.js @@ -14,6 +14,7 @@ import labels from './projects/labels' import members from './projects/members' import overview from './projects/overview' import statistics from './projects/statistics' +import settings from './projects/settings' export default { home, @@ -31,5 +32,6 @@ export default { labels, members, overview, - statistics + statistics, + settings } diff --git a/frontend/i18n/en/projects/settings.js b/frontend/i18n/en/projects/settings.js new file mode 100644 index 00000000..966e6918 --- /dev/null +++ b/frontend/i18n/en/projects/settings.js @@ -0,0 +1,3 @@ +export default { + title: 'Settings' +} diff --git a/frontend/pages/projects/_id/settings/index.vue b/frontend/pages/projects/_id/settings/index.vue new file mode 100644 index 00000000..e2f7974b --- /dev/null +++ b/frontend/pages/projects/_id/settings/index.vue @@ -0,0 +1,225 @@ + + +