From 4c7e51631bb3459071ec70c49500a858a4bb8ab0 Mon Sep 17 00:00:00 2001 From: undefined Date: Wed, 2 Jun 2021 11:56:43 +0800 Subject: [PATCH] core&ui: hello subjective --- packages/hydrooj/package.json | 4 ++-- packages/hydrooj/src/lib/testdataConfig.ts | 1 + .../components/subjective-question/index.jsx | 8 +++++--- packages/ui-default/package.json | 4 ++-- packages/ui-default/pages/problem_detail.page.jsx | 15 ++++++++++++++- packages/ui-default/templates/problem_detail.html | 7 +++++-- packages/utils/lib/cases.ts | 4 ++-- packages/utils/package.json | 2 +- 8 files changed, 32 insertions(+), 13 deletions(-) diff --git a/packages/hydrooj/package.json b/packages/hydrooj/package.json index de7eb445e..47a9eeba4 100644 --- a/packages/hydrooj/package.json +++ b/packages/hydrooj/package.json @@ -1,6 +1,6 @@ { "name": "hydrooj", - "version": "2.28.16", + "version": "2.28.17", "bin": "bin/hydrooj.js", "main": "dist/loader.js", "typings": "dist/loader.d.ts", @@ -12,7 +12,7 @@ }, "preferUnplugged": true, "dependencies": { - "@hydrooj/utils": "^1.0.19", + "@hydrooj/utils": "^1.0.20", "adm-zip": "^0.5.5", "ansi_up": "^5.0.1", "cac": "^6.7.3", diff --git a/packages/hydrooj/src/lib/testdataConfig.ts b/packages/hydrooj/src/lib/testdataConfig.ts index 969d231ca..4263134ad 100644 --- a/packages/hydrooj/src/lib/testdataConfig.ts +++ b/packages/hydrooj/src/lib/testdataConfig.ts @@ -34,6 +34,7 @@ export async function parseConfig(config: string | ProblemConfigFile = {}) { result.timeMax = result.timeMin = 1000; } if (cfg.langs) result.langs = cfg.langs; + console.log(result); return result; } diff --git a/packages/ui-default/components/subjective-question/index.jsx b/packages/ui-default/components/subjective-question/index.jsx index 2087a228b..fecda37f8 100644 --- a/packages/ui-default/components/subjective-question/index.jsx +++ b/packages/ui-default/components/subjective-question/index.jsx @@ -36,7 +36,7 @@ export default class SubjectiveContainer extends React.PureComponent { Textbox(args, name) { return (