Extend Page component to take advantage of performance boost in flarum/core@d1c436c

This commit is contained in:
Toby Zerner 2016-03-11 13:21:53 +10:30
parent 5ff97f53ff
commit 94cfc5e535
2 changed files with 9 additions and 9 deletions

View File

@ -885,10 +885,10 @@ System.register('flarum/tags/components/TagSettingsModal', ['flarum/components/S
} }
}; };
});; });;
System.register('flarum/tags/components/TagsPage', ['flarum/Component', 'flarum/components/Button', 'flarum/tags/components/EditTagModal', 'flarum/tags/components/TagSettingsModal', 'flarum/tags/helpers/tagIcon', 'flarum/tags/utils/sortTags'], function (_export) { System.register('flarum/tags/components/TagsPage', ['flarum/components/Page', 'flarum/components/Button', 'flarum/tags/components/EditTagModal', 'flarum/tags/components/TagSettingsModal', 'flarum/tags/helpers/tagIcon', 'flarum/tags/utils/sortTags'], function (_export) {
'use strict'; 'use strict';
var Component, Button, EditTagModal, TagSettingsModal, tagIcon, sortTags, TagsPage; var Page, Button, EditTagModal, TagSettingsModal, tagIcon, sortTags, TagsPage;
function tagItem(tag) { function tagItem(tag) {
return m( return m(
@ -922,8 +922,8 @@ System.register('flarum/tags/components/TagsPage', ['flarum/Component', 'flarum/
} }
return { return {
setters: [function (_flarumComponent) { setters: [function (_flarumComponentsPage) {
Component = _flarumComponent['default']; Page = _flarumComponentsPage['default'];
}, function (_flarumComponentsButton) { }, function (_flarumComponentsButton) {
Button = _flarumComponentsButton['default']; Button = _flarumComponentsButton['default'];
}, function (_flarumTagsComponentsEditTagModal) { }, function (_flarumTagsComponentsEditTagModal) {
@ -936,8 +936,8 @@ System.register('flarum/tags/components/TagsPage', ['flarum/Component', 'flarum/
sortTags = _flarumTagsUtilsSortTags['default']; sortTags = _flarumTagsUtilsSortTags['default'];
}], }],
execute: function () { execute: function () {
TagsPage = (function (_Component) { TagsPage = (function (_Page) {
babelHelpers.inherits(TagsPage, _Component); babelHelpers.inherits(TagsPage, _Page);
function TagsPage() { function TagsPage() {
babelHelpers.classCallCheck(this, TagsPage); babelHelpers.classCallCheck(this, TagsPage);
@ -1091,7 +1091,7 @@ System.register('flarum/tags/components/TagsPage', ['flarum/Component', 'flarum/
} }
}]); }]);
return TagsPage; return TagsPage;
})(Component); })(Page);
_export('default', TagsPage); _export('default', TagsPage);
} }

View File

@ -1,4 +1,4 @@
import Component from 'flarum/Component'; import Page from 'flarum/components/Page';
import Button from 'flarum/components/Button'; import Button from 'flarum/components/Button';
import EditTagModal from 'flarum/tags/components/EditTagModal'; import EditTagModal from 'flarum/tags/components/EditTagModal';
@ -29,7 +29,7 @@ function tagItem(tag) {
); );
} }
export default class TagsPage extends Component { export default class TagsPage extends Page {
view() { view() {
return ( return (
<div className="TagsPage"> <div className="TagsPage">