From 94cfc5e535637fa56e34e93d4e386f1eae3012f9 Mon Sep 17 00:00:00 2001 From: Toby Zerner Date: Fri, 11 Mar 2016 13:21:53 +1030 Subject: [PATCH] Extend Page component to take advantage of performance boost in flarum/core@d1c436c --- extensions/tags/js/admin/dist/extension.js | 14 +++++++------- .../tags/js/admin/src/components/TagsPage.js | 4 ++-- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/extensions/tags/js/admin/dist/extension.js b/extensions/tags/js/admin/dist/extension.js index 2ef488e53..99e94312d 100644 --- a/extensions/tags/js/admin/dist/extension.js +++ b/extensions/tags/js/admin/dist/extension.js @@ -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'; - var Component, Button, EditTagModal, TagSettingsModal, tagIcon, sortTags, TagsPage; + var Page, Button, EditTagModal, TagSettingsModal, tagIcon, sortTags, TagsPage; function tagItem(tag) { return m( @@ -922,8 +922,8 @@ System.register('flarum/tags/components/TagsPage', ['flarum/Component', 'flarum/ } return { - setters: [function (_flarumComponent) { - Component = _flarumComponent['default']; + setters: [function (_flarumComponentsPage) { + Page = _flarumComponentsPage['default']; }, function (_flarumComponentsButton) { Button = _flarumComponentsButton['default']; }, function (_flarumTagsComponentsEditTagModal) { @@ -936,8 +936,8 @@ System.register('flarum/tags/components/TagsPage', ['flarum/Component', 'flarum/ sortTags = _flarumTagsUtilsSortTags['default']; }], execute: function () { - TagsPage = (function (_Component) { - babelHelpers.inherits(TagsPage, _Component); + TagsPage = (function (_Page) { + babelHelpers.inherits(TagsPage, _Page); function TagsPage() { babelHelpers.classCallCheck(this, TagsPage); @@ -1091,7 +1091,7 @@ System.register('flarum/tags/components/TagsPage', ['flarum/Component', 'flarum/ } }]); return TagsPage; - })(Component); + })(Page); _export('default', TagsPage); } diff --git a/extensions/tags/js/admin/src/components/TagsPage.js b/extensions/tags/js/admin/src/components/TagsPage.js index 88586232d..1388a08dc 100644 --- a/extensions/tags/js/admin/src/components/TagsPage.js +++ b/extensions/tags/js/admin/src/components/TagsPage.js @@ -1,4 +1,4 @@ -import Component from 'flarum/Component'; +import Page from 'flarum/components/Page'; import Button from 'flarum/components/Button'; 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() { return (