mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-17 17:36:08 +08:00
onsite-toolkit: fix steps calculation
This commit is contained in:
10 files changed
+39
-39
No files matched your search
@@ -1,16 +1,16 @@
|
||||
{
|
||||
"name": "@hydrooj/eslint-config",
|
||||
"version": "1.1.1",
|
||||
"version": "1.1.2",
|
||||
"license": "MIT",
|
||||
"main": "react.yaml",
|
||||
"dependencies": {
|
||||
"@stylistic/eslint-plugin": "^2.9.0",
|
||||
"@typescript-eslint/eslint-plugin": "^8.11.0",
|
||||
"@typescript-eslint/parser": "^8.11.0",
|
||||
"@stylistic/eslint-plugin": "^2.10.1",
|
||||
"@typescript-eslint/eslint-plugin": "^8.14.0",
|
||||
"@typescript-eslint/parser": "^8.14.0",
|
||||
"eslint-config-airbnb": "^19.0.4",
|
||||
"eslint-plugin-github": "^5.0.2",
|
||||
"eslint-plugin-import": "2.31.0",
|
||||
"eslint-plugin-jsx-a11y": "^6.10.1",
|
||||
"eslint-plugin-jsx-a11y": "^6.10.2",
|
||||
"eslint-plugin-react": "^7.37.2",
|
||||
"eslint-plugin-react-hooks": "^4.6.2",
|
||||
"eslint-plugin-simple-import-sort": "^12.1.1"
|
||||
|
||||
@@ -27,8 +27,8 @@
|
||||
"@types/koa": "^2.15.0",
|
||||
"@types/koa-compress": "^4.0.6",
|
||||
"@types/koa-router": "^7.4.8",
|
||||
"@types/lodash": "^4.17.12",
|
||||
"@types/lodash": "^4.17.13",
|
||||
"@types/saslprep": "^1.0.3",
|
||||
"@types/ws": "^8.5.12"
|
||||
"@types/ws": "^8.5.13"
|
||||
}
|
||||
}
|
||||
+3
-3
@@ -35,7 +35,7 @@
|
||||
"devDependencies": {
|
||||
"@simplewebauthn/types": "9.0.1",
|
||||
"@types/autocannon": "^7.12.5",
|
||||
"@types/chai": "^5.0.0",
|
||||
"@types/chai": "^5.0.1",
|
||||
"@types/cross-spawn": "^6.0.6",
|
||||
"@types/node": "22.7.4",
|
||||
"@types/semver": "^7.5.8",
|
||||
@@ -43,7 +43,7 @@
|
||||
"cac": "^6.7.14",
|
||||
"chai": "^5.1.2",
|
||||
"cross-env": "^7.0.3",
|
||||
"cross-spawn": "^7.0.3",
|
||||
"cross-spawn": "^7.0.5",
|
||||
"esbuild": "0.24.0",
|
||||
"eslint": "^8.57.1",
|
||||
"eslint-import-resolver-typescript": "^3.6.3",
|
||||
@@ -53,7 +53,7 @@
|
||||
"inspectpack": "^4.7.1",
|
||||
"mongodb-memory-server": "9.4.1",
|
||||
"nyc": "^17.1.0",
|
||||
"ora": "^8.1.0",
|
||||
"ora": "^8.1.1",
|
||||
"package-json": "^10.0.1",
|
||||
"semver": "^7.6.3",
|
||||
"simple-git": "^3.27.0",
|
||||
|
||||
@@ -6,6 +6,6 @@
|
||||
"author": "undefined <i@undefined.moe>",
|
||||
"license": "AGPL-3.0-or-later",
|
||||
"dependencies": {
|
||||
"@elastic/elasticsearch": "^8.15.1"
|
||||
"@elastic/elasticsearch": "^8.16.0"
|
||||
}
|
||||
}
|
||||
@@ -21,6 +21,6 @@
|
||||
"devDependencies": {
|
||||
"@types/adm-zip": "^0.4.34",
|
||||
"@types/shell-quote": "^1.7.5",
|
||||
"@types/ws": "^8.5.12"
|
||||
"@types/ws": "^8.5.13"
|
||||
}
|
||||
}
|
||||
@@ -12,11 +12,11 @@
|
||||
},
|
||||
"preferUnplugged": true,
|
||||
"dependencies": {
|
||||
"@aws-sdk/client-s3": "3.677.0",
|
||||
"@aws-sdk/lib-storage": "3.677.0",
|
||||
"@aws-sdk/s3-presigned-post": "3.677.0",
|
||||
"@aws-sdk/s3-request-presigner": "3.677.0",
|
||||
"@graphql-tools/schema": "^10.0.7",
|
||||
"@aws-sdk/client-s3": "3.693.0",
|
||||
"@aws-sdk/lib-storage": "3.693.0",
|
||||
"@aws-sdk/s3-presigned-post": "3.693.0",
|
||||
"@aws-sdk/s3-request-presigner": "3.693.0",
|
||||
"@graphql-tools/schema": "^10.0.8",
|
||||
"@hydrooj/framework": "workspace:^",
|
||||
"@hydrooj/utils": "workspace:^",
|
||||
"@simplewebauthn/server": "9.0.3",
|
||||
@@ -40,8 +40,8 @@
|
||||
"moment-timezone": "^0.5.46",
|
||||
"mongodb": "^5.9.2",
|
||||
"mongodb-uri": "^0.9.7",
|
||||
"nanoid": "^5.0.7",
|
||||
"nodemailer": "^6.9.15",
|
||||
"nanoid": "^5.0.8",
|
||||
"nodemailer": "^6.9.16",
|
||||
"notp": "^2.0.3",
|
||||
"p-queue": "^8.0.1",
|
||||
"sanitize-filename": "^1.6.3",
|
||||
@@ -59,7 +59,7 @@
|
||||
"@types/fs-extra": "^11.0.4",
|
||||
"@types/js-yaml": "^4.0.9",
|
||||
"@types/koa-static-cache": "^5.1.4",
|
||||
"@types/lodash": "^4.17.12",
|
||||
"@types/lodash": "^4.17.13",
|
||||
"@types/mime-types": "^2.1.4",
|
||||
"@types/mongodb-uri": "^0.9.4",
|
||||
"@types/nodemailer": "^6.4.16",
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
"author": "undefined <i@undefined.moe>",
|
||||
"license": "AGPL-3.0-or-later",
|
||||
"dependencies": {
|
||||
"mariadb": "^3.3.2",
|
||||
"mariadb": "^3.4.0",
|
||||
"mongodb": "^5.9.2",
|
||||
"turndown": "^7.2.0",
|
||||
"xml2js": "^0.6.2"
|
||||
|
||||
@@ -175,7 +175,7 @@ export function start(data: ResolverInput, options: DisplaySettings) {
|
||||
ops.push({ name, args });
|
||||
}
|
||||
let orders = processRank(clone);
|
||||
for (let i = clone.length - 1; i > 0; i--) {
|
||||
for (let i = clone.length - 1; i >= 0; i--) {
|
||||
const team = clone[orders[i]];
|
||||
queueOperations('highlightTeam', team.id, i);
|
||||
for (const pinfo of data.problems) {
|
||||
@@ -216,7 +216,7 @@ export function start(data: ResolverInput, options: DisplaySettings) {
|
||||
return ops;
|
||||
}, [data]);
|
||||
|
||||
useKey('n', async () => {
|
||||
useKey((key) => ['n', 'ArrowRight'].includes(key.key), async () => {
|
||||
const op = calculated[executeIdx];
|
||||
if (!op) return;
|
||||
setExecuteIdx(executeIdx + 1);
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
"name": "@hydrooj/onsite-toolkit",
|
||||
"version": "0.0.1",
|
||||
"dependencies": {
|
||||
"@react-spring/web": "^9.7.3",
|
||||
"react-use": "^17.4.2"
|
||||
"@react-spring/web": "^9.7.5",
|
||||
"react-use": "^17.5.1"
|
||||
}
|
||||
}
|
||||
@@ -14,7 +14,7 @@
|
||||
"cli": false
|
||||
},
|
||||
"devDependencies": {
|
||||
"@blueprintjs/core": "^5.13.1",
|
||||
"@blueprintjs/core": "^5.14.2",
|
||||
"@cordisjs/core": "3.18.1",
|
||||
"@fontsource/dm-mono": "^5.1.0",
|
||||
"@fontsource/fira-code": "^5.1.0",
|
||||
@@ -25,7 +25,7 @@
|
||||
"@fontsource/source-code-pro": "^5.1.0",
|
||||
"@fontsource/ubuntu-mono": "^5.1.0",
|
||||
"@hydrooj/utils": "workspace:^",
|
||||
"@sentry/browser": "^8.35.0",
|
||||
"@sentry/browser": "^8.38.0",
|
||||
"@sentry/webpack-plugin": "^2.22.6",
|
||||
"@simplewebauthn/browser": "9.0.1",
|
||||
"@svgr/webpack": "^8.1.0",
|
||||
@@ -46,14 +46,14 @@
|
||||
"ajv": "^8.17.1",
|
||||
"allotment": "^1.20.2",
|
||||
"autoprefixer": "^10.4.20",
|
||||
"browser-update": "^3.3.54",
|
||||
"browser-update": "^3.3.55",
|
||||
"chalk": "^5.3.0",
|
||||
"classnames": "^2.5.1",
|
||||
"clean-webpack-plugin": "^4.0.0",
|
||||
"clipboard": "^2.0.11",
|
||||
"copy-webpack-plugin": "^12.0.2",
|
||||
"core-js": "^3.38.1",
|
||||
"core-js-compat": "^3.38.1",
|
||||
"core-js": "^3.39.0",
|
||||
"core-js-compat": "^3.39.0",
|
||||
"css-loader": "^6.11.0",
|
||||
"diff": "^7.0.0",
|
||||
"diff-dom": "^5.1.4",
|
||||
@@ -62,22 +62,22 @@
|
||||
"emojis-list": "2.1.0",
|
||||
"esbuild-loader": "^4.2.2",
|
||||
"flatpickr": "^4.6.13",
|
||||
"graphiql": "^3.7.1",
|
||||
"graphiql": "^3.7.2",
|
||||
"idb": "^8.0.0",
|
||||
"jquery": "^3.7.1",
|
||||
"jquery-scroll-lock": "^3.1.3",
|
||||
"jquery.easing": "^1.4.1",
|
||||
"jquery.transit": "^0.9.12",
|
||||
"matchmedia-polyfill": "^0.3.2",
|
||||
"md-editor-rt": "^4.21.1",
|
||||
"mini-css-extract-plugin": "^2.9.1",
|
||||
"md-editor-rt": "^5.0.1",
|
||||
"mini-css-extract-plugin": "^2.9.2",
|
||||
"moment": "^2.30.1",
|
||||
"monaco-editor": "0.50.0",
|
||||
"monaco-editor-nls": "^3.1.0",
|
||||
"monaco-editor-webpack-plugin": "^7.1.0",
|
||||
"monaco-themes": "^0.4.4",
|
||||
"monaco-yaml": "5.1.1",
|
||||
"nanoid": "^5.0.7",
|
||||
"nanoid": "^5.0.8",
|
||||
"normalize.css": "^8.0.1",
|
||||
"nprogress": "^0.2.0",
|
||||
"p-queue": "^8.0.1",
|
||||
@@ -106,20 +106,20 @@
|
||||
"slideout": "^1.0.1",
|
||||
"sticky-kit": "^1.1.3",
|
||||
"style-loader": "^3.3.4",
|
||||
"stylus": "^0.63.0",
|
||||
"stylus": "^0.64.0",
|
||||
"stylus-loader": "7.1.2",
|
||||
"svgtofont": "^6.0.0",
|
||||
"svgtofont": "^6.0.1",
|
||||
"tether": "1.4.7",
|
||||
"tether-drop": "^1.4.2",
|
||||
"timeago-react": "^3.0.6",
|
||||
"timeago.js": "^4.0.2",
|
||||
"ts-loader": "^9.5.1",
|
||||
"web-streams-polyfill": "^4.0.0",
|
||||
"webpack": "^5.95.0",
|
||||
"webpack": "^5.96.1",
|
||||
"webpack-bundle-analyzer": "^4.10.2",
|
||||
"webpack-dev-server": "^5.1.0",
|
||||
"webpack-manifest-plugin": "^5.0.0",
|
||||
"webpackbar": "^6.0.1"
|
||||
"webpackbar": "^7.0.0"
|
||||
},
|
||||
"dependencies": {
|
||||
"ansi_up": "^6.0.2",
|
||||
@@ -141,7 +141,7 @@
|
||||
"nunjucks": "^3.2.4",
|
||||
"schemastery-jsonschema": "^1.1.0",
|
||||
"streamsaver": "^2.0.6",
|
||||
"uuid": "^10.0.0",
|
||||
"uuid": "^11.0.3",
|
||||
"xss": "^1.0.15"
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user