refactor: 重構後端代碼, 換用 Deno

This commit is contained in:
CrescentLeaf
2025-06-15 00:22:53 +08:00
parent 6c225b7bc5
commit d65ead11e1
29 changed files with 362 additions and 15645 deletions

13
server/config.ts Normal file
View File

@@ -0,0 +1,13 @@
import io from './lib/io.js'
export default class Config {
static ensureAllDirsAreCreated() {
for (const key of Object.keys(Config.dirs)) {
io.mkdirs(Config.dirs[key])
}
}
static BASE_DIR = 'whitesilk'
static dirs : { [key: string]: string } = {
WEB_PAGE_DIR: this.BASE_DIR + '/_webpage'
}
}