Skip to content
This repository was archived by the owner on Aug 28, 2025. It is now read-only.

Commit 3737713

Browse files
authored
Copy in notification sounds from original core theme (#115)
Related to CTFd/CTFd#2763
1 parent 8b279ee commit 3737713

File tree

7 files changed

+38
-0
lines changed

7 files changed

+38
-0
lines changed

assets/sounds/README.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# Build uncompressed webm
2+
3+
```
4+
ffmpeg -i notification.mp3 -c:a libopus notification.webm
5+
```
6+
7+
## Build compressed webm
8+
9+
```
10+
ffmpeg -i notification.mp3 -c:a libopus -vn -b:a 48K notification.webm
11+
```
12+
13+
## To create a base64 blob of the sound file
14+
15+
```
16+
echo "data:audio/webm;base64,`base64 -b 80 notification.webm`"
17+
```

assets/sounds/notification.mp3

34.6 KB
Binary file not shown.

assets/sounds/notification.webm

12.9 KB
Binary file not shown.

static/sounds/README.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# Build uncompressed webm
2+
3+
```
4+
ffmpeg -i notification.mp3 -c:a libopus notification.webm
5+
```
6+
7+
## Build compressed webm
8+
9+
```
10+
ffmpeg -i notification.mp3 -c:a libopus -vn -b:a 48K notification.webm
11+
```
12+
13+
## To create a base64 blob of the sound file
14+
15+
```
16+
echo "data:audio/webm;base64,`base64 -b 80 notification.webm`"
17+
```

static/sounds/notification.mp3

34.6 KB
Binary file not shown.

static/sounds/notification.webm

12.9 KB
Binary file not shown.

vite.config.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,10 @@ export default defineConfig({
3939
src: "./assets/img/**",
4040
dest: "static/img",
4141
},
42+
{
43+
src: "./assets/sounds/**",
44+
dest: "static/sounds",
45+
},
4246
],
4347
hook: "writeBundle",
4448
}),

0 commit comments

Comments
 (0)