[chore] Fix lint errors

93137e3e2abb139d80123fd769b988faa7817102

Cohee <18619528+Cohee1207@users.noreply.github.com>

9 files changed, +7 -11Showing whitespace changes
public/jsconfig.json+2 -1
@@ -12,7 +12,8 @@
1212 "**/dist/**",
1313 "**/.git/**",
1414 "lib/**",
1515 "**/*.min.js",
16+ "scripts/extensions/quick-reply/lib/**"
1617 ],
1718 "typeAcquisition": {
1819 "include": [
public/scripts/BulkEditOverlay.js+0 -1
@@ -7,7 +7,6 @@ import {
77 event_types,
88 eventSource,
99 getCharacters,
10- getPastCharacterChats,
1110 getRequestHeaders,
1211 buildAvatarList,
1312 characterToEntity,
public/scripts/dynamic-styles.js+1 -1
@@ -148,7 +148,7 @@ export function initDynamicStyles() {
148148 // Start observing the head for any new added stylesheets
149149 observer.observe(document.head, {
150150 childList: true,
151151 subtree: true,
152152 });
153153
154154 // Process all stylesheets on initial load
public/scripts/extensions/caption/index.js+1 -1
@@ -1,6 +1,6 @@
11import { ensureImageFormatSupported, getBase64Async, isTrueBoolean, saveBase64AsFile } from '../../utils.js';
22import { getContext, getApiUrl, doExtrasFetch, extension_settings, modules, renderExtensionTemplateAsync } from '../../extensions.js';
33import { appendMediaToMessage, callPopup, eventSource, event_types, getRequestHeaders, main_api, saveChatConditional, saveSettingsDebounced, substituteParamsExtended } from '../../../script.js';
44import { getMessageTimeStamp } from '../../RossAscends-mods.js';
55import { SECRET_KEYS, secret_state } from '../../secrets.js';
66import { getMultimodalCaption } from '../shared.js';
public/scripts/extensions/stable-diffusion/index.js+1 -3
@@ -1,8 +1,6 @@
11import {
22 saveSettingsDebounced,
33 systemUserName,
4- hideSwipeButtons,
5- showSwipeButtons,
64 getRequestHeaders,
75 event_types,
86 eventSource,
@@ -2210,7 +2208,7 @@ function processReply(str) {
22102208 str = str.replaceAll('“', '');
22112209 str = str.replaceAll('\n', ', ');
22122210 str = str.normalize('NFD');
22132211 str = str.replace(/[^a-zA-Z0-9\.,:_(){}<>[\]\-']+/g, ' ');
22142212 str = str.replace(/\s+/g, ' '); // Collapse multiple whitespaces into one
22152213 str = str.trim();
22162214
public/scripts/login.js+0 -0
public/scripts/macros.js+1 -1
@@ -464,7 +464,7 @@ export function evaluateMacros(content, env) {
464464 content = content.replace(/{{firstIncludedMessageId}}/gi, () => String(getFirstIncludedMessageId() ?? ''));
465465 content = content.replace(/{{lastSwipeId}}/gi, () => String(getLastSwipeId() ?? ''));
466466 content = content.replace(/{{currentSwipeId}}/gi, () => String(getCurrentSwipeId() ?? ''));
467467 content = content.replace(/{{reverse\:(.+?)}}/gi, (_, str) => Array.from(str).reverse().join(''));
468468
469469 content = content.replace(/\{\{\/\/([\s\S]*?)\}\}/gm, '');
470470
public/scripts/textgen-models.js+0 -1
@@ -4,7 +4,6 @@ import { textgenerationwebui_settings as textgen_settings, textgen_types } from
44import { tokenizers } from './tokenizers.js';
55import { renderTemplateAsync } from './templates.js';
66import { POPUP_TYPE, callGenericPopup } from './popup.js';
7-import { PAGINATION_TEMPLATE } from './utils.js';
87
98let mancerModels = [];
109let togetherModels = [];
public/scripts/variables.js+1 -2
@@ -1,6 +1,5 @@
11import { chat_metadata, getCurrentChatId, saveSettingsDebounced, sendSystemMessage, system_message_types } from '../script.js';
22import { extension_settings, saveMetadataDebounced } from './extensions.js';
3-import { callGenericPopup, POPUP_TYPE } from './popup.js';
43import { executeSlashCommandsWithOptions } from './slash-commands.js';
54import { SlashCommand } from './slash-commands/SlashCommand.js';
65import { SlashCommandAbortController } from './slash-commands/SlashCommandAbortController.js';