Skip to content

Commit 52fda9d

Browse files
committed
feat(funbox): add ALL CAPS
1 parent 33be339 commit 52fda9d

File tree

3 files changed

+15
-1
lines changed

3 files changed

+15
-1
lines changed

frontend/src/ts/test/funbox/funbox-functions.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -620,6 +620,11 @@ const list: Partial<Record<FunboxName, FunboxFunctions>> = {
620620
$("#globalFunBoxTheme").attr("href", ``);
621621
},
622622
},
623+
ALL_CAPS: {
624+
alterText(word: string): string {
625+
return word.toUpperCase();
626+
},
627+
},
623628
};
624629

625630
export function getFunboxFunctions(): Record<FunboxName, FunboxFunctions> {

packages/funbox/src/list.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -406,6 +406,14 @@ const list: Record<FunboxName, FunboxMetadata> = {
406406
frontendFunctions: ["alterText"],
407407
name: "instant_messaging",
408408
},
409+
ALL_CAPS: {
410+
description: "WHY ARE WE SHOUTING?",
411+
canGetPb: false,
412+
difficultyLevel: 1,
413+
properties: ["changesCapitalisation"],
414+
frontendFunctions: ["alterText"],
415+
name: "ALL_CAPS",
416+
},
409417
};
410418

411419
export function getFunbox(name: FunboxName): FunboxMetadata;

packages/funbox/src/types.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,8 @@ export type FunboxName =
3838
| "crt"
3939
| "backwards"
4040
| "ddoouubblleedd"
41-
| "instant_messaging";
41+
| "instant_messaging"
42+
| "ALL_CAPS";
4243

4344
export type FunboxForcedConfig = Record<string, string[] | boolean[]>;
4445

0 commit comments

Comments
 (0)