mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
core: export record.pdomain by default
This commit is contained in:
1 parent
040f8a197b
commit
8852aa149b
9 files changed
+16
-16
No files matched your search
+4
-4
@@ -27,7 +27,7 @@
|
|||||||
"version": "1.0.0",
|
"version": "1.0.0",
|
||||||
"license": "AGPL-3.0-only",
|
"license": "AGPL-3.0-only",
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@shelf/jest-mongodb": "^1.2.4",
|
"@shelf/jest-mongodb": "^1.2.5",
|
||||||
"@types/cross-spawn": "^6.0.2",
|
"@types/cross-spawn": "^6.0.2",
|
||||||
"@types/jest": "^26.0.23",
|
"@types/jest": "^26.0.23",
|
||||||
"@types/node": "^15.6.1",
|
"@types/node": "^15.6.1",
|
||||||
@@ -43,13 +43,13 @@
|
|||||||
"eslint-plugin-import": "^2.23.3",
|
"eslint-plugin-import": "^2.23.3",
|
||||||
"fs-extra": "^10.0.0",
|
"fs-extra": "^10.0.0",
|
||||||
"globby": "^11.0.3",
|
"globby": "^11.0.3",
|
||||||
"jest": "^26.6.3",
|
"jest": "^27.0.1",
|
||||||
"latest-version": "^5.1.0",
|
"latest-version": "^5.1.0",
|
||||||
"mongodb": "^3.6.8",
|
"mongodb": "^3.6.9",
|
||||||
"nmls": "^3.0.0",
|
"nmls": "^3.0.0",
|
||||||
"ora": "^5.4.0",
|
"ora": "^5.4.0",
|
||||||
"semver": "^7.3.5",
|
"semver": "^7.3.5",
|
||||||
"ts-jest": "^26.5.6",
|
"ts-jest": "^27.0.1",
|
||||||
"typedoc": "^0.20.36",
|
"typedoc": "^0.20.36",
|
||||||
"typescript": "4.2.4"
|
"typescript": "4.2.4"
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -11,7 +11,7 @@
|
|||||||
"adm-zip": "^0.5.5",
|
"adm-zip": "^0.5.5",
|
||||||
"decode-html": "^2.0.0",
|
"decode-html": "^2.0.0",
|
||||||
"fs-extra": "^10.0.0",
|
"fs-extra": "^10.0.0",
|
||||||
"mongodb": "^3.6.8",
|
"mongodb": "^3.6.9",
|
||||||
"xml2js": "^0.4.23"
|
"xml2js": "^0.4.23"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"name": "@hydrooj/hydrojudge",
|
"name": "@hydrooj/hydrojudge",
|
||||||
"bin": "bin/hydrojudge.js",
|
"bin": "bin/hydrojudge.js",
|
||||||
"version": "2.7.1",
|
"version": "2.8.0",
|
||||||
"main": "package.json",
|
"main": "package.json",
|
||||||
"author": "undefined <i@undefined.moe>",
|
"author": "undefined <i@undefined.moe>",
|
||||||
"repository": "https://github.com/hydro-dev/Hydro.git",
|
"repository": "https://github.com/hydro-dev/Hydro.git",
|
||||||
@@ -12,7 +12,7 @@
|
|||||||
"fs-extra": "^10.0.0",
|
"fs-extra": "^10.0.0",
|
||||||
"js-yaml": "^4.1.0",
|
"js-yaml": "^4.1.0",
|
||||||
"lodash": "^4.17.21",
|
"lodash": "^4.17.21",
|
||||||
"mongodb": "^3.6.8",
|
"mongodb": "^3.6.9",
|
||||||
"p-queue": "^6.6.2",
|
"p-queue": "^6.6.2",
|
||||||
"shell-quote": "^1.7.2",
|
"shell-quote": "^1.7.2",
|
||||||
"ws": "^7.4.6"
|
"ws": "^7.4.6"
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "hydrooj",
|
"name": "hydrooj",
|
||||||
"version": "2.28.3",
|
"version": "2.28.4",
|
||||||
"bin": "bin/hydrooj.js",
|
"bin": "bin/hydrooj.js",
|
||||||
"main": "dist/loader.js",
|
"main": "dist/loader.js",
|
||||||
"typings": "dist/loader.d.ts",
|
"typings": "dist/loader.d.ts",
|
||||||
@@ -30,7 +30,7 @@
|
|||||||
"lru-cache": "^6.0.0",
|
"lru-cache": "^6.0.0",
|
||||||
"minio": "7.0.17",
|
"minio": "7.0.17",
|
||||||
"moment-timezone": "^0.5.33",
|
"moment-timezone": "^0.5.33",
|
||||||
"mongodb": "^3.6.8",
|
"mongodb": "^3.6.9",
|
||||||
"nodemailer": "^6.6.1",
|
"nodemailer": "^6.6.1",
|
||||||
"p-queue": "^6.6.2",
|
"p-queue": "^6.6.2",
|
||||||
"reflect-metadata": "^0.1.13",
|
"reflect-metadata": "^0.1.13",
|
||||||
@@ -42,7 +42,7 @@
|
|||||||
"@types/adm-zip": "^0.4.34",
|
"@types/adm-zip": "^0.4.34",
|
||||||
"@types/fs-extra": "^9.0.11",
|
"@types/fs-extra": "^9.0.11",
|
||||||
"@types/js-yaml": "^4.0.1",
|
"@types/js-yaml": "^4.0.1",
|
||||||
"@types/koa": "^2.13.1",
|
"@types/koa": "^2.13.2",
|
||||||
"@types/koa-compress": "^4.0.1",
|
"@types/koa-compress": "^4.0.1",
|
||||||
"@types/koa-router": "^7.4.2",
|
"@types/koa-router": "^7.4.2",
|
||||||
"@types/koa-static-cache": "^5.1.0",
|
"@types/koa-static-cache": "^5.1.0",
|
||||||
|
|||||||
@@ -266,7 +266,6 @@ export class ProblemModel {
|
|||||||
const range = { $in: parsed[task].map((i) => i.pid) };
|
const range = { $in: parsed[task].map((i) => i.pid) };
|
||||||
const q: any = { $or: [{ docId: range }, { pid: range }] };
|
const q: any = { $or: [{ docId: range }, { pid: range }] };
|
||||||
if (!getHidden) q.hidden = false;
|
if (!getHidden) q.hidden = false;
|
||||||
console.log(task, parsed[task]);
|
|
||||||
tasks.push(document.getMulti(task, document.TYPE_PROBLEM, q).project(buildProjection(projection)).toArray());
|
tasks.push(document.getMulti(task, document.TYPE_PROBLEM, q).project(buildProjection(projection)).toArray());
|
||||||
}
|
}
|
||||||
const pdocs = flatten(await Promise.all(tasks));
|
const pdocs = flatten(await Promise.all(tasks));
|
||||||
|
|||||||
@@ -22,6 +22,7 @@ class RecordModel {
|
|||||||
'_id', 'score', 'time', 'memory', 'lang',
|
'_id', 'score', 'time', 'memory', 'lang',
|
||||||
'uid', 'pid', 'rejudged', 'hidden', 'progress',
|
'uid', 'pid', 'rejudged', 'hidden', 'progress',
|
||||||
'contest', 'effective', 'judger', 'judgeAt', 'status',
|
'contest', 'effective', 'judger', 'judgeAt', 'status',
|
||||||
|
'pdomain',
|
||||||
];
|
];
|
||||||
|
|
||||||
static async submissionPriority(uid: number, base: number = 0) {
|
static async submissionPriority(uid: number, base: number = 0) {
|
||||||
|
|||||||
@@ -10,6 +10,6 @@
|
|||||||
"@types/mongodb": "^3.6.16"
|
"@types/mongodb": "^3.6.16"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"mongodb": "^3.6.8"
|
"mongodb": "^3.6.9"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -23,9 +23,9 @@
|
|||||||
"@babel/preset-react": "^7.13.13",
|
"@babel/preset-react": "^7.13.13",
|
||||||
"@babel/register": "^7.13.16",
|
"@babel/register": "^7.13.16",
|
||||||
"@babel/runtime-corejs3": "^7.14.0",
|
"@babel/runtime-corejs3": "^7.14.0",
|
||||||
"@blueprintjs/core": "^3.44.3",
|
"@blueprintjs/core": "^3.45.0",
|
||||||
"@blueprintjs/icons": "^3.26.1",
|
"@blueprintjs/icons": "^3.26.1",
|
||||||
"@blueprintjs/select": "^3.16.3",
|
"@blueprintjs/select": "^3.16.4",
|
||||||
"@hydrooj/utils": "^1.0.15",
|
"@hydrooj/utils": "^1.0.15",
|
||||||
"@undefined-moe/monaco-yaml": "^2.5.0",
|
"@undefined-moe/monaco-yaml": "^2.5.0",
|
||||||
"ansi_up": "^5.0.1",
|
"ansi_up": "^5.0.1",
|
||||||
|
|||||||
@@ -11,8 +11,8 @@
|
|||||||
"fs-extra": "^10.0.0",
|
"fs-extra": "^10.0.0",
|
||||||
"js-yaml": "^4.1.0",
|
"js-yaml": "^4.1.0",
|
||||||
"moment": "^2.29.1",
|
"moment": "^2.29.1",
|
||||||
"mongodb": "^3.6.8",
|
"mongodb": "^3.6.9",
|
||||||
"systeminformation": "^5.7.3"
|
"systeminformation": "^5.7.4"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@types/fs-extra": "^9.0.11",
|
"@types/fs-extra": "^9.0.11",
|
||||||
|
|||||||
Reference in new issue
Block a user