Alt-text Novice Achivement #55
7 changed files with 34 additions and 3 deletions
|
@ -1759,6 +1759,10 @@ _achievements:
|
||||||
title: "Double🤯"
|
title: "Double🤯"
|
||||||
description: "Two of the biggest objects in the bubble game at the same time"
|
description: "Two of the biggest objects in the bubble game at the same time"
|
||||||
flavor: "You can fill a lunch box like this 🤯 🤯 a bit."
|
flavor: "You can fill a lunch box like this 🤯 🤯 a bit."
|
||||||
|
_altTextNovice:
|
||||||
|
title: "Alt text novice"
|
||||||
|
description: "And im just getting started"
|
||||||
|
flavor: "Help make the Fediverse a more accessible place"
|
||||||
_role:
|
_role:
|
||||||
new: "New role"
|
new: "New role"
|
||||||
edit: "Edit role"
|
edit: "Edit role"
|
||||||
|
|
16
locales/index.d.ts
vendored
16
locales/index.d.ts
vendored
|
@ -6843,7 +6843,7 @@ export interface Locale extends ILocale {
|
||||||
};
|
};
|
||||||
"_tutorialCompleted": {
|
"_tutorialCompleted": {
|
||||||
/**
|
/**
|
||||||
* Misskey初心者講座 修了証
|
* Forkey初心者講座 修了証
|
||||||
*/
|
*/
|
||||||
"title": string;
|
"title": string;
|
||||||
/**
|
/**
|
||||||
|
@ -6875,6 +6875,20 @@ export interface Locale extends ILocale {
|
||||||
*/
|
*/
|
||||||
"flavor": string;
|
"flavor": string;
|
||||||
};
|
};
|
||||||
|
"_altTextNovice": {
|
||||||
|
/**
|
||||||
|
* キャプション初心者
|
||||||
|
*/
|
||||||
|
"title": string;
|
||||||
|
/**
|
||||||
|
* まだ始まったばかりだ
|
||||||
|
*/
|
||||||
|
"description": string;
|
||||||
|
/**
|
||||||
|
* Fediverseをより利用しやすい場所にすることに貢献する
|
||||||
|
*/
|
||||||
|
"flavor": string;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
"_role": {
|
"_role": {
|
||||||
|
|
|
@ -1770,6 +1770,10 @@ _achievements:
|
||||||
title: "ダブル🤯"
|
title: "ダブル🤯"
|
||||||
description: "バブルゲームで最も大きいモノを2つ同時に出した"
|
description: "バブルゲームで最も大きいモノを2つ同時に出した"
|
||||||
flavor: "これくらいの おべんとばこに 🤯 🤯 ちょっとつめて"
|
flavor: "これくらいの おべんとばこに 🤯 🤯 ちょっとつめて"
|
||||||
|
_altTextNovice:
|
||||||
|
title: "キャプション初心者"
|
||||||
|
description: "まだ始まったばかりだ"
|
||||||
|
flavor: "Fediverseをより利用しやすい場所にすることに貢献する"
|
||||||
|
|
||||||
_role:
|
_role:
|
||||||
new: "ロールの作成"
|
new: "ロールの作成"
|
||||||
|
|
|
@ -89,6 +89,7 @@ export const ACHIEVEMENT_TYPES = [
|
||||||
'tutorialCompleted',
|
'tutorialCompleted',
|
||||||
'bubbleGameExplodingHead',
|
'bubbleGameExplodingHead',
|
||||||
'bubbleGameDoubleExplodingHead',
|
'bubbleGameDoubleExplodingHead',
|
||||||
|
'altTextNovice'
|
||||||
] as const;
|
] as const;
|
||||||
|
|
||||||
@Injectable()
|
@Injectable()
|
||||||
|
|
|
@ -29,8 +29,7 @@ SPDX-License-Identifier: AGPL-3.0-only
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
<div :class="$style.description">{{ withDescription ? i18n.ts._achievements._types['_' + achievement.name].description : '???' }}</div>
|
<div :class="$style.description">{{ withDescription ? i18n.ts._achievements._types['_' + achievement.name].description : '???' }}</div>
|
||||||
<div v-if="i18n.ts._achievements._types['_' + achievement.name].flavor && withDescription" :class="$style.flavor">{{ i18n.ts._achievements._types['_' + achievement.name].flavor }}</div>
|
<div v-if="'flavor' in i18n.ts._achievements._types['_' + achievement.name] && withDescription" :class="$style.flavor">{{ i18n.ts._achievements._types['_' + achievement.name].flavor }}</div> </div>
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
<template v-if="withLocked">
|
<template v-if="withLocked">
|
||||||
<div v-for="achievement in lockedAchievements" :key="achievement" :class="[$style.achievement, $style.locked]" class="_panel" @click="achievement === 'clickedClickHere' ? clickHere() : () => {}">
|
<div v-for="achievement in lockedAchievements" :key="achievement" :class="[$style.achievement, $style.locked]" class="_panel" @click="achievement === 'clickedClickHere' ? clickHere() : () => {}">
|
||||||
|
|
|
@ -782,6 +782,9 @@ async function post(ev?: MouseEvent) {
|
||||||
|
|
||||||
if (canceled) return;
|
if (canceled) return;
|
||||||
if (result === 'cancel') return;
|
if (result === 'cancel') return;
|
||||||
|
} else {
|
||||||
|
//There needs to be at least 1 file
|
||||||
|
if (filesData.length > 0) claimAchievement('altTextNovice');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -85,6 +85,7 @@ export const ACHIEVEMENT_TYPES = [
|
||||||
'tutorialCompleted',
|
'tutorialCompleted',
|
||||||
'bubbleGameExplodingHead',
|
'bubbleGameExplodingHead',
|
||||||
'bubbleGameDoubleExplodingHead',
|
'bubbleGameDoubleExplodingHead',
|
||||||
|
'altTextNovice'
|
||||||
] as const;
|
] as const;
|
||||||
|
|
||||||
export const ACHIEVEMENT_BADGES = {
|
export const ACHIEVEMENT_BADGES = {
|
||||||
|
@ -478,6 +479,11 @@ export const ACHIEVEMENT_BADGES = {
|
||||||
bg: 'linear-gradient(0deg, rgb(255 77 77), rgb(247 155 214))',
|
bg: 'linear-gradient(0deg, rgb(255 77 77), rgb(247 155 214))',
|
||||||
frame: 'silver',
|
frame: 'silver',
|
||||||
},
|
},
|
||||||
|
'altTextNovice': {
|
||||||
|
img: '/fluent-emoji/1f9fe.png',
|
||||||
|
bg: 'linear-gradient(0deg, rgb(255 77 77), rgb(247 155 214))',
|
||||||
|
frame: 'bronze',
|
||||||
|
},
|
||||||
/* @see <https://github.com/misskey-dev/misskey/pull/10365#discussion_r1155511107>
|
/* @see <https://github.com/misskey-dev/misskey/pull/10365#discussion_r1155511107>
|
||||||
} as const satisfies Record<typeof ACHIEVEMENT_TYPES[number], {
|
} as const satisfies Record<typeof ACHIEVEMENT_TYPES[number], {
|
||||||
img: string;
|
img: string;
|
||||||
|
|
Loading…
Reference in a new issue