bump version

This commit is contained in:
undefined committed 2023-04-12 20:38:50 +08:00
1 parent 73d5726493
commit b7e3b19a09
7 files changed
+23 -11

No files matched your search

+13 -1
View File
@@ -104,7 +104,19 @@ Telegram [@webpack_exports_undefined](https://t.me/webpack_exports_undefined)
<details> <details>
<summary><h2>更新日志(点击展开)</h2></summary> <summary><h2>更新日志(点击展开)</h2></summary>
### Hydro 4.8.12 / UI 4.48.12 ### Hydro 4.9.13 / UI 4.48.13
- fps-import: 支持处理远端评测题目
- vjudge: 添加 VERDICT.WAITING 属性
- ui: 优化测试数据自动识别
- vjudge: 添加一本通编程启蒙支持
- ui: 添加 `problemset/download` 钩子
- ui: 在打印模式下隐藏部分控件
- core: addon create 使用符号链接
- ui: 评测记录页面显示代码行号
- core: 支持从解压的题目文件夹导入题目
- core: setJudge 时添加 PRIV_UNLIMITED_ACCESS
### Hydro 4.9.12 / UI 4.48.12
- core: 修复比赛中讨论不会随比赛删除的问题 - core: 修复比赛中讨论不会随比赛删除的问题
- vjudge: codeforces: 更新登陆检查逻辑 - vjudge: codeforces: 更新登陆检查逻辑
- ui: 在题目提交页面显示提示 - ui: 在题目提交页面显示提示
-4
View File
@@ -538,10 +538,6 @@ ${nixConfBase}`);
{ {
init: 'install.postinstall', init: 'install.postinstall',
operations: [ operations: [
...installAsJudge ? [] : [
'hydrooj install https://hydro.ac/language-server-0.0.1.tgz',
'pm2 restart hydrooj',
],
'echo "vm.swappiness = 1" >>/etc/sysctl.conf', 'echo "vm.swappiness = 1" >>/etc/sysctl.conf',
'sysctl -p', 'sysctl -p',
['pm2 install pm2-logrotate', { retry: true }], ['pm2 install pm2-logrotate', { retry: true }],
+1 -1
View File
@@ -1,6 +1,6 @@
{ {
"name": "@hydrooj/fps-importer", "name": "@hydrooj/fps-importer",
"version": "1.5.4", "version": "1.5.5",
"description": "Import FPS problems", "description": "Import FPS problems",
"main": "index.ts", "main": "index.ts",
"repository": "https://github.com/hydro-dev/Hydro.git", "repository": "https://github.com/hydro-dev/Hydro.git",
+1 -1
View File
@@ -67,7 +67,7 @@ async function runWebpack({
if (fs.existsSync(statsPath)) { if (fs.existsSync(statsPath)) {
log('Compare to last production bundle:'); log('Compare to last production bundle:');
const oldStats = JSON.parse(await fs.readFile(statsPath, 'utf-8')) as Record<string, number>; 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][] = []; const entries: [filename: string, orig: number, curr: number][] = [];
for (const [key, value] of Object.entries(oldStats)) { for (const [key, value] of Object.entries(oldStats)) {
if (Math.abs((stats[key] || 0) - value) > 25) entries.push([key, value, stats[key] || 0]); if (Math.abs((stats[key] || 0) - value) > 25) entries.push([key, value, stats[key] || 0]);
+1 -1
View File
@@ -1,6 +1,6 @@
{ {
"name": "@hydrooj/ui-default", "name": "@hydrooj/ui-default",
"version": "4.48.12", "version": "4.48.13",
"author": "undefined <i@undefined.moe>", "author": "undefined <i@undefined.moe>",
"license": "AGPL-3.0", "license": "AGPL-3.0",
"main": "index.ts", "main": "index.ts",
+1 -1
View File
@@ -1,6 +1,6 @@
{ {
"name": "@hydrooj/vjudge", "name": "@hydrooj/vjudge",
"version": "1.8.7", "version": "1.8.8",
"description": "Submit problems to remote oj", "description": "Submit problems to remote oj",
"main": "src/model.ts", "main": "src/model.ts",
"repository": "https://github.com/hydro-dev/Hydro.git", "repository": "https://github.com/hydro-dev/Hydro.git",
+6 -2
View File
@@ -368,10 +368,10 @@ export class YBTBAS extends YBT {
const captcha = await this.get('/login_xx.php').responseType('arraybuffer'); const captcha = await this.get('/login_xx.php').responseType('arraybuffer');
if (captcha.headers['set-cookie']) this.cookie = captcha.headers['set-cookie']; if (captcha.headers['set-cookie']) this.cookie = captcha.headers['set-cookie'];
if (!global.parseCaptcha) await sleep(30000); if (!global.parseCaptcha) await sleep(30000);
const parseCaptcha = global.parseCaptcha || _parseCaptcha; if (!global.parseCaptcha) return { login: '登录' };
return { return {
login: '登录', login: '登录',
auth: (await parseCaptcha(captcha.body)).toLowerCase(), auth: await global.parseCaptcha(captcha.body).toLowerCase(),
}; };
}; };
this.config.submit = { 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', selector: 'table[width="900px"]>tbody>tr>td>div>center>table>tbody>tr>td',
}; };
this.config.server = 'http://bas.ssoier.cn:8086/'; this.config.server = 'http://bas.ssoier.cn:8086/';
sleep(30000).then(() => {
// Prevent cookie expiration
if (!global.parseCaptcha) setInterval(() => this.get('/'), 60000);
});
} }
} }