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