1067 Commits

Author SHA1 Message Date
Cohee
eb8f4bebe0 Argument for API is not required 2024-06-23 17:42:00 +03:00
Cohee
eba0f54477 Merge branch 'staging' into slash-command-enums 2024-06-23 15:01:55 +03:00
Wolfsblvt
42766a715d Popup type "DISPLAY" & image enlarge changes
- New popup type "DISPLAY", for showing content with an X in the corner, without buttons
- Rework popup result controls to automatically support click (or other) events to close complete the popup
- Fix inline image icons/actions being keyboard interactable
- Switch inline image enlarge popup to new DISPLAY type
2024-06-23 02:32:06 +02:00
Cohee
a6e2692e52 Merge branch 'staging' into tag-import-setting 2024-06-22 12:48:08 +03:00
Wolfsblvt
87915a5f79 Gray out bogus folders if they don't drill down
- Implements and resolves #2404
- Common CSS class for entities in char list
- entity flag to lower opacity for entities that aren't really useful for navigation
2024-06-22 08:15:31 +02:00
Wolfsblvt
d64b265a39 Tag import popup improvements
- Save "remember" setting of tag import popup
- Add user option to change the tag import setting
- Improve tag import popup with adding drilled down bogus folders as auto-added tags
- Extract tag import popup to template
- Force-open popup no matter the setting on char dropdown button option
2024-06-22 05:03:05 +02:00
Wolfsblvt
3ab5cc1766 Merge branch 'staging' into slash-command-enums 2024-06-21 20:07:19 +02:00
Wolfsblvt
48077d200b More slash command enums (nearly done) 2024-06-21 20:04:55 +02:00
Cohee
56710fee39 Apply fix for group chats 2024-06-21 13:09:41 +00:00
splitclover
0c69b698b9
Removed redundant emmiter 2024-06-21 14:16:59 +02:00
splitclover
feb8321147
Fix emmiter for imported cards 2024-06-21 13:53:31 +02:00
splitclover
3092c68a05
Fixed typo 2024-06-21 13:19:36 +02:00
splitclover
2a1704add0
Added event emmiters when creating new chats 2024-06-21 13:12:57 +02:00
Wolfsblvt
ffc84f5118 Merge branch 'staging' into slash-command-enums 2024-06-20 20:38:55 +02:00
Wolfsblvt
461b1a9d87 Even more enum refactorings (not done yet)
- Add common enum icons
- enum def for existing enum types, with color description
2024-06-20 20:33:45 +02:00
Cohee
75dfe87054 Fix character_message_rendered firing twice on new chat 2024-06-19 21:34:46 +03:00
Cohee
10fd2e1334 #2395 Treat default example as empty 2024-06-19 21:23:25 +03:00
Wolfsblvt
7f7ecdcca8 Merge branch 'staging' into slash-command-enums 2024-06-17 07:06:26 +02:00
Cohee
e3a46df010 Merge branch 'staging' into smol-tag-improvements 2024-06-16 16:04:37 +03:00
Cohee
c7dc63200a Merge branch 'staging' into ruRuNew 2024-06-16 15:56:07 +03:00
Wolfsblvt
51d7ba728f Tag commands enum providers 2024-06-16 02:59:37 +02:00
Cohee
b22bc47c4f Update ext.macro calls in built-in extensions 2024-06-15 01:40:16 +03:00
Cohee
2aa8564522 Substitute params with addl. macro 2024-06-15 01:22:15 +03:00
Len
5cb319771d
Parser followup (#2377)
* set pipe to empty string on empty closure

* fix missing parser flags and scope

* add closure serializing

* add enum provider function to slash command arguments

* add enum providers for /bg, /ask, and /go

* fix index out of bounds returning undefined

* keep whitespace as is in mixed unnamed args (string+closure)

* add _hasUnnamedArgument to named arguments dictionary

* allow /var key=x retrieval

* add enum provider to /tag-add

* fix typo (case)

* add option to make enum matching optional

* add executor to enum provider

* change /tag-add enum provider to only show tags not already assigned

* add enum provider to /tag-remove

* fix name enum provider excluding groups

* remove void from slash command callback return types

* Lint undefined and null pipes

* enable pointer events in chat autocomplete

* fix type hint

---------

Co-authored-by: LenAnderson <Anderson.Len@outlook.com>
Co-authored-by: Cohee <18619528+Cohee1207@users.noreply.github.com>
2024-06-15 00:48:41 +03:00
Wolfsblvt
96f04a1c49 Merge branch 'staging' into smol-tag-improvements 2024-06-13 23:40:19 +02:00
Yokayo
10a4e54a3b Another small fix 2024-06-12 17:15:56 +07:00
Yokayo
839d79f407 Small fix 2024-06-12 16:50:08 +07:00
Yokayo
a1a9f0002c Merge branch 'staging' of https://github.com/Yokayo/SillyTavern into staging 2024-06-12 16:31:11 +07:00
Yokayo
84ee968ab4 More localizable text 2024-06-12 16:30:32 +07:00
Wolfsblvt
679b3587b5 Data attribute for the currently open menu_type
- Add data attribute to the right nav panel for the currently open menu type
- JSDoc of possible menu_type values
- Refactor using the menu_type setter
- Remove legacy "settings" menu type, as that one is not part of those really
2024-06-11 02:54:06 +02:00
Wolfsblvt
b814ba5b35 Merge branch 'staging' into smol-tag-improvements 2024-06-10 01:45:15 +02:00
Wolfsblvt
d14af1592e Refactor naming/structure of popup CSS classes
- Refactor naming/structure of popup CSS classes
- Prepare Popup utility of opening/showing dialogs
2024-06-09 22:02:51 +02:00
Cohee
bb48dfe084 Add await arg to /imp command 2024-06-09 18:36:52 +03:00
Wolfsblvt
d98d811cc1 Merge branch 'staging' into smol-tag-improvements 2024-06-08 21:13:11 +02:00
Wolfsblvt
61906d8dbe Dynamic focus styles from existing hover styles 2024-06-08 05:10:44 +02:00
Wolfsblvt
e2089b1e44 Dozens new keyboard interactables
- Made dozens of existing controls keyboard interactable
- Tweaked styling so the keyboard focus looks more pleasant
2024-06-06 02:48:06 +02:00
Cohee
671b7ef7cb Add just a chat fields list from server 2024-06-06 02:05:26 +03:00
Cohee
ff241dd0a9 Add events for completed prompts 2024-06-06 00:23:12 +03:00
Wolfsblvt
f04bbdf112 Small changes to /rename-char 2024-06-05 20:24:50 +02:00
Wolfsblvt
858e5f2efb /rename-char slash command
- Rename char slash command (with optional parameters for silent and rename old chats)
- JSDoc fix for STscript named args in callbacks
2024-06-05 02:19:22 +02:00
Cohee
340b3920ac
Merge pull request #2344 from Wolfsblvt/fix-tags-on-char-creation
Fix adding tags on char/group creation again
2024-06-04 17:09:32 +03:00
Wolfsblvt
e8aba9fa5f Fix adding tags on char/group creation again 2024-06-04 00:32:30 +02:00
Wolfsblvt
5cc4242c6f Make ST-style buttons keyboard selectable
- Make ST-style buttons keyboard selectable
- Allow custom classes/selectors to be set as buttons too, with the same functionality (CSS selector-based)
- Observer to automatically add functionality to any button added to the DOM
- Allow buttons to not be selectable via 'disabled' or 'not_focusable'
2024-06-03 02:52:54 +02:00
Wolfsblvt
98905e0e53 Slight layout fixes to the char import popup
- Need to pull my "wider" popup type from the other branch, because 1/1 aspect ratio scaling is just bad
- Add a few tailwind-like classes for ul-li styling
- Add <kbd> element styling for keyboard buttons
2024-06-03 01:17:19 +02:00
Cohee
91061c1d55 Fix i18n, make dialog wide 2024-06-03 01:49:01 +03:00
Wolfsblvt
e93bc49b36 Support importing multiple URLs on external import 2024-06-02 23:44:50 +02:00
Wolfsblvt
9318f94f08 Merge branch 'staging' into smol-tag-improvements 2024-06-02 21:07:46 +02:00
Wolfsblvt
89d1bc8341 Drag&Drop handler utility and animation 2024-06-02 05:54:41 +02:00
Cohee
20d12dc98e (WIP) Import JSON from .charx 2024-06-02 00:28:41 +03:00
Wolfsblvt
c939c544e2 Rename popup css classes 2024-05-31 21:59:26 +02:00