mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
Animate regen (again) + placeholder for group regen
This commit is contained in:
@@ -28,6 +28,7 @@ import {
|
|||||||
printGroups,
|
printGroups,
|
||||||
resetSelectedGroup,
|
resetSelectedGroup,
|
||||||
select_group_chats,
|
select_group_chats,
|
||||||
|
regenerateGroup,
|
||||||
} from "./scripts/group-chats.js";
|
} from "./scripts/group-chats.js";
|
||||||
|
|
||||||
import {
|
import {
|
||||||
@@ -997,10 +998,9 @@ async function Generate(type, automatic_trigger) {//encode("dsfs").length
|
|||||||
} else {
|
} else {
|
||||||
chat.length = chat.length - 1;
|
chat.length = chat.length - 1;
|
||||||
count_view_mes -= 1;
|
count_view_mes -= 1;
|
||||||
//$('#chat').children().last().css({'transition':'all 0.5s ease-in-out'});
|
$('#chat').children().last().hide(500, function() {
|
||||||
//$('#chat').children().last().css({'transform':'translateX(100vh) scale(0.1,0.1)'});
|
$(this).remove();
|
||||||
//$('#chat').children().last().css({'opacity':'0'});
|
});
|
||||||
$('#chat').children().last().remove();
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -2725,6 +2725,7 @@ $(document).ready(function () {
|
|||||||
} else {
|
} else {
|
||||||
hideSwipeButtons();
|
hideSwipeButtons();
|
||||||
}
|
}
|
||||||
|
saveSettingsDebounced();
|
||||||
});
|
});
|
||||||
|
|
||||||
///// SWIPE BUTTON CLICKS ///////
|
///// SWIPE BUTTON CLICKS ///////
|
||||||
@@ -3617,7 +3618,13 @@ $(document).ready(function () {
|
|||||||
if (is_send_press == false) {
|
if (is_send_press == false) {
|
||||||
//hideSwipeButtons();
|
//hideSwipeButtons();
|
||||||
is_send_press = true;
|
is_send_press = true;
|
||||||
Generate("regenerate");
|
|
||||||
|
if (selected_group) {
|
||||||
|
regenerateGroup();
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
Generate("regenerate");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -45,6 +45,7 @@ export {
|
|||||||
getGroupAvatar,
|
getGroupAvatar,
|
||||||
getGroups,
|
getGroups,
|
||||||
printGroups,
|
printGroups,
|
||||||
|
regenerateGroup,
|
||||||
resetSelectedGroup,
|
resetSelectedGroup,
|
||||||
select_group_chats,
|
select_group_chats,
|
||||||
}
|
}
|
||||||
@@ -70,6 +71,10 @@ async function _save(group) {
|
|||||||
|
|
||||||
|
|
||||||
// Group chats
|
// Group chats
|
||||||
|
async function regenerateGroup() {
|
||||||
|
// placeholder
|
||||||
|
}
|
||||||
|
|
||||||
async function getGroupChat(id) {
|
async function getGroupChat(id) {
|
||||||
const response = await fetch("/getgroupchat", {
|
const response = await fetch("/getgroupchat", {
|
||||||
method: "POST",
|
method: "POST",
|
||||||
|
Reference in New Issue
Block a user