mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2024-12-15 10:48:36 +01:00
00fc40408a
* Update engine.js to allow char scpoed regex no ui because i'm not good at it, but works. * add typedef * update * little fix * Rework scoped scripts UI * Add locale attributes * Purge allowance on delete * add d&d for `saved_scoped_scripts` * better code * Save settings on regex scope toggle * Fix reordering logic * Fix scoped setter * Add unique ids for regex scripts * Wording * Reload chat after deleting scripts * Reload chat after toggling scoped regex --------- Co-authored-by: Cohee <18619528+Cohee1207@users.noreply.github.com>
27 lines
1.6 KiB
HTML
27 lines
1.6 KiB
HTML
<div class="regex-script-label flex-container flexnowrap">
|
|
<span class="drag-handle menu-handle">☰</span>
|
|
<div class="regex_script_name flexGrow overflow-hidden"></div>
|
|
<div class="flex-container flexnowrap">
|
|
<label class="checkbox flex-container" for="regex_disable">
|
|
<input type="checkbox" name="regex_disable" class="disable_regex" />
|
|
<span class="regex-toggle-on fa-solid fa-toggle-on" data-i18n="[title]ext_regex_disable_script" title="Disable script"></span>
|
|
<span class="regex-toggle-off fa-solid fa-toggle-off" data-i18n="[title]ext_regex_enable_script" title="Enable script"></span>
|
|
</label>
|
|
<div class="edit_existing_regex menu_button" data-i18n="[title]ext_regex_edit_script" title="Edit script">
|
|
<i class="fa-solid fa-pencil"></i>
|
|
</div>
|
|
<div class="move_to_global menu_button" data-i18n="[title]ext_regex_move_to_global" title="Move to global scripts">
|
|
<i class="fa-solid fa-arrow-up"></i>
|
|
</div>
|
|
<div class="move_to_scoped menu_button" data-i18n="[title]ext_regex_move_to_scoped" title="Move to scoped scripts">
|
|
<i class="fa-solid fa-arrow-down"></i>
|
|
</div>
|
|
<div class="export_regex menu_button" data-i18n="[title]ext_regex_export_script" title="Export script">
|
|
<i class="fa-solid fa-file-export"></i>
|
|
</div>
|
|
<div class="delete_regex menu_button" data-i18n="[title]ext_regex_delete_script" title="Delete script">
|
|
<i class="fa-solid fa-trash"></i>
|
|
</div>
|
|
</div>
|
|
</div>
|