Linter fixes
This commit is contained in:
parent
2dcdb4d14a
commit
33d8a91bf2
|
@ -264,7 +264,7 @@ export async function convertSoloToGroupChat() {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
const confirm = await Popup.show.confirm(t`Convert to group chat`, t`Are you sure you want to convert this chat to a group chat?` + `<br />` + t`This cannot be reverted.`);
|
const confirm = await Popup.show.confirm(t`Convert to group chat`, t`Are you sure you want to convert this chat to a group chat?` + '<br />' + t`This cannot be reverted.`);
|
||||||
if (!confirm) {
|
if (!confirm) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
|
@ -268,7 +268,7 @@ function getTextBeforeClickedWord(event, spanText) {
|
||||||
const text = textNode.nodeValue;
|
const text = textNode.nodeValue;
|
||||||
|
|
||||||
// Find the boundaries of the clicked word
|
// Find the boundaries of the clicked word
|
||||||
const start = text.lastIndexOf(" ", offset - 1) + 1;
|
const start = text.lastIndexOf(' ', offset - 1) + 1;
|
||||||
|
|
||||||
// Return the text before the clicked word
|
// Return the text before the clicked word
|
||||||
return text.slice(0, start);
|
return text.slice(0, start);
|
||||||
|
|
|
@ -3613,7 +3613,7 @@ async function onExportPresetClick() {
|
||||||
const fieldValues = sensitiveFields.filter(field => preset[field]).map(field => `<b>${field}</b>: <code>${preset[field]}</code>`);
|
const fieldValues = sensitiveFields.filter(field => preset[field]).map(field => `<b>${field}</b>: <code>${preset[field]}</code>`);
|
||||||
const shouldConfirm = fieldValues.length > 0;
|
const shouldConfirm = fieldValues.length > 0;
|
||||||
const textHeader = t`Your preset contains proxy and/or custom endpoint settings.`;
|
const textHeader = t`Your preset contains proxy and/or custom endpoint settings.`;
|
||||||
const textMessage = `<div>` + t`Do you want to remove these fields before exporting?` + `</div><br>${DOMPurify.sanitize(fieldValues.join('<br>'))}`;
|
const textMessage = '<div>' + t`Do you want to remove these fields before exporting?` + `</div><br>${DOMPurify.sanitize(fieldValues.join('<br>'))}`;
|
||||||
const cancelButton = { text: 'Cancel', result: POPUP_RESULT.CANCELLED, appendAtEnd: true };
|
const cancelButton = { text: 'Cancel', result: POPUP_RESULT.CANCELLED, appendAtEnd: true };
|
||||||
const popupOptions = { customButtons: [cancelButton] };
|
const popupOptions = { customButtons: [cancelButton] };
|
||||||
const popupResult = await Popup.show.confirm(textHeader, textMessage, popupOptions);
|
const popupResult = await Popup.show.confirm(textHeader, textMessage, popupOptions);
|
||||||
|
@ -4370,7 +4370,7 @@ async function onOpenrouterModelSortChange() {
|
||||||
async function onNewPresetClick() {
|
async function onNewPresetClick() {
|
||||||
const popupText = `
|
const popupText = `
|
||||||
<h3>` + t`Preset name:` + `</h3>
|
<h3>` + t`Preset name:` + `</h3>
|
||||||
<h4>` + t`Hint: Use a character/group name to bind preset to a specific chat.` + `</h4>`;
|
<h4>` + t`Hint: Use a character/group name to bind preset to a specific chat.` + '</h4>';
|
||||||
const name = await callPopup(popupText, 'input', oai_settings.preset_settings_openai);
|
const name = await callPopup(popupText, 'input', oai_settings.preset_settings_openai);
|
||||||
|
|
||||||
if (!name) {
|
if (!name) {
|
||||||
|
|
Loading…
Reference in New Issue