* feat: preset regex * refactor: unify `saveScriptsByType` * fix: default branch for `saveScriptsByType` * refactor: resolve some reviews * fix: lint * refactor: getPresetName -> getCurrentPresetName * refactor: unify regex allow operation * feat: notify whether to reload current chat when preset is changed * refacotr: set timeout for reload current chat notification * fix: _ -> lodash * i18n * Refactor API ID access * refactor: replace UNKNOWN type with a separate constant * refactor: consolidate CSS rules for scoped and preset script blocks * Extend toast timeout * Fix bug with moving, refactor * Refactor bulk toggle operations * Use for..of for preset application * refactor: enhance parameter documentation for scriptType in regex functions * fix: await loadRegexScripts in event handlers * fix: correct script type in saveScriptsByType for preset handling * fix: add null checks for preset manager and API ID in regex functions * feat: implement expandable regex script options in UI * Always show edit/delete buttons * Add title attribute to regex script name * fix: correct class name for regex script display * Remove extra paddings from script blocks * fix: ensure preset scripts are only disallowed if currently allowed during rename * fix: reload on bulk script toggle * feat: add PRESET_RENAMED_BEFORE event type and emit it during preset renaming * fix: always preserve preset extensions on rename * Handle horde in getPresetManager --------- Co-authored-by: ZoinkCN <zoinkcn@outlook.com> Co-authored-by: StageDog <aksanajw845@gmail.com>
26 lines
1.0 KiB
HTML
26 lines
1.0 KiB
HTML
<div>
|
|
<h3 data-i18n="ext_regex_import_target">
|
|
Import To:
|
|
</h3>
|
|
<div class="flex-container flexFlowColumn wide100p padding10 justifyLeft">
|
|
<label for="regex_import_target_global">
|
|
<input type="radio" name="regex_import_target" id="regex_import_target_global" value="global" checked />
|
|
<span data-i18n="ext_regex_global_scripts">
|
|
Global Scripts
|
|
</span>
|
|
</label>
|
|
<label for="regex_import_target_scoped">
|
|
<input type="radio" name="regex_import_target" id="regex_import_target_scoped" value="scoped" />
|
|
<span data-i18n="ext_regex_scoped_scripts">
|
|
Scoped Scripts
|
|
</span>
|
|
</label>
|
|
<label for="regex_import_target_preset">
|
|
<input type="radio" name="regex_import_target" id="regex_import_target_preset" value="preset" />
|
|
<span data-i18n="ext_regex_preset_scripts">
|
|
Preset Scripts
|
|
</span>
|
|
</label>
|
|
</div>
|
|
</div>
|