Commit Graph

80 Commits

Author SHA1 Message Date
Cohee 0371bf4e9f Revoke 1-time object URLs 2024-05-22 01:36:38 +03:00
Cohee edf981a5a1 Don't convert markdown to plaintext 2024-05-20 00:48:23 +03:00
Cohee 41f25edb15 Workaround for old Safari 2024-05-19 22:16:14 +03:00
Cohee 909ec4191d Allow JS syntax in instruct activation regex 2024-05-17 01:14:07 +03:00
Wolfsblvt f7c12264e8 Fix select2 local ajax breaking 2024-05-15 00:38:48 +02:00
Wolfsblvt 00ce078630 WI key input mode switch fancy/plaintext
- Implemented switch between fancy and plaintext input controls
- Fixed splitting keys into regexes index issue
- Fixed focus falsely adding text as key
2024-05-14 04:51:22 +02:00
Wolfsblvt 5426431adf Merge branch 'staging' into wi-regex-keys 2024-05-14 01:56:36 +02:00
Cohee 49cb8daf7d Add inline image control 2024-05-14 01:08:31 +03:00
Cohee e73b5713fd Add types for moment 2024-05-11 14:49:11 +03:00
Wolfsblvt bb3ac095c4 WI key input allow click to edit
- Allow click on WI keys to edit
- Removes them from the key list, allowing direct text editing
- Refactor select2 click subscribe some more, fixing a few issues
2024-05-10 00:42:35 +02:00
Wolfsblvt e18d554489 Refactor select2 choice click event to utils 2024-05-09 23:30:18 +02:00
Wolfsblvt cf77b9e7ee WI regex key syntax highlighting 2024-05-09 03:35:36 +02:00
Wolfsblvt eb273a1873 WI key dropdown templating shows all keys
- Cache all keys for the loaded lorebook
- Key selection dropdown shows all keys and how often they are used already
- More templating changes
2024-05-08 20:34:53 +02:00
Wolfsblvt fda0e886e4 WI custom styling for regex keys
- WI custom style for regex keys
- moved select2 styling to its own file
2024-05-07 05:44:18 +02:00
Wolfsblvt 70a2f71e33 WI switch key controls to multi input
- Switch key/secondarykey controls to select2 input
- Custom tokenizer for regex parsing, allowing comma in regex
- Keep mobile-compatibility by switching to textarea
- select2 utility method to pre-fill options
- New inline display mode of select2 multi to save space
2024-05-07 02:01:54 +02:00
Cohee 620cd6dfc2 Move persona functions from script. Clean-up exports 2024-05-01 14:03:24 +03:00
Wolfsblvt 83f79c1466 Fix non-fuzzy char search
- Utilize new utility function that checks insensitive and without accents
2024-04-30 06:03:41 +02:00
Cohee 6ac6c7cfda #2159 Move debounce constants to a separate module 2024-04-28 19:47:53 +03:00
Cohee fb1b327f9a [skip ci] ESLint 2024-04-28 16:58:28 +03:00
Wolfsblvt d7ade487b8 Refactor common enum for debounce timeouts 2024-04-28 06:21:47 +02:00
Wolfsblvt 2e562d187a Option to auto-sort tags (+UI improvements)
- Toggle to auto-sort tags alphabetically
- Init auto-sort based on current sorted state, if not chosen before
- Tag management redraw list if changes happen
- Tag management highlight renamed rows on auto-sort if they get automatically reordered
- Manual drag&drop of tags disables auto-sort option
- Small fixes to popup tag management pop drawing
- Utility function to flash highlight via CSS
2024-04-27 10:26:01 +02:00
Cohee 4264d170e2 Add support for Office plugin 2024-04-21 16:27:44 +03:00
Cohee c2256c2ac7 Fix data bank text clean-up 2024-04-21 02:05:59 +03:00
Cohee 78d1d48ea9 Add EPUB import for data bank 2024-04-20 01:24:46 +03:00
Cohee 9a1ea7f226 Implement Data Bank vectors querying 2024-04-17 02:09:22 +03:00
Cohee 3b293de3ec Allow AVIF and friends for avatar images 2024-03-21 14:47:22 +02:00
Cohee b261c8c4a9 Extract API endpoints for images 2024-03-20 00:59:06 +02:00
Cohee 508bab7e0f Fix range numbers parsing 2024-03-15 16:31:43 +02:00
Cohee 700c20d441 Add moment mutability notice for future generations 2024-03-12 20:45:30 +02:00
Cohee a9ec171c50 Cache parsed timestamps for quicker rendering 2024-03-12 20:29:07 +02:00
Cohee 6b2374c405 Add function to write extension fields to character cards. 2024-03-12 01:49:05 +02:00
Cohee 7acd2916ec Fix image uploading if character name contains a dot 2024-03-03 20:39:20 +02:00
Cohee eaeafde0e4 Use Readability to extract text from HTML 2024-02-29 16:37:52 +02:00
Cohee 4649c806e0 Use regex to match whitespace 2024-02-02 21:30:32 +02:00
Spacellary e4025cb413
Add Handling for Dangling Characters in "trimToEndSentence" - utils.js
New: Considered the presence of whitespace or newline characters preceding the punctuation for accurate trimming.
2024-02-02 13:42:31 -03:00
Cohee 6406f76c7d Compress too large images for Google captions 2023-12-14 22:28:22 +02:00
Cohee 83f2c1a8ed #1524 Add FPS limiter to streamed rendering 2023-12-12 22:11:23 +02:00
Cohee 299749a4e7 Add prerequisites for websearch extension 2023-12-12 01:08:47 +02:00
valadaptive 39d771cc4a Replace path "\" with "/" server-side 2023-12-06 17:22:37 -05:00
Cohee 64a3564892 lint: Comma dangle 2023-12-02 22:06:57 +02:00
Cohee 08fedf3a96 lint: Use 4 space indent 2023-12-02 21:56:16 +02:00
Cohee c63cd87cc0 lint: Require semicolons 2023-12-02 21:11:06 +02:00
valadaptive a37f874e38 Require single quotes 2023-12-02 13:04:51 -05:00
valadaptive b023312117 Enable no-useless-escape lint 2023-12-02 10:32:26 -05:00
valadaptive 0a27275772 Enable no-extra-semi lint 2023-12-02 10:32:26 -05:00
Cohee 690c058a46 Fix boolean comparison 2023-12-02 00:04:38 +02:00
Cohee 07962e0e4e Add /setentryfield command 2023-12-01 21:51:49 +02:00
Cohee e0bf2b8e3e [FEATURE_REQUEST] Sending PDF/HTML files? #1414 2023-11-29 17:51:30 +02:00
Cohee dd17c2483f Add lock=on/off to /gen and /genraw commands 2023-11-24 15:18:49 +02:00
Cohee 22e17cd681 Pass image type to thumbnail creator 2023-11-23 20:50:08 +02:00