[chore] Fix lint errors

93137e3e2abb139d80123fd769b988faa7817102

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

9 files changed, +9 -13Ignore whitespace
public/jsconfig.json+2 -1
@@ -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": [
public/scripts/BulkEditOverlay.js+0 -1
@@ -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,
public/scripts/dynamic-styles.js+1 -1
@@ -148,7 +148,7 @@ export function initDynamicStyles() {
148 // Start observing the head for any new added stylesheets148 // 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: true151 subtree: true,
152 });152 });
153153
154 // Process all stylesheets on initial load154 // Process all stylesheets on initial load
public/scripts/extensions/caption/index.js+1 -1
@@ -1,6 +1,6 @@
1import { ensureImageFormatSupported, getBase64Async, isTrueBoolean, saveBase64AsFile } from '../../utils.js';1import { ensureImageFormatSupported, getBase64Async, isTrueBoolean, saveBase64AsFile } from '../../utils.js';
2import { getContext, getApiUrl, doExtrasFetch, extension_settings, modules, renderExtensionTemplateAsync } from '../../extensions.js';2import { getContext, getApiUrl, doExtrasFetch, extension_settings, modules, renderExtensionTemplateAsync } from '../../extensions.js';
3import { appendMediaToMessage, callPopup, eventSource, event_types, getRequestHeaders, main_api, saveChatConditional, saveSettingsDebounced, substituteParamsExtended } from '../../../script.js';3import { appendMediaToMessage, callPopup, eventSource, event_types, getRequestHeaders, saveChatConditional, saveSettingsDebounced, substituteParamsExtended } from '../../../script.js';
4import { getMessageTimeStamp } from '../../RossAscends-mods.js';4import { getMessageTimeStamp } from '../../RossAscends-mods.js';
5import { SECRET_KEYS, secret_state } from '../../secrets.js';5import { SECRET_KEYS, secret_state } from '../../secrets.js';
6import { getMultimodalCaption } from '../shared.js';6import { getMultimodalCaption } from '../shared.js';
public/scripts/extensions/stable-diffusion/index.js+1 -3
@@ -1,8 +1,6 @@
1import {1import {
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 one2212 str = str.replace(/\s+/g, ' '); // Collapse multiple whitespaces into one
2215 str = str.trim();2213 str = str.trim();
22162214
public/scripts/login.js+2 -2
@@ -183,9 +183,9 @@ function redirectToHome() {
183 // After a login theres no need to preserve the183 // After a login theres no need to preserve the
184 // noauto (if present)184 // noauto (if present)
185 const urlParams = new URLSearchParams(window.location.search);185 const urlParams = new URLSearchParams(window.location.search);
186 186
187 urlParams.delete('noauto');187 urlParams.delete('noauto');
188 188
189 window.location.href = '/' + urlParams.toString();189 window.location.href = '/' + urlParams.toString();
190}190}
191191
public/scripts/macros.js+1 -1
@@ -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(''));
468468
469 content = content.replace(/\{\{\/\/([\s\S]*?)\}\}/gm, '');469 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
4import { tokenizers } from './tokenizers.js';4import { tokenizers } from './tokenizers.js';
5import { renderTemplateAsync } from './templates.js';5import { renderTemplateAsync } from './templates.js';
6import { POPUP_TYPE, callGenericPopup } from './popup.js';6import { POPUP_TYPE, callGenericPopup } from './popup.js';
7import { PAGINATION_TEMPLATE } from './utils.js';
87
9let mancerModels = [];8let mancerModels = [];
10let togetherModels = [];9let togetherModels = [];
public/scripts/variables.js+1 -2
@@ -1,6 +1,5 @@
1import { chat_metadata, getCurrentChatId, saveSettingsDebounced, sendSystemMessage, system_message_types } from '../script.js';1import { chat_metadata, getCurrentChatId, saveSettingsDebounced } from '../script.js';
2import { extension_settings, saveMetadataDebounced } from './extensions.js';2import { extension_settings, saveMetadataDebounced } from './extensions.js';
3import { callGenericPopup, POPUP_TYPE } from './popup.js';
4import { executeSlashCommandsWithOptions } from './slash-commands.js';3import { executeSlashCommandsWithOptions } from './slash-commands.js';
5import { SlashCommand } from './slash-commands/SlashCommand.js';4import { SlashCommand } from './slash-commands/SlashCommand.js';
6import { SlashCommandAbortController } from './slash-commands/SlashCommandAbortController.js';5import { SlashCommandAbortController } from './slash-commands/SlashCommandAbortController.js';