From 9d367882fb7e5fc375b7d14e6409a735e68fca8a Mon Sep 17 00:00:00 2001 From: syuilo Date: Sat, 21 Jan 2023 15:30:29 +0900 Subject: [PATCH] add some achievements --- locales/ja-JP.yml | 6 ++++++ packages/backend/src/core/AchievementService.ts | 2 ++ packages/frontend/src/components/MkPageWindow.vue | 15 ++++++++++++++- packages/frontend/src/os.ts | 4 +++- packages/frontend/src/pages/scratchpad.vue | 4 ++++ packages/frontend/src/scripts/achievements.ts | 12 ++++++++++++ 6 files changed, 41 insertions(+), 2 deletions(-) diff --git a/locales/ja-JP.yml b/locales/ja-JP.yml index e46e6ab9d..aac5d5e83 100644 --- a/locales/ja-JP.yml +++ b/locales/ja-JP.yml @@ -1119,6 +1119,12 @@ _achievements: _htl20npm: title: "流れるTL" description: "ホームタイムラインの流速が20npmを越す" + _outputHelloWorldOnScratchpad: + title: "Hello, world!" + description: "スクラッチパッドで hello world を出力した" + _open3windows: + title: "マルチウィンドウ" + description: "ウィンドウを3つ以上開いた状態にした" _driveFolderCircularReference: title: "循環参照" description: "ドライブのフォルダを再帰的な入れ子にしようとした" diff --git a/packages/backend/src/core/AchievementService.ts b/packages/backend/src/core/AchievementService.ts index 4ed75308e..149974452 100644 --- a/packages/backend/src/core/AchievementService.ts +++ b/packages/backend/src/core/AchievementService.ts @@ -65,6 +65,8 @@ const ACHIEVEMENT_TYPES = [ 'postedAt0min0sec', 'selfQuote', 'htl20npm', + 'outputHelloWorldOnScratchpad', + 'open3windows', 'driveFolderCircularReference', 'reactWithoutRead', 'clickedClickHere', diff --git a/packages/frontend/src/components/MkPageWindow.vue b/packages/frontend/src/components/MkPageWindow.vue index 25b9da2d0..d12aafd06 100644 --- a/packages/frontend/src/components/MkPageWindow.vue +++ b/packages/frontend/src/components/MkPageWindow.vue @@ -24,7 +24,7 @@