r102725 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r102724‎ | r102725 | r102726 >
Date:00:17, 11 November 2011
Author:krinkle
Status:ok
Tags:
Comment:
[Resources.php] Must. Have. Order.
Modified paths:
  • /trunk/phase3/resources/Resources.php (modified) (history)

Diff [purge]

Index: trunk/phase3/resources/Resources.php
@@ -15,14 +15,21 @@
1616
1717 /* Skins */
1818
19 - 'skins.vector' => array(
 19+ 'skins.chick' => array(
 20+ 'styles' => array( 'chick/main.css' => array( 'media' => 'screen,handheld' ) ),
 21+ 'remoteBasePath' => $GLOBALS['wgStylePath'],
 22+ 'localBasePath' => $GLOBALS['wgStyleDirectory'],
 23+ ),
 24+ 'skins.cologneblue' => array(
 25+ 'styles' => array( 'cologneblue/screen.css' => array( 'media' => 'screen' ) ),
 26+ 'remoteBasePath' => $GLOBALS['wgStylePath'],
 27+ 'localBasePath' => $GLOBALS['wgStyleDirectory'],
 28+ ),
 29+ 'skins.modern' => array(
2030 'styles' => array(
21 - 'common/commonElements.css' => array( 'media' => 'screen' ),
22 - 'common/commonContent.css' => array( 'media' => 'screen' ),
23 - 'common/commonInterface.css' => array( 'media' => 'screen' ),
24 - 'vector/screen.css' => array( 'media' => 'screen' ),
 31+ 'modern/main.css' => array( 'media' => 'screen' ),
 32+ 'modern/print.css' => array( 'media' => 'print' ),
2533 ),
26 - 'scripts' => 'vector/vector.js',
2734 'remoteBasePath' => $GLOBALS['wgStylePath'],
2835 'localBasePath' => $GLOBALS['wgStyleDirectory'],
2936 ),
@@ -36,39 +43,32 @@
3744 'remoteBasePath' => $GLOBALS['wgStylePath'],
3845 'localBasePath' => $GLOBALS['wgStyleDirectory'],
3946 ),
 47+ 'skins.nostalgia' => array(
 48+ 'styles' => array( 'nostalgia/screen.css' => array( 'media' => 'screen' ) ),
 49+ 'remoteBasePath' => $GLOBALS['wgStylePath'],
 50+ 'localBasePath' => $GLOBALS['wgStyleDirectory'],
 51+ ),
