core: add server-loader (#816)

This commit is contained in:
undefined authored and GitHub committed 2024-06-03 19:29:41 +08:00
1 parent 3302480348
commit 97720efb65
57 files changed
+1328 -1131

No files matched your search

+2 -1
View File
@@ -290,7 +290,7 @@ SystemSetting(
// eslint-disable-next-line import/no-mutable-exports
export const langs: Record<string, LangConfig> = {};
declare module '../context' {
declare module 'cordis' {
interface Context {
setting: SettingService;
}
@@ -319,6 +319,7 @@ export class SettingService extends Service {
}
export async function apply(ctx: Context) {
ctx.provide('setting', undefined, true);
ctx.plugin(SettingService);
logger.info('Ensuring settings');
const system = global.Hydro.model.system;