mirror of
https://github.com/flarum/core.git
synced 2025-08-07 17:07:19 +02:00
Update dependencies
This commit is contained in:
2
js/admin/dist/app.js
vendored
2
js/admin/dist/app.js
vendored
@@ -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
|
||||
// intended method specified in the X-HTTP-Method-Override header.
|
||||
if (options.method !== 'GET' && options.method !== 'POST') {
|
||||
(function () {
|
||||
var method = options.method;
|
||||
extend(options, 'config', function (result, xhr) {
|
||||
return xhr.setRequestHeader('X-HTTP-Method-Override', method);
|
||||
});
|
||||
options.method = 'POST';
|
||||
})();
|
||||
}
|
||||
|
||||
// When we deserialize JSON data, if for some reason the server has provided
|
||||
|
14
js/forum/dist/app.js
vendored
14
js/forum/dist/app.js
vendored
@@ -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
|
||||
// intended method specified in the X-HTTP-Method-Override header.
|
||||
if (options.method !== 'GET' && options.method !== 'POST') {
|
||||
(function () {
|
||||
var method = options.method;
|
||||
extend(options, 'config', function (result, xhr) {
|
||||
return xhr.setRequestHeader('X-HTTP-Method-Override', method);
|
||||
});
|
||||
options.method = 'POST';
|
||||
})();
|
||||
}
|
||||
|
||||
// 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',
|
||||
value: function config(isInitialized) {
|
||||
var _this4 = this;
|
||||
|
||||
if (isInitialized) return;
|
||||
|
||||
// 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
|
||||
// reveal controls.
|
||||
if ('ontouchstart' in window) {
|
||||
(function () {
|
||||
var slidableInstance = slidable(_this4.$().addClass('Slidable'));
|
||||
var slidableInstance = slidable(this.$().addClass('Slidable'));
|
||||
|
||||
_this4.$('.DiscussionListItem-controls').on('hidden.bs.dropdown', function () {
|
||||
this.$('.DiscussionListItem-controls').on('hidden.bs.dropdown', function () {
|
||||
return slidableInstance.reset();
|
||||
});
|
||||
})();
|
||||
}
|
||||
}
|
||||
}, {
|
||||
@@ -24756,7 +24750,6 @@ System.register('flarum/components/NotificationList', ['flarum/Component', 'flar
|
||||
var groups = [];
|
||||
|
||||
if (app.cache.notifications) {
|
||||
(function () {
|
||||
var discussions = {};
|
||||
|
||||
// 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]);
|
||||
}
|
||||
});
|
||||
})();
|
||||
}
|
||||
|
||||
return m(
|
||||
@@ -27027,7 +27019,6 @@ System.register('flarum/components/ReplyComposer', ['flarum/components/ComposerB
|
||||
if (app.viewingDiscussion(discussion)) {
|
||||
app.current.stream.update();
|
||||
} else {
|
||||
(function () {
|
||||
// Otherwise, we'll create an alert message to inform the user that
|
||||
// their reply has been posted, containing a button which will
|
||||
// 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'),
|
||||
controls: [viewButton]
|
||||
}));
|
||||
})();
|
||||
}
|
||||
|
||||
app.composer.hide();
|
||||
|
Reference in New Issue
Block a user