Skip to content

Commit

Permalink
enhance(frontend/navbar): ナビゲーションバーにMisskey.ioを支援するを追加 (#828)
Browse files Browse the repository at this point in the history
  • Loading branch information
mattyatea authored Dec 7, 2024
1 parent e7afbd1 commit 6a41646
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
7 changes: 6 additions & 1 deletion packages/frontend/src/navbar.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import { openInstanceMenu, openToolsMenu } from '@/ui/_common_/common.js';
import { lookup } from '@/scripts/lookup.js';
import * as os from '@/os.js';
import { i18n } from '@/i18n.js';
import { ui } from '@/config.js';
import { ui, host } from '@/config.js';
import { unisonReload } from '@/scripts/unison-reload.js';

export const navbarItemDef = reactive({
Expand Down Expand Up @@ -177,6 +177,11 @@ export const navbarItemDef = reactive({
show: computed(() => $i != null),
to: `/@${$i?.username}`,
},
support: {
title: i18n.tsx.supportThisInstance({ name: instance.name ?? host }),
icon: 'ti ti-pig-money',
to: 'https://go.misskey.io/donate',
},
cacheClear: {
title: i18n.ts.clearCache,
icon: 'ti ti-trash',
Expand Down
1 change: 1 addition & 0 deletions packages/frontend/src/store.ts
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,7 @@ export const defaultStore = markRaw(new Storage('base', {
'announcements',
'search',
'-',
'support',
'ui',
],
},
Expand Down

0 comments on commit 6a41646

Please sign in to comment.