core: add missing exports

This commit is contained in:
undefined committed 2026-06-26 21:58:37 +08:00
1 parent 9a980c4a0b
commit ffcacb4cb8
3 files changed
+4 -2

No files matched your search

+2
View File
@@ -90,11 +90,13 @@ class SystemDashboardHandler extends SystemHandler {
}
class SystemScriptHandler extends SystemHandler {
@requireSudo
async get() {
this.response.template = 'manage_script.html';
this.response.body.scripts = global.Hydro.script;
}
@requireSudo
@param('id', Types.Name)
@param('args', Types.Content, true)
async post(domainId: string, id: string, raw = '{}') {
+1 -1
View File
@@ -267,7 +267,7 @@ AccountSetting(
'/components/profile/backgrounds/1.jpg', 'text', 'Profile Background Image',
'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', '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', 'pinnedDomains', [], 'json', 'pinned domains', null, FLAG_DISABLED | FLAG_HIDDEN),
);
+1 -1
View File
@@ -163,7 +163,7 @@ export class User {
}
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);
}