| 1 | <div class="regex_settings"> |
| 2 | <div class="inline-drawer"> |
| 3 | <div class="inline-drawer-toggle inline-drawer-header"> |
| 4 | <b data-i18n="ext_regex_title"> |
| 5 | Regex |
| 6 | </b> |
| 7 | <div class="inline-drawer-icon fa-solid fa-circle-chevron-down down"></div> |
| 8 | </div> |
| 9 | <div class="inline-drawer-content"> |
| 10 | <div class="flex-container"> |
| 11 | <div id="open_regex_editor" class="menu_button menu_button_icon" data-i18n="[title]ext_regex_new_global_script_desc" title="New global regex script"> |
| 12 | <i class="fa-solid fa-pen-to-square"></i> |
| 13 | <small data-i18n="ext_regex_new_global_script">+ Global</small> |
| 14 | </div> |
| 15 | <div id="open_preset_editor" class="menu_button menu_button_icon" data-i18n="[title]ext_regex_new_preset_script_desc" title="New preset regex script"> |
| 16 | <i class="fa-solid fa-sliders"></i> |
| 17 | <small data-i18n="ext_regex_new_preset_script">+ Preset</small> |
| 18 | </div> |
| 19 | <div id="open_scoped_editor" class="menu_button menu_button_icon" data-i18n="[title]ext_regex_new_scoped_script_desc" title="New scoped regex script"> |
| 20 | <i class="fa-solid fa-address-card"></i> |
| 21 | <small data-i18n="ext_regex_new_scoped_script">+ Scoped</small> |
| 22 | </div> |
| 23 | <div id="import_regex" class="menu_button menu_button_icon"> |
| 24 | <i class="fa-solid fa-file-import"></i> |
| 25 | <small data-i18n="ext_regex_import_script">Import</small> |
| 26 | </div> |
| 27 | <input type="file" id="import_regex_file" hidden accept="*.json" multiple /> |
| 28 | <label for="regex_bulk_edit" class="menu_button menu_button_icon"> |
| 29 | <input id="regex_bulk_edit" type="checkbox" class="displayNone" /> |
| 30 | <i class="fa-solid fa-edit"></i> |
| 31 | <small data-i18n="ext_regex_bulk_edit">Bulk Edit</small> |
| 32 | </label> |
| 33 | <div id="open_regex_debugger" class="menu_button menu_button_icon" data-i18n="[title]ext_regex_debugger_desc" title="Advanced Regex Debugger"> |
| 34 | <i class="fa-solid fa-bug-slash"></i> |
| 35 | <small data-i18n="ext_regex_debugger">Debugger</small> |
| 36 | </div> |
| 37 | </div> |
| 38 | <hr class="regex_bulk_operations_hr" /> |
| 39 | <div class="regex_bulk_operations flex-container"> |
| 40 | <div id="bulk_select_all_toggle" class="menu_button menu_button_icon" title="Toggle Select All"> |
| 41 | <i class="fa-solid fa-check-double"></i> |
| 42 | </div> |
| 43 | <div id="bulk_enable_regex" class="menu_button menu_button_icon"> |
| 44 | <i class="fa-solid fa-toggle-on"></i> |
| 45 | <small data-i18n="Enable">Enable</small> |
| 46 | </div> |
| 47 | <div id="bulk_disable_regex" class="menu_button menu_button_icon"> |
| 48 | <i class="fa-solid fa-toggle-off"></i> |
| 49 | <small data-i18n="Disable">Disable</small> |
| 50 | </div> |
| 51 | <div id="bulk_regex_move_to_global" class="menu_button menu_button_icon" hidden> |
| 52 | <i class="fa-solid fa-globe"></i> |
| 53 | <small data-i18n="ext_regex_move_to_global">Move to global scripts</small> |
| 54 | </div> |
| 55 | <div id="bulk_regex_move_to_preset" class="menu_button menu_button_icon" hidden> |
| 56 | <i class="fa-solid fa-sliders"></i> |
| 57 | <small data-i18n="ext_regex_move_to_preset">Move to preset scripts</small> |
| 58 | </div> |
| 59 | <div id="bulk_regex_move_to_scoped" class="menu_button menu_button_icon" hidden> |
| 60 | <i class="fa-solid fa-address-card"></i> |
| 61 | <small data-i18n="ext_regex_move_to_scoped">Move to scoped scripts</small> |
| 62 | </div> |
| 63 | <div id="bulk_export_regex" class="menu_button menu_button_icon"> |
| 64 | <i class="fa-solid fa-file-export"></i> |
| 65 | <small data-i18n="Export">Export</small> |
| 66 | </div> |
| 67 | <div id="bulk_delete_regex" class="menu_button menu_button_icon"> |
| 68 | <i class="fa-solid fa-trash"></i> |
| 69 | <small data-i18n="Delete">Delete</small> |
| 70 | </div> |
| 71 | </div> |
| 72 | <hr /> |
| 73 | <div id="regex_presets_block"> |
| 74 | <div class="flex-container alignItemsBaseline"> |
| 75 | <strong class="flex1" data-i18n="ext_regex_presets">Regex Presets</strong> |
| 76 | </div> |
| 77 | <small data-i18n="ext_regex_presets_desc"> |
| 78 | Save and switch between groups of enabled regex scripts. |
| 79 | </small> |
| 80 | <div class="flex-container marginTop5"> |
| 81 | <select id="regex_presets" class="text_pole flex1"></select> |
| 82 | <div id="regex_preset_create" class="menu_button fa-solid fa-file-circle-plus" data-i18n="[title]ext_regex_preset_create" title="Create a new regex preset"></div> |
| 83 | <div id="regex_preset_update" class="menu_button fa-solid fa-save" data-i18n="[title]ext_regex_preset_update" title="Update existing regex preset"></div> |
| 84 | <div id="regex_preset_apply" class="menu_button fa-solid fa-recycle" data-i18n="[title]ext_regex_preset_apply" title="Re-apply current preset"></div> |
| 85 | <div id="regex_preset_delete" class="menu_button fa-solid fa-trash" data-i18n="[title]ext_regex_preset_delete" title="Delete current preset"></div> |
| 86 | </div> |
| 87 | </div> |
| 88 | <hr /> |
| 89 | <div id="global_scripts_block"> |
| 90 | <div> |
| 91 | <strong data-i18n="ext_regex_global_scripts">Global Scripts</strong> |
| 92 | </div> |
| 93 | <small data-i18n="ext_regex_global_scripts_desc"> |
| 94 | Available for all characters. Saved to local settings. |
| 95 | </small> |
| 96 | <div id="saved_regex_scripts" no-scripts-text="No scripts found" data-i18n="[no-scripts-text]No scripts found" class="flex-container regex-script-container flexFlowColumn"></div> |
| 97 | </div> |
| 98 | <hr /> |
| 99 | <div id="preset_scripts_block"> |
| 100 | <div class="flex-container alignItemsBaseline"> |
| 101 | <strong class="flex1" data-i18n="ext_regex_preset_scripts">Preset Scripts</strong> |
| 102 | <label id="toggle_preset_regex" class="checkbox flex-container" for="regex_preset_toggle"> |
| 103 | <input type="checkbox" id="regex_preset_toggle" class="enable_scoped" /> |
| 104 | <span class="regex-toggle-on fa-solid fa-toggle-on fa-lg" data-i18n="[title]ext_regex_disallow_preset" title="Disallow using preset regex"></span> |
| 105 | <span class="regex-toggle-off fa-solid fa-toggle-off fa-lg" data-i18n="[title]ext_regex_allow_preset" title="Allow using preset regex"></span> |
| 106 | </label> |
| 107 | </div> |
| 108 | <small data-i18n="ext_regex_preset_scripts_desc"> |
| 109 | Only available for this preset. Saved to the preset data. |
| 110 | </small> |
| 111 | <div id="saved_preset_scripts" no-scripts-text="No scripts found" data-i18n="[no-scripts-text]No scripts found" class="flex-container regex-script-container flexFlowColumn"></div> |
| 112 | </div> |
| 113 | <hr /> |
| 114 | <div id="scoped_scripts_block"> |
| 115 | <div class="flex-container alignItemsBaseline"> |
| 116 | <strong class="flex1" data-i18n="ext_regex_scoped_scripts">Scoped Scripts</strong> |
| 117 | <label id="toggle_scoped_regex" class="checkbox flex-container" for="regex_scoped_toggle"> |
| 118 | <input type="checkbox" id="regex_scoped_toggle" class="enable_scoped" /> |
| 119 | <span class="regex-toggle-on fa-solid fa-toggle-on fa-lg" data-i18n="[title]ext_regex_disallow_scoped" title="Disallow using scoped regex"></span> |
| 120 | <span class="regex-toggle-off fa-solid fa-toggle-off fa-lg" data-i18n="[title]ext_regex_allow_scoped" title="Allow using scoped regex"></span> |
| 121 | </label> |
| 122 | </div> |
| 123 | <small data-i18n="ext_regex_scoped_scripts_desc"> |
| 124 | Only available for this character. Saved to the card data. |
| 125 | </small> |
| 126 | <div id="saved_scoped_scripts" no-scripts-text="No scripts found" data-i18n="[no-scripts-text]No scripts found" class="flex-container regex-script-container flexFlowColumn"></div> |
| 127 | </div> |
| 128 | </div> |
| 129 | </div> |
| 130 | </div> |