mirror of
https://github.com/flarum/core.git
synced 2025-08-07 00:47:00 +02:00
Upgrade to flarum-gulp 0.2.0 / Babel 6
This commit is contained in:
8
extensions/likes/js/admin/dist/extension.js
vendored
8
extensions/likes/js/admin/dist/extension.js
vendored
@@ -1,14 +1,14 @@
|
||||
System.register('flarum/likes/main', ['flarum/extend', 'flarum/app', 'flarum/components/PermissionGrid'], function (_export) {
|
||||
'use strict';
|
||||
'use strict';
|
||||
|
||||
System.register('flarum/likes/main', ['flarum/extend', 'flarum/app', 'flarum/components/PermissionGrid'], function (_export, _context) {
|
||||
var extend, app, PermissionGrid;
|
||||
return {
|
||||
setters: [function (_flarumExtend) {
|
||||
extend = _flarumExtend.extend;
|
||||
}, function (_flarumApp) {
|
||||
app = _flarumApp['default'];
|
||||
app = _flarumApp.default;
|
||||
}, function (_flarumComponentsPermissionGrid) {
|
||||
PermissionGrid = _flarumComponentsPermissionGrid['default'];
|
||||
PermissionGrid = _flarumComponentsPermissionGrid.default;
|
||||
}],
|
||||
execute: function () {
|
||||
|
||||
|
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"private": true,
|
||||
"devDependencies": {
|
||||
"gulp": "^3.8.11",
|
||||
"flarum-gulp": "^0.1.0"
|
||||
"gulp": "^3.9.1",
|
||||
"flarum-gulp": "^0.2.0"
|
||||
}
|
||||
}
|
||||
|
116
extensions/likes/js/forum/dist/extension.js
vendored
116
extensions/likes/js/forum/dist/extension.js
vendored
@@ -1,18 +1,8 @@
|
||||
System.register('flarum/likes/addLikeAction', ['flarum/extend', 'flarum/app', 'flarum/components/Button', 'flarum/components/CommentPost'], function (_export) {
|
||||
'use strict';
|
||||
'use strict';
|
||||
|
||||
System.register('flarum/likes/addLikeAction', ['flarum/extend', 'flarum/app', 'flarum/components/Button', 'flarum/components/CommentPost'], function (_export, _context) {
|
||||
var extend, app, Button, CommentPost;
|
||||
return {
|
||||
setters: [function (_flarumExtend) {
|
||||
extend = _flarumExtend.extend;
|
||||
}, function (_flarumApp) {
|
||||
app = _flarumApp['default'];
|
||||
}, function (_flarumComponentsButton) {
|
||||
Button = _flarumComponentsButton['default'];
|
||||
}, function (_flarumComponentsCommentPost) {
|
||||
CommentPost = _flarumComponentsCommentPost['default'];
|
||||
}],
|
||||
execute: function () {
|
||||
|
||||
_export('default', function () {
|
||||
extend(CommentPost.prototype, 'actionItems', function (items) {
|
||||
var post = this.props.post;
|
||||
@@ -49,30 +39,25 @@ System.register('flarum/likes/addLikeAction', ['flarum/extend', 'flarum/app', 'f
|
||||
}));
|
||||
});
|
||||
});
|
||||
}
|
||||
};
|
||||
});;
|
||||
System.register('flarum/likes/addLikesList', ['flarum/extend', 'flarum/app', 'flarum/components/CommentPost', 'flarum/helpers/punctuateSeries', 'flarum/helpers/username', 'flarum/helpers/icon', 'flarum/likes/components/PostLikesModal'], function (_export) {
|
||||
'use strict';
|
||||
|
||||
var extend, app, CommentPost, punctuateSeries, username, icon, PostLikesModal;
|
||||
return {
|
||||
setters: [function (_flarumExtend) {
|
||||
extend = _flarumExtend.extend;
|
||||
}, function (_flarumApp) {
|
||||
app = _flarumApp['default'];
|
||||
app = _flarumApp.default;
|
||||
}, function (_flarumComponentsButton) {
|
||||
Button = _flarumComponentsButton.default;
|
||||
}, function (_flarumComponentsCommentPost) {
|
||||
CommentPost = _flarumComponentsCommentPost['default'];
|
||||
}, function (_flarumHelpersPunctuateSeries) {
|
||||
punctuateSeries = _flarumHelpersPunctuateSeries['default'];
|
||||
}, function (_flarumHelpersUsername) {
|
||||
username = _flarumHelpersUsername['default'];
|
||||
}, function (_flarumHelpersIcon) {
|
||||
icon = _flarumHelpersIcon['default'];
|
||||
}, function (_flarumLikesComponentsPostLikesModal) {
|
||||
PostLikesModal = _flarumLikesComponentsPostLikesModal['default'];
|
||||
CommentPost = _flarumComponentsCommentPost.default;
|
||||
}],
|
||||
execute: function () {
|
||||
execute: function () {}
|
||||
};
|
||||
});;
|
||||
'use strict';
|
||||
|
||||
System.register('flarum/likes/addLikesList', ['flarum/extend', 'flarum/app', 'flarum/components/CommentPost', 'flarum/helpers/punctuateSeries', 'flarum/helpers/username', 'flarum/helpers/icon', 'flarum/likes/components/PostLikesModal'], function (_export, _context) {
|
||||
var extend, app, CommentPost, punctuateSeries, username, icon, PostLikesModal;
|
||||
|
||||
_export('default', function () {
|
||||
extend(CommentPost.prototype, 'footerItems', function (items) {
|
||||
var post = this.props.post;
|
||||
@@ -102,7 +87,7 @@ System.register('flarum/likes/addLikesList', ['flarum/extend', 'flarum/app', 'fl
|
||||
|
||||
names.push(m(
|
||||
'a',
|
||||
{ href: '#', onclick: function (e) {
|
||||
{ href: '#', onclick: function onclick(e) {
|
||||
e.preventDefault();
|
||||
app.modal.show(new PostLikesModal({ post: post }));
|
||||
} },
|
||||
@@ -122,28 +107,45 @@ System.register('flarum/likes/addLikesList', ['flarum/extend', 'flarum/app', 'fl
|
||||
}
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
return {
|
||||
setters: [function (_flarumExtend) {
|
||||
extend = _flarumExtend.extend;
|
||||
}, function (_flarumApp) {
|
||||
app = _flarumApp.default;
|
||||
}, function (_flarumComponentsCommentPost) {
|
||||
CommentPost = _flarumComponentsCommentPost.default;
|
||||
}, function (_flarumHelpersPunctuateSeries) {
|
||||
punctuateSeries = _flarumHelpersPunctuateSeries.default;
|
||||
}, function (_flarumHelpersUsername) {
|
||||
username = _flarumHelpersUsername.default;
|
||||
}, function (_flarumHelpersIcon) {
|
||||
icon = _flarumHelpersIcon.default;
|
||||
}, function (_flarumLikesComponentsPostLikesModal) {
|
||||
PostLikesModal = _flarumLikesComponentsPostLikesModal.default;
|
||||
}],
|
||||
execute: function () {}
|
||||
};
|
||||
});;
|
||||
System.register('flarum/likes/components/PostLikedNotification', ['flarum/components/Notification', 'flarum/helpers/username', 'flarum/helpers/punctuateSeries'], function (_export) {
|
||||
'use strict';
|
||||
'use strict';
|
||||
|
||||
System.register('flarum/likes/components/PostLikedNotification', ['flarum/components/Notification', 'flarum/helpers/username', 'flarum/helpers/punctuateSeries'], function (_export, _context) {
|
||||
var Notification, username, punctuateSeries, PostLikedNotification;
|
||||
return {
|
||||
setters: [function (_flarumComponentsNotification) {
|
||||
Notification = _flarumComponentsNotification['default'];
|
||||
Notification = _flarumComponentsNotification.default;
|
||||
}, function (_flarumHelpersUsername) {
|
||||
username = _flarumHelpersUsername['default'];
|
||||
username = _flarumHelpersUsername.default;
|
||||
}, function (_flarumHelpersPunctuateSeries) {
|
||||
punctuateSeries = _flarumHelpersPunctuateSeries['default'];
|
||||
punctuateSeries = _flarumHelpersPunctuateSeries.default;
|
||||
}],
|
||||
execute: function () {
|
||||
PostLikedNotification = (function (_Notification) {
|
||||
PostLikedNotification = function (_Notification) {
|
||||
babelHelpers.inherits(PostLikedNotification, _Notification);
|
||||
|
||||
function PostLikedNotification() {
|
||||
babelHelpers.classCallCheck(this, PostLikedNotification);
|
||||
babelHelpers.get(Object.getPrototypeOf(PostLikedNotification.prototype), 'constructor', this).apply(this, arguments);
|
||||
return babelHelpers.possibleConstructorReturn(this, Object.getPrototypeOf(PostLikedNotification).apply(this, arguments));
|
||||
}
|
||||
|
||||
babelHelpers.createClass(PostLikedNotification, [{
|
||||
@@ -175,31 +177,31 @@ System.register('flarum/likes/components/PostLikedNotification', ['flarum/compon
|
||||
}
|
||||
}]);
|
||||
return PostLikedNotification;
|
||||
})(Notification);
|
||||
}(Notification);
|
||||
|
||||
_export('default', PostLikedNotification);
|
||||
}
|
||||
};
|
||||
});;
|
||||
System.register('flarum/likes/components/PostLikesModal', ['flarum/components/Modal', 'flarum/helpers/avatar', 'flarum/helpers/username'], function (_export) {
|
||||
'use strict';
|
||||
'use strict';
|
||||
|
||||
System.register('flarum/likes/components/PostLikesModal', ['flarum/components/Modal', 'flarum/helpers/avatar', 'flarum/helpers/username'], function (_export, _context) {
|
||||
var Modal, avatar, username, PostLikesModal;
|
||||
return {
|
||||
setters: [function (_flarumComponentsModal) {
|
||||
Modal = _flarumComponentsModal['default'];
|
||||
Modal = _flarumComponentsModal.default;
|
||||
}, function (_flarumHelpersAvatar) {
|
||||
avatar = _flarumHelpersAvatar['default'];
|
||||
avatar = _flarumHelpersAvatar.default;
|
||||
}, function (_flarumHelpersUsername) {
|
||||
username = _flarumHelpersUsername['default'];
|
||||
username = _flarumHelpersUsername.default;
|
||||
}],
|
||||
execute: function () {
|
||||
PostLikesModal = (function (_Modal) {
|
||||
PostLikesModal = function (_Modal) {
|
||||
babelHelpers.inherits(PostLikesModal, _Modal);
|
||||
|
||||
function PostLikesModal() {
|
||||
babelHelpers.classCallCheck(this, PostLikesModal);
|
||||
babelHelpers.get(Object.getPrototypeOf(PostLikesModal.prototype), 'constructor', this).apply(this, arguments);
|
||||
return babelHelpers.possibleConstructorReturn(this, Object.getPrototypeOf(PostLikesModal).apply(this, arguments));
|
||||
}
|
||||
|
||||
babelHelpers.createClass(PostLikesModal, [{
|
||||
@@ -240,33 +242,33 @@ System.register('flarum/likes/components/PostLikesModal', ['flarum/components/Mo
|
||||
}
|
||||
}]);
|
||||
return PostLikesModal;
|
||||
})(Modal);
|
||||
}(Modal);
|
||||
|
||||
_export('default', PostLikesModal);
|
||||
}
|
||||
};
|
||||
});;
|
||||
System.register('flarum/likes/main', ['flarum/extend', 'flarum/app', 'flarum/models/Post', 'flarum/Model', 'flarum/components/NotificationGrid', 'flarum/likes/addLikeAction', 'flarum/likes/addLikesList', 'flarum/likes/components/PostLikedNotification'], function (_export) {
|
||||
'use strict';
|
||||
'use strict';
|
||||
|
||||
System.register('flarum/likes/main', ['flarum/extend', 'flarum/app', 'flarum/models/Post', 'flarum/Model', 'flarum/components/NotificationGrid', 'flarum/likes/addLikeAction', 'flarum/likes/addLikesList', 'flarum/likes/components/PostLikedNotification'], function (_export, _context) {
|
||||
var extend, app, Post, Model, NotificationGrid, addLikeAction, addLikesList, PostLikedNotification;
|
||||
return {
|
||||
setters: [function (_flarumExtend) {
|
||||
extend = _flarumExtend.extend;
|
||||
}, function (_flarumApp) {
|
||||
app = _flarumApp['default'];
|
||||
app = _flarumApp.default;
|
||||
}, function (_flarumModelsPost) {
|
||||
Post = _flarumModelsPost['default'];
|
||||
Post = _flarumModelsPost.default;
|
||||
}, function (_flarumModel) {
|
||||
Model = _flarumModel['default'];
|
||||
Model = _flarumModel.default;
|
||||
}, function (_flarumComponentsNotificationGrid) {
|
||||
NotificationGrid = _flarumComponentsNotificationGrid['default'];
|
||||
NotificationGrid = _flarumComponentsNotificationGrid.default;
|
||||
}, function (_flarumLikesAddLikeAction) {
|
||||
addLikeAction = _flarumLikesAddLikeAction['default'];
|
||||
addLikeAction = _flarumLikesAddLikeAction.default;
|
||||
}, function (_flarumLikesAddLikesList) {
|
||||
addLikesList = _flarumLikesAddLikesList['default'];
|
||||
addLikesList = _flarumLikesAddLikesList.default;
|
||||
}, function (_flarumLikesComponentsPostLikedNotification) {
|
||||
PostLikedNotification = _flarumLikesComponentsPostLikedNotification['default'];
|
||||
PostLikedNotification = _flarumLikesComponentsPostLikedNotification.default;
|
||||
}],
|
||||
execute: function () {
|
||||
|
||||
|
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"private": true,
|
||||
"devDependencies": {
|
||||
"gulp": "^3.8.11",
|
||||
"flarum-gulp": "^0.1.0"
|
||||
"gulp": "^3.9.1",
|
||||
"flarum-gulp": "^0.2.0"
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user