core: use common plugin-api interface

This commit is contained in:
undefined committed 2022-09-30 19:02:40 +08:00
1 parent c61c875bee
commit 70a96aecac
54 files changed
+387 -566

No files matched your search

+3 -4
View File
@@ -1,9 +1,8 @@
import * as system from 'hydrooj/src/model/system';
import { UiContextBase } from 'hydrooj/src/service/layers/base';
import { SystemModel, UiContextBase } from 'hydrooj';
declare module 'hydrooj/src/service/layers/base' {
declare module 'hydrooj' {
interface UiContextBase {
onlyofficeApi?: string;
}
}
UiContextBase.onlyofficeApi = system.get('onlyoffice.api');
UiContextBase.onlyofficeApi = SystemModel.get('onlyoffice.api');