Merge "Upstream `isElementInViewport` from MobileFrontend"
[lhc/web/wiklou.git] / resources / Resources.php
index 8b6b559..bdf95a7 100644 (file)
@@ -1191,6 +1191,7 @@ return [
                        'oojs-ui-windows',
                        'oojs-ui.styles.icons-content',
                        'oojs-ui.styles.icons-editing-advanced',
+                       'moment',
                        'mediawiki.Title',
                        'mediawiki.user',
                        'mediawiki.Upload',
@@ -1485,6 +1486,7 @@ return [
        ],
        'mediawiki.action.view.redirectPage' => [
                'position' => 'top',
+               'targets' => [ 'desktop', 'mobile' ],
                'styles' => 'resources/src/mediawiki.action/mediawiki.action.view.redirectPage.css',
        ],
        'mediawiki.action.view.rightClickEdit' => [
@@ -1687,6 +1689,7 @@ return [
                'position' => 'top',
                'scripts' => 'resources/src/mediawiki.special/mediawiki.special.js',
                'styles' => 'resources/src/mediawiki.special/mediawiki.special.css',
+               'targets' => [ 'desktop', 'mobile' ],
        ],
        'mediawiki.special.apisandbox.styles' => [
                'styles' => 'resources/src/mediawiki.special/mediawiki.special.apisandbox.top.css',
@@ -2215,6 +2218,25 @@ return [
                ],
                'targets' => [ 'desktop', 'mobile' ],
        ],
+       'mediawiki.widgets.SearchInputWidget' => [
+               'scripts' => [
+                       'resources/src/mediawiki.widgets/mw.widgets.SearchInputWidget.js',
+               ],
+               'dependencies' => [
+                       'mediawiki.searchSuggest',
+                       // FIXME: Needs TitleInputWidget only
+                       'mediawiki.widgets',
+               ],
+       ],
+       'mediawiki.widgets.SearchInputWidget.styles' => [
+               'skinStyles' => [
+                       'default' => [
+                               'resources/src/mediawiki.widgets/mw.widgets.SearchInputWidget.css',
+                       ],
+               ],
+               'position' => 'top',
+               'targets' => [ 'desktop', 'mobile' ],
+       ],
 
        /* es5-shim */
        'es5-shim' => [