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
Cohee
100dae5fd0
Merge pull request #1444 from valadaptive/characters-endpoint
...
Move character endpoints into their own module
2023-12-06 23:45:14 +02:00
Cohee
554bd2cf55
Merge pull request #1478 from LenAnderson/st-array-vars
...
add list accessors to /getvar and /getglobalvar
2023-12-06 22:11:25 +02:00
Cohee
5e282ac7b4
lint: infix spacing
2023-12-06 22:08:06 +02:00
Cohee
cd5a9e7669
Merge pull request #1476 from valadaptive/lint-more
...
Lint all top-level files, not just server.js
2023-12-06 21:53:42 +02:00
Cohee
d0a35deeec
Fix OpenAI presets extension
2023-12-06 21:46:08 +02:00
LenAnderson
ea7720a7de
add /len slash command
2023-12-06 19:03:20 +00:00
LenAnderson
a5c595d8ae
add list accessors to /getvar and /getglobalvar
2023-12-06 19:03:10 +00:00
valadaptive
6713faa519
Lint all top-level files, not just server.js
2023-12-06 12:49:35 -05:00
valadaptive
7b13c5b37d
Redirect deprecated character endpoints
2023-12-06 12:05:01 -05:00
Cohee
64496425cc
Save chat before reloading
2023-12-06 17:23:54 +02:00
Cohee
bca43b11fa
Enable match whole words by default
2023-12-06 16:53:48 +02:00
Cohee
61f186764d
Fix QR bar popout position
2023-12-06 14:53:29 +02:00
Cohee
d36422e558
Fix/optimize bulk favorite
2023-12-06 01:56:07 +02:00
Cohee
60909cef1f
Fix server crash on import. Fix possible undefined warning
2023-12-06 01:02:48 +02:00
Cohee
b58f14d1d2
Fix bulk menu not working
2023-12-06 00:55:42 +02:00
Cohee
7f703704c7
Display loader on loading past chats
2023-12-06 00:42:41 +02:00
Cohee
d5628d822d
Merge pull request #1471 from valadaptive/remove-upload-endpoint
...
Remove "upload" endpoint from assets API
2023-12-06 00:13:10 +02: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
Cohee
6ea9269592
Merge pull request #1470 from valadaptive/sanitize-cleanup
...
Clean up file name sanitization
2023-12-05 16:45:00 +02: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
Cohee
356c3a4300
Fix amount gen on zen sliders
2023-12-05 14:12:06 +02:00
Cohee
c9fbe75566
Rename WI logic ONE => ANY
2023-12-05 12:04:27 +02:00
Cohee
ebe0f46f31
Merge pull request #1469 from Bronya-Rand/staging
...
Proper World Info logic checks
2023-12-05 11:57:34 +02:00
Bronya Rand
612005fb64
Merge branch 'staging' of https://github.com/Bronya-Rand/SillyTavern into staging
2023-12-05 03:00:28 -06:00
Bronya Rand
537e9428e0
proper revert cuz vsc revert weird...
2023-12-05 03:00:26 -06:00
Bronya Rand
3c72463c34
Merge branch 'staging' of https://github.com/Bronya-Rand/SillyTavern into staging
2023-12-05 02:56:56 -06:00
Bronya Rand
f9ecc77b10
revert changes after cohee fix
2023-12-05 02:56:52 -06:00
Bronya Rand
c49f1555ea
update ze html
2023-12-04 18:47:56 -06:00
Bronya Rand
d6649bf7d0
update nums
2023-12-04 18:44:49 -06:00
Bronya Rand
5adfd107c0
Merge branch 'staging' of https://github.com/Bronya-Rand/SillyTavern into staging
2023-12-04 18:43:39 -06:00
Bronya Rand
0c6885a453
fix comments and debug text
2023-12-04 18:40:33 -06:00
Cohee
42c2170b6e
AND => AND ONE, fix comments
2023-12-05 02:28:04 +02:00
Cohee
6b0cca2532
Add NOT ONE selective logic
2023-12-05 02:20:35 +02:00
valadaptive
a457484c2d
Move character endpoints into their own module
2023-12-04 17:35:06 -05:00
valadaptive
17959a60a4
Remove charactersPath and chatsPath
...
We already have these paths in the DIRECTORIES constant.
2023-12-04 17:35:06 -05:00
valadaptive
b689b8bd30
Rename character API endpoints
...
Precursor to moving the character API into its own module
2023-12-04 17:35:06 -05:00
Cohee
45730d4766
Merge pull request #1464 from valadaptive/stable-diffusion-router
...
Use Express router for stable diffusion endpoint
2023-12-05 00:33:43 +02:00
Cohee
1ade0fda11
Merge branch 'staging' into stable-diffusion-router
2023-12-05 00:25:24 +02:00
Cohee
60083b2a35
Merge pull request #1466 from valadaptive/tokenizers-router
...
Use Express router for tokenizers endpoint
2023-12-05 00:24:38 +02:00
Cohee
b287d5f3bd
Merge branch 'staging' into tokenizers-router
2023-12-05 00:19:44 +02:00
Cohee
d2e8646ef9
Merge pull request #1468 from valadaptive/vectors-router
...
Use Express router for vectors endpoint
2023-12-05 00:19:14 +02:00
Cohee
21e19674b4
Merge branch 'staging' into vectors-router
2023-12-05 00:15:36 +02:00
Cohee
b171f0a868
Merge pull request #1467 from valadaptive/translate-router
...
Use Express router for translate endpoint
2023-12-05 00:13:44 +02:00
Cohee
444f67e930
Merge branch 'staging' into translate-router
2023-12-05 00:11:06 +02:00
Cohee
5fa81ec37c
Merge pull request #1465 from valadaptive/thumbnails-router
...
Use Express router for thumbnails endpoint
2023-12-05 00:10:12 +02:00
Cohee
eb273ced59
Merge branch 'staging' into thumbnails-router
2023-12-05 00:08:15 +02:00
Bronya Rand
a90fe54e5b
bak should not be here
2023-12-04 16:05:05 -06:00