mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-10-27 01:06:21 +08:00
feat(funbox): add ALL CAPS
This commit is contained in:
parent
33be339a60
commit
52fda9d8ed
3 changed files with 15 additions and 1 deletions
|
|
@ -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> {
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -38,7 +38,8 @@ export type FunboxName =
|
|||
| "crt"
|
||||
| "backwards"
|
||||
| "ddoouubblleedd"
|
||||
| "instant_messaging";
|
||||
| "instant_messaging"
|
||||
| "ALL_CAPS";
|
||||
|
||||
export type FunboxForcedConfig = Record<string, string[] | boolean[]>;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue