From de8156b5a5d6cae813cb9985339c776d94b473ff Mon Sep 17 00:00:00 2001 From: Aya Morisawa Date: Thu, 29 Aug 2019 14:57:28 +0900 Subject: [PATCH] Assign URL to each page of settings (#5349) * Assign URL to each page of settings * Use router-link * comma * Use active-class * Clean up * space * comma * Redirect if mobile * Redirect to /i/settings/profile * Clean up --- src/client/app/desktop/script.ts | 3 +- .../app/desktop/views/components/settings.vue | 33 ++++++++----------- .../app/desktop/views/pages/settings.vue | 2 +- src/client/app/mobile/script.ts | 1 + 4 files changed, 18 insertions(+), 21 deletions(-) diff --git a/src/client/app/desktop/script.ts b/src/client/app/desktop/script.ts index f77a00ae6..15365e9d5 100644 --- a/src/client/app/desktop/script.ts +++ b/src/client/app/desktop/script.ts @@ -185,7 +185,8 @@ init(async (launch, os) => { { path: '/i/messaging/:user', component: MkMessagingRoom }, { path: '/i/drive', component: MkDrive }, { path: '/i/drive/folder/:folder', component: MkDrive }, - { path: '/i/settings', component: MkSettings }, + { path: '/i/settings', redirect: '/i/settings/profile' }, + { path: '/i/settings/:page', component: MkSettings }, { path: '/selectdrive', component: MkSelectDrive }, { path: '/@:acct/room', props: true, component: () => import('../common/views/pages/room/room.vue').then(m => m.default) }, { path: '/share', component: MkShare }, diff --git a/src/client/app/desktop/views/components/settings.vue b/src/client/app/desktop/views/components/settings.vue index 76b421455..65701cd5f 100644 --- a/src/client/app/desktop/views/components/settings.vue +++ b/src/client/app/desktop/views/components/settings.vue @@ -1,17 +1,17 @@