enhance(frontend/navbar): ナビゲーションバーにMisskey.ioを支援するを追加 (MisskeyIO#828)

This commit is contained in:
まっちゃてぃー。 2024-12-08 05:01:50 +09:00 committed by GitHub
parent e7afbd140a
commit 6a416468e3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 7 additions and 1 deletions

View file

@ -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',

View file

@ -145,6 +145,7 @@ export const defaultStore = markRaw(new Storage('base', {
'announcements', 'announcements',
'search', 'search',
'-', '-',
'support',
'ui', 'ui',
], ],
}, },