Skip to content

Commit dba93ee

Browse files
committed
rename files
1 parent 277b58a commit dba93ee

59 files changed

Lines changed: 14 additions & 16 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/monkey-ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,7 @@ jobs:
242242
- 'frontend/static/themes/**'
243243
- 'frontend/static/webfonts/**'
244244
- 'frontend/static/challenges/**'
245-
- 'frontend/static/sound/**'
245+
- 'frontend/static/sounds/**'
246246
247247
- name: Set up Node.js
248248
uses: actions/setup-node@v4

frontend/scripts/check-assets.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -430,11 +430,11 @@ async function validateSounds(): Promise<void> {
430430

431431
const soundFiles = new Set(
432432
fs
433-
.readdirSync("./static/sound")
433+
.readdirSync("./static/sounds")
434434
.filter((it) => it.startsWith("click"))
435435
.flatMap((folder) =>
436436
fs
437-
.readdirSync(`./static/sound/${folder}`)
437+
.readdirSync(`./static/sounds/${folder}`)
438438
.map((it) => `${folder}/${it}`),
439439
),
440440
);
@@ -443,20 +443,20 @@ async function validateSounds(): Promise<void> {
443443

444444
Object.entries(clickSoundConfig).forEach(([key, value]) => {
445445
value
446-
.map((file) => file.substring("../sound/".length))
446+
.map((file) => file.substring("../sounds/".length))
447447
.filter((it) => !soundFiles.has(it))
448448
.forEach((file) =>
449449
problems.add(
450450
"click" + key,
451-
`missing file frontend/static/sound/${file}`,
451+
`missing file frontend/static/sounds/${file}`,
452452
),
453453
);
454454
});
455455

456456
//additional files
457457
const expectedSoundFiles = new Set(
458458
Object.values(clickSoundConfig).flatMap((it) =>
459-
it.map((file) => file.substring("../sound/".length)),
459+
it.map((file) => file.substring("../sounds/".length)),
460460
),
461461
);
462462
[...soundFiles]

frontend/src/ts/constants/sounds.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -68,9 +68,7 @@ function extractClickSounds(
6868
const config = cfg as ClickSoundConfig;
6969
const fullConfig = new Array(config.numberOfSounds)
7070
.fill(0)
71-
.map(
72-
(_, index) => `../sound/click${key}/click${key}_${index + 1}.wav`,
73-
);
71+
.map((_, index) => `../sounds/click${key}/${index + 1}.wav`);
7472
return [key, fullConfig];
7573
}),
7674
);

frontend/src/ts/controllers/sound-controller.ts

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -49,23 +49,23 @@ let fartReverb: Howl | null = null;
4949

5050
async function initTimeWarning(): Promise<void> {
5151
if (timeWarning !== null) return;
52-
timeWarning = await getHowl("../sound/timeWarning.wav");
52+
timeWarning = await getHowl("../sounds/timeWarning.wav");
5353
}
5454

5555
async function initFartReverb(): Promise<void> {
5656
if (fartReverb !== null) return;
57-
fartReverb = await getHowl("../sound/fart-reverb.wav");
57+
fartReverb = await getHowl("../sounds/fart-reverb.wav");
5858
}
5959

6060
async function initErrorSound(): Promise<void> {
6161
if (errorSounds !== null) return;
6262
errorSounds = {
63-
1: [await getHowl("../sound/error1/error1_1.wav")],
64-
2: [await getHowl("../sound/error2/error2_1.wav")],
65-
3: [await getHowl("../sound/error3/error3_1.wav")],
63+
1: [await getHowl("../sounds/error1/1.wav")],
64+
2: [await getHowl("../sounds/error2/1.wav")],
65+
3: [await getHowl("../sounds/error3/1.wav")],
6666
4: [
67-
await getHowl("../sound/error4/error4_1.wav"),
68-
await getHowl("../sound/error4/error4_2.wav"),
67+
await getHowl("../sounds/error4/1.wav"),
68+
await getHowl("../sounds/error4/2.wav"),
6969
],
7070
};
7171
(await getHowlerModule()).Howler.volume(Config.soundVolume);
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)