Skip to content

Commit

Permalink
Add donation support and link in navbar
Browse files Browse the repository at this point in the history
  • Loading branch information
kyong committed Feb 17, 2024
1 parent 8c1a582 commit f03510c
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions locales/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,10 @@ export interface Locale extends ILocale {
* 設定
*/
"settings": string;
/**
* このサーバーを支援する
*/
"donation": string;
/**
* 通知の設定
*/
Expand Down
1 change: 1 addition & 0 deletions locales/ja-JP.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ noNotes: "ノートはありません"
noNotifications: "通知はありません"
instance: "サーバー"
settings: "設定"
donation: "このサーバーを支援する"
notificationSettings: "通知の設定"
basicSettings: "基本設定"
otherSettings: "その他の設定"
Expand Down
3 changes: 3 additions & 0 deletions packages/frontend/src/ui/_common_/navbar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,9 @@ SPDX-License-Identifier: AGPL-3.0-only
<MkA v-tooltip.noDelay.right="i18n.ts.settings" :class="$style.item" :activeClass="$style.active" to="/settings">
<i :class="$style.itemIcon" class="ti ti-settings ti-fw"></i><span :class="$style.itemText">{{ i18n.ts.settings }}</span>
</MkA>
<a v-tooltip.noDelay.right="i18n.ts.donation" :class="$style.item" :activeClass="$style.active" href="https://sabakampa.com/p/chunchun.world" target="_blank">
<i :class="$style.itemIcon" class="ti ti-heart-up ti-fw"></i><span :class="$style.itemText">{{ i18n.ts.donation }}</span> <i class="ti ti-external-link"></i>
</a>
</div>
<div :class="$style.bottom">
<button v-tooltip.noDelay.right="i18n.ts.note" class="_button" :class="[$style.post]" data-cy-open-post-form @click="os.post">
Expand Down

0 comments on commit f03510c

Please sign in to comment.