From e042fa2ada259252df4ac29705c53ee9f1512408 Mon Sep 17 00:00:00 2001 From: Toby Zerner Date: Tue, 3 Nov 2015 10:03:24 +1030 Subject: [PATCH] Release 0.1.0-beta.3 --- extensions/lock/js/forum/dist/extension.js | 158 +++++++++++---------- 1 file changed, 81 insertions(+), 77 deletions(-) diff --git a/extensions/lock/js/forum/dist/extension.js b/extensions/lock/js/forum/dist/extension.js index 1102d66ff..5a6ebee88 100644 --- a/extensions/lock/js/forum/dist/extension.js +++ b/extensions/lock/js/forum/dist/extension.js @@ -27,7 +27,8 @@ System.register('flarum/lock/addLockBadge', ['flarum/extend', 'flarum/models/Dis }], 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'; var extend, DiscussionControls, DiscussionPage, Button; @@ -68,7 +69,85 @@ System.register('flarum/lock/addLockBadge', ['flarum/extend', 'flarum/models/Dis }], 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'; 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); - } - }; }); \ No newline at end of file