Update dependencies

This commit is contained in:
Toby Zerner 2017-07-08 21:50:54 +09:30
parent cbe49d6d07
commit 53aa4b94ba
2 changed files with 51 additions and 63 deletions

View File

@ -17101,13 +17101,11 @@ System.register('flarum/App', ['flarum/utils/ItemList', 'flarum/components/Alert
// and clients support, then we'll send it as a POST request with the // and clients support, then we'll send it as a POST request with the
// intended method specified in the X-HTTP-Method-Override header. // intended method specified in the X-HTTP-Method-Override header.
if (options.method !== 'GET' && options.method !== 'POST') { if (options.method !== 'GET' && options.method !== 'POST') {
(function () {
var method = options.method; var method = options.method;
extend(options, 'config', function (result, xhr) { extend(options, 'config', function (result, xhr) {
return xhr.setRequestHeader('X-HTTP-Method-Override', method); return xhr.setRequestHeader('X-HTTP-Method-Override', method);
}); });
options.method = 'POST'; options.method = 'POST';
})();
} }
// When we deserialize JSON data, if for some reason the server has provided // When we deserialize JSON data, if for some reason the server has provided

View File

@ -19279,13 +19279,11 @@ System.register('flarum/App', ['flarum/utils/ItemList', 'flarum/components/Alert
// and clients support, then we'll send it as a POST request with the // and clients support, then we'll send it as a POST request with the
// intended method specified in the X-HTTP-Method-Override header. // intended method specified in the X-HTTP-Method-Override header.
if (options.method !== 'GET' && options.method !== 'POST') { if (options.method !== 'GET' && options.method !== 'POST') {
(function () {
var method = options.method; var method = options.method;
extend(options, 'config', function (result, xhr) { extend(options, 'config', function (result, xhr) {
return xhr.setRequestHeader('X-HTTP-Method-Override', method); return xhr.setRequestHeader('X-HTTP-Method-Override', method);
}); });
options.method = 'POST'; options.method = 'POST';
})();
} }
// When we deserialize JSON data, if for some reason the server has provided // When we deserialize JSON data, if for some reason the server has provided
@ -21696,21 +21694,17 @@ System.register('flarum/components/DiscussionListItem', ['flarum/Component', 'fl
}, { }, {
key: 'config', key: 'config',
value: function config(isInitialized) { value: function config(isInitialized) {
var _this4 = this;
if (isInitialized) return; if (isInitialized) return;
// If we're on a touch device, set up the discussion row to be slidable. // If we're on a touch device, set up the discussion row to be slidable.
// This allows the user to drag the row to either side of the screen to // This allows the user to drag the row to either side of the screen to
// reveal controls. // reveal controls.
if ('ontouchstart' in window) { if ('ontouchstart' in window) {
(function () { var slidableInstance = slidable(this.$().addClass('Slidable'));
var slidableInstance = slidable(_this4.$().addClass('Slidable'));
_this4.$('.DiscussionListItem-controls').on('hidden.bs.dropdown', function () { this.$('.DiscussionListItem-controls').on('hidden.bs.dropdown', function () {
return slidableInstance.reset(); return slidableInstance.reset();
}); });
})();
} }
} }
}, { }, {
@ -24756,7 +24750,6 @@ System.register('flarum/components/NotificationList', ['flarum/Component', 'flar
var groups = []; var groups = [];
if (app.cache.notifications) { if (app.cache.notifications) {
(function () {
var discussions = {}; var discussions = {};
// Build an array of discussions which the notifications are related to, // Build an array of discussions which the notifications are related to,
@ -24782,7 +24775,6 @@ System.register('flarum/components/NotificationList', ['flarum/Component', 'flar
groups.push(discussions[key]); groups.push(discussions[key]);
} }
}); });
})();
} }
return m( return m(
@ -27027,7 +27019,6 @@ System.register('flarum/components/ReplyComposer', ['flarum/components/ComposerB
if (app.viewingDiscussion(discussion)) { if (app.viewingDiscussion(discussion)) {
app.current.stream.update(); app.current.stream.update();
} else { } else {
(function () {
// Otherwise, we'll create an alert message to inform the user that // Otherwise, we'll create an alert message to inform the user that
// their reply has been posted, containing a button which will // their reply has been posted, containing a button which will
// transition to their new post when clicked. // transition to their new post when clicked.
@ -27045,7 +27036,6 @@ System.register('flarum/components/ReplyComposer', ['flarum/components/ComposerB
message: app.translator.trans('core.forum.composer_reply.posted_message'), message: app.translator.trans('core.forum.composer_reply.posted_message'),
controls: [viewButton] controls: [viewButton]
})); }));
})();
} }
app.composer.hide(); app.composer.hide();