mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-19 17:38:19 +08:00
bump version
This commit is contained in:
7 files changed
+23
-11
No files matched your search
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@hydrooj/fps-importer",
|
||||
"version": "1.5.4",
|
||||
"version": "1.5.5",
|
||||
"description": "Import FPS problems",
|
||||
"main": "index.ts",
|
||||
"repository": "https://github.com/hydro-dev/Hydro.git",
|
||||
|
||||
@@ -67,7 +67,7 @@ async function runWebpack({
|
||||
if (fs.existsSync(statsPath)) {
|
||||
log('Compare to last production bundle:');
|
||||
const oldStats = JSON.parse(await fs.readFile(statsPath, 'utf-8')) as Record<string, number>;
|
||||
for (const key in stats) if (!oldStats[key]) oldStats[key] = 0;
|
||||
for (const key in stats) oldStats[key] ||= 0;
|
||||
const entries: [filename: string, orig: number, curr: number][] = [];
|
||||
for (const [key, value] of Object.entries(oldStats)) {
|
||||
if (Math.abs((stats[key] || 0) - value) > 25) entries.push([key, value, stats[key] || 0]);
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@hydrooj/ui-default",
|
||||
"version": "4.48.12",
|
||||
"version": "4.48.13",
|
||||
"author": "undefined <i@undefined.moe>",
|
||||
"license": "AGPL-3.0",
|
||||
"main": "index.ts",
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@hydrooj/vjudge",
|
||||
"version": "1.8.7",
|
||||
"version": "1.8.8",
|
||||
"description": "Submit problems to remote oj",
|
||||
"main": "src/model.ts",
|
||||
"repository": "https://github.com/hydro-dev/Hydro.git",
|
||||
|
||||
@@ -368,10 +368,10 @@ export class YBTBAS extends YBT {
|
||||
const captcha = await this.get('/login_xx.php').responseType('arraybuffer');
|
||||
if (captcha.headers['set-cookie']) this.cookie = captcha.headers['set-cookie'];
|
||||
if (!global.parseCaptcha) await sleep(30000);
|
||||
const parseCaptcha = global.parseCaptcha || _parseCaptcha;
|
||||
if (!global.parseCaptcha) return { login: '登录' };
|
||||
return {
|
||||
login: '登录',
|
||||
auth: (await parseCaptcha(captcha.body)).toLowerCase(),
|
||||
auth: await global.parseCaptcha(captcha.body).toLowerCase(),
|
||||
};
|
||||
};
|
||||
this.config.submit = {
|
||||
@@ -389,6 +389,10 @@ export class YBTBAS extends YBT {
|
||||
selector: 'table[width="900px"]>tbody>tr>td>div>center>table>tbody>tr>td',
|
||||
};
|
||||
this.config.server = 'http://bas.ssoier.cn:8086/';
|
||||
sleep(30000).then(() => {
|
||||
// Prevent cookie expiration
|
||||
if (!global.parseCaptcha) setInterval(() => this.get('/'), 60000);
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user