mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
minor patches & bump deps
This commit is contained in:
19 files changed
+80
-61
No files matched your search
@@ -23,10 +23,10 @@
|
||||
"@hydrooj/utils": "workspace:^",
|
||||
"@simplewebauthn/server": "13.1.1",
|
||||
"@undefined-moe/require-resolve-hook": "^1.1.0",
|
||||
"@zip.js/zip.js": "^2.7.60",
|
||||
"@zip.js/zip.js": "^2.7.62",
|
||||
"adm-zip": "0.5.16",
|
||||
"cac": "^6.7.14",
|
||||
"cordis": "4.0.0-beta.2",
|
||||
"cordis": "4.0.0-beta.4",
|
||||
"csv-stringify": "^6.5.2",
|
||||
"emoji-regex": "^10.4.0",
|
||||
"emojis-list": "2.1.0",
|
||||
@@ -35,7 +35,7 @@
|
||||
"koa-proxies": "^0.12.4",
|
||||
"koa-static-cache": "^5.1.4",
|
||||
"lodash": "^4.17.21",
|
||||
"lru-cache": "^10.4.3",
|
||||
"lru-cache": "^11.1.0",
|
||||
"mime-types": "^3.0.1",
|
||||
"moment-timezone": "^0.5.48",
|
||||
"mongodb": "^6.16.0",
|
||||
@@ -47,7 +47,7 @@
|
||||
"sanitize-filename": "^1.6.3",
|
||||
"saslprep": "^1.0.3",
|
||||
"schemastery": "^3.16.1",
|
||||
"semver": "^7.7.1",
|
||||
"semver": "^7.7.2",
|
||||
"shorty.js": "^1.0.1",
|
||||
"superagent": "^10.2.1",
|
||||
"tar": "6.2.1",
|
||||
@@ -60,7 +60,7 @@
|
||||
"@types/fs-extra": "^11.0.4",
|
||||
"@types/js-yaml": "^4.0.9",
|
||||
"@types/koa-static-cache": "^5.1.4",
|
||||
"@types/lodash": "^4.17.16",
|
||||
"@types/lodash": "^4.17.17",
|
||||
"@types/mime-types": "^2.1.4",
|
||||
"@types/mongodb-uri": "^0.9.4",
|
||||
"@types/nodemailer": "^6.4.17",
|
||||
|
||||
@@ -71,6 +71,17 @@ export class Context extends cordis.Context {
|
||||
super();
|
||||
this.plugin(ApiMixin);
|
||||
this.plugin(TimerService);
|
||||
this.plugin(LoggerService);
|
||||
this.plugin(LoggerService, {
|
||||
console: {
|
||||
showDiff: false,
|
||||
showTime: 'dd hh:mm:ss',
|
||||
label: {
|
||||
align: 'right',
|
||||
width: 9,
|
||||
margin: 1,
|
||||
},
|
||||
levels: { default: process.env.DEV ? 3 : 2 },
|
||||
},
|
||||
});
|
||||
}
|
||||
}
|
||||
@@ -54,7 +54,8 @@ inject('Nav', 'record_main', {
|
||||
query: (handler) => (handler.user.hasPriv(PRIV.PRIV_USER_PROFILE)
|
||||
? ({ uidOrName: handler.user._id })
|
||||
: ({})),
|
||||
});
|
||||
}, (handler) => (handler.user.hasPriv(PRIV.PRIV_USER_PROFILE)
|
||||
? true : handler.user.hasPerm(PERM.PERM_VIEW_RECORD)));
|
||||
inject('Nav', 'ranking', { prefix: 'ranking' }, PERM.PERM_VIEW_RANKING);
|
||||
inject('Nav', 'domain_dashboard', { prefix: 'domain' }, PERM.PERM_EDIT_DOMAIN);
|
||||
inject('Nav', 'manage_dashboard', { prefix: 'manage' }, PRIV.PRIV_EDIT_SYSTEM);
|
||||
|
||||
@@ -189,6 +189,7 @@ async function initAndCache(udoc: Udoc, dudoc, scope: bigint = PERM.PERM_ALL) {
|
||||
|
||||
class UserModel {
|
||||
static coll = coll;
|
||||
static collGroup = collGroup;
|
||||
static User = User;
|
||||
static cache = cache;
|
||||
static defaultUser: Udoc = {
|
||||
|
||||
Reference in new issue
Block a user