Index: trunk/phase3/resources/Resources.php |
— | — | @@ -2,7 +2,7 @@ |
3 | 3 | |
4 | 4 | return array( |
5 | 5 | |
6 | | - /* Special resources who have their own classes */ |
| 6 | + /* Special modules who have their own classes */ |
7 | 7 | |
8 | 8 | 'site' => array( 'class' => 'ResourceLoaderSiteModule' ), |
9 | 9 | 'noscript' => array( 'class' => 'ResourceLoaderNoscriptModule' ), |
— | — | @@ -64,7 +64,7 @@ |
65 | 65 | |
66 | 66 | 'jquery' => array( |
67 | 67 | 'scripts' => 'resources/jquery/jquery.js', |
68 | | - 'debugRaw' => false |
| 68 | + 'debugRaw' => false, |
69 | 69 | ), |
70 | 70 | |
71 | 71 | /* jQuery Plugins */ |
— | — | @@ -164,6 +164,9 @@ |
165 | 165 | 'jquery.textSelection' => array( |
166 | 166 | 'scripts' => 'resources/jquery/jquery.textSelection.js', |
167 | 167 | ), |
| 168 | + |
| 169 | + /* jQuery Tipsy */ |
| 170 | + |
168 | 171 | 'jquery.tipsy' => array( |
169 | 172 | 'scripts' => 'resources/jquery.tipsy/jquery.tipsy.js', |
170 | 173 | 'styles' => 'resources/jquery.tipsy/jquery.tipsy.css', |
— | — | @@ -457,21 +460,109 @@ |
458 | 461 | 'jquery.cookie', |
459 | 462 | ), |
460 | 463 | ), |
461 | | - 'mediawiki.page.startup' => array( |
462 | | - 'scripts' => 'resources/mediawiki.page/mediawiki.page.startup.js', |
| 464 | + |
| 465 | + /* MediaWiki Action */ |
| 466 | + |
| 467 | + 'mediawiki.action.edit' => array( |
| 468 | + 'scripts' => 'resources/mediawiki.action/mediawiki.action.edit.js', |
463 | 469 | 'dependencies' => array( |
464 | | - 'jquery.client', |
| 470 | + 'jquery.textSelection', |
| 471 | + 'jquery.byteLimit', |
465 | 472 | ), |
466 | | - 'position' => 'top', |
467 | 473 | ), |
468 | | - 'mediawiki.page.ready' => array( |
469 | | - 'scripts' => 'resources/mediawiki.page/mediawiki.page.ready.js', |
470 | | - 'dependencies' => array( |
471 | | - 'jquery.checkboxShiftClick', |
472 | | - 'jquery.makeCollapsible', |
473 | | - 'jquery.placeholder', |
| 474 | + 'mediawiki.action.history' => array( |
| 475 | + 'scripts' => 'resources/mediawiki.action/mediawiki.action.history.js', |
| 476 | + 'dependencies' => 'jquery.ui.button', |
| 477 | + 'group' => 'mediawiki.action.history', |
| 478 | + ), |
| 479 | + 'mediawiki.action.history.diff' => array( |
| 480 | + 'styles' => 'resources/mediawiki.action/mediawiki.action.history.diff.css', |
| 481 | + 'group' => 'mediawiki.action.history', |
| 482 | + ), |
| 483 | + 'mediawiki.action.view.metadata' => array( |
| 484 | + 'scripts' => 'resources/mediawiki.action/mediawiki.action.view.metadata.js', |
| 485 | + 'messages' => array( |
| 486 | + 'metadata-expand', |
| 487 | + 'metadata-collapse', |
474 | 488 | ), |
475 | 489 | ), |
| 490 | + 'mediawiki.action.view.rightClickEdit' => array( |
| 491 | + 'scripts' => 'resources/mediawiki.action/mediawiki.action.view.rightClickEdit.js', |
| 492 | + ), |
| 493 | + 'mediawiki.action.watch.ajax' => array( |
| 494 | + 'scripts' => 'resources/mediawiki.action/mediawiki.action.watch.ajax.js', |
| 495 | + 'messages' => array( |
| 496 | + 'watch', |
| 497 | + 'unwatch', |
| 498 | + 'watching', |
| 499 | + 'unwatching', |
| 500 | + 'tooltip-ca-watch', |
| 501 | + 'tooltip-ca-unwatch', |
| 502 | + 'watcherrortext', |
| 503 | + ), |
| 504 | + ), |
| 505 | + |
| 506 | + /* MediaWiki Language */ |
| 507 | + |
| 508 | + 'mediawiki.language' => array( |
| 509 | + 'scripts' => 'resources/mediawiki.language/mediawiki.language.js', |
| 510 | + 'languageScripts' => array( |
| 511 | + 'am' => 'resources/mediawiki.language/languages/am.js', |
| 512 | + 'ar' => 'resources/mediawiki.language/languages/ar.js', |
| 513 | + 'bat-smg' => 'resources/mediawiki.language/languages/bat-smg.js', |
| 514 | + 'be' => 'resources/mediawiki.language/languages/be.js', |
| 515 | + 'be-tarask' => 'resources/mediawiki.language/languages/be-tarask.js', |
| 516 | + 'bh' => 'resources/mediawiki.language/languages/bh.js', |
| 517 | + 'bs' => 'resources/mediawiki.language/languages/bs.js', |
| 518 | + 'cs' => 'resources/mediawiki.language/languages/cs.js', |
| 519 | + 'cu' => 'resources/mediawiki.language/languages/cu.js', |
| 520 | + 'cy' => 'resources/mediawiki.language/languages/cy.js', |
| 521 | + 'dsb' => 'resources/mediawiki.language/languages/dsb.js', |
| 522 | + 'fr' => 'resources/mediawiki.language/languages/fr.js', |
| 523 | + 'ga' => 'resources/mediawiki.language/languages/ga.js', |
| 524 | + 'gd' => 'resources/mediawiki.language/languages/gd.js', |
| 525 | + 'gv' => 'resources/mediawiki.language/languages/gv.js', |
| 526 | + 'he' => 'resources/mediawiki.language/languages/he.js', |
| 527 | + 'hi' => 'resources/mediawiki.language/languages/hi.js', |
| 528 | + 'hr' => 'resources/mediawiki.language/languages/hr.js', |
| 529 | + 'hsb' => 'resources/mediawiki.language/languages/hsb.js', |
| 530 | + 'hy' => 'resources/mediawiki.language/languages/hy.js', |
| 531 | + 'ksh' => 'resources/mediawiki.language/languages/ksh.js', |
| 532 | + 'ln' => 'resources/mediawiki.language/languages/ln.js', |
| 533 | + 'lt' => 'resources/mediawiki.language/languages/lt.js', |
| 534 | + 'lv' => 'resources/mediawiki.language/languages/lv.js', |
| 535 | + 'mg' => 'resources/mediawiki.language/languages/mg.js', |
| 536 | + 'mk' => 'resources/mediawiki.language/languages/mk.js', |
| 537 | + 'mo' => 'resources/mediawiki.language/languages/mo.js', |
| 538 | + 'mt' => 'resources/mediawiki.language/languages/mt.js', |
| 539 | + 'nso' => 'resources/mediawiki.language/languages/nso.js', |
| 540 | + 'pl' => 'resources/mediawiki.language/languages/pl.js', |
| 541 | + 'pt-br' => 'resources/mediawiki.language/languages/pt-br.js', |
| 542 | + 'ro' => 'resources/mediawiki.language/languages/ro.js', |
| 543 | + 'ru' => 'resources/mediawiki.language/languages/ru.js', |
| 544 | + 'se' => 'resources/mediawiki.language/languages/se.js', |
| 545 | + 'sh' => 'resources/mediawiki.language/languages/sh.js', |
| 546 | + 'sk' => 'resources/mediawiki.language/languages/sk.js', |
| 547 | + 'sl' => 'resources/mediawiki.language/languages/sl.js', |
| 548 | + 'sma' => 'resources/mediawiki.language/languages/sma.js', |
| 549 | + 'sr-ec' => 'resources/mediawiki.language/languages/sr-ec.js', |
| 550 | + 'sr-el' => 'resources/mediawiki.language/languages/sr-el.js', |
| 551 | + 'sr' => 'resources/mediawiki.language/languages/sr.js', |
| 552 | + 'ti' => 'resources/mediawiki.language/languages/ti.js', |
| 553 | + 'tl' => 'resources/mediawiki.language/languages/tl.js', |
| 554 | + 'uk' => 'resources/mediawiki.language/languages/uk.js', |
| 555 | + 'wa' => 'resources/mediawiki.language/languages/wa.js', |
| 556 | + ), |
| 557 | + ), |
| 558 | + |
| 559 | + /* MediaWiki Libs */ |
| 560 | + |
| 561 | + 'mediawiki.libs.jpegmeta' => array( |
| 562 | + 'scripts' => 'resources/mediawiki.libs/mediawiki.libs.jpegmeta.js', |
| 563 | + ), |
| 564 | + |
| 565 | + /* MediaWiki Page */ |
| 566 | + |
476 | 567 | 'mediawiki.util' => array( |
477 | 568 | 'scripts' => 'resources/mediawiki/mediawiki.util.js', |
478 | 569 | 'dependencies' => array( |
— | — | @@ -481,12 +572,6 @@ |
482 | 573 | 'jquery.mwPrototypes', |
483 | 574 | ), |
484 | 575 | ), |
485 | | - 'mediawiki.page.mwsuggest' => array( |
486 | | - 'scripts' => 'resources/mediawiki.page/mediawiki.page.mwsuggest.js', |
487 | | - 'dependencies' => array( |
488 | | - 'jquery.ui.autocomplete', |
489 | | - ), |
490 | | - ), |
491 | 576 | 'mediawiki.page.ajaxCategories' => array( |
492 | 577 | 'scripts' => 'resources/mediawiki.page/mediawiki.page.ajaxCategories.js', |
493 | 578 | 'styles' => 'resources/mediawiki.page/mediawiki.page.ajaxCategories.css', |
— | — | @@ -525,46 +610,30 @@ |
526 | 611 | 'mediawiki.page.ajaxCategories', |
527 | 612 | ), |
528 | 613 | ), |
529 | | - 'mediawiki.libs.jpegmeta' => array( |
530 | | - 'scripts' => 'resources/mediawiki.libs/mediawiki.libs.jpegmeta.js', |
| 614 | + 'mediawiki.page.mwsuggest' => array( |
| 615 | + 'scripts' => 'resources/mediawiki.page/mediawiki.page.mwsuggest.js', |
| 616 | + 'dependencies' => array( |
| 617 | + 'jquery.ui.autocomplete', |
| 618 | + ), |
531 | 619 | ), |
532 | | - 'mediawiki.action.history' => array( |
533 | | - 'scripts' => 'resources/mediawiki.action/mediawiki.action.history.js', |
534 | | - 'dependencies' => 'jquery.ui.button', |
535 | | - 'group' => 'mediawiki.action.history', |
536 | | - ), |
537 | | - 'mediawiki.action.history.diff' => array( |
538 | | - 'styles' => 'resources/mediawiki.action/mediawiki.action.history.diff.css', |
539 | | - 'group' => 'mediawiki.action.history', |
540 | | - ), |
541 | | - 'mediawiki.action.edit' => array( |
542 | | - 'scripts' => 'resources/mediawiki.action/mediawiki.action.edit.js', |
| 620 | + 'mediawiki.page.ready' => array( |
| 621 | + 'scripts' => 'resources/mediawiki.page/mediawiki.page.ready.js', |
543 | 622 | 'dependencies' => array( |
544 | | - 'jquery.textSelection', |
545 | | - 'jquery.byteLimit', |
| 623 | + 'jquery.checkboxShiftClick', |
| 624 | + 'jquery.makeCollapsible', |
| 625 | + 'jquery.placeholder', |
546 | 626 | ), |
547 | 627 | ), |
548 | | - 'mediawiki.action.view.rightClickEdit' => array( |
549 | | - 'scripts' => 'resources/mediawiki.action/mediawiki.action.view.rightClickEdit.js', |
550 | | - ), |
551 | | - 'mediawiki.action.view.metadata' => array( |
552 | | - 'scripts' => 'resources/mediawiki.action/mediawiki.action.view.metadata.js', |
553 | | - 'messages' => array( 'metadata-expand', 'metadata-collapse' ), |
554 | | - ), |
555 | | - 'mediawiki.action.watch.ajax' => array( |
556 | | - 'scripts' => 'resources/mediawiki.action/mediawiki.action.watch.ajax.js', |
557 | | - 'messages' => array( |
558 | | - 'watch', |
559 | | - 'unwatch', |
560 | | - 'watching', |
561 | | - 'unwatching', |
562 | | - 'tooltip-ca-watch', |
563 | | - 'tooltip-ca-unwatch', |
564 | | - 'watcherrortext', |
| 628 | + 'mediawiki.page.startup' => array( |
| 629 | + 'scripts' => 'resources/mediawiki.page/mediawiki.page.startup.js', |
| 630 | + 'dependencies' => array( |
| 631 | + 'jquery.client', |
565 | 632 | ), |
| 633 | + 'position' => 'top', |
566 | 634 | ), |
| 635 | + |
567 | 636 | |
568 | | - /* Special pages */ |
| 637 | + /* MediaWiki Special pages */ |
569 | 638 | |
570 | 639 | 'mediawiki.special' => array( |
571 | 640 | 'scripts' => 'resources/mediawiki.special/mediawiki.special.js', |
— | — | @@ -612,59 +681,8 @@ |
613 | 682 | 'dependencies' => array( 'mediawiki.libs.jpegmeta' ), |
614 | 683 | ), |
615 | 684 | |
616 | | - 'mediawiki.language' => array( |
617 | | - 'scripts' => 'resources/mediawiki.language/mediawiki.language.js', |
618 | | - 'languageScripts' => array( |
619 | | - 'am' => 'resources/mediawiki.language/languages/am.js', |
620 | | - 'ar' => 'resources/mediawiki.language/languages/ar.js', |
621 | | - 'bat-smg' => 'resources/mediawiki.language/languages/bat-smg.js', |
622 | | - 'be' => 'resources/mediawiki.language/languages/be.js', |
623 | | - 'be-tarask' => 'resources/mediawiki.language/languages/be-tarask.js', |
624 | | - 'bh' => 'resources/mediawiki.language/languages/bh.js', |
625 | | - 'bs' => 'resources/mediawiki.language/languages/bs.js', |
626 | | - 'cs' => 'resources/mediawiki.language/languages/cs.js', |
627 | | - 'cu' => 'resources/mediawiki.language/languages/cu.js', |
628 | | - 'cy' => 'resources/mediawiki.language/languages/cy.js', |
629 | | - 'dsb' => 'resources/mediawiki.language/languages/dsb.js', |
630 | | - 'fr' => 'resources/mediawiki.language/languages/fr.js', |
631 | | - 'ga' => 'resources/mediawiki.language/languages/ga.js', |
632 | | - 'gd' => 'resources/mediawiki.language/languages/gd.js', |
633 | | - 'gv' => 'resources/mediawiki.language/languages/gv.js', |
634 | | - 'he' => 'resources/mediawiki.language/languages/he.js', |
635 | | - 'hi' => 'resources/mediawiki.language/languages/hi.js', |
636 | | - 'hr' => 'resources/mediawiki.language/languages/hr.js', |
637 | | - 'hsb' => 'resources/mediawiki.language/languages/hsb.js', |
638 | | - 'hy' => 'resources/mediawiki.language/languages/hy.js', |
639 | | - 'ksh' => 'resources/mediawiki.language/languages/ksh.js', |
640 | | - 'ln' => 'resources/mediawiki.language/languages/ln.js', |
641 | | - 'lt' => 'resources/mediawiki.language/languages/lt.js', |
642 | | - 'lv' => 'resources/mediawiki.language/languages/lv.js', |
643 | | - 'mg' => 'resources/mediawiki.language/languages/mg.js', |
644 | | - 'mk' => 'resources/mediawiki.language/languages/mk.js', |
645 | | - 'mo' => 'resources/mediawiki.language/languages/mo.js', |
646 | | - 'mt' => 'resources/mediawiki.language/languages/mt.js', |
647 | | - 'nso' => 'resources/mediawiki.language/languages/nso.js', |
648 | | - 'pl' => 'resources/mediawiki.language/languages/pl.js', |
649 | | - 'pt-br' => 'resources/mediawiki.language/languages/pt-br.js', |
650 | | - 'ro' => 'resources/mediawiki.language/languages/ro.js', |
651 | | - 'ru' => 'resources/mediawiki.language/languages/ru.js', |
652 | | - 'se' => 'resources/mediawiki.language/languages/se.js', |
653 | | - 'sh' => 'resources/mediawiki.language/languages/sh.js', |
654 | | - 'sk' => 'resources/mediawiki.language/languages/sk.js', |
655 | | - 'sl' => 'resources/mediawiki.language/languages/sl.js', |
656 | | - 'sma' => 'resources/mediawiki.language/languages/sma.js', |
657 | | - 'sr-ec' => 'resources/mediawiki.language/languages/sr-ec.js', |
658 | | - 'sr-el' => 'resources/mediawiki.language/languages/sr-el.js', |
659 | | - 'sr' => 'resources/mediawiki.language/languages/sr.js', |
660 | | - 'ti' => 'resources/mediawiki.language/languages/ti.js', |
661 | | - 'tl' => 'resources/mediawiki.language/languages/tl.js', |
662 | | - 'uk' => 'resources/mediawiki.language/languages/uk.js', |
663 | | - 'wa' => 'resources/mediawiki.language/languages/wa.js', |
664 | | - ), |
665 | | - ), |
| 685 | + /* MediaWiki Legacy */ |
666 | 686 | |
667 | | - /* mediawiki Legacy */ |
668 | | - |
669 | 687 | 'mediawiki.legacy.ajax' => array( |
670 | 688 | 'scripts' => 'common/ajax.js', |
671 | 689 | 'remoteBasePath' => $GLOBALS['wgStylePath'], |