bump version

This commit is contained in:
undefined committed 2024-12-15 01:04:24 +08:00
1 parent 04335f76b7
commit a27e6a98f0
6 files changed
+15 -6

No files matched your search

+8
View File
@@ -111,6 +111,14 @@ Hydro 用户群:1085853538
<details>
<summary><h2>更新日志(点击展开)</h2></summary>
## Hydro 4.18.2 / UI 4.56.2
- core: 修复提交答案题压缩包提交 (#917)
- ui: 优化 domain_user 页面性能
- core: 优化评测任务调度
- ui: 下载文件失败时自动重试
- core: Consumer: 从错误中自动恢复
## Hydro 4.18.0 / UI 4.56.0
- core&ui: ScoreboardView API
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "hydrooj",
"version": "4.18.1",
"version": "4.18.2",
"bin": "bin/hydrooj.js",
"main": "src/plugin-api",
"module": "src/plugin-api",
+3 -2
View File
@@ -603,11 +603,12 @@ export class ProblemModel {
if (options.delSource) await fs.remove(tmpdir);
}
static async export(domainId: string) {
static async export(domainId: string, pidFilter?:string) {
console.log('Exporting problems...');
const tmpdir = path.join(os.tmpdir(), 'hydro', `${Math.random()}.export`);
await fs.mkdir(tmpdir);
const pdocs = await ProblemModel.getMulti(domainId, {}, ProblemModel.PROJECTION_PUBLIC).toArray();
const pdocs = await ProblemModel.getMulti(domainId, pidFilter ? { pid: pidFilter } : {}, ProblemModel.PROJECTION_PUBLIC).toArray();
if (process.env.HYDRO_CLI) logger.info(`Exporting ${pdocs.length} problems`);
for (const pdoc of pdocs) {
if (process.env.HYDRO_CLI) logger.info(`Exporting problem ${pdoc.pid || (`P${pdoc.docId}`)} (${pdoc.title})`);
const problemPath = path.join(tmpdir, `${pdoc.docId}`);
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "@hydrooj/ui-default",
"version": "4.56.1",
"version": "4.56.2",
"author": "undefined <i@undefined.moe>",
"license": "AGPL-3.0",
"main": "index.ts",
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "@hydrooj/utils",
"version": "1.4.30",
"version": "1.4.31",
"description": "hydrooj utils",
"main": "lib/utils.ts",
"repository": "https://github.com/hydro-dev/Hydro.git",
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "@hydrooj/vjudge",
"version": "1.9.14",
"version": "1.9.15",
"description": "Submit problems to remote oj",
"main": "./src/index.ts",
"repository": "https://github.com/hydro-dev/Hydro.git",