From d848bee0b85981410ca9975206a0fe2561b0fa2d Mon Sep 17 00:00:00 2001 From: kakkokari-gtyih Date: Thu, 2 Nov 2023 21:10:44 +0900 Subject: [PATCH] (add) achivement --- locales/index.d.ts | 4 ++++ locales/ja-JP.yml | 3 +++ packages/backend/src/core/AchievementService.ts | 1 + packages/frontend/src/components/MkTutorialDialog.vue | 10 +++++++++- packages/frontend/src/scripts/achievements.ts | 6 ++++++ 5 files changed, 23 insertions(+), 1 deletion(-) diff --git a/locales/index.d.ts b/locales/index.d.ts index 18404d5571..995bca9cff 100644 --- a/locales/index.d.ts +++ b/locales/index.d.ts @@ -1612,6 +1612,10 @@ export interface Locale { "title": string; "description": string; }; + "_tutorialCompleted": { + "title": string; + "description": string; + }; }; }; "_role": { diff --git a/locales/ja-JP.yml b/locales/ja-JP.yml index a5d95f13ae..420b538a4a 100644 --- a/locales/ja-JP.yml +++ b/locales/ja-JP.yml @@ -1524,6 +1524,9 @@ _achievements: _smashTestNotificationButton: title: "テスト過剰" description: "通知のテストをごく短時間のうちに連続して行った" + _tutorialCompleted: + title: "Misskey初心者講座 修了証" + description: "チュートリアルを完了した" _role: new: "ロールの作成" diff --git a/packages/backend/src/core/AchievementService.ts b/packages/backend/src/core/AchievementService.ts index 1b8718335b..88fc033859 100644 --- a/packages/backend/src/core/AchievementService.ts +++ b/packages/backend/src/core/AchievementService.ts @@ -86,6 +86,7 @@ export const ACHIEVEMENT_TYPES = [ 'cookieClicked', 'brainDiver', 'smashTestNotificationButton', + 'tutorialCompleted', ] as const; @Injectable() diff --git a/packages/frontend/src/components/MkTutorialDialog.vue b/packages/frontend/src/components/MkTutorialDialog.vue index 54ffb0911e..e28838425f 100644 --- a/packages/frontend/src/components/MkTutorialDialog.vue +++ b/packages/frontend/src/components/MkTutorialDialog.vue @@ -148,7 +148,7 @@ SPDX-License-Identifier: AGPL-3.0-only