mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
ui: remove misleading training template problemId
This commit is contained in:
1 parent
21865f20fc
commit
0989c369a8
3 files changed
+3
-15
No files matched your search
+1
-13
@@ -14,18 +14,6 @@ function getWorkspaces() {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
function spawnSync(command, silent) {
|
|
||||||
if (!silent) console.log(`$ ${command}`);
|
|
||||||
const args = command.split(/\s+/);
|
|
||||||
const result = spawn.sync(args[0], [...args.slice(1), '--color'], { cwd, encoding: 'utf8' });
|
|
||||||
if (result.status) {
|
|
||||||
throw new Error(result.stderr);
|
|
||||||
} else {
|
|
||||||
if (!silent) console.log(result.stdout);
|
|
||||||
return result.stdout.trim();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
function spawnAsync(command, path) {
|
function spawnAsync(command, path) {
|
||||||
const args = command.split(/\s+/);
|
const args = command.split(/\s+/);
|
||||||
const options = { stdio: 'inherit' };
|
const options = { stdio: 'inherit' };
|
||||||
@@ -38,5 +26,5 @@ function spawnAsync(command, path) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
cwd, spawnSync, spawnAsync, getWorkspaces,
|
cwd, spawnAsync, getWorkspaces,
|
||||||
};
|
};
|
||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@hydrooj/ui-default",
|
"name": "@hydrooj/ui-default",
|
||||||
"version": "4.34.25",
|
"version": "4.34.26",
|
||||||
"author": "undefined <i@undefined.moe>",
|
"author": "undefined <i@undefined.moe>",
|
||||||
"license": "AGPL-3.0",
|
"license": "AGPL-3.0",
|
||||||
"main": "hydro.js",
|
"main": "hydro.js",
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
"_id": 1,
|
"_id": 1,
|
||||||
"title": "最初的最初 - A+B Problem",
|
"title": "最初的最初 - A+B Problem",
|
||||||
"requireNids": [],
|
"requireNids": [],
|
||||||
"pids": [1, "P1001"]
|
"pids": [1]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"_id": 2,
|
"_id": 2,
|
||||||
|
|||||||
Reference in new issue
Block a user