日志和脚本增加文件大小展示,修改脚本管理列表排序

This commit is contained in:
whyour
2023-12-21 09:57:06 +08:00
parent 52a89a21f6
commit f8aba4b1fb
6 changed files with 78 additions and 54 deletions
+7
View File
@@ -46,6 +46,13 @@ export default (app: Router) => {
config.scriptPath,
config.scriptPath,
blacklist,
(a, b) => {
if (a.type === b.type) {
return a.title.localeCompare(b.title);
} else {
return a.type === 'directory' ? -1 : 1;
}
},
);
}
res.send({