Merge "Move VectorBeta modules to VectorBeta extension"
authorjenkins-bot <jenkins-bot@gerrit.wikimedia.org>
Fri, 20 Dec 2013 23:03:13 +0000 (23:03 +0000)
committerGerrit Code Review <gerrit@wikimedia.org>
Fri, 20 Dec 2013 23:03:13 +0000 (23:03 +0000)
1  2 
includes/DefaultSettings.php
resources/Resources.php

@@@ -3344,6 -3344,7 +3344,7 @@@ $wgResourceLoaderLESSFunctions = array
   */
  $wgResourceLoaderLESSImportPaths = array(
        "$IP/resources/mediawiki.less/",
+       "$IP/skins/vector/",
  );
  
  /**
@@@ -5933,16 -5934,6 +5934,16 @@@ $wgExtensionFunctions = array()
   * Variables defined in extensions will override conflicting variables defined
   * in the core.
   *
 + * Since MediaWiki 1.23, use of this variable to define messages is discouraged; instead, store
 + * messages in JSON format and use $wgMessagesDirs. For setting other variables than
 + * $messages, $wgExtensionMessagesFiles should still be used.
 + *
 + * If there is an entry in $wgMessagesDirs with the same key as one in
 + * $wgExtensionMessagesFiles, then any $messages variables set in the $wgExtensionMessagesFiles file
 + * will be ignored. This means an extension that only provides messages can be backwards compatible
 + * by using both $wgExtensionMessagesFiles and $wgMessagesDirs, and only one of the two
 + * will be used depending on what the version of MediaWiki supports.
 + *
   * @par Example:
   * @code
   *    $wgExtensionMessagesFiles['ConfirmEdit'] = __DIR__.'/ConfirmEdit.i18n.php';
   */
  $wgExtensionMessagesFiles = array();
  
 +/**
 + * Extension messages directories.
 + *
 + * Associative array mapping extension name to the path of the directory where message files can
 + * be found. The message files are expected to be JSON files named for their language code, e.g.
 + * en.json, de.json, etc. Extensions with messages in multiple places may specify an array of
 + * message directories.
 + *
 + * @par Simple example:
 + * @code
 + *    $wgMessagesDirs['ConfirmEdit'] = __DIR__ . '/i18n';
 + * @endcode
 + *
 + * @par Complex example:
 + * @code
 + *    $wgMessagesDirs['VisualEditor'] = array(
 + *        __DIR__ . '/i18n',
 + *        __DIR__ . '/modules/ve-core/i18n',
 + *        __DIR__ . '/modules/qunit/localisation',
 + *        __DIR__ . '/modules/oojs-ui/messages',
 + *    )
 + * @endcode
 + * @since 1.23
 + */
 +$wgMessagesDirs = array();
 +
  /**
   * Array of files with list(s) of extension entry points to be used in
   * maintenance/mergeMessageFileList.php
diff --combined resources/Resources.php
@@@ -76,6 -76,17 +76,17 @@@ return array
                'remoteBasePath' => $GLOBALS['wgStylePath'],
                'localBasePath' => $GLOBALS['wgStyleDirectory'],
        ),
+       'skins.common' => array(
+               // Used in the web installer. Test it after modifying this definition!
+               'styles' => array(
+                       'common/commonElements.css' => array( 'media' => 'screen' ),
+                       'common/commonContent.css' => array( 'media' => 'screen' ),
+                       'common/commonInterface.css' => array( 'media' => 'screen' ),
+               ),
+               'remoteBasePath' => $GLOBALS['wgStylePath'],
+               'localBasePath' => $GLOBALS['wgStyleDirectory'],
+       ),
+       // FIXME: Remove in favour of skins.monobook.styles when cache expires
        'skins.monobook' => array(
                'styles' => array(
                        'common/commonElements.css' => array( 'media' => 'screen' ),
@@@ -86,8 -97,8 +97,8 @@@
                'remoteBasePath' => $GLOBALS['wgStylePath'],
                'localBasePath' => $GLOBALS['wgStyleDirectory'],
        ),
+       // FIXME: Remove in favour of skins.vector.styles when cache expires
        'skins.vector' => array(
-               // Used in the web installer. Test it after modifying this definition!
                'styles' => array(
                        'common/commonElements.css' => array( 'media' => 'screen' ),
                        'common/commonContent.css' => array( 'media' => 'screen' ),
                'remoteBasePath' => $GLOBALS['wgStylePath'],
                'localBasePath' => $GLOBALS['wgStyleDirectory'],
        ),
-       'skins.vector.beta' => array(
-               // Keep in sync with skins.vector
+       'skins.vector.styles' => array(
+               // Used in the web installer. Test it after modifying this definition!
                'styles' => array(
-                       'common/commonElements.css' => array( 'media' => 'screen' ),
-                       'common/commonContent.css' => array( 'media' => 'screen' ),
-                       'common/commonInterface.css' => array( 'media' => 'screen' ),
-                       'vector/styles-beta.less',
+                       'vector/styles.less',
+               ),
+               'remoteBasePath' => $GLOBALS['wgStylePath'],
+               'localBasePath' => $GLOBALS['wgStyleDirectory'],
+       ),
+       'skins.monobook.styles' => array(
+               'styles' => array(
+                       'monobook/main.css' => array( 'media' => 'screen' ),
                ),
                'remoteBasePath' => $GLOBALS['wgStylePath'],
                'localBasePath' => $GLOBALS['wgStyleDirectory'],
        'mediawiki.special.changeslist' => array(
                'styles' => 'resources/mediawiki.special/mediawiki.special.changeslist.css',
        ),
 +      'mediawiki.special.changeslist.js' => array(
 +              'scripts' => 'resources/mediawiki.special/mediawiki.special.changeslist.js',
 +              'dependencies' => array(
 +                      'jquery.makeCollapsible',
 +                      'jquery.cookie',
 +              ),
 +      ),
        'mediawiki.special.changeslist.enhanced' => array(
                'styles' => 'resources/mediawiki.special/mediawiki.special.changeslist.enhanced.css',
        ),
                        'vector' => 'resources/mediawiki.ui/vector.less',
                ),
                'position' => 'top',
 +              'targets' => array( 'desktop', 'mobile' ),
 +      ),
 +      // Lightweight module for button styles
 +      'mediawiki.ui.button' => array(
 +              'skinStyles' => array(
 +                      'default' => 'resources/mediawiki.ui/components/default/buttons.less',
 +                      'vector' => 'resources/mediawiki.ui/components/vector/buttons.less',
 +              ),
 +              'position' => 'top',
 +              'targets' => array( 'desktop', 'mobile' ),
        ),
  
        /* OOJS */
                ),
                'targets' => array( 'desktop', 'mobile' ),
        ),
 -
  );