Skip to content

Commit

Permalink
feat: 신규 도전 과제 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
noridev committed Dec 13, 2023
1 parent ce7d5c0 commit 4091736
Show file tree
Hide file tree
Showing 27 changed files with 70 additions and 6 deletions.
1 change: 1 addition & 0 deletions CHANGELOG_CHERRYPICK.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ Misskey의 전체 변경 사항을 확인하려면, [CHANGELOG.md#2023xx](CHANGE
- Feat: 데이터 절약 모드로 코드 하이라이트 로드를 줄일 수 있음 (misskey-dev/misskey#12526)
- Feat: InstanceTicker를 클릭해 노트를 자세히 볼 수 있음
- 리모트에서 수신된 노트인 경우, '리모트에서 보기'로 작동함
- Feat: 신규 도전 과제 추가
- Enhance: 사운드 설정을 기본값으로 복원하거나 저장할 때 확실하게 표시함
- Enhance: 리모트 서버와 동일한 이모지가 존재하지 않는 경우 '이모지 복사'를 비활성화함
- Enhance: 아이콘 장식을 바로 업로드 하거나 드라이브에서 불러올 수 있음 ([Secineralyr/misskey.dream@e358212d](https://github.com/Secineralyr/misskey.dream/commit/e358212da93256749e31d9e0ca9dd2ed37fd548e), [Secineralyr/misskey.dream@52592fea](https://github.com/Secineralyr/misskey.dream/commit/52592fea52684497ba7e07f173aac2b1083afcb1))
Expand Down
3 changes: 3 additions & 0 deletions locales/cs-CZ.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1345,6 +1345,9 @@ _achievements:
_setNameToSyuilo:
title: "Boží komplex"
description: "Nastavte si jméno na \"syuilo\""
_setNameToNoriDev:
title: "Boží komplex (CherryPick)"
description: "Nastavte si jméno na \"noridev\""
_passedSinceAccountCreated1:
title: "Roční výročí"
description: "Od vytvoření vašeho účtu uplynul jeden rok"
Expand Down
3 changes: 3 additions & 0 deletions locales/de-DE.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1435,6 +1435,9 @@ _achievements:
_setNameToSyuilo:
title: "Gottkomplex"
description: "Setze deinen Namen auf \"syuilo\""
_setNameToNoriDev:
title: "Gottkomplex (CherryPick)"
description: "Setze deinen Namen auf \"noridev\""
_passedSinceAccountCreated1:
title: "Einjahresjubiläum"
description: "Seit der Erstellung deines Kontos ist 1 Jahr vergangen"
Expand Down
3 changes: 3 additions & 0 deletions locales/en-US.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1705,6 +1705,9 @@ _achievements:
_setNameToSyuilo:
title: "God Complex"
description: "Set your name to \"syuilo\""
_setNameToNoriDev:
title: "God Complex (CherryPick)"
description: "Set your name to \"noridev\""
_passedSinceAccountCreated1:
title: "One Year Anniversary"
description: "One year has passed since your account was created"
Expand Down
3 changes: 3 additions & 0 deletions locales/es-ES.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1418,6 +1418,9 @@ _achievements:
_setNameToSyuilo:
title: "Complejo de superioridad"
description: "Configurar el nombre como 'Syuilo'"
_setNameToNoriDev:
title: "Complejo de superioridad (CherryPick)"
description: "Configurar el nombre como 'NoriDev'"
_passedSinceAccountCreated1:
title: "Primer aniversario"
description: "Pasó un año desde la creación de la cuenta"
Expand Down
2 changes: 2 additions & 0 deletions locales/fr-FR.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1310,6 +1310,8 @@ _achievements:
title: "Référence circulaire"
_setNameToSyuilo:
description: "Vous avez spécifié « syuilo » comme nom"
_setNameToNoriDev:
description: "Vous avez spécifié « noridev » comme nom"
_passedSinceAccountCreated1:
title: "Premier anniversaire"
_passedSinceAccountCreated2:
Expand Down
3 changes: 3 additions & 0 deletions locales/id-ID.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1418,6 +1418,9 @@ _achievements:
_setNameToSyuilo:
title: "God Complex"
description: "Atur namamu jadi \"syuilo\""
_setNameToNoriDev:
title: "God Complex (CherryPick)"
description: "Atur namamu jadi \"noridev\""
_passedSinceAccountCreated1:
title: "Perayaan Satu Tahun"
description: "Satu tahun telah lewat sejak akunmu dibuat"
Expand Down
4 changes: 4 additions & 0 deletions locales/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1811,6 +1811,10 @@ export interface Locale {
"title": string;
"description": string;
};
"_setNameToNoriDev": {
"title": string;
"description": string;
};
"_passedSinceAccountCreated1": {
"title": string;
"description": string;
Expand Down
3 changes: 3 additions & 0 deletions locales/it-IT.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1510,6 +1510,9 @@ _achievements:
_setNameToSyuilo:
title: "Complesso divino"
description: "Hai impostati il tuo nome in «syuilo»"
_setNameToNoriDev:
title: "Complesso divino (CherryPick)"
description: "Hai impostati il tuo nome in «noridev»"
_passedSinceAccountCreated1:
title: "Primo Anniversario"
description: "È passato un anno da quando hai creato il profilo"
Expand Down
3 changes: 3 additions & 0 deletions locales/ja-JP.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1730,6 +1730,9 @@ _achievements:
_setNameToSyuilo:
title: "神様コンプレックス"
description: "名前を syuilo に設定した"
_setNameToNoriDev:
title: "神様コンプレックス(CherryPick)"
description: "名前を noridev に設定した"
_passedSinceAccountCreated1:
title: "一周年"
description: "アカウント作成から1年経過した"
Expand Down
3 changes: 3 additions & 0 deletions locales/ja-KS.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1459,6 +1459,9 @@ _achievements:
_setNameToSyuilo:
title: "神様コンプレックス"
description: "名前を syuilo に設定した"
_setNameToNoriDev:
title: "神様コンプレックス(CherryPick)"
description: "名前を noridev に設定した"
_passedSinceAccountCreated1:
title: "一周年"
description: "アカウント作成から1年経過した"
Expand Down
3 changes: 3 additions & 0 deletions locales/ko-KR.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1701,6 +1701,9 @@ _achievements:
_setNameToSyuilo:
title: "신 콤플렉스"
description: "이름을 syuilo로 설정했어요. 어라..?"
_setNameToNoriDev:
title: "신 콤플렉스 (CherryPick)"
description: "이름을 noridev로 설정했어요. 어라..?"
_passedSinceAccountCreated1:
title: "1주년"
description: "계정을 생성하고 1년이 지났어요"
Expand Down
2 changes: 2 additions & 0 deletions locales/no-NO.yml
Original file line number Diff line number Diff line change
Expand Up @@ -517,6 +517,8 @@ _achievements:
title: "Rett og slett heldig"
_setNameToSyuilo:
description: "Du satte navnet ditt til \"syuilo\""
_setNameToNoriDev:
description: "Du satte navnet ditt til \"noridev\""
_passedSinceAccountCreated1:
title: "Ett års jubileum"
description: "Det har gått ett år siden kontoen din ble opprettet"
Expand Down
3 changes: 3 additions & 0 deletions locales/ru-RU.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1313,6 +1313,9 @@ _achievements:
_setNameToSyuilo:
title: "Комплекс бога"
description: "Установлено «syuilo» в качестве имени"
_setNameToNoriDev:
title: "Комплекс бога (CherryPick)"
description: "Установлено «noridev» в качестве имени"
_passedSinceAccountCreated1:
title: "Первая годовщина"
description: "Прошёл 1 год с момента регистрации"
Expand Down
3 changes: 3 additions & 0 deletions locales/th-TH.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1408,6 +1408,9 @@ _achievements:
_setNameToSyuilo:
title: "พระเจ้าคอมเพล็กซ์"
description: "ตั้งชื่อของคุณเป็น \"syuilo\""
_setNameToNoriDev:
title: "พระเจ้าคอมเพล็กซ์ (CherryPick)"
description: "ตั้งชื่อของคุณเป็น \"noridev\""
_passedSinceAccountCreated1:
title: "ครบรอบหนึ่งปี"
description: "ผ่านไปหนึ่งปีแล้วนะตั้งแต่บัญชีของคุณถูกสร้างขึ้นมาน่ะ"
Expand Down
3 changes: 3 additions & 0 deletions locales/uk-UA.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1121,6 +1121,9 @@ _achievements:
_setNameToSyuilo:
title: "Комплекс бога"
description: "Встановлено ім'я \"syuilo\""
_setNameToNoriDev:
title: "Комплекс бога (CherryPick)"
description: "Встановлено ім'я \"noridev\""
_passedSinceAccountCreated1:
title: "Перша річниця"
description: "Минув рік з моменту створення акаунта"
Expand Down
3 changes: 3 additions & 0 deletions locales/vi-VN.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1270,6 +1270,9 @@ _achievements:
_setNameToSyuilo:
title: "Ngưỡng mộ với vị thần"
description: "Đạt tên là syuilo"
_setNameToNoriDev:
title: "Ngưỡng mộ với vị thần (CherryPick)"
description: "Đạt tên là noridev"
_passedSinceAccountCreated1:
title: "Kỷ niệm một năm"
_loggedInOnBirthday:
Expand Down
3 changes: 3 additions & 0 deletions locales/zh-CN.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1410,6 +1410,9 @@ _achievements:
_setNameToSyuilo:
title: "像神一样呐"
description: "将名称设定为 syuilo"
_setNameToNoriDev:
title: "像神一样呐 (CherryPick)"
description: "将名称设定为 noridev"
_passedSinceAccountCreated1:
title: "一周年"
description: "账户创建时间超过 1 年"
Expand Down
3 changes: 3 additions & 0 deletions locales/zh-TW.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1512,6 +1512,9 @@ _achievements:
_setNameToSyuilo:
title: "神與您同在"
description: "將名稱設定為 syuilo"
_setNameToNoriDev:
title: "神與您同在 (CherryPick)"
description: "將名稱設定為 noridev"
_passedSinceAccountCreated1:
title: "一週年"
description: "帳戶加入時間已超過一年"
Expand Down
1 change: 1 addition & 0 deletions packages/backend/src/core/AchievementService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ export const ACHIEVEMENT_TYPES = [
'clickedClickHere',
'justPlainLucky',
'setNameToSyuilo',
'setNameToNoriDev',
'cookieClicked',
'brainDiver',
'smashTestNotificationButton',
Expand Down
2 changes: 1 addition & 1 deletion packages/cherrypick-js/src/autogen/apiClientJSDoc.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
* version: 4.6.0-beta.2
* basedMisskeyVersion: 2023.12.0-beta.3
* generatedAt: 2023-12-13T04:45:13.128Z
* generatedAt: 2023-12-13T05:07:59.354Z
*/

import type { SwitchCaseResponseType } from '../api.js';
Expand Down
2 changes: 1 addition & 1 deletion packages/cherrypick-js/src/autogen/endpoint.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
* version: 4.6.0-beta.2
* basedMisskeyVersion: 2023.12.0-beta.3
* generatedAt: 2023-12-13T04:45:13.126Z
* generatedAt: 2023-12-13T05:07:59.352Z
*/

import type {
Expand Down
2 changes: 1 addition & 1 deletion packages/cherrypick-js/src/autogen/entities.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
* version: 4.6.0-beta.2
* basedMisskeyVersion: 2023.12.0-beta.3
* generatedAt: 2023-12-13T04:45:13.123Z
* generatedAt: 2023-12-13T05:07:59.351Z
*/

import { operations } from './types.js';
Expand Down
2 changes: 1 addition & 1 deletion packages/cherrypick-js/src/autogen/models.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
* version: 4.6.0-beta.2
* basedMisskeyVersion: 2023.12.0-beta.3
* generatedAt: 2023-12-13T04:45:13.122Z
* generatedAt: 2023-12-13T05:07:59.350Z
*/

import { components } from './types.js';
Expand Down
4 changes: 2 additions & 2 deletions packages/cherrypick-js/src/autogen/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
/*
* version: 4.6.0-beta.2
* basedMisskeyVersion: 2023.12.0-beta.3
* generatedAt: 2023-12-13T04:45:13.048Z
* generatedAt: 2023-12-13T05:07:59.277Z
*/

/**
Expand Down Expand Up @@ -16504,7 +16504,7 @@ export type operations = {
content: {
'application/json': {
/** @enum {string} */
name: 'notes1' | 'notes10' | 'notes100' | 'notes500' | 'notes1000' | 'notes5000' | 'notes10000' | 'notes20000' | 'notes30000' | 'notes40000' | 'notes50000' | 'notes60000' | 'notes70000' | 'notes80000' | 'notes90000' | 'notes100000' | 'login3' | 'login7' | 'login15' | 'login30' | 'login60' | 'login100' | 'login200' | 'login300' | 'login400' | 'login500' | 'login600' | 'login700' | 'login800' | 'login900' | 'login1000' | 'passedSinceAccountCreated1' | 'passedSinceAccountCreated2' | 'passedSinceAccountCreated3' | 'loggedInOnBirthday' | 'loggedInOnNewYearsDay' | 'noteClipped1' | 'noteFavorited1' | 'myNoteFavorited1' | 'profileFilled' | 'markedAsCat' | 'following1' | 'following10' | 'following50' | 'following100' | 'following300' | 'followers1' | 'followers10' | 'followers50' | 'followers100' | 'followers300' | 'followers500' | 'followers1000' | 'collectAchievements30' | 'viewAchievements3min' | 'iLoveCherryPick' | 'foundTreasure' | 'client30min' | 'client60min' | 'noteDeletedWithin1min' | 'postedAtLateNight' | 'postedAt0min0sec' | 'selfQuote' | 'htl20npm' | 'viewInstanceChart' | 'outputHelloWorldOnScratchpad' | 'open3windows' | 'driveFolderCircularReference' | 'reactWithoutRead' | 'clickedClickHere' | 'justPlainLucky' | 'setNameToSyuilo' | 'cookieClicked' | 'brainDiver' | 'smashTestNotificationButton' | 'tutorialCompleted';
name: 'notes1' | 'notes10' | 'notes100' | 'notes500' | 'notes1000' | 'notes5000' | 'notes10000' | 'notes20000' | 'notes30000' | 'notes40000' | 'notes50000' | 'notes60000' | 'notes70000' | 'notes80000' | 'notes90000' | 'notes100000' | 'login3' | 'login7' | 'login15' | 'login30' | 'login60' | 'login100' | 'login200' | 'login300' | 'login400' | 'login500' | 'login600' | 'login700' | 'login800' | 'login900' | 'login1000' | 'passedSinceAccountCreated1' | 'passedSinceAccountCreated2' | 'passedSinceAccountCreated3' | 'loggedInOnBirthday' | 'loggedInOnNewYearsDay' | 'noteClipped1' | 'noteFavorited1' | 'myNoteFavorited1' | 'profileFilled' | 'markedAsCat' | 'following1' | 'following10' | 'following50' | 'following100' | 'following300' | 'followers1' | 'followers10' | 'followers50' | 'followers100' | 'followers300' | 'followers500' | 'followers1000' | 'collectAchievements30' | 'viewAchievements3min' | 'iLoveCherryPick' | 'foundTreasure' | 'client30min' | 'client60min' | 'noteDeletedWithin1min' | 'postedAtLateNight' | 'postedAt0min0sec' | 'selfQuote' | 'htl20npm' | 'viewInstanceChart' | 'outputHelloWorldOnScratchpad' | 'open3windows' | 'driveFolderCircularReference' | 'reactWithoutRead' | 'clickedClickHere' | 'justPlainLucky' | 'setNameToSyuilo' | 'setNameToNoriDev' | 'cookieClicked' | 'brainDiver' | 'smashTestNotificationButton' | 'tutorialCompleted';
};
};
};
Expand Down
3 changes: 3 additions & 0 deletions packages/frontend/src/pages/settings/profile.vue
Original file line number Diff line number Diff line change
Expand Up @@ -225,6 +225,9 @@ function save() {
if (profile.name === 'syuilo' || profile.name === 'しゅいろ') {
claimAchievement('setNameToSyuilo');
}
if (profile.name === 'noridev' || profile.name === 'NoriDev' || profile.name === '노리' || profile.name === '노리데브') {
claimAchievement('setNameToNoriDev');
}
if (profile.isCat && defaultStore.state.renameTheButtonInPostFormToNya) {
claimAchievement('markedAsCat');
} else if (profile.isCat && !defaultStore.state.renameTheButtonInPostFormToNya) {
Expand Down
6 changes: 6 additions & 0 deletions packages/frontend/src/scripts/achievements.ts
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ export const ACHIEVEMENT_TYPES = [
'clickedClickHere',
'justPlainLucky',
'setNameToSyuilo',
'setNameToNoriDev',
'cookieClicked',
'brainDiver',
'smashTestNotificationButton',
Expand Down Expand Up @@ -421,6 +422,11 @@ export const ACHIEVEMENT_BADGES = {
bg: 'linear-gradient(0deg, rgb(187 183 59), rgb(255 143 77))',
frame: 'bronze',
},
'setNameToNoriDev': {
img: '/fluent-emoji/1f36e.png',
bg: 'linear-gradient(0deg, rgb(187 183 59), rgb(255 143 77))',
frame: 'bronze',
},
'passedSinceAccountCreated1': {
img: '/fluent-emoji/0031-20e3.png',
bg: null,
Expand Down

0 comments on commit 4091736

Please sign in to comment.