- 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:
RossAsscends
2023-03-21 17:42:42 +09:00
parent ea43b8c441
commit 2c9805858a
15 changed files with 506 additions and 448 deletions

View File

@@ -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) {