mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-17 09:36:08 +08:00
bump version
This commit is contained in:
8 files changed
+22
-14
No files matched your search
@@ -111,6 +111,16 @@ Hydro 用户群:1085853538
|
||||
<details>
|
||||
<summary><h2>更新日志(点击展开)</h2></summary>
|
||||
|
||||
## Hydro 4.17.4 / UI 4.55.3
|
||||
|
||||
- core: 修复 markdown 模式下使用 HTML 导入时解析异常
|
||||
- core: 允许复制引用的题目
|
||||
- core&judge: 添加 trusted 选项
|
||||
- core: 修复导入用户 metadata 解析
|
||||
- core: 修改 pid 校验格式
|
||||
- ui: 禁用自动播放
|
||||
- core: 题目列表性能优化
|
||||
|
||||
## Hydro 4.17.3 / UI 4.55.2
|
||||
|
||||
- core: 限制显示名长度
|
||||
@@ -124,7 +134,6 @@ Hydro 用户群:1085853538
|
||||
- core: 支持 StorageModel.copy 和 StorageModel.exists
|
||||
- core: 弃用 ProblemModel.list
|
||||
- core: 添加 user/import/parse 和 user/import/create 钩子
|
||||
- core: 优化题目列表查询性能
|
||||
|
||||
## Hydro 4.16.0 / UI 4.54.3
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@hydrooj/framework",
|
||||
"version": "0.1.2",
|
||||
"version": "0.1.3",
|
||||
"main": "index.ts",
|
||||
"license": "MIT",
|
||||
"peerDependencies": {
|
||||
|
||||
@@ -141,8 +141,8 @@ export class HandlerCommon {
|
||||
url(name: string, ...kwargsList: Record<string, any>[]) {
|
||||
if (name === '#') return '#';
|
||||
let res = '#';
|
||||
const args: any = {};
|
||||
const query: any = {};
|
||||
const args: any = Object.create(null);
|
||||
const query: any = Object.create(null);
|
||||
for (const kwargs of kwargsList) {
|
||||
for (const key in kwargs) {
|
||||
args[key] = kwargs[key].toString().replace(/\//g, '%2F');
|
||||
@@ -325,14 +325,14 @@ export interface WebServiceConfig {
|
||||
}
|
||||
|
||||
export class WebService extends Service {
|
||||
private registry: Record<string, any> = {};
|
||||
private registry: Record<string, any> = Object.create(null);
|
||||
private registrationCount = Counter();
|
||||
private serverLayers = [];
|
||||
private handlerLayers = [];
|
||||
private wsLayers = [];
|
||||
private captureAllRoutes = {};
|
||||
private captureAllRoutes = Object.create(null);
|
||||
|
||||
renderers: Record<string, RendererFunction> = {};
|
||||
renderers: Record<string, RendererFunction> = Object.create(null);
|
||||
server = koa;
|
||||
router = router;
|
||||
HandlerCommon = HandlerCommon;
|
||||
|
||||
@@ -20,7 +20,7 @@ import { compilerText, md5 } from './utils';
|
||||
const logger = new Logger('judge');
|
||||
|
||||
export class JudgeTask {
|
||||
stat: Record<string, Date>;
|
||||
stat: Record<string, Date> = Object.create(null);
|
||||
source: string;
|
||||
rid: string;
|
||||
lang: string;
|
||||
@@ -38,7 +38,6 @@ export class JudgeTask {
|
||||
callbackCache?: TestCase[];
|
||||
|
||||
constructor(public session: Session, public request: JudgeRequest) {
|
||||
this.stat = {};
|
||||
this.stat.receive = new Date();
|
||||
logger.debug('%o', request);
|
||||
}
|
||||
@@ -112,7 +111,7 @@ export class JudgeTask {
|
||||
next: this.next,
|
||||
isSelfSubmission: this.meta.problemOwner === this.request.uid,
|
||||
key: md5(`${this.source}/${getConfig('secret')}`),
|
||||
trusted: this.request.trusted,
|
||||
trusted: this.request.trusted && this.session.config.trusted,
|
||||
lang: this.lang,
|
||||
langConfig: (this.request.type === 'generate' || ['objective', 'submit_answer'].includes(this.request.config.type))
|
||||
? null : this.session.getLang(this.lang),
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "hydrooj",
|
||||
"version": "4.17.3",
|
||||
"version": "4.17.4",
|
||||
"bin": "bin/hydrooj.js",
|
||||
"main": "src/plugin-api",
|
||||
"module": "src/plugin-api",
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@hydrooj/ui-default",
|
||||
"version": "4.55.2",
|
||||
"version": "4.55.3",
|
||||
"author": "undefined <i@undefined.moe>",
|
||||
"license": "AGPL-3.0",
|
||||
"main": "index.ts",
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@hydrooj/utils",
|
||||
"version": "1.4.29",
|
||||
"version": "1.4.30",
|
||||
"description": "hydrooj utils",
|
||||
"main": "lib/utils.ts",
|
||||
"repository": "https://github.com/hydro-dev/Hydro.git",
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@hydrooj/vjudge",
|
||||
"version": "1.9.13",
|
||||
"version": "1.9.14",
|
||||
"description": "Submit problems to remote oj",
|
||||
"main": "./src/index.ts",
|
||||
"repository": "https://github.com/hydro-dev/Hydro.git",
|
||||
|
||||
Reference in new issue
Block a user