diff options
| author | syuilo <Syuilotan@yahoo.co.jp> | 2021-04-22 22:29:33 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-04-22 22:29:33 +0900 |
| commit | 246693b8484b72048cb515b76aa5f094f5fdeb56 (patch) | |
| tree | 703f7636c363b480b20690495353691e09c98a27 /src/client/ui | |
| parent | fix style (diff) | |
| download | misskey-246693b8484b72048cb515b76aa5f094f5fdeb56.tar.gz misskey-246693b8484b72048cb515b76aa5f094f5fdeb56.tar.bz2 misskey-246693b8484b72048cb515b76aa5f094f5fdeb56.zip | |
インスタンス管理画面作り直し (#7473)
* wip
* wip
* wip
* wip
Diffstat (limited to 'src/client/ui')
| -rw-r--r-- | src/client/ui/_common_/sidebar.vue | 63 | ||||
| -rw-r--r-- | src/client/ui/default.sidebar.vue | 63 |
2 files changed, 4 insertions, 122 deletions
diff --git a/src/client/ui/_common_/sidebar.vue b/src/client/ui/_common_/sidebar.vue index fefe6afa7b..45b1c079bd 100644 --- a/src/client/ui/_common_/sidebar.vue +++ b/src/client/ui/_common_/sidebar.vue @@ -25,9 +25,9 @@ </component> </template> <div class="divider"></div> - <button class="item _button" :class="{ active: $route.path === '/instance' || $route.path.startsWith('/instance/') }" v-if="$i.isAdmin || $i.isModerator" @click="oepnInstanceMenu"> + <MkA v-if="$i.isAdmin || $i.isModerator" class="item" active-class="active" to="/instance"> <i class="fas fa-server fa-fw"></i><span class="text">{{ $ts.instance }}</span> - </button> + </MkA> <button class="item _button" @click="more"> <i class="fa fa-ellipsis-h fa-fw"></i><span class="text">{{ $ts.more }}</span> <span v-if="otherNavItemIndicated" class="indicator"><i class="fas fa-circle"></i></span> @@ -172,65 +172,6 @@ export default defineComponent({ }); }, - oepnInstanceMenu(ev) { - os.modalMenu([{ - type: 'link', - text: this.$ts.dashboard, - to: '/instance', - icon: 'fas fa-tachometer-alt', - }, null, this.$i.isAdmin ? { - type: 'link', - text: this.$ts.settings, - to: '/instance/settings', - icon: 'fas fa-cog', - } : undefined, { - type: 'link', - text: this.$ts.customEmojis, - to: '/instance/emojis', - icon: 'fas fa-laugh', - }, { - type: 'link', - text: this.$ts.users, - to: '/instance/users', - icon: 'fas fa-users', - }, { - type: 'link', - text: this.$ts.files, - to: '/instance/files', - icon: 'fas fa-cloud', - }, { - type: 'link', - text: this.$ts.jobQueue, - to: '/instance/queue', - icon: 'fas fa-exchange-alt', - }, { - type: 'link', - text: this.$ts.federation, - to: '/instance/federation', - icon: 'fas fa-globe', - }, { - type: 'link', - text: this.$ts.relays, - to: '/instance/relays', - icon: 'fas fa-project-diagram', - }, { - type: 'link', - text: this.$ts.announcements, - to: '/instance/announcements', - icon: 'fas fa-broadcast-tower', - }, { - type: 'link', - text: this.$ts.abuseReports, - to: '/instance/abuses', - icon: 'fas fa-exclamation-circle', - }, { - type: 'link', - text: this.$ts.logs, - to: '/instance/logs', - icon: 'fas fa-stream', - }], ev.currentTarget || ev.target); - }, - more(ev) { os.popup(import('@client/components/launch-pad.vue'), {}, { }, 'closed'); diff --git a/src/client/ui/default.sidebar.vue b/src/client/ui/default.sidebar.vue index 952ec3903d..29ef99fc86 100644 --- a/src/client/ui/default.sidebar.vue +++ b/src/client/ui/default.sidebar.vue @@ -20,9 +20,9 @@ </component> </template> <div class="divider"></div> - <button class="item _button" :class="{ active: $route.path === '/instance' || $route.path.startsWith('/instance/') }" v-if="$i.isAdmin || $i.isModerator" @click="oepnInstanceMenu"> + <MkA v-if="$i.isAdmin || $i.isModerator" class="item" active-class="active" to="/instance" :behavior="settingsWindowed ? 'modalWindow' : null"> <i class="fas fa-server fa-fw"></i><span class="text">{{ $ts.instance }}</span> - </button> + </MkA> <button class="item _button" @click="more"> <i class="fas fa-ellipsis-h fa-fw"></i><span class="text">{{ $ts.more }}</span> <span v-if="otherNavItemIndicated" class="indicator"><i class="fas fa-circle"></i></span> @@ -156,65 +156,6 @@ export default defineComponent({ }); }, - oepnInstanceMenu(ev) { - os.modalMenu([{ - type: 'link', - text: this.$ts.dashboard, - to: '/instance', - icon: 'fas fa-tachometer-alt', - }, null, this.$i.isAdmin ? { - type: 'link', - text: this.$ts.settings, - to: '/instance/settings', - icon: 'fas fa-cog', - } : undefined, { - type: 'link', - text: this.$ts.customEmojis, - to: '/instance/emojis', - icon: 'fas fa-laugh', - }, { - type: 'link', - text: this.$ts.users, - to: '/instance/users', - icon: 'fas fa-users', - }, { - type: 'link', - text: this.$ts.files, - to: '/instance/files', - icon: 'fas fa-cloud', - }, { - type: 'link', - text: this.$ts.jobQueue, - to: '/instance/queue', - icon: 'fas fa-exchange-alt', - }, { - type: 'link', - text: this.$ts.federation, - to: '/instance/federation', - icon: 'fas fa-globe', - }, { - type: 'link', - text: this.$ts.relays, - to: '/instance/relays', - icon: 'fas fa-project-diagram', - }, { - type: 'link', - text: this.$ts.announcements, - to: '/instance/announcements', - icon: 'fas fa-broadcast-tower', - }, { - type: 'link', - text: this.$ts.abuseReports, - to: '/instance/abuses', - icon: 'fas fa-exclamation-circle', - }, { - type: 'link', - text: this.$ts.logs, - to: '/instance/logs', - icon: 'fas fa-stream', - }], ev.currentTarget || ev.target); - }, - more(ev) { os.popup(import('@client/components/launch-pad.vue'), {}, { }, 'closed'); |