mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
core: add missing exports
This commit is contained in:
3 files changed
+4
-2
No files matched your search
@@ -90,11 +90,13 @@ class SystemDashboardHandler extends SystemHandler {
|
|||||||
}
|
}
|
||||||
|
|
||||||
class SystemScriptHandler extends SystemHandler {
|
class SystemScriptHandler extends SystemHandler {
|
||||||
|
@requireSudo
|
||||||
async get() {
|
async get() {
|
||||||
this.response.template = 'manage_script.html';
|
this.response.template = 'manage_script.html';
|
||||||
this.response.body.scripts = global.Hydro.script;
|
this.response.body.scripts = global.Hydro.script;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@requireSudo
|
||||||
@param('id', Types.Name)
|
@param('id', Types.Name)
|
||||||
@param('args', Types.Content, true)
|
@param('args', Types.Content, true)
|
||||||
async post(domainId: string, id: string, raw = '{}') {
|
async post(domainId: string, id: string, raw = '{}') {
|
||||||
|
|||||||
@@ -267,7 +267,7 @@ AccountSetting(
|
|||||||
'/components/profile/backgrounds/1.jpg', 'text', 'Profile Background Image',
|
'/components/profile/backgrounds/1.jpg', 'text', 'Profile Background Image',
|
||||||
'Choose the background image in your profile page.'),
|
'Choose the background image in your profile page.'),
|
||||||
Setting('setting_storage', 'unreadMsg', 0, 'number', 'Unread Message Count', null, FLAG_DISABLED | FLAG_HIDDEN),
|
Setting('setting_storage', 'unreadMsg', 0, 'number', 'Unread Message Count', null, FLAG_DISABLED | FLAG_HIDDEN),
|
||||||
Setting('setting_storage', 'badge', '', 'text', 'badge info', null, FLAG_DISABLED | FLAG_HIDDEN),
|
Setting('setting_storage', 'badge', '', 'text', 'badge info', null, FLAG_DISABLED | FLAG_HIDDEN | FLAG_PUBLIC),
|
||||||
Setting('setting_storage', 'banReason', '', 'text', 'ban reason', null, FLAG_DISABLED | FLAG_HIDDEN),
|
Setting('setting_storage', 'banReason', '', 'text', 'ban reason', null, FLAG_DISABLED | FLAG_HIDDEN),
|
||||||
Setting('setting_storage', 'pinnedDomains', [], 'json', 'pinned domains', null, FLAG_DISABLED | FLAG_HIDDEN),
|
Setting('setting_storage', 'pinnedDomains', [], 'json', 'pinned domains', null, FLAG_DISABLED | FLAG_HIDDEN),
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -163,7 +163,7 @@ export class User {
|
|||||||
}
|
}
|
||||||
|
|
||||||
getFields(type: 'public' | 'private' = 'public') {
|
getFields(type: 'public' | 'private' = 'public') {
|
||||||
const fields = ['_id', 'uname', 'mail', 'perm', 'role', 'priv', 'regat', 'loginat', 'avatar'].concat(this._publicFields);
|
const fields = ['_id', 'uname', 'mail', 'perm', 'role', 'priv', 'regat', 'loginat', 'avatar', 'avatarUrl'].concat(this._publicFields);
|
||||||
return type === 'public' ? fields : fields.concat(this._privateFields);
|
return type === 'public' ? fields : fields.concat(this._privateFields);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user