[chore] Fix lint errors
This commit is contained in:
parent
1c3d33c282
commit
93137e3e2a
|
@ -12,7 +12,8 @@
|
|||
"**/dist/**",
|
||||
"**/.git/**",
|
||||
"lib/**",
|
||||
"**/*.min.js"
|
||||
"**/*.min.js",
|
||||
"scripts/extensions/quick-reply/lib/**"
|
||||
],
|
||||
"typeAcquisition": {
|
||||
"include": [
|
||||
|
|
|
@ -7,7 +7,6 @@ import {
|
|||
event_types,
|
||||
eventSource,
|
||||
getCharacters,
|
||||
getPastCharacterChats,
|
||||
getRequestHeaders,
|
||||
buildAvatarList,
|
||||
characterToEntity,
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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';
|
||||
|
|
|
@ -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();
|
||||
|
||||
|
|
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
|
@ -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, '');
|
||||
|
||||
|
|
|
@ -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 = [];
|
||||
|
|
|
@ -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';
|
||||
|
|
Loading…
Reference in New Issue