mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 09:46:28 +08:00
core: use common plugin-api interface
This commit is contained in:
1 parent
c61c875bee
commit
70a96aecac
54 files changed
+387
-566
No files matched your search
@@ -1,12 +1,11 @@
|
||||
import { md5, sha1 } from '@hydrooj/utils/lib/utils';
|
||||
import { PluginContext } from 'hydrooj';
|
||||
import { Context, md5, sha1 } from 'hydrooj';
|
||||
import { apply as hustoj } from './scripts/hustoj';
|
||||
import { apply as syzoj } from './scripts/syzoj';
|
||||
import { apply as vijos } from './scripts/vijos';
|
||||
|
||||
const RE_MD5 = /^[\da-f]{32}$/;
|
||||
|
||||
export function apply(ctx: PluginContext) {
|
||||
export function apply(ctx: Context) {
|
||||
hustoj(ctx);
|
||||
vijos(ctx);
|
||||
syzoj(ctx);
|
||||
|
||||
Reference in new issue
Block a user