4052 'skins.simple' => array(
4153 'styles' => array( 'simple/main.css' => array( 'media' => 'screen' ) ),
4254 'remoteBasePath' => $GLOBALS['wgStylePath'],
4355 'localBasePath' => $GLOBALS['wgStyleDirectory'],
4456 ),
45 - 'skins.chick' => array(
46 - 'styles' => array( 'chick/main.css' => array( 'media' => 'screen,handheld' ) ),
 57+ 'skins.standard' => array(
 58+ 'styles' => array( 'common/wikistandard.css' => array( 'media' => 'screen' ) ),
4759 'remoteBasePath' => $GLOBALS['wgStylePath'],
4860 'localBasePath' => $GLOBALS['wgStyleDirectory'],
4961 ),
50 - 'skins.modern' => array(
 62+ 'skins.vector' => array(
5163 'styles' => array(
52 - 'modern/main.css' => array( 'media' => 'screen' ),
53 - 'modern/print.css' => array( 'media' => 'print' ),
 64+ 'common/commonElements.css' => array( 'media' => 'screen' ),
 65+ 'common/commonContent.css' => array( 'media' => 'screen' ),
 66+ 'common/commonInterface.css' => array( 'media' => 'screen' ),
 67+ 'vector/screen.css' => array( 'media' => 'screen' ),
5468 ),
 69+ 'scripts' => 'vector/vector.js',
5570 'remoteBasePath' => $GLOBALS['wgStylePath'],
5671 'localBasePath' => $GLOBALS['wgStyleDirectory'],
5772 ),
58 - 'skins.cologneblue' => array(
59 - 'styles' => array( 'cologneblue/screen.css' => array( 'media' => 'screen' ) ),
60 - 'remoteBasePath' => $GLOBALS['wgStylePath'],
61 - 'localBasePath' => $GLOBALS['wgStyleDirectory'],
62 - ),
63 - 'skins.nostalgia' => array(
64 - 'styles' => array( 'nostalgia/screen.css' => array( 'media' => 'screen' ) ),
65 - 'remoteBasePath' => $GLOBALS['wgStylePath'],
66 - 'localBasePath' => $GLOBALS['wgStyleDirectory'],
67 - ),
68 - 'skins.standard' => array(
69 - 'styles' => array( 'common/wikistandard.css' => array( 'media' => 'screen' ) ),
70 - 'remoteBasePath' => $GLOBALS['wgStylePath'],
71 - 'localBasePath' => $GLOBALS['wgStyleDirectory'],
72 - ),
7373
7474 /* jQuery */
7575
@@ -79,12 +79,12 @@
8080
8181 /* jQuery Plugins */
8282
 83+ 'jquery.appear' => array(
 84+ 'scripts' => 'resources/jquery/jquery.appear.js',
 85+ ),
8386 'jquery.async' => array(
8487 'scripts' => 'resources/jquery/jquery.async.js',
8588 ),
86 - 'jquery.appear' => array(
87 - 'scripts' => 'resources/jquery/jquery.appear.js',
88 - ),
8989 'jquery.autoEllipsis' => array(
9090 'scripts' => 'resources/jquery/jquery.autoEllipsis.js',
9191 'dependencies' => 'jquery.highlightText',
@@ -105,13 +105,13 @@
106106 'jquery.collapsibleTabs' => array(
107107 'scripts' => 'resources/jquery/jquery.collapsibleTabs.js',
108108 ),
109 - 'jquery.colorUtil' => array(
110 - 'scripts' => 'resources/jquery/jquery.colorUtil.js',
111 - ),
112109 'jquery.color' => array(
113110 'scripts' => 'resources/jquery/jquery.color.js',
114111 'dependencies' => 'jquery.colorUtil',
115112 ),
 113+ 'jquery.colorUtil' => array(
 114+ 'scripts' => 'resources/jquery/jquery.colorUtil.js',
 115+ ),
116116 'jquery.cookie' => array(
117117 'scripts' => 'resources/jquery/jquery.cookie.js',
118118 ),
@@ -139,13 +139,6 @@
140140 'jquery.hoverIntent' => array(
141141 'scripts' => 'resources/jquery/jquery.hoverIntent.js',
142142 ),
143 - 'jquery.messageBox' => array(
144 - 'scripts' => 'resources/jquery/jquery.messageBox.js',
145 - 'styles' => 'resources/jquery/jquery.messageBox.css',
146 - ),
147 - 'jquery.placeholder' => array(
148 - 'scripts' => 'resources/jquery/jquery.placeholder.js',
149 - ),
150143 'jquery.json' => array(
151144 'scripts' => 'resources/jquery/jquery.json.js',
152145 ),
@@ -157,24 +150,31 @@
158151 'styles' => 'resources/jquery/jquery.makeCollapsible.css',
159152 'messages' => array( 'collapsible-expand', 'collapsible-collapse' ),
160153 ),
 154+ 'jquery.messageBox' => array(
 155+ 'scripts' => 'resources/jquery/jquery.messageBox.js',
 156+ 'styles' => 'resources/jquery/jquery.messageBox.css',
 157+ ),
161158 'jquery.mockjax' => array(
162159 'scripts' => 'resources/jquery/jquery.mockjax.js',
163160 ),
 161+ 'jquery.mw-jump' => array(
 162+ 'scripts' => 'resources/jquery/jquery.mw-jump.js',
 163+ ),
164164 'jquery.mwExtension' => array(
165165 'scripts' => 'resources/jquery/jquery.mwExtension.js',
166166 ),
167 - 'jquery.mw-jump' => array(
168 - 'scripts' => 'resources/jquery/jquery.mw-jump.js',
 167+ 'jquery.placeholder' => array(
 168+ 'scripts' => 'resources/jquery/jquery.placeholder.js',
169169 ),
 170+ 'jquery.qunit.completenessTest' => array(
 171+ 'scripts' => 'resources/jquery/jquery.qunit.completenessTest.js',
 172+ 'dependencies' => 'jquery.qunit',
 173+ ),
170174 'jquery.qunit' => array(
171175 'scripts' => 'resources/jquery/jquery.qunit.js',
172176 'styles' => 'resources/jquery/jquery.qunit.css',
173177 'position' => 'top',
174178 ),
175 - 'jquery.qunit.completenessTest' => array(
176 - 'scripts' => 'resources/jquery/jquery.qunit.completenessTest.js',
177 - 'dependencies' => 'jquery.qunit',
178 - ),
179179 'jquery.spinner' => array(
180180 'scripts' => 'resources/jquery/jquery.spinner.js',
181181 'styles' => 'resources/jquery/jquery.spinner.css',
@@ -505,6 +505,15 @@
506506 'jquery.cookie',
507507 ),
508508 ),
 509+ 'mediawiki.util' => array(
 510+ 'scripts' => 'resources/mediawiki/mediawiki.util.js',
 511+ 'dependencies' => array(
 512+ 'jquery.client',
 513+ 'jquery.cookie',
 514+ 'jquery.messageBox',
 515+ 'jquery.mwExtension',
 516+ ),
 517+ ),
509518
510519 /* MediaWiki Action */
511520
@@ -614,15 +623,6 @@
615624
616625 /* MediaWiki Page */
617626
618 - 'mediawiki.util' => array(
619 - 'scripts' => 'resources/mediawiki/mediawiki.util.js',
620 - 'dependencies' => array(
621 - 'jquery.client',
622 - 'jquery.cookie',
623 - 'jquery.messageBox',
624 - 'jquery.mwExtension',
625 - ),
626 - ),
627627 'mediawiki.page.ready' => array(
628628 'scripts' => 'resources/mediawiki.page/mediawiki.page.ready.js',
629629 'dependencies' => array(
@@ -648,34 +648,34 @@
649649 'scripts' => 'resources/mediawiki.special/mediawiki.special.js',
650650 'styles' => 'resources/mediawiki.special/mediawiki.special.css',
651651 ),
652 - 'mediawiki.special.preferences' => array(
653 - 'scripts' => 'resources/mediawiki.special/mediawiki.special.preferences.js',
654 - 'styles' => 'resources/mediawiki.special/mediawiki.special.preferences.css',
655 - 'messages' => array( 'email-address-validity-valid', 'email-address-validity-invalid' ),
 652+ 'mediawiki.special.block' => array(
 653+ 'scripts' => 'resources/mediawiki.special/mediawiki.special.block.js',
656654 ),
657655 'mediawiki.special.changeslist' => array(
658656 'styles' => 'resources/mediawiki.special/mediawiki.special.changeslist.css',
659657 'dependencies' => array( 'jquery.makeCollapsible' ),
660658 ),
661 - 'mediawiki.special.search' => array(
662 - 'scripts' => 'resources/mediawiki.special/mediawiki.special.search.js',
663 - 'styles' => 'resources/mediawiki.special/mediawiki.special.search.css',
664 - ),
665 - 'mediawiki.special.block' => array(
666 - 'scripts' => 'resources/mediawiki.special/mediawiki.special.block.js',
667 - ),
668 - 'mediawiki.special.undelete' => array(
669 - 'scripts' => 'resources/mediawiki.special/mediawiki.special.undelete.js',
670 - ),
671659 'mediawiki.special.movePage' => array(
672660 'scripts' => 'resources/mediawiki.special/mediawiki.special.movePage.js',
673661 'dependencies' => 'jquery.byteLimit',
674662 ),
 663+ 'mediawiki.special.preferences' => array(
 664+ 'scripts' => 'resources/mediawiki.special/mediawiki.special.preferences.js',
 665+ 'styles' => 'resources/mediawiki.special/mediawiki.special.preferences.css',
 666+ 'messages' => array( 'email-address-validity-valid', 'email-address-validity-invalid' ),
 667+ ),
675668 'mediawiki.special.recentchanges' => array(
676669 'scripts' => 'resources/mediawiki.special/mediawiki.special.recentchanges.js',
677670 'dependencies' => array( 'mediawiki.special' ),
678671 'position' => 'top',
679672 ),
 673+ 'mediawiki.special.search' => array(
 674+ 'scripts' => 'resources/mediawiki.special/mediawiki.special.search.js',
 675+ 'styles' => 'resources/mediawiki.special/mediawiki.special.search.css',
 676+ ),
 677+ 'mediawiki.special.undelete' => array(
 678+ 'scripts' => 'resources/mediawiki.special/mediawiki.special.undelete.js',
 679+ ),
680680 'mediawiki.special.upload' => array(
681681 // @TODO: merge in remainder of mediawiki.legacy.upload
682682 'scripts' => 'resources/mediawiki.special/mediawiki.special.upload.js',

Status & tagging log