mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
- fixed display of ooba and novel settings
- made server respond with BGs in filename alphabetical order - removing default BGs for renaming (will replace manually) - CSS: transparent grey border to chat and form_send for visibility on dark BGs - CSS: sheld is now centered with 'absolute' - CSS: top-settings are now same width same as chat on PC
This commit is contained in:
@@ -956,9 +956,11 @@ function getCharacterFile(directories, response, i) { //old need del
|
||||
}
|
||||
}
|
||||
function getImages(path) {
|
||||
return fs.readdirSync(path).sort(function (a, b) {
|
||||
return new Date(fs.statSync(path + '/' + a).mtime) - new Date(fs.statSync(path + '/' + b).mtime);
|
||||
}).reverse();
|
||||
return fs.readdirSync(path).sort(Intl.Collator().compare);
|
||||
|
||||
/* return fs.readdirSync(path).sort(function (a, b) {
|
||||
return new Date(fs.statSync(path + '/' + a).mtime) - new Date(fs.statSync(path + '/' + b).mtime);
|
||||
}).reverse(); */
|
||||
}
|
||||
function getKoboldSettingFiles(path) {
|
||||
return fs.readdirSync(path).sort(function (a, b) {
|
||||
|
Reference in New Issue
Block a user