mirror of
https://github.com/flarum/core.git
synced 2025-07-17 06:41:21 +02:00
Release 0.1.0-beta.3
This commit is contained in:
158
extensions/lock/js/forum/dist/extension.js
vendored
158
extensions/lock/js/forum/dist/extension.js
vendored
@@ -27,7 +27,8 @@ System.register('flarum/lock/addLockBadge', ['flarum/extend', 'flarum/models/Dis
|
|||||||
}],
|
}],
|
||||||
execute: function () {}
|
execute: function () {}
|
||||||
};
|
};
|
||||||
});;System.register('flarum/lock/addLockControl', ['flarum/extend', 'flarum/utils/DiscussionControls', 'flarum/components/DiscussionPage', 'flarum/components/Button'], function (_export) {
|
});;
|
||||||
|
System.register('flarum/lock/addLockControl', ['flarum/extend', 'flarum/utils/DiscussionControls', 'flarum/components/DiscussionPage', 'flarum/components/Button'], function (_export) {
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
var extend, DiscussionControls, DiscussionPage, Button;
|
var extend, DiscussionControls, DiscussionPage, Button;
|
||||||
@@ -68,7 +69,85 @@ System.register('flarum/lock/addLockBadge', ['flarum/extend', 'flarum/models/Dis
|
|||||||
}],
|
}],
|
||||||
execute: function () {}
|
execute: function () {}
|
||||||
};
|
};
|
||||||
});;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) {
|
});;
|
||||||
|
System.register('flarum/lock/components/DiscussionLockedNotification', ['flarum/components/Notification'], function (_export) {
|
||||||
|
'use strict';
|
||||||
|
|
||||||
|
var Notification, DiscussionLockedNotification;
|
||||||
|
return {
|
||||||
|
setters: [function (_flarumComponentsNotification) {
|
||||||
|
Notification = _flarumComponentsNotification['default'];
|
||||||
|
}],
|
||||||
|
execute: function () {
|
||||||
|
DiscussionLockedNotification = (function (_Notification) {
|
||||||
|
babelHelpers.inherits(DiscussionLockedNotification, _Notification);
|
||||||
|
|
||||||
|
function DiscussionLockedNotification() {
|
||||||
|
babelHelpers.classCallCheck(this, DiscussionLockedNotification);
|
||||||
|
babelHelpers.get(Object.getPrototypeOf(DiscussionLockedNotification.prototype), 'constructor', this).apply(this, arguments);
|
||||||
|
}
|
||||||
|
|
||||||
|
babelHelpers.createClass(DiscussionLockedNotification, [{
|
||||||
|
key: 'icon',
|
||||||
|
value: function icon() {
|
||||||
|
return 'lock';
|
||||||
|
}
|
||||||
|
}, {
|
||||||
|
key: 'href',
|
||||||
|
value: function href() {
|
||||||
|
var notification = this.props.notification;
|
||||||
|
|
||||||
|
return app.route.discussion(notification.subject(), notification.content().postNumber);
|
||||||
|
}
|
||||||
|
}, {
|
||||||
|
key: 'content',
|
||||||
|
value: function content() {
|
||||||
|
return app.translator.trans('flarum-lock.forum.notifications.discussion_locked_text', { user: this.props.notification.sender() });
|
||||||
|
}
|
||||||
|
}]);
|
||||||
|
return DiscussionLockedNotification;
|
||||||
|
})(Notification);
|
||||||
|
|
||||||
|
_export('default', DiscussionLockedNotification);
|
||||||
|
}
|
||||||
|
};
|
||||||
|
});;
|
||||||
|
System.register('flarum/lock/components/DiscussionLockedPost', ['flarum/components/EventPost'], function (_export) {
|
||||||
|
'use strict';
|
||||||
|
|
||||||
|
var EventPost, DiscussionLockedPost;
|
||||||
|
return {
|
||||||
|
setters: [function (_flarumComponentsEventPost) {
|
||||||
|
EventPost = _flarumComponentsEventPost['default'];
|
||||||
|
}],
|
||||||
|
execute: function () {
|
||||||
|
DiscussionLockedPost = (function (_EventPost) {
|
||||||
|
babelHelpers.inherits(DiscussionLockedPost, _EventPost);
|
||||||
|
|
||||||
|
function DiscussionLockedPost() {
|
||||||
|
babelHelpers.classCallCheck(this, DiscussionLockedPost);
|
||||||
|
babelHelpers.get(Object.getPrototypeOf(DiscussionLockedPost.prototype), 'constructor', this).apply(this, arguments);
|
||||||
|
}
|
||||||
|
|
||||||
|
babelHelpers.createClass(DiscussionLockedPost, [{
|
||||||
|
key: 'icon',
|
||||||
|
value: function icon() {
|
||||||
|
return this.props.post.content().locked ? 'lock' : 'unlock';
|
||||||
|
}
|
||||||
|
}, {
|
||||||
|
key: 'descriptionKey',
|
||||||
|
value: function descriptionKey() {
|
||||||
|
return this.props.post.content().locked ? 'flarum-lock.forum.post_stream.discussion_locked_text' : 'flarum-lock.forum.post_stream.discussion_unlocked_text';
|
||||||
|
}
|
||||||
|
}]);
|
||||||
|
return DiscussionLockedPost;
|
||||||
|
})(EventPost);
|
||||||
|
|
||||||
|
_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';
|
||||||
|
|
||||||
var extend, app, Model, Discussion, NotificationGrid, DiscussionLockedPost, DiscussionLockedNotification, addLockBadge, addLockControl;
|
var extend, app, Model, Discussion, NotificationGrid, DiscussionLockedPost, DiscussionLockedNotification, addLockBadge, addLockControl;
|
||||||
@@ -114,79 +193,4 @@ System.register('flarum/lock/addLockBadge', ['flarum/extend', 'flarum/models/Dis
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
});;System.register('flarum/lock/components/DiscussionLockedNotification', ['flarum/components/Notification'], function (_export) {
|
|
||||||
'use strict';
|
|
||||||
|
|
||||||
var Notification, DiscussionLockedNotification;
|
|
||||||
return {
|
|
||||||
setters: [function (_flarumComponentsNotification) {
|
|
||||||
Notification = _flarumComponentsNotification['default'];
|
|
||||||
}],
|
|
||||||
execute: function () {
|
|
||||||
DiscussionLockedNotification = (function (_Notification) {
|
|
||||||
babelHelpers.inherits(DiscussionLockedNotification, _Notification);
|
|
||||||
|
|
||||||
function DiscussionLockedNotification() {
|
|
||||||
babelHelpers.classCallCheck(this, DiscussionLockedNotification);
|
|
||||||
babelHelpers.get(Object.getPrototypeOf(DiscussionLockedNotification.prototype), 'constructor', this).apply(this, arguments);
|
|
||||||
}
|
|
||||||
|
|
||||||
babelHelpers.createClass(DiscussionLockedNotification, [{
|
|
||||||
key: 'icon',
|
|
||||||
value: function icon() {
|
|
||||||
return 'lock';
|
|
||||||
}
|
|
||||||
}, {
|
|
||||||
key: 'href',
|
|
||||||
value: function href() {
|
|
||||||
var notification = this.props.notification;
|
|
||||||
|
|
||||||
return app.route.discussion(notification.subject(), notification.content().postNumber);
|
|
||||||
}
|
|
||||||
}, {
|
|
||||||
key: 'content',
|
|
||||||
value: function content() {
|
|
||||||
return app.translator.trans('flarum-lock.forum.notifications.discussion_locked_text', { user: this.props.notification.sender() });
|
|
||||||
}
|
|
||||||
}]);
|
|
||||||
return DiscussionLockedNotification;
|
|
||||||
})(Notification);
|
|
||||||
|
|
||||||
_export('default', DiscussionLockedNotification);
|
|
||||||
}
|
|
||||||
};
|
|
||||||
});;System.register('flarum/lock/components/DiscussionLockedPost', ['flarum/components/EventPost'], function (_export) {
|
|
||||||
'use strict';
|
|
||||||
|
|
||||||
var EventPost, DiscussionLockedPost;
|
|
||||||
return {
|
|
||||||
setters: [function (_flarumComponentsEventPost) {
|
|
||||||
EventPost = _flarumComponentsEventPost['default'];
|
|
||||||
}],
|
|
||||||
execute: function () {
|
|
||||||
DiscussionLockedPost = (function (_EventPost) {
|
|
||||||
babelHelpers.inherits(DiscussionLockedPost, _EventPost);
|
|
||||||
|
|
||||||
function DiscussionLockedPost() {
|
|
||||||
babelHelpers.classCallCheck(this, DiscussionLockedPost);
|
|
||||||
babelHelpers.get(Object.getPrototypeOf(DiscussionLockedPost.prototype), 'constructor', this).apply(this, arguments);
|
|
||||||
}
|
|
||||||
|
|
||||||
babelHelpers.createClass(DiscussionLockedPost, [{
|
|
||||||
key: 'icon',
|
|
||||||
value: function icon() {
|
|
||||||
return this.props.post.content().locked ? 'lock' : 'unlock';
|
|
||||||
}
|
|
||||||
}, {
|
|
||||||
key: 'descriptionKey',
|
|
||||||
value: function descriptionKey() {
|
|
||||||
return this.props.post.content().locked ? 'flarum-lock.forum.post_stream.discussion_locked_text' : 'flarum-lock.forum.post_stream.discussion_unlocked_text';
|
|
||||||
}
|
|
||||||
}]);
|
|
||||||
return DiscussionLockedPost;
|
|
||||||
})(EventPost);
|
|
||||||
|
|
||||||
_export('default', DiscussionLockedPost);
|
|
||||||
}
|
|
||||||
};
|
|
||||||
});
|
});
|
Reference in New Issue
Block a user