enhance(frontend/navbar): ナビゲーションバーにMisskey.ioを支援するを追加 (MisskeyIO#828)
This commit is contained in:
parent
e7afbd140a
commit
6a416468e3
2 changed files with 7 additions and 1 deletions
|
@ -11,7 +11,7 @@ import { openInstanceMenu, openToolsMenu } from '@/ui/_common_/common.js';
|
||||||
import { lookup } from '@/scripts/lookup.js';
|
import { lookup } from '@/scripts/lookup.js';
|
||||||
import * as os from '@/os.js';
|
import * as os from '@/os.js';
|
||||||
import { i18n } from '@/i18n.js';
|
import { i18n } from '@/i18n.js';
|
||||||
import { ui } from '@/config.js';
|
import { ui, host } from '@/config.js';
|
||||||
import { unisonReload } from '@/scripts/unison-reload.js';
|
import { unisonReload } from '@/scripts/unison-reload.js';
|
||||||
|
|
||||||
export const navbarItemDef = reactive({
|
export const navbarItemDef = reactive({
|
||||||
|
@ -177,6 +177,11 @@ export const navbarItemDef = reactive({
|
||||||
show: computed(() => $i != null),
|
show: computed(() => $i != null),
|
||||||
to: `/@${$i?.username}`,
|
to: `/@${$i?.username}`,
|
||||||
},
|
},
|
||||||
|
support: {
|
||||||
|
title: i18n.tsx.supportThisInstance({ name: instance.name ?? host }),
|
||||||
|
icon: 'ti ti-pig-money',
|
||||||
|
to: 'https://go.misskey.io/donate',
|
||||||
|
},
|
||||||
cacheClear: {
|
cacheClear: {
|
||||||
title: i18n.ts.clearCache,
|
title: i18n.ts.clearCache,
|
||||||
icon: 'ti ti-trash',
|
icon: 'ti ti-trash',
|
||||||
|
|
|
@ -145,6 +145,7 @@ export const defaultStore = markRaw(new Storage('base', {
|
||||||
'announcements',
|
'announcements',
|
||||||
'search',
|
'search',
|
||||||
'-',
|
'-',
|
||||||
|
'support',
|
||||||
'ui',
|
'ui',
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in a new issue