作业功能

This commit is contained in:
masnn committed 2020-06-02 11:33:40 +08:00
1 parent 216a4a91e4
commit bc50913e6e
60 files changed
+1161 -197

No files matched your search

-2
View File
@@ -31,8 +31,6 @@ async function build(type) {
lang[i.split('.')[0]] = yaml.safeLoad(content);
}
const exclude = [
'partials/training_default.json',
'partials/problem_default.md',
'bsod.html',
];
const builtin = {
+1 -1
View File
@@ -25,7 +25,7 @@ const build = (dirOrObject, exclude = []) => {
}
} else templates = dirOrObject;
for (const i in templates) {
if (!exclude.includes(i)) {
if (!exclude.includes(i) && i.endsWith('.html')) {
templates[i] = templates[i]
.trim()
.replace(/ *\n */gmi, ' ')