(bug 29485) For rss feed of the RC, it groups consecutive edits by same user, but...
[lhc/web/wiklou.git] / resources / Resources.php
index a3c07c9..25c13ce 100644 (file)
@@ -8,8 +8,9 @@ return array(
        'noscript' => array( 'class' => 'ResourceLoaderNoscriptModule' ),
        'startup' => array( 'class' => 'ResourceLoaderStartUpModule' ),
        'user' => array( 'class' => 'ResourceLoaderUserModule' ),
-       'user.options' => array( 'class' => 'ResourceLoaderUserOptionsModule' ),
        'user.groups' => array( 'class' => 'ResourceLoaderUserGroupsModule' ),
+       'user.options' => array( 'class' => 'ResourceLoaderUserOptionsModule' ),
+       'user.tokens' => array( 'class' => 'ResourceLoaderUserTokensModule' ),
 
        /* Skins */
 
@@ -17,45 +18,45 @@ return array(
                'styles' => array( 'vector/screen.css' => array( 'media' => 'screen' ) ),
                'scripts' => 'vector/vector.js',
                'remoteBasePath' => $GLOBALS['wgStylePath'],
-               'localBasePath' => "{$GLOBALS['IP']}/skins",
+               'localBasePath' => $GLOBALS['wgStyleDirectory'],
        ),
        'skins.monobook' => array(
                'styles' => array(
                        'monobook/main.css' => array( 'media' => 'screen' ),
                ),
                'remoteBasePath' => $GLOBALS['wgStylePath'],
-               'localBasePath' => "{$GLOBALS['IP']}/skins",
+               'localBasePath' => $GLOBALS['wgStyleDirectory'],
        ),
        'skins.simple' => array(
                'styles' => array( 'simple/main.css' => array( 'media' => 'screen' ) ),
                'remoteBasePath' => $GLOBALS['wgStylePath'],
-               'localBasePath' => "{$GLOBALS['IP']}/skins",
+               'localBasePath' => $GLOBALS['wgStyleDirectory'],
        ),
        'skins.chick' => array(
                'styles' => array( 'chick/main.css' => array( 'media' => 'screen,handheld' ) ),
                'remoteBasePath' => $GLOBALS['wgStylePath'],
-               'localBasePath' => "{$GLOBALS['IP']}/skins",
+               'localBasePath' => $GLOBALS['wgStyleDirectory'],
        ),
        'skins.modern' => array(
                'styles' => array( 'modern/main.css' => array( 'media' => 'screen' ),
                                'modern/print.css' => array( 'media' => 'print' ) ),
                'remoteBasePath' => $GLOBALS['wgStylePath'],
-               'localBasePath' => "{$GLOBALS['IP']}/skins",
+               'localBasePath' => $GLOBALS['wgStyleDirectory'],
        ),
        'skins.cologneblue' => array(
                'styles' => array( 'common/cologneblue.css' => array( 'media' => 'screen' ) ),
                'remoteBasePath' => $GLOBALS['wgStylePath'],
-               'localBasePath' => "{$GLOBALS['IP']}/skins",
+               'localBasePath' => $GLOBALS['wgStyleDirectory'],
        ),
        'skins.nostalgia' => array(
                'styles' => array( 'common/nostalgia.css' => array( 'media' => 'screen' ) ),
                'remoteBasePath' => $GLOBALS['wgStylePath'],
-               'localBasePath' => "{$GLOBALS['IP']}/skins",
+               'localBasePath' => $GLOBALS['wgStyleDirectory'],
        ),
        'skins.standard' => array(
                'styles' => array( 'common/wikistandard.css' => array( 'media' => 'screen' ) ),
                'remoteBasePath' => $GLOBALS['wgStylePath'],
-               'localBasePath' => "{$GLOBALS['IP']}/skins",
+               'localBasePath' => $GLOBALS['wgStyleDirectory'],
        ),
 
        /* jQuery */
@@ -132,6 +133,9 @@ return array(
                'styles' => 'resources/jquery/jquery.makeCollapsible.css',
                'messages' => array( 'collapsible-expand', 'collapsible-collapse' ),
        ),
+       'jquery.mwPrototypes' => array(
+               'scripts' => 'resources/jquery/jquery.mwPrototypes.js',
+       ),
        'jquery.qunit' => array(
                'scripts' => 'resources/jquery/jquery.qunit.js',
                'styles' => 'resources/jquery/jquery.qunit.css',
@@ -139,6 +143,7 @@ return array(
        'jquery.suggestions' => array(
                'scripts' => 'resources/jquery/jquery.suggestions.js',
                'styles' => 'resources/jquery/jquery.suggestions.css',
+               'dependencies' => 'jquery.autoEllipsis',
        ),
        'jquery.tabIndex' => array(
                'scripts' => 'resources/jquery/jquery.tabIndex.js',
@@ -434,20 +439,29 @@ return array(
        'mediawiki.htmlform' => array(
                'scripts' => 'resources/mediawiki/mediawiki.htmlform.js',
        ),
+       'mediawiki.Title' => array(
+               'scripts' => 'resources/mediawiki/mediawiki.Title.js',
+       ),
+       'mediawiki.user' => array(
+               'scripts' => 'resources/mediawiki/mediawiki.user.js',
+               'dependencies' => array(
+                       'jquery.cookie',
+               ),
+       ),
        'mediawiki.util' => array(
-               'scripts' => 'resources/mediawiki.util/mediawiki.util.js',
+               'scripts' => 'resources/mediawiki/mediawiki.util.js',
                'dependencies' => array(
                        'jquery.checkboxShiftClick',
                        'jquery.client',
                        'jquery.cookie',
                        'jquery.messageBox',
                        'jquery.makeCollapsible',
+                       'jquery.mwPrototypes',
                        'jquery.placeholder',
                ),
-               'debugScripts' => 'resources/mediawiki.util/mediawiki.util.test.js',
        ),
-       'mediawiki.util.jpegmeta' => array(
-               'scripts' => 'resources/mediawiki.util/mediawiki.util.jpegmeta.js',
+       'mediawiki.libs.jpegmeta' => array(
+               'scripts' => 'resources/mediawiki.libs/mediawiki.libs.jpegmeta.js',
        ),
        'mediawiki.action.history' => array(
                'scripts' => 'resources/mediawiki.action/mediawiki.action.history.js',
@@ -473,7 +487,15 @@ return array(
        ),
        'mediawiki.action.watch.ajax' => array(
                'scripts' => 'resources/mediawiki.action/mediawiki.action.watch.ajax.js',
-               'dependencies' => 'mediawiki.util',
+               'messages' => array(
+                       'watch',
+                       'unwatch',
+                       'watching',
+                       'unwatching',
+                       'tooltip-ca-watch',
+                       'tooltip-ca-unwatch',
+                       'watcherrortext',
+               ),
        ),
 
        /* Special pages */
@@ -496,6 +518,9 @@ return array(
        'mediawiki.special.block' => array(
                'scripts' => 'resources/mediawiki.special/mediawiki.special.block.js',
        ),
+       'mediawiki.special.undelete' => array(
+               'scripts' => 'resources/mediawiki.special/mediawiki.special.undelete.js',
+       ),
        'mediawiki.special.movePage' => array(
                'scripts' => 'resources/mediawiki.special/mediawiki.special.movePage.js',
                'dependencies' => 'jquery.byteLimit',
@@ -511,7 +536,7 @@ return array(
                        'size-gigabytes',
                        'largefileserver',
                ),
-               'dependencies' => array( 'mediawiki.util.jpegmeta' ),
+               'dependencies' => array( 'mediawiki.libs.jpegmeta' ),
        ),
 
        'mediawiki.language' => array(
@@ -570,67 +595,56 @@ return array(
        'mediawiki.legacy.ajax' => array(
                'scripts' => 'common/ajax.js',
                'remoteBasePath' => $GLOBALS['wgStylePath'],
-               'localBasePath' => "{$GLOBALS['IP']}/skins",
-               'messages' => array(
-                       'watch',
-                       'unwatch',
-                       'watching',
-                       'unwatching',
-                       'tooltip-ca-watch',
-                       'tooltip-ca-unwatch',
-               ),
+               'localBasePath' => $GLOBALS['wgStyleDirectory'],
                'dependencies' => 'mediawiki.legacy.wikibits',
        ),
        'mediawiki.legacy.commonPrint' => array(
                'styles' => array( 'common/commonPrint.css' => array( 'media' => 'print' ) ),
                'remoteBasePath' => $GLOBALS['wgStylePath'],
-               'localBasePath' => "{$GLOBALS['IP']}/skins",
+               'localBasePath' => $GLOBALS['wgStyleDirectory'],
        ),
        'mediawiki.legacy.config' => array(
                'scripts' => 'common/config.js',
                'styles' => array( 'common/config.css', 'common/config-cc.css' ),
                'remoteBasePath' => $GLOBALS['wgStylePath'],
-               'localBasePath' => "{$GLOBALS['IP']}/skins",
+               'localBasePath' => $GLOBALS['wgStyleDirectory'],
                'dependencies' => 'mediawiki.legacy.wikibits',
        ),
        'mediawiki.legacy.diff' => array(
-               'scripts' => 'common/diff.js',
                'styles' => 'common/diff.css',
                'group' => 'mediawiki.action.history',
                'remoteBasePath' => $GLOBALS['wgStylePath'],
-               'localBasePath' => "{$GLOBALS['IP']}/skins",
-               'dependencies' => 'mediawiki.legacy.wikibits',
-               'position' => 'top',
+               'localBasePath' => $GLOBALS['wgStyleDirectory'],
        ),
        'mediawiki.legacy.edit' => array(
                'scripts' => 'common/edit.js',
                'remoteBasePath' => $GLOBALS['wgStylePath'],
-               'localBasePath' => "{$GLOBALS['IP']}/skins",
+               'localBasePath' => $GLOBALS['wgStyleDirectory'],
                'dependencies' => 'mediawiki.legacy.wikibits',
        ),
        'mediawiki.legacy.IEFixes' => array(
                'scripts' => 'common/IEFixes.js',
                'remoteBasePath' => $GLOBALS['wgStylePath'],
-               'localBasePath' => "{$GLOBALS['IP']}/skins",
+               'localBasePath' => $GLOBALS['wgStyleDirectory'],
                'dependencies' => 'mediawiki.legacy.wikibits',
        ),
        'mediawiki.legacy.mwsuggest' => array(
                'scripts' => 'common/mwsuggest.js',
                'remoteBasePath' => $GLOBALS['wgStylePath'],
-               'localBasePath' => "{$GLOBALS['IP']}/skins",
+               'localBasePath' => $GLOBALS['wgStyleDirectory'],
                'dependencies' => array( 'mediawiki.legacy.wikibits', 'jquery.client' ),
                'messages' => array( 'search-mwsuggest-enabled', 'search-mwsuggest-disabled' ),
        ),
        'mediawiki.legacy.preview' => array(
                'scripts' => 'common/preview.js',
                'remoteBasePath' => $GLOBALS['wgStylePath'],
-               'localBasePath' => "{$GLOBALS['IP']}/skins",
+               'localBasePath' => $GLOBALS['wgStyleDirectory'],
                'dependencies' => 'mediawiki.legacy.wikibits',
        ),
        'mediawiki.legacy.protect' => array(
                'scripts' => 'common/protect.js',
                'remoteBasePath' => $GLOBALS['wgStylePath'],
-               'localBasePath' => "{$GLOBALS['IP']}/skins",
+               'localBasePath' => $GLOBALS['wgStyleDirectory'],
                'dependencies' => array(
                        'mediawiki.legacy.wikibits',
                        'jquery.byteLimit',
@@ -639,36 +653,36 @@ return array(
        'mediawiki.legacy.search' => array(
                'scripts' => 'common/search.js',
                'remoteBasePath' => $GLOBALS['wgStylePath'],
-               'localBasePath' => "{$GLOBALS['IP']}/skins",
+               'localBasePath' => $GLOBALS['wgStyleDirectory'],
                'styles' => 'common/search.css',
                'dependencies' => 'mediawiki.legacy.wikibits',
        ),
        'mediawiki.legacy.shared' => array(
                'styles' => array( 'common/shared.css' => array( 'media' => 'screen' ) ),
                'remoteBasePath' => $GLOBALS['wgStylePath'],
-               'localBasePath' => "{$GLOBALS['IP']}/skins",
+               'localBasePath' => $GLOBALS['wgStyleDirectory'],
        ),
        'mediawiki.legacy.oldshared' => array(
                'styles' => array( 'common/oldshared.css' => array( 'media' => 'screen' ) ),
                'remoteBasePath' => $GLOBALS['wgStylePath'],
-               'localBasePath' => "{$GLOBALS['IP']}/skins",
+               'localBasePath' => $GLOBALS['wgStyleDirectory'],
        ),
        'mediawiki.legacy.upload' => array(
                'scripts' => 'common/upload.js',
                'remoteBasePath' => $GLOBALS['wgStylePath'],
-               'localBasePath' => "{$GLOBALS['IP']}/skins",
+               'localBasePath' => $GLOBALS['wgStyleDirectory'],
                'dependencies' => 'mediawiki.legacy.wikibits',
        ),
        'mediawiki.legacy.wikibits' => array(
                'scripts' => 'common/wikibits.js',
                'remoteBasePath' => $GLOBALS['wgStylePath'],
-               'localBasePath' => "{$GLOBALS['IP']}/skins",
+               'localBasePath' => $GLOBALS['wgStyleDirectory'],
                'dependencies' => 'mediawiki.language',
                'messages' => array( 'showtoc', 'hidetoc' ),
        ),
        'mediawiki.legacy.wikiprintable' => array(
                'styles' => array( 'common/wikiprintable.css' => array( 'media' => 'print' ) ),
                'remoteBasePath' => $GLOBALS['wgStylePath'],
-               'localBasePath' => "{$GLOBALS['IP']}/skins",
+               'localBasePath' => $GLOBALS['wgStyleDirectory'],
        ),
 );