Cohee
d9b55df883
Fix loading characters from assets on first load
2024-05-19 03:31:09 +03:00
Cohee
51014e7a8d
Fix VRM assets console spam
2024-04-24 10:54:55 +03:00
Isaac McFadyen
3822ae9356
Switched fs.renameSync to fs.copyFileSync
2024-04-18 15:50:27 -04:00
Cohee
dcbeab0aef
Fix absolute paths for data root. Allow setting data root via console args.
2024-04-12 19:53:46 +03:00
Cohee
b07a6a9a78
Update all endpoints to use user directories
2024-04-07 01:47:07 +03:00
Cohee
c06fe6abfc
Add character asset type
2024-02-16 20:42:56 +02:00
Cohee
e2becdf7a9
Add typedefs for TTS audioJob
2024-01-21 15:19:13 +02:00
Tony Ribeiro
72d78fbe96
Add VRM import map and assets endpoint.
2024-01-05 07:00:23 +01:00
valadaptive
66da13b1bb
Use withFileTypes instead of stat'ing each file
2023-12-06 17:22:37 -05:00
valadaptive
5096e70c11
Move client-relative path logic to helper function
2023-12-06 17:22:37 -05:00
valadaptive
39d771cc4a
Replace path "\" with "/" server-side
2023-12-06 17:22:37 -05:00
valadaptive
795ca2247b
Return filename validation messages
2023-12-06 17:22:37 -05:00
valadaptive
41d427f4a8
Move sanitize call inside validation function
...
Also rename it (again) to validateAssetFileName.
2023-12-06 16:46:52 -05:00
valadaptive
4faa20bb1f
Remove "upload" endpoint from assets API
...
I accidentally reintroduced this when splitting up the commits, I think
2023-12-05 15:02:30 -05:00
valadaptive
c00df4f45b
Clean up file name sanitization
...
- Checking for null bytes is unnecessary because the check for illegal
characters directly below it will catch them.
- We can use the path.extname method to get the file extension more
cleanly. It returns the *last* extension (e.g.
path.extname('file.foo.js') === '.js'), so behavior is preserved.
- Normalizing the path is unnecessary. We don't allow any path
separators in the file name, so it does nothing.
- Stripping '..', path separators, and '$' is unnecessary because of the
earlier illegal character check.
2023-12-05 09:25:45 -05:00
valadaptive
d24c1dde10
Use Express router for assets + "files" endpoints
...
I've split out the "file/upload" endpoint into its own module, and
renamed it to "files" to be consistent with the existing naming scheme.
2023-12-04 12:40:53 -05:00
valadaptive
24546621e3
Move endpoints into their own folder
2023-12-04 10:12:27 -05:00