Skip to content
This repository has been archived by the owner on Mar 31, 2021. It is now read-only.

Commit

Permalink
Update extension icon
Browse files Browse the repository at this point in the history
  • Loading branch information
ShahiemS committed Aug 11, 2018
1 parent be58511 commit 357c625
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 23 deletions.
40 changes: 20 additions & 20 deletions js/forum/dist/extension.js
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -58,26 +58,26 @@ System.register('reflar/leven-ranks/components/LevelBar', ['flarum/Component'],
'use strict';

System.register('reflar/leven-ranks/main', ['flarum/app', 'flarum/extend', 'flarum/components/PostUser', 'reflar/leven-ranks/components/LevelBar'], function (_export, _context) {
"use strict";
"use strict";

var app, extend, PostUser, LevelBar;
return {
setters: [function (_flarumApp) {
app = _flarumApp.default;
}, function (_flarumExtend) {
extend = _flarumExtend.extend;
}, function (_flarumComponentsPostUser) {
PostUser = _flarumComponentsPostUser.default;
}, function (_reflarLevenRanksComponentsLevelBar) {
LevelBar = _reflarLevenRanksComponentsLevelBar.default;
}],
execute: function () {
var app, extend, PostUser, LevelBar;
return {
setters: [function (_flarumApp) {
app = _flarumApp.default;
}, function (_flarumExtend) {
extend = _flarumExtend.extend;
}, function (_flarumComponentsPostUser) {
PostUser = _flarumComponentsPostUser.default;
}, function (_reflarLevenRanksComponentsLevelBar) {
LevelBar = _reflarLevenRanksComponentsLevelBar.default;
}],
execute: function () {

app.initializers.add('reflar-level-ranks', function (app) {
extend(PostUser.prototype, 'view', function (view) {
view.children.push(LevelBar.component(this.props));
});
});
}
};
app.initializers.add('reflar-level-ranks', function (app) {
extend(PostUser.prototype, 'view', function (view) {
view.children.push(LevelBar.component(this.props));
});
});
}
};
});
6 changes: 3 additions & 3 deletions js/forum/src/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import PostUser from 'flarum/components/PostUser';
import LevelBar from 'reflar/leven-ranks/components/LevelBar';

app.initializers.add('reflar-level-ranks', app => {
extend(PostUser.prototype, 'view', function (view) {
view.children.push(LevelBar.component(this.props))
});
extend(PostUser.prototype, 'view', function (view) {
view.children.push(LevelBar.component(this.props))
});
});

0 comments on commit 357c625

Please sign in to comment.