feat(webui): theme

This commit is contained in:
bietiaop
2025-02-08 21:01:29 +08:00
parent 8a8aa8f62c
commit 84318acb18
11 changed files with 532 additions and 29 deletions

View File

@@ -73,9 +73,9 @@ export async function InitWebUi(logger: LogWrapper, pathWrapper: NapCatPathWrapp
// 如果是webui字体文件挂载字体文件
app.use('/webui/fonts/AaCute.woff', async (_req, res, next) => {
const isFontExist = await WebUiConfigWrapper.CheckWebUIFontExist();
const isFontExist = await WebUiConfig.CheckWebUIFontExist();
if (isFontExist) {
res.sendFile(WebUiConfigWrapper.GetWebUIFontPath());
res.sendFile(WebUiConfig.GetWebUIFontPath());
} else {
next();
}