summaryrefslogtreecommitdiff
path: root/packages/client/src/menu.ts
diff options
context:
space:
mode:
authorsyuilo <Syuilotan@yahoo.co.jp>2022-07-14 17:42:12 +0900
committersyuilo <Syuilotan@yahoo.co.jp>2022-07-14 17:42:12 +0900
commit242538ddce37de41d924f12ab8a3637c264d231c (patch)
treee5dca250372702c3c877d990d1a628432b94a8f4 /packages/client/src/menu.ts
parentchore(client): tweak style (diff)
downloadmisskey-242538ddce37de41d924f12ab8a3637c264d231c.tar.gz
misskey-242538ddce37de41d924f12ab8a3637c264d231c.tar.bz2
misskey-242538ddce37de41d924f12ab8a3637c264d231c.zip
refactor(client): rename menu(sidebar) -> navbar
Diffstat (limited to 'packages/client/src/menu.ts')
-rw-r--r--packages/client/src/menu.ts135
1 files changed, 0 insertions, 135 deletions
diff --git a/packages/client/src/menu.ts b/packages/client/src/menu.ts
deleted file mode 100644
index 31b2ed597c..0000000000
--- a/packages/client/src/menu.ts
+++ /dev/null
@@ -1,135 +0,0 @@
-import { computed, ref, reactive } from 'vue';
-import { $i } from './account';
-import { search } from '@/scripts/search';
-import * as os from '@/os';
-import { i18n } from '@/i18n';
-import { ui } from '@/config';
-import { unisonReload } from '@/scripts/unison-reload';
-
-export const menuDef = reactive({
- notifications: {
- title: 'notifications',
- icon: 'fas fa-bell',
- show: computed(() => $i != null),
- indicated: computed(() => $i != null && $i.hasUnreadNotification),
- to: '/my/notifications',
- },
- messaging: {
- title: 'messaging',
- icon: 'fas fa-comments',
- show: computed(() => $i != null),
- indicated: computed(() => $i != null && $i.hasUnreadMessagingMessage),
- to: '/my/messaging',
- },
- drive: {
- title: 'drive',
- icon: 'fas fa-cloud',
- show: computed(() => $i != null),
- to: '/my/drive',
- },
- followRequests: {
- title: 'followRequests',
- icon: 'fas fa-user-clock',
- show: computed(() => $i != null && $i.isLocked),
- indicated: computed(() => $i != null && $i.hasPendingReceivedFollowRequest),
- to: '/my/follow-requests',
- },
- explore: {
- title: 'explore',
- icon: 'fas fa-hashtag',
- to: '/explore',
- },
- announcements: {
- title: 'announcements',
- icon: 'fas fa-broadcast-tower',
- indicated: computed(() => $i != null && $i.hasUnreadAnnouncement),
- to: '/announcements',
- },
- search: {
- title: 'search',
- icon: 'fas fa-search',
- action: () => search(),
- },
- lists: {
- title: 'lists',
- icon: 'fas fa-list-ul',
- show: computed(() => $i != null),
- to: '/my/lists',
- },
- /*
- groups: {
- title: 'groups',
- icon: 'fas fa-users',
- show: computed(() => $i != null),
- to: '/my/groups',
- },
- */
- antennas: {
- title: 'antennas',
- icon: 'fas fa-satellite',
- show: computed(() => $i != null),
- to: '/my/antennas',
- },
- favorites: {
- title: 'favorites',
- icon: 'fas fa-star',
- show: computed(() => $i != null),
- to: '/my/favorites',
- },
- pages: {
- title: 'pages',
- icon: 'fas fa-file-alt',
- to: '/pages',
- },
- gallery: {
- title: 'gallery',
- icon: 'fas fa-icons',
- to: '/gallery',
- },
- clips: {
- title: 'clip',
- icon: 'fas fa-paperclip',
- show: computed(() => $i != null),
- to: '/my/clips',
- },
- channels: {
- title: 'channel',
- icon: 'fas fa-satellite-dish',
- to: '/channels',
- },
- ui: {
- title: 'switchUi',
- icon: 'fas fa-columns',
- action: (ev) => {
- os.popupMenu([{
- text: i18n.ts.default,
- active: ui === 'default' || ui === null,
- action: () => {
- localStorage.setItem('ui', 'default');
- unisonReload();
- },
- }, {
- text: i18n.ts.deck,
- active: ui === 'deck',
- action: () => {
- localStorage.setItem('ui', 'deck');
- unisonReload();
- },
- }, {
- text: i18n.ts.classic,
- active: ui === 'classic',
- action: () => {
- localStorage.setItem('ui', 'classic');
- unisonReload();
- },
- }], ev.currentTarget ?? ev.target);
- },
- },
- reload: {
- title: 'reload',
- icon: 'fas fa-refresh',
- action: (ev) => {
- location.reload();
- },
- },
-});