feat(funbox): add ALL CAPS

This commit is contained in:
Miodec 2024-12-09 13:09:18 +01:00
parent 33be339a60
commit 52fda9d8ed
3 changed files with 15 additions and 1 deletions

View file

@ -620,6 +620,11 @@ const list: Partial<Record<FunboxName, FunboxFunctions>> = {
$("#globalFunBoxTheme").attr("href", ``);
},
},
ALL_CAPS: {
alterText(word: string): string {
return word.toUpperCase();
},
},
};
export function getFunboxFunctions(): Record<FunboxName, FunboxFunctions> {

View file

@ -406,6 +406,14 @@ const list: Record<FunboxName, FunboxMetadata> = {
frontendFunctions: ["alterText"],
name: "instant_messaging",
},
ALL_CAPS: {
description: "WHY ARE WE SHOUTING?",
canGetPb: false,
difficultyLevel: 1,
properties: ["changesCapitalisation"],
frontendFunctions: ["alterText"],
name: "ALL_CAPS",
},
};
export function getFunbox(name: FunboxName): FunboxMetadata;

View file

@ -38,7 +38,8 @@ export type FunboxName =
| "crt"
| "backwards"
| "ddoouubblleedd"
| "instant_messaging";
| "instant_messaging"
| "ALL_CAPS";
export type FunboxForcedConfig = Record<string, string[] | boolean[]>;