Merge branch 'staging' into char-find-and-sendas-extended
| @@ -459,3 +459,7 @@ body.expandMessageActions .mes .mes_buttons .extraMesButtonsHint { | |||
| 459 | .mdhotkey_icon { | 459 | .mdhotkey_icon { |
| 460 | opacity: 0.6; | 460 | opacity: 0.6; |
| 461 | } | 461 | } |
| 462 | |||
| 463 | label[for="trim_spaces"]:has(input:checked) i.warning { | ||
| 464 | display: none; | ||
| 465 | } | ||
| @@ -3222,6 +3222,7 @@ | |||
| 3222 | <label class="checkbox_label" for="trim_spaces"> | 3222 | <label class="checkbox_label" for="trim_spaces"> |
| 3223 | <input id="trim_spaces" type="checkbox" /> | 3223 | <input id="trim_spaces" type="checkbox" /> |
| 3224 | <small data-i18n="Trim spaces">Trim spaces</small> | 3224 | <small data-i18n="Trim spaces">Trim spaces</small> |
| 3225 | <i class="fa-sm fa-solid fa-exclamation-triangle warning" title="Disabling is not recommended." data-i18n="[title]Disabling is not recommended."></i> | ||
| 3225 | </label> | 3226 | </label> |
| 3226 | <label class="checkbox_label" for="trim_sentences_checkbox"> | 3227 | <label class="checkbox_label" for="trim_sentences_checkbox"> |
| 3227 | <input id="trim_sentences_checkbox" type="checkbox" /> | 3228 | <input id="trim_sentences_checkbox" type="checkbox" /> |
| @@ -3282,7 +3283,7 @@ | |||
| 3282 | <label> | 3283 | <label> |
| 3283 | <small> | 3284 | <small> |
| 3284 | <span data-i18n="Activation Regex">Activation Regex</span> | 3285 | <span data-i18n="Activation Regex">Activation Regex</span> |
| 3285 | <span class="fa-solid fa-circle-question" title="When connecting to an API or choosing a model, automatically activate this Instruct Template if the model name matches the provided regular expression."></span> | 3286 | <span class="fa-solid fa-circle-question" data-i18n="[title]instruct_template_activation_regex_desc" title="When connecting to an API or choosing a model, automatically activate this Instruct Template if the model name matches the provided regular expression."></span> |
| 3286 | </small> | 3287 | </small> |
| 3287 | </label> | 3288 | </label> |
| 3288 | <div> | 3289 | <div> |
| @@ -3323,7 +3324,7 @@ | |||
| 3323 | </h4> | 3324 | </h4> |
| 3324 | <!-- We keep one auto-open so the user would know what is going on in the picked template --> | 3325 | <!-- We keep one auto-open so the user would know what is going on in the picked template --> |
| 3325 | <details open> | 3326 | <details open> |
| 3326 | <summary>User Message Sequences</summary> | 3327 | <summary data-i18n="User Message Sequences">User Message Sequences</summary> |
| 3327 | <div class="flex-container"> | 3328 | <div class="flex-container"> |
| 3328 | <div class="flexAuto" title="Inserted before a User message and as a last prompt line when impersonating." data-i18n="[title]Inserted before a User message and as a last prompt line when impersonating."> | 3329 | <div class="flexAuto" title="Inserted before a User message and as a last prompt line when impersonating." data-i18n="[title]Inserted before a User message and as a last prompt line when impersonating."> |
| 3329 | <small data-i18n="User Prefix">User Message Prefix</small> | 3330 | <small data-i18n="User Prefix">User Message Prefix</small> |
| @@ -3336,7 +3337,7 @@ | |||
| 3336 | </div> | 3337 | </div> |
| 3337 | </details> | 3338 | </details> |
| 3338 | <details open> | 3339 | <details open> |
| 3339 | <summary>Assistant Message Sequences</summary> | 3340 | <summary data-i18n="Assistant Message Sequences">Assistant Message Sequences</summary> |
| 3340 | <div class="flex-container"> | 3341 | <div class="flex-container"> |
| 3341 | <div class="flexAuto" title="Inserted before an Assistant message and as a last prompt line when generating an AI reply." data-i18n="[title]Inserted before an Assistant message and as a last prompt line when generating an AI reply."> | 3342 | <div class="flexAuto" title="Inserted before an Assistant message and as a last prompt line when generating an AI reply." data-i18n="[title]Inserted before an Assistant message and as a last prompt line when generating an AI reply."> |
| 3342 | <small data-i18n="Assistant Prefix">Assistant Message Prefix</small> | 3343 | <small data-i18n="Assistant Prefix">Assistant Message Prefix</small> |
| @@ -3349,7 +3350,7 @@ | |||
| 3349 | </div> | 3350 | </div> |
| 3350 | </details> | 3351 | </details> |
| 3351 | <details> | 3352 | <details> |
| 3352 | <summary>System Message Sequences</summary> | 3353 | <summary data-i18n="System Message Sequences">System Message Sequences</summary> |
| 3353 | <div class="flex-container"> | 3354 | <div class="flex-container"> |
| 3354 | <div class="flexAuto" id="instruct_system_sequence_block" title="Inserted before a System (added by slash commands or extensions) message." data-i18n="[title]Inserted before a System (added by slash commands or extensions) message."> | 3355 | <div class="flexAuto" id="instruct_system_sequence_block" title="Inserted before a System (added by slash commands or extensions) message." data-i18n="[title]Inserted before a System (added by slash commands or extensions) message."> |
| 3355 | <small data-i18n="System Prefix">System Message Prefix</small> | 3356 | <small data-i18n="System Prefix">System Message Prefix</small> |
| @@ -3368,7 +3369,7 @@ | |||
| 3368 | </div> | 3369 | </div> |
| 3369 | </details> | 3370 | </details> |
| 3370 | <details> | 3371 | <details> |
| 3371 | <summary>System Prompt Sequences</summary> | 3372 | <summary data-i18n="System Prompt Sequences">System Prompt Sequences</summary> |
| 3372 | <div class="flex-container"> | 3373 | <div class="flex-container"> |
| 3373 | <div class="flexAuto" title="Inserted before a System prompt." data-i18n="[title]Inserted before a System prompt."> | 3374 | <div class="flexAuto" title="Inserted before a System prompt." data-i18n="[title]Inserted before a System prompt."> |
| 3374 | <label for="instruct_system_sequence_prefix"> | 3375 | <label for="instruct_system_sequence_prefix"> |
| @@ -4132,7 +4133,7 @@ | |||
| 4132 | <input id="enable_auto_select_input" type="checkbox" /> | 4133 | <input id="enable_auto_select_input" type="checkbox" /> |
| 4133 | <small data-i18n="Auto-select Input Text">Auto-select Input Text</small> | 4134 | <small data-i18n="Auto-select Input Text">Auto-select Input Text</small> |
| 4134 | </label> | 4135 | </label> |
| 4135 | <label class="checkbox_label alignItemsCenter" for="enable_md_hotkeys" title="Enable hotkeys for inserting markdown format characters in certain text input boxes. See '/help hotkeys'."> | 4136 | <label class="checkbox_label alignItemsCenter" for="enable_md_hotkeys" data-i18n="[title]markdown_hotkeys_desc" title="Enable hotkeys for inserting markdown format characters in certain text input boxes. See '/help hotkeys'."> |
| 4136 | <input id="enable_md_hotkeys" type="checkbox" /> | 4137 | <input id="enable_md_hotkeys" type="checkbox" /> |
| 4137 | <small> | 4138 | <small> |
| 4138 | <span data-i18n="Markdown Hotkeys">Markdown Hotkeys</span> | 4139 | <span data-i18n="Markdown Hotkeys">Markdown Hotkeys</span> |
| @@ -5444,7 +5445,7 @@ | |||
| 5444 | <textarea class="text_pole" rows="1" name="comment" data-i18n="[placeholder]Entry Title/Memo" placeholder="Entry Title/Memo"></textarea> | 5445 | <textarea class="text_pole" rows="1" name="comment" data-i18n="[placeholder]Entry Title/Memo" placeholder="Entry Title/Memo"></textarea> |
| 5445 | </div> | 5446 | </div> |
| 5446 | <!-- <span class="world_entry_form_position_value"></span> --> | 5447 | <!-- <span class="world_entry_form_position_value"></span> --> |
| 5447 | <select data-i18n="[title]WI Entry Status:🔵 Constant🟢 Normal🔗 Vectorized❌ Disabled" title="WI Entry Status: 🔵 Constant 🟢 Normal 🔗 Vectorized ❌ Disabled" name="entryStateSelector" class="text_pole widthNatural margin0"> | 5448 | <select data-i18n="[title]WI Entry Status:🔵 Constant🟢 Normal🔗 Vectorized" title="WI Entry Status: 🔵 Constant 🟢 Normal 🔗 Vectorized" name="entryStateSelector" class="text_pole widthNatural margin0"> |
| 5448 | <option value="constant" title="Constant" data-i18n="[title]WI_Entry_Status_Constant">🔵</option> | 5449 | <option value="constant" title="Constant" data-i18n="[title]WI_Entry_Status_Constant">🔵</option> |
| 5449 | <option value="normal" title="Normal" data-i18n="[title]WI_Entry_Status_Normal">🟢</option> | 5450 | <option value="normal" title="Normal" data-i18n="[title]WI_Entry_Status_Normal">🟢</option> |
| 5450 | <option value="vectorized" title="Vectorized" data-i18n="[title]WI_Entry_Status_Vectorized">🔗</option> | 5451 | <option value="vectorized" title="Vectorized" data-i18n="[title]WI_Entry_Status_Vectorized">🔗</option> |
| @@ -105,8 +105,8 @@ | |||
| 105 | "API url": "URL-адрес API", | 105 | "API url": "URL-адрес API", |
| 106 | "PygmalionAI/aphrodite-engine": "PygmalionAI/aphrodite-engine (Режим обёртки API OpenAI)", | 106 | "PygmalionAI/aphrodite-engine": "PygmalionAI/aphrodite-engine (Режим обёртки API OpenAI)", |
| 107 | "Register a Horde account for faster queue times": "Заведите учетную запись Horde для ускорения генерации", | 107 | "Register a Horde account for faster queue times": "Заведите учетную запись Horde для ускорения генерации", |
| 108 | "Adjust context size to worker capabilities": "Уточнить размер контекста в соответствии с возможностями рабочих машин", | 108 | "Adjust context size to worker capabilities": "Подстраивать размер контекста под возможности рабочих машин", |
| 109 | "Adjust response length to worker capabilities": "Уточнить длинну ответа в соответствии с возможностями рабочих машин", | 109 | "Adjust response length to worker capabilities": "Подстраивать длину ответа под возможности рабочих машин", |
| 110 | "API key": "API-ключ", | 110 | "API key": "API-ключ", |
| 111 | "Tabby API key": "Tabby API-ключ", | 111 | "Tabby API key": "Tabby API-ключ", |
| 112 | "Get it here:": "Получить здесь:", | 112 | "Get it here:": "Получить здесь:", |
| @@ -132,9 +132,9 @@ | |||
| 132 | "Novel AI Model": "Модель NovelAI", | 132 | "Novel AI Model": "Модель NovelAI", |
| 133 | "Make sure you run it with": "Обязательно запускайте его с флагом", | 133 | "Make sure you run it with": "Обязательно запускайте его с флагом", |
| 134 | "flag": "", | 134 | "flag": "", |
| 135 | "API key (optional)": "Ключ API (опционально)", | 135 | "API key (optional)": "Ключ API (необязательно)", |
| 136 | "Server url": "URL-адрес сервера", | 136 | "Server url": "URL-адрес сервера", |
| 137 | "Custom model (optional)": "Пользовательская модель (опционально)", | 137 | "Custom model (optional)": "Пользовательская модель (необязательно)", |
| 138 | "Bypass API status check": "Обход проверки статуса API", | 138 | "Bypass API status check": "Обход проверки статуса API", |
| 139 | "Example: 127.0.0.1:5000": "Пример: http://127.0.0.1:5000", | 139 | "Example: 127.0.0.1:5000": "Пример: http://127.0.0.1:5000", |
| 140 | "Legacy API (pre-OAI, no streaming)": "Устаревший API (до OAI, без стриминга)", | 140 | "Legacy API (pre-OAI, no streaming)": "Устаревший API (до OAI, без стриминга)", |
| @@ -173,7 +173,7 @@ | |||
| 173 | "Include Names": "Добавлять имена", | 173 | "Include Names": "Добавлять имена", |
| 174 | "Force for Groups and Personas": "Также для групп и персон", | 174 | "Force for Groups and Personas": "Также для групп и персон", |
| 175 | "System Prompt": "Системный промпт", | 175 | "System Prompt": "Системный промпт", |
| 176 | "Instruct Mode Sequences": "Строки для Instruct-режима", | 176 | "Instruct Sequences": "Строки для Instruct-режима", |
| 177 | "Stop Sequence": "Стоп-строка", | 177 | "Stop Sequence": "Стоп-строка", |
| 178 | "Context Formatting": "Форматирование контекста", | 178 | "Context Formatting": "Форматирование контекста", |
| 179 | "(Saved to Context Template)": "(Сохраняется в шаблоне контекста)", | 179 | "(Saved to Context Template)": "(Сохраняется в шаблоне контекста)", |
| @@ -561,7 +561,7 @@ | |||
| 561 | "Example: [{{user}} is a 28-year-old Romanian cat girl.]": "Пример:\n [{{user}} is a 28-year-old Romanian cat girl.]", | 561 | "Example: [{{user}} is a 28-year-old Romanian cat girl.]": "Пример:\n [{{user}} is a 28-year-old Romanian cat girl.]", |
| 562 | "Toggle grid view": "Переключить вид сетки", | 562 | "Toggle grid view": "Переключить вид сетки", |
| 563 | "Add to Favorites": "Добавить в Избранное", | 563 | "Add to Favorites": "Добавить в Избранное", |
| 564 | "Advanced Definition": "Расширенное определение", | 564 | "Advanced Definition": "Расширенное описание", |
| 565 | "Character Lore": "Лор персонажа", | 565 | "Character Lore": "Лор персонажа", |
| 566 | "Export and Download": "Экспортировать и скачать", | 566 | "Export and Download": "Экспортировать и скачать", |
| 567 | "Duplicate Character": "Дублировать персонажа", | 567 | "Duplicate Character": "Дублировать персонажа", |
| @@ -737,12 +737,12 @@ | |||
| 737 | "System Prompt Prefix": "Префикс системного промпта", | 737 | "System Prompt Prefix": "Префикс системного промпта", |
| 738 | "System Prompt Suffix": "Постфикс системного промпта", | 738 | "System Prompt Suffix": "Постфикс системного промпта", |
| 739 | "Chat Messages Wrapping": "Обрамление для сообщений в чате", | 739 | "Chat Messages Wrapping": "Обрамление для сообщений в чате", |
| 740 | "User Message Prefix": "Префикс сообщения пользователя", | 740 | "User Prefix": "Префикс сообщения пользователя", |
| 741 | "User Message Suffix": "Постфикс сообщения пользователя", | 741 | "User Suffix": "Постфикс сообщения пользователя", |
| 742 | "Assistant Message Prefix": "Префикс сообщения ассистента", | 742 | "Assistant Prefix": "Префикс сообщения ассистента", |
| 743 | "Assistant Message Suffix": "Постфикс сообщения ассистента", | 743 | "Assistant Suffix": "Постфикс сообщения ассистента", |
| 744 | "System Message Prefix": "Префикс сообщения системы", | 744 | "System Prefix": "Префикс сообщения системы", |
| 745 | "System Message Suffix": "Постфикс сообщения системы", | 745 | "System Suffix": "Постфикс сообщения системы", |
| 746 | "System same as User": "Для системы то же самое, что и для пользователя", | 746 | "System same as User": "Для системы то же самое, что и для пользователя", |
| 747 | "Misc. Sequences": "Прочие строки", | 747 | "Misc. Sequences": "Прочие строки", |
| 748 | "First Assistant Prefix": "Первый префикс ассистента", | 748 | "First Assistant Prefix": "Первый префикс ассистента", |
| @@ -1704,5 +1704,48 @@ | |||
| 1704 | "chat_rename_1": "Введите новое имя чата:", | 1704 | "chat_rename_1": "Введите новое имя чата:", |
| 1705 | "chat_rename_2": "!!Не используйте имя уже существующего файла, это приведёт к ошибке!!", | 1705 | "chat_rename_2": "!!Не используйте имя уже существующего файла, это приведёт к ошибке!!", |
| 1706 | "chat_rename_3": "Будут разрушены связи между чатами-чекпоинтами.", | 1706 | "chat_rename_3": "Будут разрушены связи между чатами-чекпоинтами.", |
| 1707 | "chat_rename_4": "Расширение '.jsonl' дописывать не нужно." | 1707 | "chat_rename_4": "Расширение '.jsonl' дописывать не нужно.", |
| 1708 | "If you're connected to an API, try asking me something!": "Есть соединение с API? Напишите мне что-нибудь!", | ||
| 1709 | "Connection Profile": "Профиль соединения", | ||
| 1710 | "View connection profile details": "Посмотреть параметры профиля соединения", | ||
| 1711 | "Create a new connection profile": "Создать новый профиль соединения", | ||
| 1712 | "Update a connection profile": "Обновить профиль соединения", | ||
| 1713 | "Rename a connection profile": "Переименовать профиль соединения", | ||
| 1714 | "Reload a connection profile": "Перезагрузить профиль соединения", | ||
| 1715 | "Delete a connection profile": "Удалить профиль соединения", | ||
| 1716 | "No profile selected": "Профиль не выбран", | ||
| 1717 | "Creating a Connection Profile": "Создать профиль соединения", | ||
| 1718 | "Settings Preset": "Пресет настроек", | ||
| 1719 | "Model": "Модель", | ||
| 1720 | "Proxy Preset": "Пресет для прокси", | ||
| 1721 | "Enter a name:": "Введите название:", | ||
| 1722 | "Are you sure you want to delete the selected profile?": "Вы точно хотите удалить выбранный профиль?", | ||
| 1723 | "instruct_enabled": "Включить Instruct-режим", | ||
| 1724 | "Instruct Template": "Шаблон Instruct-режима", | ||
| 1725 | "instruct_template_activation_regex_desc": "Автоматически активировать этот шаблон в момент подключения к API или выбора модели, если название модели соответствует этому рег. выражению.", | ||
| 1726 | "instruct_bind_to_context": "При включении этой опции Шаблон контекста будет выбираться, исходя из выбранного в текущий момент Шаблона Instruct-режима, либо по вашему желанию.", | ||
| 1727 | "Master Import": "Глоб. импорт", | ||
| 1728 | "Import Advanced Formatting settings": "Импорт настроек Расширенного форматирования\nТакже принимает файлы старого формата с Шаблонами контекста и Шаблонами Instruct-режима.", | ||
| 1729 | "Master Export": "Глоб. экспорт", | ||
| 1730 | "Export Advanced Formatting settings": "Экспорт настроек Расширенного форматирования", | ||
| 1731 | "Select your current System Prompt": "Выберите текущий системный промпт", | ||
| 1732 | "Prompt Content": "Текст промпта", | ||
| 1733 | "Update current prompt": "Обновить текущий промпт", | ||
| 1734 | "Save prompt as": "Сохранить как...", | ||
| 1735 | "Import template": "Импорт шаблона", | ||
| 1736 | "Export template": "Экспорт шаблона", | ||
| 1737 | "Restore current prompt": "Восстановить текущий промпт", | ||
| 1738 | "comma delimited,no spaces between": "через запятую,без пробелов в промежутках", | ||
| 1739 | "User Message Sequences": "Строки для сообщений пользователя", | ||
| 1740 | "Assistant Message Sequences": "Строки для сообщений ассистента", | ||
| 1741 | "System Message Sequences": "Строки для сообщений системы", | ||
| 1742 | "System Prompt Sequences": "Строки для системного промпта", | ||
| 1743 | "sysprompt_enabled": "Вкл/выкл системный промпт", | ||
| 1744 | "Are you sure you want to delete this alternate greeting?": "Вы точно хотите удалить этот вариант?", | ||
| 1745 | "Any contents here will replace the default Post-History Instructions used for this character. (v2 spec: post_history_instructions)": "Содержимое этого поля заменит стандартные Инструкции после истории, применяемые для этого персонажа. (v2 spec: post_history_instructions)", | ||
| 1746 | "None (disabled)": "Нигде (откл.)", | ||
| 1747 | "Markdown Hotkeys": "Горячие клавиши для разметки", | ||
| 1748 | "markdown_hotkeys_desc": "Включить горячие клавиши для вставки символов разметки в некоторых полях ввода. См. '/help hotkeys'.", | ||
| 1749 | "Save and Update": "Сохранить и обновить", | ||
| 1750 | "Profile name:": "Название профиля:" | ||
| 1708 | } | 1751 | } |
| @@ -7877,7 +7877,7 @@ function addAlternateGreeting(template, greeting, index, getArray, popup) { | |||
| 7877 | event.preventDefault(); | 7877 | event.preventDefault(); |
| 7878 | event.stopPropagation(); | 7878 | event.stopPropagation(); |
| 7879 | 7879 | ||
| 7880 | if (confirm('Are you sure you want to delete this alternate greeting?')) { | 7880 | if (confirm(t`Are you sure you want to delete this alternate greeting?`)) { |
| 7881 | const array = getArray(); | 7881 | const array = getArray(); |
| 7882 | array.splice(index, 1); | 7882 | array.splice(index, 1); |
| 7883 | 7883 | ||
| @@ -10727,10 +10727,12 @@ jQuery(async function () { | |||
| 10727 | if ($(e.target).hasClass('text_pole')) { | 10727 | if ($(e.target).hasClass('text_pole')) { |
| 10728 | return; | 10728 | return; |
| 10729 | } | 10729 | } |
| 10730 | var icon = $(this).find('.inline-drawer-icon'); | 10730 | const drawer = $(this).closest('.inline-drawer'); |
| 10731 | const icon = drawer.find('.inline-drawer-icon'); | ||
| 10732 | const drawerContent = drawer.find('.inline-drawer-content'); | ||
| 10731 | icon.toggleClass('down up'); | 10733 | icon.toggleClass('down up'); |
| 10732 | icon.toggleClass('fa-circle-chevron-down fa-circle-chevron-up'); | 10734 | icon.toggleClass('fa-circle-chevron-down fa-circle-chevron-up'); |
| 10733 | $(this).closest('.inline-drawer').find('.inline-drawer-content').stop().slideToggle({ | 10735 | drawerContent.stop().slideToggle({ |
| 10734 | complete: () => { | 10736 | complete: () => { |
| 10735 | $(this).css('height', ''); | 10737 | $(this).css('height', ''); |
| 10736 | }, | 10738 | }, |
| @@ -10738,7 +10740,7 @@ jQuery(async function () { | |||
| 10738 | 10740 | ||
| 10739 | // Set the height of "autoSetHeight" textareas within the inline-drawer to their scroll height | 10741 | // Set the height of "autoSetHeight" textareas within the inline-drawer to their scroll height |
| 10740 | if (!CSS.supports('field-sizing', 'content')) { | 10742 | if (!CSS.supports('field-sizing', 'content')) { |
| 10741 | $(this).closest('.inline-drawer').find('.inline-drawer-content textarea.autoSetHeight').each(async function () { | 10743 | drawerContent.find('textarea.autoSetHeight').each(async function () { |
| 10742 | await resetScrollHeight($(this)); | 10744 | await resetScrollHeight($(this)); |
| 10743 | return; | 10745 | return; |
| 10744 | }); | 10746 | }); |
| @@ -8,5 +8,5 @@ | |||
| 8 | </label> | 8 | </label> |
| 9 | {{/each}} | 9 | {{/each}} |
| 10 | </div> | 10 | </div> |
| 11 | <h3>Profile name:</h3> | 11 | <h3 data-i18n="Profile name:">Profile name:</h3> |
| 12 | </div> | 12 | </div> |
| @@ -10,6 +10,7 @@ import { enumTypes, SlashCommandEnumValue } from '../../slash-commands/SlashComm | |||
| 10 | import { SlashCommandParser } from '../../slash-commands/SlashCommandParser.js'; | 10 | import { SlashCommandParser } from '../../slash-commands/SlashCommandParser.js'; |
| 11 | import { SlashCommandScope } from '../../slash-commands/SlashCommandScope.js'; | 11 | import { SlashCommandScope } from '../../slash-commands/SlashCommandScope.js'; |
| 12 | import { collapseSpaces, getUniqueName, isFalseBoolean, uuidv4 } from '../../utils.js'; | 12 | import { collapseSpaces, getUniqueName, isFalseBoolean, uuidv4 } from '../../utils.js'; |
| 13 | import { t } from '../../i18n.js'; | ||
| 13 | 14 | ||
| 14 | const MODULE_NAME = 'connection-manager'; | 15 | const MODULE_NAME = 'connection-manager'; |
| 15 | const NONE = '<None>'; | 16 | const NONE = '<None>'; |
| @@ -284,7 +285,7 @@ async function deleteConnectionProfile() { | |||
| 284 | } | 285 | } |
| 285 | 286 | ||
| 286 | const name = extension_settings.connectionManager.profiles[index].name; | 287 | const name = extension_settings.connectionManager.profiles[index].name; |
| 287 | const confirm = await Popup.show.confirm('Are you sure you want to delete the selected profile?', name); | 288 | const confirm = await Popup.show.confirm(t`Are you sure you want to delete the selected profile?`, name); |
| 288 | 289 | ||
| 289 | if (!confirm) { | 290 | if (!confirm) { |
| 290 | return; | 291 | return; |
| @@ -398,7 +399,7 @@ async function renderDetailsContent(detailsContent) { | |||
| 398 | const template = await renderExtensionTemplateAsync(MODULE_NAME, 'view', templateParams); | 399 | const template = await renderExtensionTemplateAsync(MODULE_NAME, 'view', templateParams); |
| 399 | detailsContent.innerHTML = template; | 400 | detailsContent.innerHTML = template; |
| 400 | } else { | 401 | } else { |
| 401 | detailsContent.textContent = 'No profile selected'; | 402 | detailsContent.textContent = t`No profile selected`; |
| 402 | } | 403 | } |
| 403 | } | 404 | } |
| 404 | 405 | ||
| @@ -518,7 +519,6 @@ async function renderDetailsContent(detailsContent) { | |||
| 518 | console.log('No profile selected'); | 519 | console.log('No profile selected'); |
| 519 | return; | 520 | return; |
| 520 | } | 521 | } |
| 521 | |||
| 522 | if (!Array.isArray(profile.exclude)) { | 522 | if (!Array.isArray(profile.exclude)) { |
| 523 | profile.exclude = []; | 523 | profile.exclude = []; |
| 524 | } | 524 | } |
| @@ -534,7 +534,7 @@ async function renderDetailsContent(detailsContent) { | |||
| 534 | const template = $(await renderExtensionTemplateAsync(MODULE_NAME, 'edit', { name: profile.name, settings })); | 534 | const template = $(await renderExtensionTemplateAsync(MODULE_NAME, 'edit', { name: profile.name, settings })); |
| 535 | const newName = await callGenericPopup(template, POPUP_TYPE.INPUT, profile.name, { | 535 | const newName = await callGenericPopup(template, POPUP_TYPE.INPUT, profile.name, { |
| 536 | customButtons: [{ | 536 | customButtons: [{ |
| 537 | text: 'Save and Update', | 537 | text: t`Save and Update`, |
| 538 | classes: ['popup-button-ok'], | 538 | classes: ['popup-button-ok'], |
| 539 | result: POPUP_RESULT.AFFIRMATIVE, | 539 | result: POPUP_RESULT.AFFIRMATIVE, |
| 540 | action: () => { | 540 | action: () => { |
| @@ -1,8 +1,8 @@ | |||
| 1 | <div id="WIEntryHeaderTitlesPC" class="flex-container wide100p spaceBetween justifyCenter textAlignCenter" style="padding:0 4.5em;"> | 1 | <div id="WIEntryHeaderTitlesPC" class="flex-container wide100p spaceBetween justifyCenter textAlignCenter" style="padding:0 4.5em;"> |
| 2 | <small class="flex1" data-i18n="Title/Memo">Title/Memo</small> | 2 | <small class="flex1" data-i18n="Title/Memo">Title/Memo</small> |
| 3 | <small style="width: calc(3.5em + 15px)" data-i18n="Strategy">Strategy</small> | 3 | <small style="width: calc(3.5em + 10px)" data-i18n="Strategy">Strategy</small> |
| 4 | <small style="width: calc(3.5em + 30px)" data-i18n="Position">Position</small> | 4 | <small style="width: calc(3.5em + 20px)" data-i18n="Position">Position</small> |
| 5 | <small style="width: calc(3.5em + 20px)" data-i18n="Depth">Depth</small> | 5 | <small style="width: calc(3.5em + 15px)" data-i18n="Depth">Depth</small> |
| 6 | <small style="width: calc(3.5em + 20px)" data-i18n="Order">Order</small> | 6 | <small style="width: calc(3.5em + 20px)" data-i18n="Order">Order</small> |
| 7 | <small style="width: calc(3.5em + 15px)" data-i18n="Trigger %">Trigger %</small> | 7 | <small style="width: calc(3.5em + 15px)" data-i18n="Trigger %">Trigger %</small> |
| 8 | </div> | 8 | </div> |
| @@ -2241,6 +2241,10 @@ textarea::placeholder { | |||
| 2241 | height: fit-content; | 2241 | height: fit-content; |
| 2242 | } | 2242 | } |
| 2243 | 2243 | ||
| 2244 | select.text_pole { | ||
| 2245 | padding-right: 20px; | ||
| 2246 | } | ||
| 2247 | |||
| 2244 | 2248 | ||
| 2245 | .chat_injections_list:empty { | 2249 | .chat_injections_list:empty { |
| 2246 | width: 100%; | 2250 | width: 100%; |