Commit Graph

145 Commits

Author SHA1 Message Date
Wolfsblvt 96f04a1c49 Merge branch 'staging' into smol-tag-improvements 2024-06-13 23:40:19 +02:00
Cohee d69263923a Include emoji into trim to end sentence 2024-06-11 23:37:00 +03:00
Cohee b3e57dae85 Use crypto UUID for UI 2024-06-10 14:20:52 +03:00
Wolfsblvt b814ba5b35 Merge branch 'staging' into smol-tag-improvements 2024-06-10 01:45:15 +02:00
Cohee 1685f6ded0 #1069 Convert to number 2024-06-09 14:41:49 +03:00
Cohee 67f2c380a3 #1069 Handle string timestamps as numbers 2024-06-09 11:15:17 +03:00
Wolfsblvt d98d811cc1 Merge branch 'staging' into smol-tag-improvements 2024-06-08 21:13:11 +02:00
Cohee 39721b6a8f Add file chunks overlap control 2024-06-06 21:45:47 +03:00
Wolfsblvt 9318f94f08 Merge branch 'staging' into smol-tag-improvements 2024-06-02 21:07:46 +02:00
Cohee b559f2f559 V3 spec (IMPORT ONLY) 2024-06-01 22:07:57 +03:00
Vhallo d25ba41fb5
Extending punctuation
Extending punctuation for thoughts.
2024-05-30 01:29:28 +02:00
Wolfsblvt 24224dc0b1 Fix and improve more tag popups
- Rework tag color pickers to... actually work without hacks
- Color picker default to main text color and tag default background. If default color is chosen, sets "empty" in tag, for possible style changes
- Fix tabbing on tag name in tag view list being broken
- Unique names on new tag click
- Several fixes on tags popups
- Animation utility functions (for popup, heh)
- Utility function to get free (unique) name
2024-05-27 03:35:03 +02:00
Wolfsblvt ab8c67ede6 Refactor overwrite check to utility function
- Refactor overwrite check to utility function
- Don't mind me refactoring character delete functions. I tried something, but I think the refactoring still makes sense
2024-05-22 23:52:35 +02:00
Wolfsblvt a251849f8f WI import checking for existing worlds too
- WI import uses the same check as create new world
- API endpoint to get server-side sanitized filenames
- Small changes to toast messages
2024-05-22 21:11:39 +02:00
Wolfsblvt 29d817d549 Implement failsafe for world creation with same name
- Fixes #2297
- Added another utils function for string comparison
2024-05-22 18:19:01 +02:00
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
Cohee 7045d242e8 Add ability to attach files and images to messages 2023-11-18 19:24:55 +02:00
Cohee cb1e254cb9 Add tags as folders display mode 2023-11-10 21:56:25 +02:00
Cohee 6dc5906229 Add ranges to /cut slash command 2023-11-08 23:04:32 +02:00
Cohee 5012237eb3 Display generated bg in the bg block. Add ability to copy chat bg to system list. 2023-10-21 17:43:25 +03:00
Cohee 7f8df9533b Auto-complete code blocks during streaming 2023-10-20 23:52:23 +03:00
Cohee 5b954a3584 Rename URL validation util function 2023-10-16 00:50:29 +03:00
Cohee 85a63b3bb3 Add WI entry sorting. Add new entry flash 2023-10-05 23:30:18 +03:00
Brian Dashore bfda5a5492
Extra fixes (#1185) 2023-09-26 09:53:04 +03:00
Cohee 4cf6a1f7da Cache and sample classification results 2023-09-09 17:31:27 +03:00
Cohee ea01247bcf #1090 Save Kobold/ooba servers history 2023-09-08 22:44:06 +03:00
Cohee 194278d171 Merge branch 'staging' into feature/exorcism 2023-08-31 00:42:34 +03:00
Cohee 085e92a43e Escape prompt manager names 2023-08-30 12:03:18 +03:00
city-unit 39eae80f6e Merge branch 'staging' of https://github.com/city-unit/SillyTavern into feature/exorcism 2023-08-27 12:47:05 -04:00
Cohee 9660aaa2c2 Add NovelAI hypebot plugin 2023-08-27 18:27:34 +03:00
city-unit 3737f58072 Merge branch 'staging' of https://github.com/city-unit/SillyTavern into feature/exorcism 2023-08-26 20:56:38 -04:00
Cohee 1900ab9726 #1005 Replace mobile detection method in get sortable delay. Make deviceInfo loading sync. Init Ross mods via function call. 2023-08-24 23:52:03 +03:00
Cohee fd95b79ae9 Fix auto-translate plugin. Add new event types for post-rendering 2023-08-22 22:45:12 +03:00
Cohee e2bac7ec5f Add type checking and JSDoc comments to some utils 2023-08-22 13:07:24 +03:00
Cohee 069a07a139 Add pagination for WI entries #964 2023-08-21 21:10:11 +03:00
city-unit c7d9eb39f5 Remove img filter, move file loader to utils 2023-08-21 11:21:32 -04:00
Cohee 94754af013 Reformat code 2023-08-20 12:37:38 +03:00
city-unit e8c996ff61 Move to char+timestamp for img naming. 2023-08-20 01:41:58 -04:00
city-unit 3ce8343016 Add comments and stuff 2023-08-20 00:15:57 -04:00
city-unit c1d43c9e68 Remove base64 from groups too 2023-08-19 23:53:34 -04:00
Cohee c4d8d70103 Improve phone usability of sortable drags 2023-08-18 13:41:46 +03:00
Cohee 3850e6b50a Replace object stores for Chroma and token cache 2023-08-14 22:19:14 +03:00
Cohee e6bf870c55 Persist token cache to indexedDb 2023-08-13 22:45:27 +03:00
Cohee 2fea218661 Extend random and roll syntax for frontend compatibility 2023-08-08 22:36:42 +03:00
Cohee 40f466b2c3 Summary plugin improvements: In-chat position, customizable template, force insert after X words 2023-07-30 23:10:37 +03:00
Cohee edd41989fd Initial commit 2023-07-20 20:32:15 +03:00