mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
- fixed swiping/generation post merge
- optimized char edit/create textarea listeners - optimized listeners for left side options popup -
This commit is contained in:
1577
public/script.js
1577
public/script.js
File diff suppressed because it is too large
Load Diff
@ -2,13 +2,6 @@ import { encode } from "../scripts/gpt-2-3-tokenizer/mod.js";
|
|||||||
|
|
||||||
import {
|
import {
|
||||||
Generate,
|
Generate,
|
||||||
/* getSettings,
|
|
||||||
saveSettings,
|
|
||||||
printMessages,
|
|
||||||
clearChat,
|
|
||||||
getChat,
|
|
||||||
chat
|
|
||||||
settings, */
|
|
||||||
this_chid,
|
this_chid,
|
||||||
characters,
|
characters,
|
||||||
online_status,
|
online_status,
|
||||||
@ -60,7 +53,6 @@ observer.observe(document.documentElement, observerConfig);
|
|||||||
//Mostly I wanted this to be for file names, but couldn't figure out exactly where the filename save code was as everything seemed to be connected.
|
//Mostly I wanted this to be for file names, but couldn't figure out exactly where the filename save code was as everything seemed to be connected.
|
||||||
//Does not break old characters/chats, as the code just uses whatever timestamp exists in the chat.
|
//Does not break old characters/chats, as the code just uses whatever timestamp exists in the chat.
|
||||||
//New chats made with characters will use this new formatting.
|
//New chats made with characters will use this new formatting.
|
||||||
//Useable variable is (( HumanizedDateTime ))
|
|
||||||
export function humanizedDateTime() {
|
export function humanizedDateTime() {
|
||||||
let baseDate = new Date(Date.now());
|
let baseDate = new Date(Date.now());
|
||||||
let humanYear = baseDate.getFullYear();
|
let humanYear = baseDate.getFullYear();
|
||||||
|
Reference in New Issue
Block a user