This commit is contained in:
SillyLossy
2023-05-05 22:14:34 +03:00
4 changed files with 98 additions and 6 deletions

View File

@ -1,4 +1,4 @@
import { humanizedDateTime } from "./scripts/RossAscends-mods.js";
import { humanizedDateTime, favsToHotswap } from "./scripts/RossAscends-mods.js";
import { encode } from "../scripts/gpt-2-3-tokenizer/mod.js";
import { GPT3BrowserTokenizer } from "../scripts/gpt-3-tokenizer/gpt3-tokenizer.js";
import {
@ -734,9 +734,12 @@ function printCharacters() {
$("#rm_print_characters_block").append(template);
});
$("#rm_print_characters_block").prepend(`<hr>`);
printTags();
printGroups();
sortCharactersList();
//favsToHotswap();
}
async function getCharacters() {
@ -1355,6 +1358,8 @@ function applyFavFilter(enabled) {
}
}
class StreamingProcessor {
showStopButton(messageId) {
if (messageId == -1) {
@ -3584,6 +3589,7 @@ function updateFavButtonState(state) {
$("#fav_checkbox").val(fav_ch_checked);
$("#favorite_button").toggleClass('fav_on', fav_ch_checked);
$("#favorite_button").toggleClass('fav_off', !fav_ch_checked);
}
function callPopup(text, type, inputValue = '') {
@ -3848,8 +3854,11 @@ window["SillyTavern"].getContext = function () {
};
};
$(document).ready(function () {
//////////INPUT BAR FOCUS-KEEPING LOGIC/////////////
let S_TAFocused = false;
@ -4734,6 +4743,7 @@ $(document).ready(function () {
updateFavButtonState(!fav_ch_checked);
if (menu_type != "create") {
saveCharacterDebounced();
}
});