mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-19 17:38:19 +08:00
minor patches & bump deps
This commit is contained in:
19 files changed
+80
-61
No files matched your search
@@ -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