[chore] Fix lint errors
| @@ -12,7 +12,8 @@ | ||
| 12 | 12 | "**/dist/**", |
| 13 | 13 | "**/.git/**", |
| 14 | 14 | "lib/**", |
| 15 | 15 | "**/*.min.js", |
| 16 | + "scripts/extensions/quick-reply/lib/**" | |
| 16 | 17 | ], |
| 17 | 18 | "typeAcquisition": { |
| 18 | 19 | "include": [ |
| @@ -7,7 +7,6 @@ import { | ||
| 7 | 7 | event_types, |
| 8 | 8 | eventSource, |
| 9 | 9 | getCharacters, |
| 10 | - getPastCharacterChats, | |
| 11 | 10 | getRequestHeaders, |
| 12 | 11 | buildAvatarList, |
| 13 | 12 | characterToEntity, |
| @@ -148,7 +148,7 @@ export function initDynamicStyles() { | ||
| 148 | 148 | // Start observing the head for any new added stylesheets |
| 149 | 149 | observer.observe(document.head, { |
| 150 | 150 | childList: true, |
| 151 | 151 | subtree: true, |
| 152 | 152 | }); |
| 153 | 153 | |
| 154 | 154 | // Process all stylesheets on initial load |
| @@ -1,6 +1,6 @@ | ||
| 1 | 1 | import { ensureImageFormatSupported, getBase64Async, isTrueBoolean, saveBase64AsFile } from '../../utils.js'; |
| 2 | 2 | import { getContext, getApiUrl, doExtrasFetch, extension_settings, modules, renderExtensionTemplateAsync } from '../../extensions.js'; |
| 3 | 3 | import { appendMediaToMessage, callPopup, eventSource, event_types, getRequestHeaders, main_api, saveChatConditional, saveSettingsDebounced, substituteParamsExtended } from '../../../script.js'; |
| 4 | 4 | import { getMessageTimeStamp } from '../../RossAscends-mods.js'; |
| 5 | 5 | import { SECRET_KEYS, secret_state } from '../../secrets.js'; |
| 6 | 6 | import { getMultimodalCaption } from '../shared.js'; |
| @@ -1,8 +1,6 @@ | ||
| 1 | 1 | import { |
| 2 | 2 | saveSettingsDebounced, |
| 3 | 3 | systemUserName, |
| 4 | - hideSwipeButtons, | |
| 5 | - showSwipeButtons, | |
| 6 | 4 | getRequestHeaders, |
| 7 | 5 | event_types, |
| 8 | 6 | eventSource, |
| @@ -2210,7 +2208,7 @@ function processReply(str) { | ||
| 2210 | 2208 | str = str.replaceAll('“', ''); |
| 2211 | 2209 | str = str.replaceAll('\n', ', '); |
| 2212 | 2210 | str = str.normalize('NFD'); |
| 2213 | 2211 | str = str.replace(/[^a-zA-Z0-9\.,:_(){}<>[\]\-']+/g, ' '); |
| 2214 | 2212 | str = str.replace(/\s+/g, ' '); // Collapse multiple whitespaces into one |
| 2215 | 2213 | str = str.trim(); |
| 2216 | 2214 | |
| @@ -464,7 +464,7 @@ export function evaluateMacros(content, env) { | ||
| 464 | 464 | content = content.replace(/{{firstIncludedMessageId}}/gi, () => String(getFirstIncludedMessageId() ?? '')); |
| 465 | 465 | content = content.replace(/{{lastSwipeId}}/gi, () => String(getLastSwipeId() ?? '')); |
| 466 | 466 | content = content.replace(/{{currentSwipeId}}/gi, () => String(getCurrentSwipeId() ?? '')); |
| 467 | 467 | content = content.replace(/{{reverse\:(.+?)}}/gi, (_, str) => Array.from(str).reverse().join('')); |
| 468 | 468 | |
| 469 | 469 | content = content.replace(/\{\{\/\/([\s\S]*?)\}\}/gm, ''); |
| 470 | 470 | |
| @@ -4,7 +4,6 @@ import { textgenerationwebui_settings as textgen_settings, textgen_types } from | ||
| 4 | 4 | import { tokenizers } from './tokenizers.js'; |
| 5 | 5 | import { renderTemplateAsync } from './templates.js'; |
| 6 | 6 | import { POPUP_TYPE, callGenericPopup } from './popup.js'; |
| 7 | -import { PAGINATION_TEMPLATE } from './utils.js'; | |
| 8 | 7 | |
| 9 | 8 | let mancerModels = []; |
| 10 | 9 | let togetherModels = []; |
| @@ -1,6 +1,5 @@ | ||
| 1 | 1 | import { chat_metadata, getCurrentChatId, saveSettingsDebounced, sendSystemMessage, system_message_types } from '../script.js'; |
| 2 | 2 | import { extension_settings, saveMetadataDebounced } from './extensions.js'; |
| 3 | -import { callGenericPopup, POPUP_TYPE } from './popup.js'; | |
| 4 | 3 | import { executeSlashCommandsWithOptions } from './slash-commands.js'; |
| 5 | 4 | import { SlashCommand } from './slash-commands/SlashCommand.js'; |
| 6 | 5 | import { SlashCommandAbortController } from './slash-commands/SlashCommandAbortController.js'; |