diff --git a/public/jsconfig.json b/public/jsconfig.json index 593c2df94..4b6d97541 100644 --- a/public/jsconfig.json +++ b/public/jsconfig.json @@ -12,7 +12,8 @@ "**/dist/**", "**/.git/**", "lib/**", - "**/*.min.js" + "**/*.min.js", + "scripts/extensions/quick-reply/lib/**" ], "typeAcquisition": { "include": [ diff --git a/public/scripts/BulkEditOverlay.js b/public/scripts/BulkEditOverlay.js index dce7e61ab..34c46543d 100644 --- a/public/scripts/BulkEditOverlay.js +++ b/public/scripts/BulkEditOverlay.js @@ -7,7 +7,6 @@ import { event_types, eventSource, getCharacters, - getPastCharacterChats, getRequestHeaders, buildAvatarList, characterToEntity, diff --git a/public/scripts/dynamic-styles.js b/public/scripts/dynamic-styles.js index dd5462501..ad9a8fbd1 100644 --- a/public/scripts/dynamic-styles.js +++ b/public/scripts/dynamic-styles.js @@ -148,7 +148,7 @@ export function initDynamicStyles() { // Start observing the head for any new added stylesheets observer.observe(document.head, { childList: true, - subtree: true + subtree: true, }); // Process all stylesheets on initial load diff --git a/public/scripts/extensions/caption/index.js b/public/scripts/extensions/caption/index.js index 04812cead..19c35fe71 100644 --- a/public/scripts/extensions/caption/index.js +++ b/public/scripts/extensions/caption/index.js @@ -1,6 +1,6 @@ import { ensureImageFormatSupported, getBase64Async, isTrueBoolean, saveBase64AsFile } from '../../utils.js'; import { getContext, getApiUrl, doExtrasFetch, extension_settings, modules, renderExtensionTemplateAsync } from '../../extensions.js'; -import { appendMediaToMessage, callPopup, eventSource, event_types, getRequestHeaders, main_api, saveChatConditional, saveSettingsDebounced, substituteParamsExtended } from '../../../script.js'; +import { appendMediaToMessage, callPopup, eventSource, event_types, getRequestHeaders, saveChatConditional, saveSettingsDebounced, substituteParamsExtended } from '../../../script.js'; import { getMessageTimeStamp } from '../../RossAscends-mods.js'; import { SECRET_KEYS, secret_state } from '../../secrets.js'; import { getMultimodalCaption } from '../shared.js'; diff --git a/public/scripts/extensions/stable-diffusion/index.js b/public/scripts/extensions/stable-diffusion/index.js index d32874b5c..af8b29ea8 100644 --- a/public/scripts/extensions/stable-diffusion/index.js +++ b/public/scripts/extensions/stable-diffusion/index.js @@ -1,8 +1,6 @@ import { saveSettingsDebounced, systemUserName, - hideSwipeButtons, - showSwipeButtons, getRequestHeaders, event_types, eventSource, @@ -2210,7 +2208,7 @@ function processReply(str) { str = str.replaceAll('“', ''); str = str.replaceAll('\n', ', '); str = str.normalize('NFD'); - str = str.replace(/[^a-zA-Z0-9\.,:_(){}<>[\]\-']+/g, ' '); + str = str.replace(/[^a-zA-Z0-9.,:_(){}<>[\]\-']+/g, ' '); str = str.replace(/\s+/g, ' '); // Collapse multiple whitespaces into one str = str.trim(); diff --git a/public/scripts/login.js b/public/scripts/login.js index dec6a90e9..bb5f67fbe 100644 --- a/public/scripts/login.js +++ b/public/scripts/login.js @@ -183,9 +183,9 @@ function redirectToHome() { // After a login theres no need to preserve the // noauto (if present) const urlParams = new URLSearchParams(window.location.search); - + urlParams.delete('noauto'); - + window.location.href = '/' + urlParams.toString(); } diff --git a/public/scripts/macros.js b/public/scripts/macros.js index 55bf386c0..793400f8c 100644 --- a/public/scripts/macros.js +++ b/public/scripts/macros.js @@ -464,7 +464,7 @@ export function evaluateMacros(content, env) { content = content.replace(/{{firstIncludedMessageId}}/gi, () => String(getFirstIncludedMessageId() ?? '')); content = content.replace(/{{lastSwipeId}}/gi, () => String(getLastSwipeId() ?? '')); content = content.replace(/{{currentSwipeId}}/gi, () => String(getCurrentSwipeId() ?? '')); - content = content.replace(/{{reverse\:(.+?)}}/gi, (_, str) => Array.from(str).reverse().join('')); + content = content.replace(/{{reverse:(.+?)}}/gi, (_, str) => Array.from(str).reverse().join('')); content = content.replace(/\{\{\/\/([\s\S]*?)\}\}/gm, ''); diff --git a/public/scripts/textgen-models.js b/public/scripts/textgen-models.js index df0b53482..32b288b39 100644 --- a/public/scripts/textgen-models.js +++ b/public/scripts/textgen-models.js @@ -4,7 +4,6 @@ import { textgenerationwebui_settings as textgen_settings, textgen_types } from import { tokenizers } from './tokenizers.js'; import { renderTemplateAsync } from './templates.js'; import { POPUP_TYPE, callGenericPopup } from './popup.js'; -import { PAGINATION_TEMPLATE } from './utils.js'; let mancerModels = []; let togetherModels = []; diff --git a/public/scripts/variables.js b/public/scripts/variables.js index 7fc12aa54..ce8c76578 100644 --- a/public/scripts/variables.js +++ b/public/scripts/variables.js @@ -1,6 +1,5 @@ -import { chat_metadata, getCurrentChatId, saveSettingsDebounced, sendSystemMessage, system_message_types } from '../script.js'; +import { chat_metadata, getCurrentChatId, saveSettingsDebounced } from '../script.js'; import { extension_settings, saveMetadataDebounced } from './extensions.js'; -import { callGenericPopup, POPUP_TYPE } from './popup.js'; import { executeSlashCommandsWithOptions } from './slash-commands.js'; import { SlashCommand } from './slash-commands/SlashCommand.js'; import { SlashCommandAbortController } from './slash-commands/SlashCommandAbortController.js';