mirror of
https://github.com/flarum/framework.git
synced 2025-01-19 18:12:59 +08:00
Upgrade to flarum-gulp 0.2.0 / Babel 6
This commit is contained in:
parent
e7736f9b4c
commit
06008cf2e1
8
extensions/lock/js/admin/dist/extension.js
vendored
8
extensions/lock/js/admin/dist/extension.js
vendored
|
@ -1,14 +1,14 @@
|
||||||
System.register('flarum/lock/main', ['flarum/extend', 'flarum/app', 'flarum/components/PermissionGrid'], function (_export) {
|
'use strict';
|
||||||
'use strict';
|
|
||||||
|
|
||||||
|
System.register('flarum/lock/main', ['flarum/extend', 'flarum/app', 'flarum/components/PermissionGrid'], function (_export, _context) {
|
||||||
var extend, app, PermissionGrid;
|
var extend, app, PermissionGrid;
|
||||||
return {
|
return {
|
||||||
setters: [function (_flarumExtend) {
|
setters: [function (_flarumExtend) {
|
||||||
extend = _flarumExtend.extend;
|
extend = _flarumExtend.extend;
|
||||||
}, function (_flarumApp) {
|
}, function (_flarumApp) {
|
||||||
app = _flarumApp['default'];
|
app = _flarumApp.default;
|
||||||
}, function (_flarumComponentsPermissionGrid) {
|
}, function (_flarumComponentsPermissionGrid) {
|
||||||
PermissionGrid = _flarumComponentsPermissionGrid['default'];
|
PermissionGrid = _flarumComponentsPermissionGrid.default;
|
||||||
}],
|
}],
|
||||||
execute: function () {
|
execute: function () {
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
{
|
{
|
||||||
"private": true,
|
"private": true,
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"gulp": "^3.8.11",
|
"gulp": "^3.9.1",
|
||||||
"flarum-gulp": "^0.1.0"
|
"flarum-gulp": "^0.2.0"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
72
extensions/lock/js/forum/dist/extension.js
vendored
72
extensions/lock/js/forum/dist/extension.js
vendored
|
@ -1,10 +1,7 @@
|
||||||
System.register('flarum/lock/addLockBadge', ['flarum/extend', 'flarum/models/Discussion', 'flarum/components/Badge'], function (_export) {
|
'use strict';
|
||||||
'use strict';
|
|
||||||
|
|
||||||
|
System.register('flarum/lock/addLockBadge', ['flarum/extend', 'flarum/models/Discussion', 'flarum/components/Badge'], function (_export, _context) {
|
||||||
var extend, Discussion, Badge;
|
var extend, Discussion, Badge;
|
||||||
|
|
||||||
_export('default', addLockBadge);
|
|
||||||
|
|
||||||
function addLockBadge() {
|
function addLockBadge() {
|
||||||
extend(Discussion.prototype, 'badges', function (badges) {
|
extend(Discussion.prototype, 'badges', function (badges) {
|
||||||
if (this.isLocked()) {
|
if (this.isLocked()) {
|
||||||
|
@ -17,24 +14,23 @@ System.register('flarum/lock/addLockBadge', ['flarum/extend', 'flarum/models/Dis
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
_export('default', addLockBadge);
|
||||||
|
|
||||||
return {
|
return {
|
||||||
setters: [function (_flarumExtend) {
|
setters: [function (_flarumExtend) {
|
||||||
extend = _flarumExtend.extend;
|
extend = _flarumExtend.extend;
|
||||||
}, function (_flarumModelsDiscussion) {
|
}, function (_flarumModelsDiscussion) {
|
||||||
Discussion = _flarumModelsDiscussion['default'];
|
Discussion = _flarumModelsDiscussion.default;
|
||||||
}, function (_flarumComponentsBadge) {
|
}, function (_flarumComponentsBadge) {
|
||||||
Badge = _flarumComponentsBadge['default'];
|
Badge = _flarumComponentsBadge.default;
|
||||||
}],
|
}],
|
||||||
execute: function () {}
|
execute: function () {}
|
||||||
};
|
};
|
||||||
});;
|
});;
|
||||||
System.register('flarum/lock/addLockControl', ['flarum/extend', 'flarum/utils/DiscussionControls', 'flarum/components/DiscussionPage', 'flarum/components/Button'], function (_export) {
|
'use strict';
|
||||||
'use strict';
|
|
||||||
|
|
||||||
|
System.register('flarum/lock/addLockControl', ['flarum/extend', 'flarum/utils/DiscussionControls', 'flarum/components/DiscussionPage', 'flarum/components/Button'], function (_export, _context) {
|
||||||
var extend, DiscussionControls, DiscussionPage, Button;
|
var extend, DiscussionControls, DiscussionPage, Button;
|
||||||
|
|
||||||
_export('default', addLockControl);
|
|
||||||
|
|
||||||
function addLockControl() {
|
function addLockControl() {
|
||||||
extend(DiscussionControls, 'moderationControls', function (items, discussion) {
|
extend(DiscussionControls, 'moderationControls', function (items, discussion) {
|
||||||
if (discussion.canLock()) {
|
if (discussion.canLock()) {
|
||||||
|
@ -57,34 +53,36 @@ System.register('flarum/lock/addLockControl', ['flarum/extend', 'flarum/utils/Di
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
_export('default', addLockControl);
|
||||||
|
|
||||||
return {
|
return {
|
||||||
setters: [function (_flarumExtend) {
|
setters: [function (_flarumExtend) {
|
||||||
extend = _flarumExtend.extend;
|
extend = _flarumExtend.extend;
|
||||||
}, function (_flarumUtilsDiscussionControls) {
|
}, function (_flarumUtilsDiscussionControls) {
|
||||||
DiscussionControls = _flarumUtilsDiscussionControls['default'];
|
DiscussionControls = _flarumUtilsDiscussionControls.default;
|
||||||
}, function (_flarumComponentsDiscussionPage) {
|
}, function (_flarumComponentsDiscussionPage) {
|
||||||
DiscussionPage = _flarumComponentsDiscussionPage['default'];
|
DiscussionPage = _flarumComponentsDiscussionPage.default;
|
||||||
}, function (_flarumComponentsButton) {
|
}, function (_flarumComponentsButton) {
|
||||||
Button = _flarumComponentsButton['default'];
|
Button = _flarumComponentsButton.default;
|
||||||
}],
|
}],
|
||||||
execute: function () {}
|
execute: function () {}
|
||||||
};
|
};
|
||||||
});;
|
});;
|
||||||
System.register('flarum/lock/components/DiscussionLockedNotification', ['flarum/components/Notification'], function (_export) {
|
'use strict';
|
||||||
'use strict';
|
|
||||||
|
|
||||||
|
System.register('flarum/lock/components/DiscussionLockedNotification', ['flarum/components/Notification'], function (_export, _context) {
|
||||||
var Notification, DiscussionLockedNotification;
|
var Notification, DiscussionLockedNotification;
|
||||||
return {
|
return {
|
||||||
setters: [function (_flarumComponentsNotification) {
|
setters: [function (_flarumComponentsNotification) {
|
||||||
Notification = _flarumComponentsNotification['default'];
|
Notification = _flarumComponentsNotification.default;
|
||||||
}],
|
}],
|
||||||
execute: function () {
|
execute: function () {
|
||||||
DiscussionLockedNotification = (function (_Notification) {
|
DiscussionLockedNotification = function (_Notification) {
|
||||||
babelHelpers.inherits(DiscussionLockedNotification, _Notification);
|
babelHelpers.inherits(DiscussionLockedNotification, _Notification);
|
||||||
|
|
||||||
function DiscussionLockedNotification() {
|
function DiscussionLockedNotification() {
|
||||||
babelHelpers.classCallCheck(this, DiscussionLockedNotification);
|
babelHelpers.classCallCheck(this, DiscussionLockedNotification);
|
||||||
babelHelpers.get(Object.getPrototypeOf(DiscussionLockedNotification.prototype), 'constructor', this).apply(this, arguments);
|
return babelHelpers.possibleConstructorReturn(this, Object.getPrototypeOf(DiscussionLockedNotification).apply(this, arguments));
|
||||||
}
|
}
|
||||||
|
|
||||||
babelHelpers.createClass(DiscussionLockedNotification, [{
|
babelHelpers.createClass(DiscussionLockedNotification, [{
|
||||||
|
@ -106,27 +104,27 @@ System.register('flarum/lock/components/DiscussionLockedNotification', ['flarum/
|
||||||
}
|
}
|
||||||
}]);
|
}]);
|
||||||
return DiscussionLockedNotification;
|
return DiscussionLockedNotification;
|
||||||
})(Notification);
|
}(Notification);
|
||||||
|
|
||||||
_export('default', DiscussionLockedNotification);
|
_export('default', DiscussionLockedNotification);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
});;
|
});;
|
||||||
System.register('flarum/lock/components/DiscussionLockedPost', ['flarum/components/EventPost'], function (_export) {
|
'use strict';
|
||||||
'use strict';
|
|
||||||
|
|
||||||
|
System.register('flarum/lock/components/DiscussionLockedPost', ['flarum/components/EventPost'], function (_export, _context) {
|
||||||
var EventPost, DiscussionLockedPost;
|
var EventPost, DiscussionLockedPost;
|
||||||
return {
|
return {
|
||||||
setters: [function (_flarumComponentsEventPost) {
|
setters: [function (_flarumComponentsEventPost) {
|
||||||
EventPost = _flarumComponentsEventPost['default'];
|
EventPost = _flarumComponentsEventPost.default;
|
||||||
}],
|
}],
|
||||||
execute: function () {
|
execute: function () {
|
||||||
DiscussionLockedPost = (function (_EventPost) {
|
DiscussionLockedPost = function (_EventPost) {
|
||||||
babelHelpers.inherits(DiscussionLockedPost, _EventPost);
|
babelHelpers.inherits(DiscussionLockedPost, _EventPost);
|
||||||
|
|
||||||
function DiscussionLockedPost() {
|
function DiscussionLockedPost() {
|
||||||
babelHelpers.classCallCheck(this, DiscussionLockedPost);
|
babelHelpers.classCallCheck(this, DiscussionLockedPost);
|
||||||
babelHelpers.get(Object.getPrototypeOf(DiscussionLockedPost.prototype), 'constructor', this).apply(this, arguments);
|
return babelHelpers.possibleConstructorReturn(this, Object.getPrototypeOf(DiscussionLockedPost).apply(this, arguments));
|
||||||
}
|
}
|
||||||
|
|
||||||
babelHelpers.createClass(DiscussionLockedPost, [{
|
babelHelpers.createClass(DiscussionLockedPost, [{
|
||||||
|
@ -141,35 +139,35 @@ System.register('flarum/lock/components/DiscussionLockedPost', ['flarum/componen
|
||||||
}
|
}
|
||||||
}]);
|
}]);
|
||||||
return DiscussionLockedPost;
|
return DiscussionLockedPost;
|
||||||
})(EventPost);
|
}(EventPost);
|
||||||
|
|
||||||
_export('default', DiscussionLockedPost);
|
_export('default', DiscussionLockedPost);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
});;
|
});;
|
||||||
System.register('flarum/lock/main', ['flarum/extend', 'flarum/app', 'flarum/Model', 'flarum/models/Discussion', 'flarum/components/NotificationGrid', 'flarum/lock/components/DiscussionLockedPost', 'flarum/lock/components/DiscussionLockedNotification', 'flarum/lock/addLockBadge', 'flarum/lock/addLockControl'], function (_export) {
|
'use strict';
|
||||||
'use strict';
|
|
||||||
|
|
||||||
|
System.register('flarum/lock/main', ['flarum/extend', 'flarum/app', 'flarum/Model', 'flarum/models/Discussion', 'flarum/components/NotificationGrid', 'flarum/lock/components/DiscussionLockedPost', 'flarum/lock/components/DiscussionLockedNotification', 'flarum/lock/addLockBadge', 'flarum/lock/addLockControl'], function (_export, _context) {
|
||||||
var extend, app, Model, Discussion, NotificationGrid, DiscussionLockedPost, DiscussionLockedNotification, addLockBadge, addLockControl;
|
var extend, app, Model, Discussion, NotificationGrid, DiscussionLockedPost, DiscussionLockedNotification, addLockBadge, addLockControl;
|
||||||
return {
|
return {
|
||||||
setters: [function (_flarumExtend) {
|
setters: [function (_flarumExtend) {
|
||||||
extend = _flarumExtend.extend;
|
extend = _flarumExtend.extend;
|
||||||
}, function (_flarumApp) {
|
}, function (_flarumApp) {
|
||||||
app = _flarumApp['default'];
|
app = _flarumApp.default;
|
||||||
}, function (_flarumModel) {
|
}, function (_flarumModel) {
|
||||||
Model = _flarumModel['default'];
|
Model = _flarumModel.default;
|
||||||
}, function (_flarumModelsDiscussion) {
|
}, function (_flarumModelsDiscussion) {
|
||||||
Discussion = _flarumModelsDiscussion['default'];
|
Discussion = _flarumModelsDiscussion.default;
|
||||||
}, function (_flarumComponentsNotificationGrid) {
|
}, function (_flarumComponentsNotificationGrid) {
|
||||||
NotificationGrid = _flarumComponentsNotificationGrid['default'];
|
NotificationGrid = _flarumComponentsNotificationGrid.default;
|
||||||
}, function (_flarumLockComponentsDiscussionLockedPost) {
|
}, function (_flarumLockComponentsDiscussionLockedPost) {
|
||||||
DiscussionLockedPost = _flarumLockComponentsDiscussionLockedPost['default'];
|
DiscussionLockedPost = _flarumLockComponentsDiscussionLockedPost.default;
|
||||||
}, function (_flarumLockComponentsDiscussionLockedNotification) {
|
}, function (_flarumLockComponentsDiscussionLockedNotification) {
|
||||||
DiscussionLockedNotification = _flarumLockComponentsDiscussionLockedNotification['default'];
|
DiscussionLockedNotification = _flarumLockComponentsDiscussionLockedNotification.default;
|
||||||
}, function (_flarumLockAddLockBadge) {
|
}, function (_flarumLockAddLockBadge) {
|
||||||
addLockBadge = _flarumLockAddLockBadge['default'];
|
addLockBadge = _flarumLockAddLockBadge.default;
|
||||||
}, function (_flarumLockAddLockControl) {
|
}, function (_flarumLockAddLockControl) {
|
||||||
addLockControl = _flarumLockAddLockControl['default'];
|
addLockControl = _flarumLockAddLockControl.default;
|
||||||
}],
|
}],
|
||||||
execute: function () {
|
execute: function () {
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
{
|
{
|
||||||
"private": true,
|
"private": true,
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"gulp": "^3.8.11",
|
"gulp": "^3.9.1",
|
||||||
"flarum-gulp": "^0.1.0"
|
"flarum-gulp": "^0.2.0"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user