mirror of
https://github.com/flarum/framework.git
synced 2024-12-02 06:53:47 +08:00
Extend Page component to take advantage of performance boost in flarum/core@d1c436c
This commit is contained in:
parent
5ff97f53ff
commit
94cfc5e535
14
extensions/tags/js/admin/dist/extension.js
vendored
14
extensions/tags/js/admin/dist/extension.js
vendored
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
|
@ -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">
|
||||||
|
|
Loading…
Reference in New Issue
Block a user