1
0
mirror of https://github.com/flarum/core.git synced 2025-08-08 09:26:34 +02:00

Recompile JS

This commit is contained in:
Toby Zerner
2017-10-07 20:12:15 +10:30
parent 06aa37d2fd
commit 6a10b4484f
2 changed files with 5 additions and 4 deletions

View File

@@ -21364,7 +21364,7 @@ System.register('flarum/helpers/avatar', [], function (_export, _context) {
// uploaded image, or the first letter of their username if they haven't // uploaded image, or the first letter of their username if they haven't
// uploaded one. // uploaded one.
if (user) { if (user) {
var username = user.username() || '?'; var username = user.displayName() || '?';
var avatarUrl = user.avatarUrl(); var avatarUrl = user.avatarUrl();
if (hasTitle) attrs.title = attrs.title || username; if (hasTitle) attrs.title = attrs.title || username;
@@ -21614,7 +21614,7 @@ System.register("flarum/helpers/username", [], function (_export, _context) {
"use strict"; "use strict";
function username(user) { function username(user) {
var name = user && user.username() || app.translator.trans('core.lib.username.deleted_text'); var name = user && user.displayName() || app.translator.trans('core.lib.username.deleted_text');
return m( return m(
"span", "span",
@@ -22445,6 +22445,7 @@ System.register('flarum/models/User', ['flarum/Model', 'flarum/utils/stringToCol
babelHelpers.extends(User.prototype, { babelHelpers.extends(User.prototype, {
username: Model.attribute('username'), username: Model.attribute('username'),
displayName: Model.attribute('displayName'),
email: Model.attribute('email'), email: Model.attribute('email'),
isActivated: Model.attribute('isActivated'), isActivated: Model.attribute('isActivated'),
password: Model.attribute('password'), password: Model.attribute('password'),

View File

@@ -28828,7 +28828,7 @@ System.register('flarum/components/UserPage', ['flarum/components/Page', 'flarum
value: function show(user) { value: function show(user) {
this.user = user; this.user = user;
app.setTitle(user.username()); app.setTitle(user.displayName());
m.redraw(); m.redraw();
} }
@@ -29286,7 +29286,7 @@ System.register('flarum/helpers/avatar', [], function (_export, _context) {
// uploaded image, or the first letter of their username if they haven't // uploaded image, or the first letter of their username if they haven't
// uploaded one. // uploaded one.
if (user) { if (user) {
var username = user.username() || '?'; var username = user.displayName() || '?';
var avatarUrl = user.avatarUrl(); var avatarUrl = user.avatarUrl();
if (hasTitle) attrs.title = attrs.title || username; if (hasTitle) attrs.title = attrs.title || username;