mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-17 09:36:08 +08:00
fix
This commit is contained in:
7 files changed
+14
-7
No files matched your search
@@ -114,7 +114,15 @@ Hydro 用户群:1085853538
|
||||
## Unreleased
|
||||
|
||||
- judge: breaking: 不再支持在 checker 等的编译阶段读取选手代码
|
||||
|
||||
- judge: 添加 checker 编译缓存
|
||||
- ui: 优化题目详情页面 OGP 信息
|
||||
- core&ui: 升级 simplewebauthn
|
||||
- register: 添加 tsdown 支持
|
||||
- ui&judge: 支持指定 checker 语言
|
||||
- core: 基于相对时间计算一血而非绝对时间
|
||||
- ui&judge: 添加栈空间回显
|
||||
- install: 在树莓派中自动启用 cgroup.memory
|
||||
- vjudge: 使用 vjudge.mount 表替代 domain.mount
|
||||
|
||||
## Hydro 4.19.0 / UI 4.57.0
|
||||
|
||||
|
||||
@@ -11,7 +11,7 @@ export async function compilerVersions(langs: Record<string, LangConfig>) {
|
||||
copyIn: {},
|
||||
time: 10000,
|
||||
memory: 256,
|
||||
}, 'compilerVersions', 5);
|
||||
}, `compilerVersions<${lang}>`, 5);
|
||||
result[lang] = `${res.stdout}\n${res.stderr}`.trim();
|
||||
}
|
||||
return result;
|
||||
|
||||
@@ -20,7 +20,7 @@ declare global {
|
||||
|
||||
class I18nService extends Service {
|
||||
constructor(ctx: Context) {
|
||||
super(ctx, 'i18n', true);
|
||||
super(ctx, 'i18n');
|
||||
}
|
||||
|
||||
load(lang: string, content: Record<string, string>) {
|
||||
|
||||
@@ -121,7 +121,7 @@ export function registerUnion(...args: any[]) {
|
||||
// TODO support dispose
|
||||
class ApiService extends Service {
|
||||
constructor(ctx: Context) {
|
||||
super(ctx, 'api', true);
|
||||
super(ctx, 'api');
|
||||
this.rebuild = debounce(this.rebuild.bind(this), 500, { trailing: true });
|
||||
ctx.on('ready', this.rebuild);
|
||||
}
|
||||
|
||||
@@ -128,7 +128,6 @@ export function apply(ctx: Context) {
|
||||
|
||||
export default app;
|
||||
export const on = (a, b, c?) => app.on(a, b, c);
|
||||
export const off = (a, b) => app.off(a, b);
|
||||
export const once = (a, b, c?) => app.once(a, b, c);
|
||||
export const parallel = app.parallel.bind(app);
|
||||
export const emit = app.parallel.bind(app);
|
||||
|
||||
@@ -39,7 +39,7 @@ export class CheckService extends Service {
|
||||
}
|
||||
}
|
||||
|
||||
export const check = new CheckService(app, 'check', true);
|
||||
export const check = new CheckService(app, 'check');
|
||||
|
||||
check.addChecker('Db', async (ctx, log, warn, error) => {
|
||||
try {
|
||||
|
||||
@@ -17,7 +17,7 @@ export default class MigrationService extends Service {
|
||||
private called = false;
|
||||
|
||||
constructor(ctx: Context) {
|
||||
super(ctx, 'migration', true);
|
||||
super(ctx, 'migration');
|
||||
}
|
||||
|
||||
async registerChannel(name: string, s: MigrationScript[]) {
|
||||
|
||||
Reference in new issue
Block a user