mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
fix some linting
This commit is contained in:
@ -1047,7 +1047,7 @@ export function getImageSizeFromDataURL(dataUrl) {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Gets the filename of the character avatar without extension
|
* Gets the filename of the character avatar without extension
|
||||||
* @param {number?} [chid=null] - Character ID. If not provided, uses the current character ID
|
* @param {string|number?} [chid=null] - Character ID. If not provided, uses the current character ID
|
||||||
* @param {object} [options={}] - Options arguments
|
* @param {object} [options={}] - Options arguments
|
||||||
* @param {string?} [options.manualAvatarKey=null] - Manually take the following avatar key, instead of using the chid to determine the name
|
* @param {string?} [options.manualAvatarKey=null] - Manually take the following avatar key, instead of using the chid to determine the name
|
||||||
* @returns {string?} The filename of the character avatar without extension, or null if the character ID is invalid
|
* @returns {string?} The filename of the character avatar without extension, or null if the character ID is invalid
|
||||||
|
@ -966,7 +966,7 @@ function registerWorldInfoSlashCommands() {
|
|||||||
/**
|
/**
|
||||||
* Gets the name of the character-bound lorebook.
|
* Gets the name of the character-bound lorebook.
|
||||||
* @param {import('./slash-commands/SlashCommand.js').NamedArguments} args Named arguments
|
* @param {import('./slash-commands/SlashCommand.js').NamedArguments} args Named arguments
|
||||||
* @param {import('./slash-commands/SlashCommand.js').UnnamedArguments} name Character name
|
* @param {string} name Character name
|
||||||
* @returns {string} The name of the character-bound lorebook, a JSON string of the character's lorebooks, or an empty string
|
* @returns {string} The name of the character-bound lorebook, a JSON string of the character's lorebooks, or an empty string
|
||||||
*/
|
*/
|
||||||
function getCharBookCallback({ type }, name) {
|
function getCharBookCallback({ type }, name) {
|
||||||
@ -3443,7 +3443,7 @@ function createEntryInputAutocomplete(input, callback, { allowMultiple = false }
|
|||||||
});
|
});
|
||||||
|
|
||||||
$(input).on('focus click', function () {
|
$(input).on('focus click', function () {
|
||||||
$(input).autocomplete('search', allowMultiple ? String($(input).val()).split(/,\s*/).pop() : $(input).val());
|
$(input).autocomplete('search', allowMultiple ? String($(input).val()).split(/,\s*/).pop() : String($(input).val()));
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -5118,7 +5118,7 @@ export function openWorldInfoEditor(worldName) {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Assigns a lorebook to the current chat.
|
* Assigns a lorebook to the current chat.
|
||||||
* @param {PointerEvent} event Pointer event
|
* @param {JQuery.ClickEvent<Document, undefined, any, any>} event Pointer event
|
||||||
* @returns {Promise<void>}
|
* @returns {Promise<void>}
|
||||||
*/
|
*/
|
||||||
export async function assignLorebookToChat(event) {
|
export async function assignLorebookToChat(event) {
|
||||||
@ -5157,7 +5157,7 @@ export async function assignLorebookToChat(event) {
|
|||||||
saveMetadata();
|
saveMetadata();
|
||||||
});
|
});
|
||||||
|
|
||||||
return callGenericPopup(template, POPUP_TYPE.TEXT);
|
await callGenericPopup(template, POPUP_TYPE.TEXT);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Reference in New Issue
Block a user