mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
Merge pull request #3953 from Samueras/release
This commit is contained in:
@ -9151,7 +9151,7 @@ function formatSwipeCounter(current, total) {
|
|||||||
* @param {string} [params.source] The source of the swipe event.
|
* @param {string} [params.source] The source of the swipe event.
|
||||||
* @param {boolean} [params.repeated] Is the swipe event repeated.
|
* @param {boolean} [params.repeated] Is the swipe event repeated.
|
||||||
*/
|
*/
|
||||||
function swipe_left(_event, { source, repeated } = {}) {
|
export function swipe_left(_event, { source, repeated } = {}) {
|
||||||
if (chat.length - 1 === Number(this_edit_mes_id)) {
|
if (chat.length - 1 === Number(this_edit_mes_id)) {
|
||||||
closeMessageEditor();
|
closeMessageEditor();
|
||||||
}
|
}
|
||||||
@ -9299,7 +9299,7 @@ function swipe_left(_event, { source, repeated } = {}) {
|
|||||||
* @param {string} [params.source] The source of the swipe event.
|
* @param {string} [params.source] The source of the swipe event.
|
||||||
* @param {boolean} [params.repeated] Is the swipe event repeated.
|
* @param {boolean} [params.repeated] Is the swipe event repeated.
|
||||||
*/
|
*/
|
||||||
function swipe_right(_event, { source, repeated } = {}) {
|
export function swipe_right(_event, { source, repeated } = {}) {
|
||||||
if (chat.length - 1 === Number(this_edit_mes_id)) {
|
if (chat.length - 1 === Number(this_edit_mes_id)) {
|
||||||
closeMessageEditor();
|
closeMessageEditor();
|
||||||
}
|
}
|
||||||
|
@ -50,6 +50,8 @@ import {
|
|||||||
unshallowCharacter,
|
unshallowCharacter,
|
||||||
deleteLastMessage,
|
deleteLastMessage,
|
||||||
getCharacterCardFields,
|
getCharacterCardFields,
|
||||||
|
swipe_right,
|
||||||
|
swipe_left,
|
||||||
} from '../script.js';
|
} from '../script.js';
|
||||||
import {
|
import {
|
||||||
extension_settings,
|
extension_settings,
|
||||||
@ -196,6 +198,7 @@ export function getContext() {
|
|||||||
humanizedDateTime,
|
humanizedDateTime,
|
||||||
updateMessageBlock,
|
updateMessageBlock,
|
||||||
appendMediaToMessage,
|
appendMediaToMessage,
|
||||||
|
swipe: { left: swipe_left, right: swipe_right },
|
||||||
variables: {
|
variables: {
|
||||||
local: {
|
local: {
|
||||||
get: getLocalVariable,
|
get: getLocalVariable,
|
||||||
|
Reference in New Issue
Block a user