Commit Graph

3223 Commits

Author SHA1 Message Date
97c49a405b Enable no-extra-boolean-cast lint 2023-12-02 10:32:26 -05:00
0a27275772 Enable no-extra-semi lint 2023-12-02 10:32:26 -05:00
27e63a7a77 Enable no-case-declarations lint 2023-12-02 10:32:26 -05:00
a665a4897d Enable no-unused-labels lint
I'm not sure why "esversion: 6" was at the top of the file. My best
guess is that whoever initially created it was using jshint, which says
"use 'esversion: 6'" if used to lint a file which contains ES6 code.
Even then, the proper syntax would be a comment.
2023-12-02 10:32:07 -05:00
1c121f1ba5 Enable use-isnan lint 2023-12-02 10:32:07 -05:00
9204a31d32 Enable no-self-assign lint 2023-12-02 10:32:07 -05:00
c05aee8e72 Enable no-unsafe-negation lint
This actually fixes a bug--the old code was negating "audioData.type"
2023-12-02 10:32:07 -05:00
7def71aef7 Only enable no-constant-condition for non-loops
"while (true)" is a useful pattern that eslint doesn't really need to
flag as a problem.
2023-12-02 10:32:07 -05:00
60ac1aa1c7 Enable no-empty lint 2023-12-02 10:32:07 -05:00
367f3dba27 Enable no-unsafe-finally lint 2023-12-02 10:32:07 -05:00
e7ae1c4787 Enable no-dupe-keys lint 2023-12-02 10:32:07 -05:00
8c89f373fa Enable no-irregular-whitespace lint
A couple comments contained non-breaking spaces (I think), which I
replaced with regular spaces.
2023-12-02 10:32:07 -05:00
12cdb76a20 Enable no-regex-spaces lint
I noticed the old code was replacing two spaces with one space, over and
over. Instead, I changed it to remove all consecutive strings of spaces
just once, using the "+" quantifier. This should behave the same but is
nicer to read and faster.
2023-12-02 10:32:07 -05:00
7c3dd75e6a Enable no-fallthrough lint 2023-12-02 10:32:07 -05:00
4c475afc91 Merge pull request #1428 from valadaptive/eslint-initial
Initial ESLint setup
2023-12-02 17:14:04 +02:00
bac43a2131 Add CORS proxy placeholder 2023-12-02 16:04:30 +02:00
ec0e4026d8 Initial ESLint setup
This sets up ESLint and its config, and disables a bunch of recommended
lints that currently do not pass. Later PRs/commits will fix those lints
and re-enable them.
2023-12-02 09:02:57 -05:00
4f05d872f4 Merge pull request #1423 from bdashore3/staging
Fix the CORS proxy again
2023-12-02 16:00:35 +02:00
a1754c7192 Update server.js 2023-12-02 15:32:09 +02:00
249f9f649f Escape QR button labels 2023-12-02 15:19:44 +02:00
1e4471a9b5 Merge pull request #1425 from valadaptive/kobold-classic-api-url 2023-12-02 13:59:47 +02:00
3f924f8b11 Merge pull request #1426 from valadaptive/fix-temp-label 2023-12-02 13:58:29 +02:00
cadf5163ad Fix temperature slider label 2023-12-02 05:37:27 -05:00
4c4e4caeb7 Pass in Kobold Classic API server url from client 2023-12-02 04:45:20 -05:00
641cd614c8 Server: Fix CORS proxy with POST requests and status codes
POST requests always sent an undefined body without the bodyParser
middleware which isn't included with express by default. Add this
as a new dependency and inject it into the express app. This middleware
will also be useful for any other middleware that we might create.

Also properly send status codes and messages to the client so they
can be handled properly.

Signed-off-by: kingbri <bdashore3@proton.me>
2023-12-02 01:43:09 -05:00
04ef9fba54 Disable context stop strings on pull but enable for new installs 2023-12-02 02:19:32 +02:00
690c058a46 Fix boolean comparison 2023-12-02 00:04:38 +02:00
a2f293b6af Make context stop strings togglable 2023-12-01 23:06:37 +02:00
9ad42025e5 Add depth to entry template 2023-12-01 22:09:13 +02:00
07962e0e4e Add /setentryfield command 2023-12-01 21:51:49 +02:00
69659e79e3 Add chat start and example separator as stop sequences 2023-12-01 19:01:06 +02:00
6b348f6128 Fix trailing stopping strings removal 2023-12-01 18:55:11 +02:00
bb9d302c3a Don't skip ephemeral stop strings if there are no custom stop strings 2023-12-01 17:18:30 +02:00
8797508aa3 Fix h-centering of mobile zoomed avatars 2023-12-01 14:59:17 +02:00
95df016d57 Adjustments for zoomed_avatar on ultrawide screens 2023-12-01 14:47:11 +02:00
726bb2e041 #1405 Add formality config for deepl 2023-12-01 14:12:56 +02:00
48a866971a koboldcpp icon (placeholder) 2023-12-01 12:29:29 +02:00
19c6370fa5 Revert preset checkbox update logic 2023-12-01 11:55:05 +02:00
ca24e550a8 #1420 Revert undefined name variable resolution 2023-12-01 11:51:10 +02:00
778bca01f3 Merge pull request #1417 from kalomaze/universal-preset
'Universal-Light', 'Universal-Creative', 'Universal-Super-Creative' presets
2023-12-01 11:40:48 +02:00
59880ee171 disallow newlines in onboarding username 2023-12-01 17:43:05 +09:00
862fc56b39 Merge branch 'staging' of https://github.com/Cohee1207/SillyTavern into staging 2023-12-01 11:39:39 +09:00
c050f2c44d better manual input for normal sliders 2023-12-01 11:39:37 +09:00
bb727d5f9c Insert files before user text, not after 2023-12-01 03:54:28 +02:00
ebcefe67fc Add value increment variable and macros 2023-12-01 03:02:23 +02:00
fae90f8227 Add validation messages 2023-12-01 02:25:55 +02:00
27d27127e0 Fix docstring typo 2023-12-01 02:11:47 +02:00
fe355c5d4f Add MVP set of WI manipulation commands 2023-12-01 01:50:10 +02:00
4e634f00ec Add Min-P to noob mode 2023-12-01 01:49:28 +02:00
a1c5071357 Universal v2 for Ooba 2023-11-30 15:42:15 -06:00