Skip to content

Commit

Permalink
feat(hdu): init
Browse files Browse the repository at this point in the history
  • Loading branch information
memset0 committed Jul 22, 2024
1 parent 38b936d commit 823e0c0
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "CPAssistant.js",
"version": "1.1.0",
"version": "1.1.1",
"description": "",
"main": "index.js",
"license": "GPL-3.0-only",
Expand Down
6 changes: 4 additions & 2 deletions src/app.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
import { Dict } from './utils/type';
import Module from './types/module';
import Feature from './types/feature';
import ModuleVjudge from './modules/vjudge/main';
import ModuleQOJ from './modules/qoj/main';
import ModuleCodeforces from './modules/codeforces/main';
import ModuleHDU from './modules/hdu/main';
import ModuleQOJ from './modules/qoj/main';
import ModuleVjudge from './modules/vjudge/main';

export default class App {
modules: Dict<Module>;
Expand Down Expand Up @@ -44,3 +45,4 @@ export const app = new App();
app.register(new ModuleVjudge(app));
app.register(new ModuleCodeforces(app));
app.register(new ModuleQOJ(app));
app.register(new ModuleHDU(app));
3 changes: 3 additions & 0 deletions src/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ const config: Dict<any> = {
'codeforces.com',
'codeforc.es',
],
hdu: [
'acm.hdu.edu.cn',
],
qoj: [
'qoj.ac',
'pjudge.ac',
Expand Down
12 changes: 12 additions & 0 deletions src/modules/hdu/main.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import config from '../../config'
import App from '../../app'
import Module from "../../types/module"

export default class ModuleHDU extends Module {
run() {
}

constructor(app: App) {
super(app, 'hdu', config.match.hdu)
}
}

0 comments on commit 823e0c0

Please sign in to comment.