Resources.php 97 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020
  1. <?php
  2. /**
  3. * Definition of core ResourceLoader modules.
  4. *
  5. * This program is free software; you can redistribute it and/or modify
  6. * it under the terms of the GNU General Public License as published by
  7. * the Free Software Foundation; either version 2 of the License, or
  8. * (at your option) any later version.
  9. *
  10. * This program is distributed in the hope that it will be useful,
  11. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  13. * GNU General Public License for more details.
  14. *
  15. * You should have received a copy of the GNU General Public License along
  16. * with this program; if not, write to the Free Software Foundation, Inc.,
  17. * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  18. * http://www.gnu.org/copyleft/gpl.html
  19. *
  20. * @file
  21. */
  22. if ( !defined( 'MEDIAWIKI' ) ) {
  23. die( 'Not an entry point.' );
  24. }
  25. return [
  26. /**
  27. * Special modules who have their own classes
  28. */
  29. 'startup' => [ 'class' => ResourceLoaderStartUpModule::class ],
  30. // Scripts managed by the local wiki (stored in the MediaWiki namespace)
  31. 'site' => [ 'class' => ResourceLoaderSiteModule::class ],
  32. 'site.styles' => [ 'class' => ResourceLoaderSiteStylesModule::class ],
  33. 'noscript' => [
  34. 'class' => ResourceLoaderWikiModule::class,
  35. 'styles' => [ 'MediaWiki:Noscript.css' ],
  36. 'group' => 'noscript',
  37. ],
  38. 'filepage' => [
  39. 'class' => ResourceLoaderWikiModule::class,
  40. 'styles' => [ 'MediaWiki:Filepage.css' ],
  41. ],
  42. 'user.groups' => [
  43. // Merged into 'user' since MediaWiki 1.28 - kept for back-compat
  44. 'dependencies' => 'user',
  45. 'targets' => [ 'desktop', 'mobile' ],
  46. ],
  47. // Scripts managed by the current user (stored in their user space)
  48. 'user' => [ 'class' => ResourceLoaderUserModule::class ],
  49. 'user.styles' => [ 'class' => ResourceLoaderUserStylesModule::class ],
  50. // Populate mediawiki.user placeholders with information about the current user
  51. 'user.defaults' => [ 'class' => ResourceLoaderUserDefaultsModule::class ],
  52. 'user.options' => [ 'class' => ResourceLoaderUserOptionsModule::class ],
  53. 'user.tokens' => [ 'class' => ResourceLoaderUserTokensModule::class ],
  54. /* MediaWiki base skinning modules */
  55. /**
  56. * Common skin styles, grouped into three graded levels.
  57. *
  58. * Level 1 "elements":
  59. * The base level that only contains the most basic of common skin styles.
  60. * Only styles for single elements are included, no styling for complex structures like the
  61. * TOC is present. This level is for skins that want to implement the entire style of even
  62. * content area structures like the TOC themselves.
  63. *
  64. * Level 2 "content":
  65. * The most commonly used level for skins implemented from scratch. This level includes all
  66. * the single element styles from "elements" as well as styles for complex structures such
  67. * as the TOC that are output in the content area by MediaWiki rather than the skin.
  68. * Essentially this is the common level that lets skins leave the style of the content area
  69. * as it is normally styled, while leaving the rest of the skin up to the skin
  70. * implementation.
  71. *
  72. * Level 3 "interface":
  73. * The highest level, this stylesheet contains extra common styles for classes like
  74. * .firstHeading, #contentSub, et cetera which are not outputted by MediaWiki but are common
  75. * to skins like MonoBook, Vector, etc... Essentially this level is for styles that are
  76. * common to MonoBook clones.
  77. *
  78. * These modules are typically loaded by addModuleStyles(), which has absolutely no concept of
  79. * dependency management. As a result they contain duplicate stylesheet references instead of
  80. * setting 'dependencies' to the lower level the module is based on. For this reason avoid
  81. * including more than one of them into your skin as this will result in duplicate CSS.
  82. */
  83. 'mediawiki.skinning.elements' => [
  84. 'styles' => [
  85. 'resources/src/mediawiki.skinning/elements.css' => [ 'media' => 'screen' ],
  86. ],
  87. ],
  88. 'mediawiki.skinning.content' => [
  89. 'styles' => [
  90. 'resources/src/mediawiki.skinning/elements.css' => [ 'media' => 'screen' ],
  91. 'resources/src/mediawiki.skinning/content.css' => [ 'media' => 'screen' ],
  92. ],
  93. ],
  94. // Used in the web installer. Test it after modifying this definition!
  95. 'mediawiki.skinning.interface' => [
  96. 'class' => ResourceLoaderSkinModule::class,
  97. 'styles' => [
  98. 'resources/src/mediawiki.skinning/elements.css' => [ 'media' => 'screen' ],
  99. 'resources/src/mediawiki.skinning/content.css' => [ 'media' => 'screen' ],
  100. 'resources/src/mediawiki.skinning/interface.css' => [ 'media' => 'screen' ],
  101. ],
  102. ],
  103. 'jquery.makeCollapsible.styles' => [
  104. 'targets' => [ 'desktop', 'mobile' ],
  105. 'class' => ResourceLoaderLessVarFileModule::class,
  106. 'lessMessages' => [
  107. 'collapsible-collapse',
  108. 'collapsible-expand',
  109. ],
  110. 'styles' => [
  111. 'resources/src/jquery/jquery.makeCollapsible.styles.less',
  112. ],
  113. ],
  114. 'mediawiki.skinning.content.parsoid' => [
  115. // Style Parsoid HTML+RDFa output consistent with wikitext from PHP parser
  116. // with the interface.css styles; skinStyles should be used if your
  117. // skin over-rides common content styling.
  118. 'skinStyles' => [
  119. 'default' => 'resources/src/mediawiki.skinning/content.parsoid.less',
  120. ],
  121. 'targets' => [ 'desktop', 'mobile' ],
  122. ],
  123. 'mediawiki.skinning.content.externallinks' => [
  124. 'styles' => [
  125. 'resources/src/mediawiki.skinning/content.externallinks.less' => [ 'media' => 'screen' ],
  126. ],
  127. ],
  128. /* Base modules */
  129. // These modules' dependencies MUST also be included in StartUpModule::getBaseModules().
  130. // These modules' dependencies MUST be dependency-free (having dependencies would cause recursion).
  131. 'jquery' => [
  132. 'scripts' => [
  133. 'resources/lib/jquery/jquery.js',
  134. 'resources/lib/jquery/jquery.migrate.js',
  135. ],
  136. 'targets' => [ 'desktop', 'mobile' ],
  137. ],
  138. 'mediawiki.base' => [
  139. 'scripts' => [
  140. // This MUST be kept in sync with maintenance/jsduck/eg-iframe.html
  141. 'resources/src/mediawiki.base/mediawiki.errorLogger.js',
  142. 'resources/src/mediawiki.base/mediawiki.base.js',
  143. ],
  144. 'dependencies' => 'jquery',
  145. 'targets' => [ 'desktop', 'mobile' ],
  146. ],
  147. 'mediawiki.legacy.wikibits' => [
  148. 'scripts' => 'resources/src/mediawiki.legacy/wikibits.js',
  149. 'dependencies' => 'jquery',
  150. 'targets' => [ 'desktop', 'mobile' ],
  151. ],
  152. /* jQuery Plugins */
  153. 'jquery.accessKeyLabel' => [
  154. 'scripts' => 'resources/src/jquery/jquery.accessKeyLabel.js',
  155. 'dependencies' => [
  156. 'jquery.client',
  157. 'mediawiki.RegExp',
  158. ],
  159. 'messages' => [ 'brackets', 'word-separator' ],
  160. 'targets' => [ 'mobile', 'desktop' ],
  161. ],
  162. 'jquery.async' => [
  163. 'scripts' => 'resources/lib/jquery.async.js',
  164. ],
  165. 'jquery.byteLength' => [
  166. 'scripts' => 'resources/src/jquery/jquery.byteLength.js',
  167. 'deprecated' => 'Use "mediawiki.String" instead.',
  168. 'dependencies' => 'mediawiki.String',
  169. 'targets' => [ 'desktop', 'mobile' ],
  170. ],
  171. 'jquery.byteLimit' => [
  172. 'dependencies' => 'jquery.lengthLimit',
  173. 'deprecated' => 'Use "jquery.lengthLimit" instead.',
  174. 'targets' => [ 'desktop', 'mobile' ],
  175. ],
  176. 'jquery.checkboxShiftClick' => [
  177. 'scripts' => 'resources/src/jquery/jquery.checkboxShiftClick.js',
  178. 'targets' => [ 'desktop', 'mobile' ],
  179. ],
  180. 'jquery.chosen' => [
  181. 'scripts' => 'resources/lib/jquery.chosen/chosen.jquery.js',
  182. 'styles' => 'resources/lib/jquery.chosen/chosen.css',
  183. ],
  184. 'jquery.client' => [
  185. 'scripts' => 'resources/lib/jquery.client/jquery.client.js',
  186. 'targets' => [ 'desktop', 'mobile' ],
  187. ],
  188. 'jquery.color' => [
  189. 'scripts' => 'resources/src/jquery/jquery.color.js',
  190. 'dependencies' => 'jquery.colorUtil',
  191. ],
  192. 'jquery.colorUtil' => [
  193. 'scripts' => 'resources/src/jquery/jquery.colorUtil.js',
  194. ],
  195. 'jquery.confirmable' => [
  196. 'scripts' => [
  197. 'resources/src/jquery/jquery.confirmable.js',
  198. 'resources/src/jquery/jquery.confirmable.mediawiki.js',
  199. ],
  200. 'messages' => [
  201. 'confirmable-confirm',
  202. 'confirmable-yes',
  203. 'confirmable-no',
  204. 'word-separator',
  205. ],
  206. 'styles' => 'resources/src/jquery/jquery.confirmable.css',
  207. 'dependencies' => 'mediawiki.jqueryMsg',
  208. ],
  209. 'jquery.cookie' => [
  210. 'scripts' => 'resources/lib/jquery.cookie.js',
  211. 'targets' => [ 'desktop', 'mobile' ],
  212. ],
  213. 'jquery.form' => [
  214. 'scripts' => 'resources/lib/jquery.form.js',
  215. ],
  216. 'jquery.fullscreen' => [
  217. 'scripts' => 'resources/lib/jquery.fullscreen.js',
  218. ],
  219. 'jquery.getAttrs' => [
  220. 'targets' => [ 'desktop', 'mobile' ],
  221. 'scripts' => 'resources/src/jquery/jquery.getAttrs.js',
  222. 'targets' => [ 'desktop', 'mobile' ],
  223. ],
  224. 'jquery.hidpi' => [
  225. 'deprecated' => 'Use of the srcset polyfill is deprecated since MediaWiki 1.32.0',
  226. 'scripts' => 'resources/src/jquery/jquery.hidpi.js',
  227. 'targets' => [ 'desktop', 'mobile' ],
  228. ],
  229. 'jquery.highlightText' => [
  230. 'scripts' => 'resources/src/jquery/jquery.highlightText.js',
  231. 'dependencies' => [
  232. 'mediawiki.RegExp',
  233. ],
  234. 'targets' => [ 'desktop', 'mobile' ],
  235. ],
  236. 'jquery.hoverIntent' => [
  237. 'scripts' => 'resources/lib/jquery.hoverIntent.js',
  238. ],
  239. 'jquery.i18n' => [
  240. 'scripts' => [
  241. 'resources/lib/jquery.i18n/src/jquery.i18n.js',
  242. 'resources/lib/jquery.i18n/src/jquery.i18n.messagestore.js',
  243. 'resources/lib/jquery.i18n/src/jquery.i18n.parser.js',
  244. 'resources/lib/jquery.i18n/src/jquery.i18n.emitter.js',
  245. 'resources/lib/jquery.i18n/src/jquery.i18n.emitter.bidi.js',
  246. 'resources/lib/jquery.i18n/src/jquery.i18n.language.js',
  247. 'resources/lib/jquery.i18n/src/jquery.i18n.fallbacks.js',
  248. ],
  249. 'dependencies' => 'mediawiki.libs.pluralruleparser',
  250. 'languageScripts' => [
  251. 'bs' => 'resources/lib/jquery.i18n/src/languages/bs.js',
  252. 'dsb' => 'resources/lib/jquery.i18n/src/languages/dsb.js',
  253. 'fi' => 'resources/lib/jquery.i18n/src/languages/fi.js',
  254. 'ga' => 'resources/lib/jquery.i18n/src/languages/ga.js',
  255. 'he' => 'resources/lib/jquery.i18n/src/languages/he.js',
  256. 'hsb' => 'resources/lib/jquery.i18n/src/languages/hsb.js',
  257. 'hu' => 'resources/lib/jquery.i18n/src/languages/hu.js',
  258. 'hy' => 'resources/lib/jquery.i18n/src/languages/hy.js',
  259. 'la' => 'resources/lib/jquery.i18n/src/languages/la.js',
  260. 'ml' => 'resources/lib/jquery.i18n/src/languages/ml.js',
  261. 'os' => 'resources/lib/jquery.i18n/src/languages/os.js',
  262. 'ru' => 'resources/lib/jquery.i18n/src/languages/ru.js',
  263. 'sl' => 'resources/lib/jquery.i18n/src/languages/sl.js',
  264. 'uk' => 'resources/lib/jquery.i18n/src/languages/uk.js',
  265. ],
  266. 'targets' => [ 'desktop', 'mobile' ],
  267. ],
  268. 'jquery.lengthLimit' => [
  269. 'scripts' => 'resources/src/jquery/jquery.lengthLimit.js',
  270. 'dependencies' => 'mediawiki.String',
  271. 'targets' => [ 'desktop', 'mobile' ],
  272. ],
  273. 'jquery.localize' => [
  274. 'scripts' => 'resources/src/jquery/jquery.localize.js',
  275. 'deprecated' => 'Please use "jquery.i18n" instead.',
  276. ],
  277. 'jquery.makeCollapsible' => [
  278. 'dependencies' => [ 'jquery.makeCollapsible.styles' ],
  279. 'scripts' => 'resources/src/jquery/jquery.makeCollapsible.js',
  280. 'styles' => 'resources/src/jquery/jquery.makeCollapsible.css',
  281. 'messages' => [ 'collapsible-expand', 'collapsible-collapse' ],
  282. 'targets' => [ 'desktop', 'mobile' ],
  283. ],
  284. 'jquery.mockjax' => [
  285. 'scripts' => 'resources/lib/jquery.mockjax.js',
  286. ],
  287. 'jquery.mw-jump' => [
  288. 'scripts' => 'resources/src/jquery/jquery.mw-jump.js',
  289. 'targets' => [ 'desktop', 'mobile' ],
  290. ],
  291. 'jquery.qunit' => [
  292. 'scripts' => 'resources/lib/qunitjs/qunit.js',
  293. 'styles' => 'resources/lib/qunitjs/qunit.css',
  294. 'targets' => [ 'desktop', 'mobile' ],
  295. ],
  296. 'jquery.spinner' => [
  297. 'scripts' => 'resources/src/jquery.spinner/spinner.js',
  298. 'styles' => 'resources/src/jquery.spinner/spinner.css',
  299. 'targets' => [ 'desktop', 'mobile' ],
  300. ],
  301. 'jquery.jStorage' => [
  302. 'deprecated' => 'Please use "mediawiki.storage" instead.',
  303. 'scripts' => 'resources/lib/jquery.jStorage.js',
  304. ],
  305. 'jquery.suggestions' => [
  306. 'targets' => [ 'desktop', 'mobile' ],
  307. 'scripts' => 'resources/src/jquery/jquery.suggestions.js',
  308. 'styles' => 'resources/src/jquery/jquery.suggestions.css',
  309. 'dependencies' => 'jquery.highlightText',
  310. ],
  311. 'jquery.tabIndex' => [
  312. 'scripts' => 'resources/src/jquery/jquery.tabIndex.js',
  313. ],
  314. 'jquery.tablesorter' => [
  315. 'targets' => [ 'desktop', 'mobile' ],
  316. 'scripts' => 'resources/src/jquery.tablesorter/jquery.tablesorter.js',
  317. 'styles' => 'resources/src/jquery.tablesorter/jquery.tablesorter.less',
  318. 'messages' => [ 'sort-descending', 'sort-ascending' ],
  319. 'dependencies' => [
  320. 'mediawiki.RegExp',
  321. 'mediawiki.language.months',
  322. ],
  323. ],
  324. 'jquery.textSelection' => [
  325. 'scripts' => 'resources/src/jquery/jquery.textSelection.js',
  326. 'dependencies' => 'jquery.client',
  327. 'targets' => [ 'mobile', 'desktop' ],
  328. ],
  329. 'jquery.throttle-debounce' => [
  330. 'scripts' => 'resources/lib/jquery.ba-throttle-debounce.js',
  331. 'targets' => [ 'desktop', 'mobile' ],
  332. ],
  333. 'jquery.xmldom' => [
  334. 'scripts' => 'resources/lib/jquery.xmldom.js',
  335. ],
  336. /* jQuery Tipsy */
  337. 'jquery.tipsy' => [
  338. 'deprecated' => true,
  339. 'scripts' => 'resources/src/jquery.tipsy/jquery.tipsy.js',
  340. 'styles' => 'resources/src/jquery.tipsy/jquery.tipsy.css',
  341. ],
  342. /* jQuery UI */
  343. 'jquery.ui.core' => [
  344. 'deprecated' => 'Please use OOUI instead.',
  345. 'scripts' => 'resources/lib/jquery.ui/jquery.ui.core.js',
  346. 'dependencies' => [
  347. 'jquery.ui.core.styles',
  348. ],
  349. 'group' => 'jquery.ui',
  350. ],
  351. 'jquery.ui.core.styles' => [
  352. 'skinStyles' => [
  353. 'default' => [
  354. 'resources/lib/jquery.ui/themes/smoothness/jquery.ui.core.css',
  355. 'resources/lib/jquery.ui/themes/smoothness/jquery.ui.theme.css',
  356. ],
  357. ],
  358. 'group' => 'jquery.ui',
  359. ],
  360. 'jquery.ui.accordion' => [
  361. 'scripts' => 'resources/lib/jquery.ui/jquery.ui.accordion.js',
  362. 'dependencies' => [
  363. 'jquery.ui.core',
  364. 'jquery.ui.widget',
  365. ],
  366. 'skinStyles' => [
  367. 'default' => 'resources/lib/jquery.ui/themes/smoothness/jquery.ui.accordion.css',
  368. ],
  369. 'group' => 'jquery.ui',
  370. ],
  371. 'jquery.ui.autocomplete' => [
  372. 'scripts' => 'resources/lib/jquery.ui/jquery.ui.autocomplete.js',
  373. 'dependencies' => [
  374. 'jquery.ui.core',
  375. 'jquery.ui.widget',
  376. 'jquery.ui.position',
  377. 'jquery.ui.menu',
  378. ],
  379. 'skinStyles' => [
  380. 'default' => 'resources/lib/jquery.ui/themes/smoothness/jquery.ui.autocomplete.css',
  381. ],
  382. 'group' => 'jquery.ui',
  383. ],
  384. 'jquery.ui.button' => [
  385. 'scripts' => 'resources/lib/jquery.ui/jquery.ui.button.js',
  386. 'dependencies' => [
  387. 'jquery.ui.core',
  388. 'jquery.ui.widget',
  389. ],
  390. 'skinStyles' => [
  391. 'default' => 'resources/lib/jquery.ui/themes/smoothness/jquery.ui.button.css',
  392. ],
  393. 'group' => 'jquery.ui',
  394. ],
  395. 'jquery.ui.datepicker' => [
  396. 'scripts' => 'resources/lib/jquery.ui/jquery.ui.datepicker.js',
  397. 'dependencies' => 'jquery.ui.core',
  398. 'skinStyles' => [
  399. 'default' => 'resources/lib/jquery.ui/themes/smoothness/jquery.ui.datepicker.css',
  400. ],
  401. 'languageScripts' => [
  402. 'af' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-af.js',
  403. 'ar' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-ar.js',
  404. 'ar-dz' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-ar-DZ.js',
  405. 'az' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-az.js',
  406. 'bg' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-bg.js',
  407. 'bs' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-bs.js',
  408. 'ca' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-ca.js',
  409. 'cs' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-cs.js',
  410. 'da' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-da.js',
  411. 'de-at' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-de-AT.js',
  412. 'de-ch' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-de-CH.js',
  413. 'de' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-de.js',
  414. 'el' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-el.js',
  415. 'en-au' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-en-AU.js',
  416. 'en-gb' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-en-GB.js',
  417. 'en-nz' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-en-NZ.js',
  418. 'eo' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-eo.js',
  419. 'es' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-es.js',
  420. 'et' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-et.js',
  421. 'eu' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-eu.js',
  422. 'fa' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-fa.js',
  423. 'fi' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-fi.js',
  424. 'fo' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-fo.js',
  425. 'fr' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-fr.js',
  426. 'fr-ch' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-fr-CH.js',
  427. 'gl' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-gl.js',
  428. 'he' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-he.js',
  429. 'hi' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-hi.js',
  430. 'hr' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-hr.js',
  431. 'hu' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-hu.js',
  432. 'hy' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-hy.js',
  433. 'id' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-id.js',
  434. 'is' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-is.js',
  435. 'it' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-it.js',
  436. 'ja' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-ja.js',
  437. 'ka' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-ka.js',
  438. 'kk' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-kk.js',
  439. 'km' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-km.js',
  440. 'ko' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-ko.js',
  441. 'lb' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-lb.js',
  442. 'lt' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-lt.js',
  443. 'lv' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-lv.js',
  444. 'mk' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-mk.js',
  445. 'ml' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-ml.js',
  446. 'ms' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-ms.js',
  447. 'nl' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-nl.js',
  448. 'nl-be' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-nl-BE.js',
  449. 'no' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-no.js',
  450. 'pl' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-pl.js',
  451. 'pt' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-pt.js',
  452. 'pt-br' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-pt-BR.js',
  453. 'rm' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-rm.js',
  454. 'ro' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-ro.js',
  455. 'ru' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-ru.js',
  456. 'sk' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-sk.js',
  457. 'sl' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-sl.js',
  458. 'sq' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-sq.js',
  459. 'sr-ec' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-sr.js',
  460. 'sr-el' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-sr-SR.js',
  461. 'sv' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-sv.js',
  462. 'ta' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-ta.js',
  463. 'th' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-th.js',
  464. 'tj' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-tj.js',
  465. 'tr' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-tr.js',
  466. 'uk' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-uk.js',
  467. 'vi' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-vi.js',
  468. 'zh-cn' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-zh-CN.js',
  469. 'zh-hk' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-zh-HK.js',
  470. 'zh-tw' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-zh-TW.js',
  471. ],
  472. 'group' => 'jquery.ui',
  473. ],
  474. 'jquery.ui.dialog' => [
  475. 'scripts' => 'resources/lib/jquery.ui/jquery.ui.dialog.js',
  476. 'dependencies' => [
  477. 'jquery.ui.core',
  478. 'jquery.ui.widget',
  479. 'jquery.ui.button',
  480. 'jquery.ui.draggable',
  481. 'jquery.ui.mouse',
  482. 'jquery.ui.position',
  483. 'jquery.ui.resizable',
  484. ],
  485. 'skinStyles' => [
  486. 'default' => 'resources/lib/jquery.ui/themes/smoothness/jquery.ui.dialog.css',
  487. ],
  488. 'group' => 'jquery.ui',
  489. ],
  490. 'jquery.ui.draggable' => [
  491. 'scripts' => 'resources/lib/jquery.ui/jquery.ui.draggable.js',
  492. 'dependencies' => [
  493. 'jquery.ui.core',
  494. 'jquery.ui.mouse',
  495. 'jquery.ui.widget',
  496. ],
  497. 'group' => 'jquery.ui',
  498. ],
  499. 'jquery.ui.droppable' => [
  500. 'scripts' => 'resources/lib/jquery.ui/jquery.ui.droppable.js',
  501. 'dependencies' => [
  502. 'jquery.ui.core',
  503. 'jquery.ui.mouse',
  504. 'jquery.ui.widget',
  505. 'jquery.ui.draggable',
  506. ],
  507. 'group' => 'jquery.ui',
  508. ],
  509. 'jquery.ui.menu' => [
  510. 'scripts' => 'resources/lib/jquery.ui/jquery.ui.menu.js',
  511. 'dependencies' => [
  512. 'jquery.ui.core',
  513. 'jquery.ui.widget',
  514. 'jquery.ui.position',
  515. ],
  516. 'skinStyles' => [
  517. 'default' => 'resources/lib/jquery.ui/themes/smoothness/jquery.ui.menu.css',
  518. ],
  519. 'group' => 'jquery.ui',
  520. ],
  521. 'jquery.ui.mouse' => [
  522. 'scripts' => 'resources/lib/jquery.ui/jquery.ui.mouse.js',
  523. 'dependencies' => 'jquery.ui.widget',
  524. 'group' => 'jquery.ui',
  525. ],
  526. 'jquery.ui.position' => [
  527. 'deprecated' => true,
  528. 'targets' => [ 'mobile', 'desktop' ],
  529. 'scripts' => 'resources/lib/jquery.ui/jquery.ui.position.js',
  530. 'group' => 'jquery.ui',
  531. ],
  532. 'jquery.ui.progressbar' => [
  533. 'scripts' => 'resources/lib/jquery.ui/jquery.ui.progressbar.js',
  534. 'dependencies' => [
  535. 'jquery.ui.core',
  536. 'jquery.ui.widget',
  537. ],
  538. 'skinStyles' => [
  539. 'default' => 'resources/lib/jquery.ui/themes/smoothness/jquery.ui.progressbar.css',
  540. ],
  541. 'group' => 'jquery.ui',
  542. ],
  543. 'jquery.ui.resizable' => [
  544. 'scripts' => 'resources/lib/jquery.ui/jquery.ui.resizable.js',
  545. 'dependencies' => [
  546. 'jquery.ui.core',
  547. 'jquery.ui.widget',
  548. 'jquery.ui.mouse',
  549. ],
  550. 'skinStyles' => [
  551. 'default' => 'resources/lib/jquery.ui/themes/smoothness/jquery.ui.resizable.css',
  552. ],
  553. 'group' => 'jquery.ui',
  554. ],
  555. 'jquery.ui.selectable' => [
  556. 'scripts' => 'resources/lib/jquery.ui/jquery.ui.selectable.js',
  557. 'dependencies' => [
  558. 'jquery.ui.core',
  559. 'jquery.ui.widget',
  560. 'jquery.ui.mouse',
  561. ],
  562. 'skinStyles' => [
  563. 'default' => 'resources/lib/jquery.ui/themes/smoothness/jquery.ui.selectable.css',
  564. ],
  565. 'group' => 'jquery.ui',
  566. ],
  567. 'jquery.ui.slider' => [
  568. 'scripts' => 'resources/lib/jquery.ui/jquery.ui.slider.js',
  569. 'dependencies' => [
  570. 'jquery.ui.core',
  571. 'jquery.ui.widget',
  572. 'jquery.ui.mouse',
  573. ],
  574. 'skinStyles' => [
  575. 'default' => 'resources/lib/jquery.ui/themes/smoothness/jquery.ui.slider.css',
  576. ],
  577. 'group' => 'jquery.ui',
  578. ],
  579. 'jquery.ui.sortable' => [
  580. 'scripts' => 'resources/lib/jquery.ui/jquery.ui.sortable.js',
  581. 'dependencies' => [
  582. 'jquery.ui.core',
  583. 'jquery.ui.mouse',
  584. 'jquery.ui.widget',
  585. ],
  586. 'group' => 'jquery.ui',
  587. ],
  588. 'jquery.ui.spinner' => [
  589. 'scripts' => 'resources/lib/jquery.ui/jquery.ui.spinner.js',
  590. 'dependencies' => [
  591. 'jquery.ui.core',
  592. 'jquery.ui.widget',
  593. 'jquery.ui.button',
  594. ],
  595. 'skinStyles' => [
  596. 'default' => 'resources/lib/jquery.ui/themes/smoothness/jquery.ui.spinner.css',
  597. ],
  598. 'group' => 'jquery.ui',
  599. ],
  600. 'jquery.ui.tabs' => [
  601. 'scripts' => 'resources/lib/jquery.ui/jquery.ui.tabs.js',
  602. 'dependencies' => [
  603. 'jquery.ui.core',
  604. 'jquery.ui.widget',
  605. ],
  606. 'skinStyles' => [
  607. 'default' => 'resources/lib/jquery.ui/themes/smoothness/jquery.ui.tabs.css',
  608. ],
  609. 'group' => 'jquery.ui',
  610. ],
  611. 'jquery.ui.tooltip' => [
  612. 'scripts' => 'resources/lib/jquery.ui/jquery.ui.tooltip.js',
  613. 'dependencies' => [
  614. 'jquery.ui.core',
  615. 'jquery.ui.widget',
  616. 'jquery.ui.position',
  617. ],
  618. 'skinStyles' => [
  619. 'default' => 'resources/lib/jquery.ui/themes/smoothness/jquery.ui.tooltip.css',
  620. ],
  621. 'group' => 'jquery.ui',
  622. ],
  623. 'jquery.ui.widget' => [
  624. 'deprecated' => true,
  625. 'scripts' => 'resources/lib/jquery.ui/jquery.ui.widget.js',
  626. 'group' => 'jquery.ui',
  627. ],
  628. // Effects
  629. 'jquery.effects.core' => [
  630. 'deprecated' => true,
  631. 'scripts' => 'resources/lib/jquery.ui/jquery.ui.effect.js',
  632. 'group' => 'jquery.ui',
  633. ],
  634. 'jquery.effects.blind' => [
  635. 'scripts' => 'resources/lib/jquery.ui/jquery.ui.effect-blind.js',
  636. 'dependencies' => 'jquery.effects.core',
  637. 'group' => 'jquery.ui',
  638. ],
  639. 'jquery.effects.bounce' => [
  640. 'scripts' => 'resources/lib/jquery.ui/jquery.ui.effect-bounce.js',
  641. 'dependencies' => 'jquery.effects.core',
  642. 'group' => 'jquery.ui',
  643. ],
  644. 'jquery.effects.clip' => [
  645. 'scripts' => 'resources/lib/jquery.ui/jquery.ui.effect-clip.js',
  646. 'dependencies' => 'jquery.effects.core',
  647. 'group' => 'jquery.ui',
  648. ],
  649. 'jquery.effects.drop' => [
  650. 'scripts' => 'resources/lib/jquery.ui/jquery.ui.effect-drop.js',
  651. 'dependencies' => 'jquery.effects.core',
  652. 'group' => 'jquery.ui',
  653. ],
  654. 'jquery.effects.explode' => [
  655. 'scripts' => 'resources/lib/jquery.ui/jquery.ui.effect-explode.js',
  656. 'dependencies' => 'jquery.effects.core',
  657. 'group' => 'jquery.ui',
  658. ],
  659. 'jquery.effects.fade' => [
  660. 'scripts' => 'resources/lib/jquery.ui/jquery.ui.effect-fade.js',
  661. 'dependencies' => 'jquery.effects.core',
  662. 'group' => 'jquery.ui',
  663. ],
  664. 'jquery.effects.fold' => [
  665. 'scripts' => 'resources/lib/jquery.ui/jquery.ui.effect-fold.js',
  666. 'dependencies' => 'jquery.effects.core',
  667. 'group' => 'jquery.ui',
  668. ],
  669. 'jquery.effects.highlight' => [
  670. 'scripts' => 'resources/lib/jquery.ui/jquery.ui.effect-highlight.js',
  671. 'dependencies' => 'jquery.effects.core',
  672. 'group' => 'jquery.ui',
  673. ],
  674. 'jquery.effects.pulsate' => [
  675. 'scripts' => 'resources/lib/jquery.ui/jquery.ui.effect-pulsate.js',
  676. 'dependencies' => 'jquery.effects.core',
  677. 'group' => 'jquery.ui',
  678. ],
  679. 'jquery.effects.scale' => [
  680. 'scripts' => 'resources/lib/jquery.ui/jquery.ui.effect-scale.js',
  681. 'dependencies' => 'jquery.effects.core',
  682. 'group' => 'jquery.ui',
  683. ],
  684. 'jquery.effects.shake' => [
  685. 'scripts' => 'resources/lib/jquery.ui/jquery.ui.effect-shake.js',
  686. 'dependencies' => 'jquery.effects.core',
  687. 'group' => 'jquery.ui',
  688. ],
  689. 'jquery.effects.slide' => [
  690. 'scripts' => 'resources/lib/jquery.ui/jquery.ui.effect-slide.js',
  691. 'dependencies' => 'jquery.effects.core',
  692. 'group' => 'jquery.ui',
  693. ],
  694. 'jquery.effects.transfer' => [
  695. 'scripts' => 'resources/lib/jquery.ui/jquery.ui.effect-transfer.js',
  696. 'dependencies' => 'jquery.effects.core',
  697. 'group' => 'jquery.ui',
  698. ],
  699. /* Moment.js */
  700. 'moment' => [
  701. 'scripts' => [
  702. // HACK: For some reason if you don't define window.moment first, loading moment fatals
  703. 'resources/src/moment/moment-global.js',
  704. 'resources/lib/moment/moment.js',
  705. ],
  706. 'languageScripts' => [
  707. 'aeb-arab' => 'resources/lib/moment/locale/ar-tn.js',
  708. 'af' => 'resources/lib/moment/locale/af.js',
  709. 'ar' => 'resources/lib/moment/locale/ar.js',
  710. 'ar-ma' => 'resources/lib/moment/locale/ar-ma.js',
  711. 'ar-sa' => 'resources/lib/moment/locale/ar-sa.js',
  712. 'az' => 'resources/lib/moment/locale/az.js',
  713. 'be' => 'resources/lib/moment/locale/be.js',
  714. 'bg' => 'resources/lib/moment/locale/bg.js',
  715. 'bm' => 'resources/lib/moment/locale/bm.js',
  716. 'bn' => 'resources/lib/moment/locale/bn.js',
  717. 'bo' => 'resources/lib/moment/locale/bo.js',
  718. 'br' => 'resources/lib/moment/locale/br.js',
  719. 'bs' => 'resources/lib/moment/locale/bs.js',
  720. 'ca' => 'resources/lib/moment/locale/ca.js',
  721. 'cs' => 'resources/lib/moment/locale/cs.js',
  722. 'cv' => 'resources/lib/moment/locale/cv.js',
  723. 'cy' => 'resources/lib/moment/locale/cy.js',
  724. 'da' => 'resources/lib/moment/locale/da.js',
  725. 'de' => 'resources/lib/moment/locale/de.js',
  726. 'de-at' => 'resources/lib/moment/locale/de-at.js',
  727. 'de-ch' => 'resources/lib/moment/locale/de-ch.js',
  728. 'dv' => 'resources/lib/moment/locale/dv.js',
  729. 'el' => 'resources/lib/moment/locale/el.js',
  730. 'en' => 'resources/src/moment/moment-dmy.js',
  731. 'en-au' => 'resources/lib/moment/locale/en-au.js',
  732. 'en-ca' => 'resources/lib/moment/locale/en-ca.js',
  733. 'en-gb' => 'resources/lib/moment/locale/en-gb.js',
  734. 'eo' => 'resources/lib/moment/locale/eo.js',
  735. 'es' => 'resources/lib/moment/locale/es.js',
  736. 'et' => 'resources/lib/moment/locale/et.js',
  737. 'eu' => 'resources/lib/moment/locale/eu.js',
  738. 'fa' => 'resources/lib/moment/locale/fa.js',
  739. 'fi' => 'resources/lib/moment/locale/fi.js',
  740. 'fo' => 'resources/lib/moment/locale/fo.js',
  741. 'fr' => 'resources/lib/moment/locale/fr.js',
  742. 'fr-ca' => 'resources/lib/moment/locale/fr-ca.js',
  743. 'fy' => 'resources/lib/moment/locale/fy.js',
  744. 'gd' => 'resources/lib/moment/locale/gd.js',
  745. 'gl' => 'resources/lib/moment/locale/gl.js',
  746. 'gom-latn' => 'resources/lib/moment/locale/gom-latn.js',
  747. 'gu' => 'resources/lib/moment/locale/gu.js',
  748. 'he' => 'resources/lib/moment/locale/he.js',
  749. 'hi' => 'resources/lib/moment/locale/hi.js',
  750. 'hr' => 'resources/lib/moment/locale/hr.js',
  751. 'hu' => 'resources/lib/moment/locale/hu.js',
  752. 'hy-am' => 'resources/lib/moment/locale/hy-am.js',
  753. 'id' => 'resources/lib/moment/locale/id.js',
  754. 'is' => 'resources/lib/moment/locale/is.js',
  755. 'it' => 'resources/lib/moment/locale/it.js',
  756. 'ja' => 'resources/lib/moment/locale/ja.js',
  757. 'jv' => 'resources/lib/moment/locale/jv.js',
  758. 'ka' => 'resources/lib/moment/locale/ka.js',
  759. 'kk-cyrl' => 'resources/lib/moment/locale/kk.js',
  760. 'kn' => 'resources/lib/moment/locale/kn.js',
  761. 'ko' => 'resources/lib/moment/locale/ko.js',
  762. 'ky' => 'resources/lib/moment/locale/ky.js',
  763. 'lo' => 'resources/lib/moment/locale/lo.js',
  764. 'lt' => 'resources/lib/moment/locale/lt.js',
  765. 'lv' => 'resources/lib/moment/locale/lv.js',
  766. 'mi' => 'resources/lib/moment/locale/mi.js',
  767. 'mk' => 'resources/lib/moment/locale/mk.js',
  768. 'ml' => 'resources/lib/moment/locale/ml.js',
  769. 'mr' => 'resources/lib/moment/locale/mr.js',
  770. 'ms-my' => 'resources/lib/moment/locale/ms-my.js',
  771. 'ms' => 'resources/lib/moment/locale/ms.js',
  772. 'my' => 'resources/lib/moment/locale/my.js',
  773. 'nb' => 'resources/lib/moment/locale/nb.js',
  774. 'ne' => 'resources/lib/moment/locale/ne.js',
  775. 'nl' => 'resources/lib/moment/locale/nl.js',
  776. 'nn' => 'resources/lib/moment/locale/nn.js',
  777. 'pa' => 'resources/lib/moment/locale/pa-in.js',
  778. 'pl' => 'resources/lib/moment/locale/pl.js',
  779. 'pt' => 'resources/lib/moment/locale/pt.js',
  780. 'pt-br' => 'resources/lib/moment/locale/pt-br.js',
  781. 'ro' => 'resources/lib/moment/locale/ro.js',
  782. 'ru' => 'resources/lib/moment/locale/ru.js',
  783. 'sd' => 'resources/lib/moment/locale/sd.js',
  784. 'se' => 'resources/lib/moment/locale/se.js',
  785. 'si' => 'resources/lib/moment/locale/si.js',
  786. 'sk' => 'resources/lib/moment/locale/sk.js',
  787. 'sl' => 'resources/lib/moment/locale/sl.js',
  788. 'sq' => 'resources/lib/moment/locale/sq.js',
  789. 'sr-ec' => 'resources/lib/moment/locale/sr-cyrl.js',
  790. 'sr-el' => 'resources/lib/moment/locale/sr.js',
  791. 'ss' => 'resources/lib/moment/locale/ss.js',
  792. 'sv' => 'resources/lib/moment/locale/sv.js',
  793. 'sw' => 'resources/lib/moment/locale/sw.js',
  794. 'ta' => 'resources/lib/moment/locale/ta.js',
  795. 'te' => 'resources/lib/moment/locale/te.js',
  796. 'tet' => 'resources/lib/moment/locale/tet.js',
  797. 'th' => 'resources/lib/moment/locale/th.js',
  798. 'tl-ph' => 'resources/lib/moment/locale/tl-ph.js',
  799. 'tr' => 'resources/lib/moment/locale/tr.js',
  800. 'tzm' => 'resources/lib/moment/locale/tzm.js',
  801. 'tzm-latn' => 'resources/lib/moment/locale/tzm-latn.js',
  802. 'uk' => 'resources/lib/moment/locale/uk.js',
  803. 'ur' => 'resources/lib/moment/locale/ur.js',
  804. 'uz' => 'resources/lib/moment/locale/uz.js',
  805. 'uz-latn' => 'resources/lib/moment/locale/uz-latn.js',
  806. 'vi' => 'resources/lib/moment/locale/vi.js',
  807. 'yo' => 'resources/lib/moment/locale/yo.js',
  808. 'zh-hans' => 'resources/lib/moment/locale/zh-cn.js',
  809. 'zh-hant' => 'resources/lib/moment/locale/zh-tw.js',
  810. 'zh-cn' => 'resources/lib/moment/locale/zh-cn.js',
  811. 'zh-hk' => 'resources/lib/moment/locale/zh-hk.js',
  812. 'zh-tw' => 'resources/lib/moment/locale/zh-tw.js',
  813. ],
  814. // HACK: skinScripts come after languageScripts, and we need locale overrides to come
  815. // after locale definitions
  816. 'skinScripts' => [
  817. 'default' => [
  818. 'resources/src/moment/moment-locale-overrides.js',
  819. ],
  820. ],
  821. 'dependencies' => [
  822. 'mediawiki.language',
  823. ],
  824. 'targets' => [ 'desktop', 'mobile' ],
  825. ],
  826. /* MediaWiki */
  827. 'mediawiki.apihelp' => [
  828. 'styles' => 'resources/src/mediawiki.apihelp.css',
  829. 'targets' => [ 'desktop' ],
  830. ],
  831. 'mediawiki.template' => [
  832. 'scripts' => 'resources/src/mediawiki.template.js',
  833. 'targets' => [ 'desktop', 'mobile' ],
  834. ],
  835. 'mediawiki.template.mustache' => [
  836. 'scripts' => [
  837. 'resources/lib/mustache/mustache.js',
  838. 'resources/src/mediawiki.template.mustache.js',
  839. ],
  840. 'targets' => [ 'desktop', 'mobile' ],
  841. 'dependencies' => 'mediawiki.template',
  842. ],
  843. 'mediawiki.template.regexp' => [
  844. 'scripts' => 'resources/src/mediawiki.template.regexp.js',
  845. 'targets' => [ 'desktop', 'mobile' ],
  846. 'dependencies' => 'mediawiki.template',
  847. ],
  848. 'mediawiki.apipretty' => [
  849. 'styles' => 'resources/src/mediawiki.apipretty.css',
  850. 'targets' => [ 'desktop', 'mobile' ],
  851. ],
  852. 'mediawiki.api' => [
  853. 'scripts' => [
  854. 'resources/src/mediawiki.api/index.js',
  855. 'resources/src/mediawiki.api/category.js',
  856. 'resources/src/mediawiki.api/edit.js',
  857. 'resources/src/mediawiki.api/login.js',
  858. 'resources/src/mediawiki.api/messages.js',
  859. 'resources/src/mediawiki.api/options.js',
  860. 'resources/src/mediawiki.api/parse.js',
  861. 'resources/src/mediawiki.api/rollback.js',
  862. 'resources/src/mediawiki.api/upload.js',
  863. 'resources/src/mediawiki.api/user.js',
  864. 'resources/src/mediawiki.api/watch.js',
  865. ],
  866. 'dependencies' => [
  867. 'mediawiki.Title',
  868. 'mediawiki.util',
  869. 'user.tokens',
  870. ],
  871. 'targets' => [ 'desktop', 'mobile' ],
  872. ],
  873. 'mediawiki.api.category' => [
  874. 'deprecated' => 'Use "mediawiki.api" instead.',
  875. 'dependencies' => 'mediawiki.api',
  876. ],
  877. 'mediawiki.api.edit' => [
  878. 'deprecated' => 'Use "mediawiki.api" instead.',
  879. 'dependencies' => [
  880. 'mediawiki.api',
  881. ],
  882. 'targets' => [ 'desktop', 'mobile' ],
  883. ],
  884. 'mediawiki.api.login' => [
  885. 'deprecated' => 'Use "mediawiki.api" instead.',
  886. 'dependencies' => 'mediawiki.api',
  887. ],
  888. 'mediawiki.api.options' => [
  889. 'deprecated' => 'Use "mediawiki.api" instead.',
  890. 'dependencies' => 'mediawiki.api',
  891. 'targets' => [ 'desktop', 'mobile' ],
  892. ],
  893. 'mediawiki.api.parse' => [
  894. 'deprecated' => 'Use "mediawiki.api" instead.',
  895. 'dependencies' => 'mediawiki.api',
  896. 'targets' => [ 'desktop', 'mobile' ],
  897. ],
  898. 'mediawiki.api.upload' => [
  899. 'deprecated' => 'Use "mediawiki.api" instead.',
  900. 'dependencies' => 'mediawiki.api',
  901. 'targets' => [ 'desktop', 'mobile' ],
  902. ],
  903. 'mediawiki.api.user' => [
  904. 'deprecated' => 'Use "mediawiki.api" instead.',
  905. 'dependencies' => 'mediawiki.api',
  906. 'targets' => [ 'desktop', 'mobile' ],
  907. ],
  908. 'mediawiki.api.watch' => [
  909. 'deprecated' => 'Use "mediawiki.api" instead.',
  910. 'dependencies' => 'mediawiki.api',
  911. ],
  912. 'mediawiki.api.messages' => [
  913. 'deprecated' => 'Use "mediawiki.api" instead.',
  914. 'dependencies' => 'mediawiki.api',
  915. 'targets' => [ 'desktop', 'mobile' ],
  916. ],
  917. 'mediawiki.api.rollback' => [
  918. 'deprecated' => 'Use "mediawiki.api" instead.',
  919. 'dependencies' => 'mediawiki.api',
  920. ],
  921. 'mediawiki.content.json' => [
  922. 'styles' => 'resources/src/mediawiki.content.json.less',
  923. ],
  924. 'mediawiki.confirmCloseWindow' => [
  925. 'scripts' => [
  926. 'resources/src/mediawiki.confirmCloseWindow.js',
  927. ],
  928. 'targets' => [ 'desktop', 'mobile' ],
  929. ],
  930. 'mediawiki.debug' => [
  931. 'scripts' => [
  932. 'resources/src/mediawiki.debug/jquery.footHovzer.js',
  933. 'resources/src/mediawiki.debug/debug.js',
  934. ],
  935. 'styles' => [
  936. 'resources/src/mediawiki.debug/jquery.footHovzer.css',
  937. 'resources/src/mediawiki.debug/debug.less',
  938. ],
  939. 'dependencies' => [
  940. 'oojs-ui-core',
  941. ],
  942. ],
  943. 'mediawiki.diff.styles' => [
  944. 'styles' => [
  945. 'resources/src/mediawiki.diff.styles/diff.css',
  946. 'resources/src/mediawiki.diff.styles/print.css' => [
  947. 'media' => 'print'
  948. ],
  949. ],
  950. 'targets' => [ 'desktop', 'mobile' ],
  951. ],
  952. 'mediawiki.feedback' => [
  953. 'scripts' => 'resources/src/mediawiki.feedback/feedback.js',
  954. 'styles' => 'resources/src/mediawiki.feedback/feedback.css',
  955. 'dependencies' => [
  956. 'mediawiki.messagePoster',
  957. 'mediawiki.Title',
  958. 'oojs-ui-core',
  959. 'oojs-ui-windows',
  960. ],
  961. 'messages' => [
  962. 'feedback-adding',
  963. 'feedback-back',
  964. 'feedback-bugcheck',
  965. 'feedback-dialog-intro',
  966. 'feedback-external-bug-report-button',
  967. 'feedback-bugnew',
  968. 'feedback-bugornote',
  969. 'feedback-cancel',
  970. 'feedback-close',
  971. 'feedback-dialog-title',
  972. 'feedback-error1',
  973. 'feedback-error2',
  974. 'feedback-error3',
  975. 'feedback-error4',
  976. 'feedback-message',
  977. 'feedback-subject',
  978. 'feedback-submit',
  979. 'feedback-terms',
  980. 'feedback-termsofuse',
  981. 'feedback-thanks',
  982. 'feedback-thanks-title',
  983. 'feedback-useragent'
  984. ],
  985. 'targets' => [ 'desktop', 'mobile' ],
  986. ],
  987. 'mediawiki.feedlink' => [
  988. 'styles' => 'resources/src/mediawiki.feedlink/feedlink.css',
  989. ],
  990. 'mediawiki.filewarning' => [
  991. 'scripts' => 'resources/src/mediawiki.filewarning/filewarning.js',
  992. 'styles' => 'resources/src/mediawiki.filewarning/filewarning.less',
  993. 'dependencies' => [
  994. 'oojs-ui-core',
  995. 'oojs-ui.styles.icons-alerts',
  996. ],
  997. ],
  998. 'mediawiki.ForeignApi' => [
  999. 'targets' => [ 'desktop', 'mobile' ],
  1000. 'class' => ResourceLoaderForeignApiModule::class,
  1001. // Additional dependencies generated dynamically
  1002. 'dependencies' => 'mediawiki.ForeignApi.core',
  1003. ],
  1004. 'mediawiki.ForeignApi.core' => [
  1005. 'scripts' => 'resources/src/mediawiki.ForeignApi.core.js',
  1006. 'dependencies' => [
  1007. 'mediawiki.api',
  1008. 'oojs',
  1009. ],
  1010. 'targets' => [ 'desktop', 'mobile' ],
  1011. ],
  1012. 'mediawiki.helplink' => [
  1013. 'styles' => [
  1014. 'resources/src/mediawiki.helplink/helplink.less',
  1015. ],
  1016. 'targets' => [ 'desktop', 'mobile' ],
  1017. ],
  1018. 'mediawiki.hlist' => [
  1019. 'targets' => [ 'desktop', 'mobile' ],
  1020. 'styles' => [
  1021. 'resources/src/mediawiki.hlist/hlist.less',
  1022. ],
  1023. 'skinStyles' => [
  1024. 'default' => 'resources/src/mediawiki.hlist/default.css',
  1025. ],
  1026. ],
  1027. 'mediawiki.htmlform' => [
  1028. 'scripts' => [
  1029. 'resources/src/mediawiki.htmlform/htmlform.js',
  1030. 'resources/src/mediawiki.htmlform/autocomplete.js',
  1031. 'resources/src/mediawiki.htmlform/autoinfuse.js',
  1032. 'resources/src/mediawiki.htmlform/checkmatrix.js',
  1033. 'resources/src/mediawiki.htmlform/cloner.js',
  1034. 'resources/src/mediawiki.htmlform/hide-if.js',
  1035. 'resources/src/mediawiki.htmlform/multiselect.js',
  1036. 'resources/src/mediawiki.htmlform/selectandother.js',
  1037. 'resources/src/mediawiki.htmlform/selectorother.js',
  1038. ],
  1039. 'dependencies' => [
  1040. 'mediawiki.RegExp',
  1041. 'jquery.lengthLimit',
  1042. ],
  1043. 'messages' => [
  1044. 'htmlform-chosen-placeholder',
  1045. // @todo Load this message in content language
  1046. 'colon-separator',
  1047. ],
  1048. 'targets' => [ 'desktop', 'mobile' ],
  1049. ],
  1050. 'mediawiki.htmlform.checker' => [
  1051. 'scripts' => [
  1052. 'resources/src/mediawiki.htmlform.checker.js',
  1053. ],
  1054. 'dependencies' => [
  1055. 'jquery.throttle-debounce',
  1056. ],
  1057. 'targets' => [ 'desktop', 'mobile' ],
  1058. ],
  1059. 'mediawiki.htmlform.ooui' => [
  1060. 'scripts' => [
  1061. 'resources/src/mediawiki.htmlform.ooui/Element.js',
  1062. ],
  1063. 'dependencies' => [
  1064. 'oojs-ui-core',
  1065. ],
  1066. 'targets' => [ 'desktop', 'mobile' ],
  1067. ],
  1068. 'mediawiki.htmlform.styles' => [
  1069. 'styles' => 'resources/src/mediawiki.htmlform.styles/styles.css',
  1070. 'targets' => [ 'desktop', 'mobile' ],
  1071. ],
  1072. 'mediawiki.htmlform.ooui.styles' => [
  1073. 'styles' => 'resources/src/mediawiki.htmlform.ooui.styles.less',
  1074. 'targets' => [ 'desktop', 'mobile' ],
  1075. ],
  1076. 'mediawiki.icon' => [
  1077. 'styles' => 'resources/src/mediawiki.icon/icon.less',
  1078. 'targets' => [ 'desktop', 'mobile' ],
  1079. ],
  1080. 'mediawiki.inspect' => [
  1081. 'scripts' => 'resources/src/mediawiki.inspect.js',
  1082. 'dependencies' => [
  1083. 'mediawiki.String',
  1084. 'mediawiki.RegExp',
  1085. ],
  1086. 'targets' => [ 'desktop', 'mobile' ],
  1087. ],
  1088. 'mediawiki.messagePoster' => [
  1089. 'scripts' => [
  1090. 'resources/src/mediawiki.messagePoster/factory.js',
  1091. 'resources/src/mediawiki.messagePoster/MessagePoster.js',
  1092. ],
  1093. 'dependencies' => [
  1094. 'oojs',
  1095. 'mediawiki.api',
  1096. 'mediawiki.ForeignApi',
  1097. ],
  1098. 'targets' => [ 'desktop', 'mobile' ],
  1099. ],
  1100. 'mediawiki.messagePoster.wikitext' => [
  1101. 'scripts' => [
  1102. 'resources/src/mediawiki.messagePoster.wikitext/WikitextMessagePoster.js',
  1103. ],
  1104. 'dependencies' => [
  1105. 'mediawiki.api',
  1106. 'mediawiki.messagePoster',
  1107. ],
  1108. 'targets' => [ 'desktop', 'mobile' ],
  1109. ],
  1110. 'mediawiki.notification' => [
  1111. 'styles' => [
  1112. 'resources/src/mediawiki.notification/common.css',
  1113. 'resources/src/mediawiki.notification/print.css'
  1114. => [ 'media' => 'print' ],
  1115. ],
  1116. 'skinStyles' => [
  1117. 'default' => 'resources/src/mediawiki.notification/default.css',
  1118. ],
  1119. 'scripts' => 'resources/src/mediawiki.notification/notification.js',
  1120. 'dependencies' => [
  1121. 'mediawiki.util',
  1122. 'mediawiki.visibleTimeout',
  1123. ],
  1124. 'targets' => [ 'desktop', 'mobile' ],
  1125. ],
  1126. 'mediawiki.notify' => [
  1127. 'scripts' => 'resources/src/mediawiki.notify.js',
  1128. 'targets' => [ 'desktop', 'mobile' ],
  1129. ],
  1130. 'mediawiki.notification.convertmessagebox' => [
  1131. 'scripts' => 'resources/src/mediawiki.notification.convertmessagebox.js',
  1132. 'dependencies' => [
  1133. 'mediawiki.notification',
  1134. ],
  1135. 'targets' => [ 'desktop', 'mobile' ],
  1136. ],
  1137. 'mediawiki.notification.convertmessagebox.styles' => [
  1138. 'styles' => [
  1139. 'resources/src/mediawiki.notification.convertmessagebox.styles.less',
  1140. ],
  1141. 'targets' => [ 'desktop', 'mobile' ],
  1142. ],
  1143. 'mediawiki.RegExp' => [
  1144. 'scripts' => 'resources/src/mediawiki.RegExp.js',
  1145. 'targets' => [ 'desktop', 'mobile' ],
  1146. ],
  1147. 'mediawiki.String' => [
  1148. 'scripts' => 'resources/src/mediawiki.String.js',
  1149. 'targets' => [ 'desktop', 'mobile' ],
  1150. ],
  1151. 'mediawiki.pager.tablePager' => [
  1152. 'styles' => 'resources/src/mediawiki.pager.tablePager/TablePager.less',
  1153. ],
  1154. 'mediawiki.searchSuggest' => [
  1155. 'targets' => [ 'desktop', 'mobile' ],
  1156. 'scripts' => 'resources/src/mediawiki.searchSuggest/searchSuggest.js',
  1157. 'styles' => 'resources/src/mediawiki.searchSuggest/searchSuggest.css',
  1158. 'messages' => [
  1159. 'searchsuggest-search',
  1160. 'searchsuggest-containing',
  1161. ],
  1162. 'dependencies' => [
  1163. 'jquery.suggestions',
  1164. 'jquery.getAttrs',
  1165. 'mediawiki.api',
  1166. ],
  1167. ],
  1168. 'mediawiki.storage' => [
  1169. 'scripts' => 'resources/src/mediawiki.storage.js',
  1170. 'targets' => [ 'desktop', 'mobile' ],
  1171. ],
  1172. 'mediawiki.Title' => [
  1173. 'scripts' => [
  1174. 'resources/src/mediawiki.Title/Title.js',
  1175. 'resources/src/mediawiki.Title/phpCharToUpper.js',
  1176. ],
  1177. 'dependencies' => [
  1178. 'mediawiki.String',
  1179. 'mediawiki.util',
  1180. ],
  1181. 'targets' => [ 'desktop', 'mobile' ],
  1182. ],
  1183. 'mediawiki.Upload' => [
  1184. 'scripts' => 'resources/src/mediawiki.Upload.js',
  1185. 'dependencies' => [
  1186. 'mediawiki.api',
  1187. ],
  1188. ],
  1189. 'mediawiki.ForeignUpload' => [
  1190. 'scripts' => 'resources/src/mediawiki.ForeignUpload.js',
  1191. 'dependencies' => [
  1192. 'mediawiki.ForeignApi',
  1193. 'mediawiki.Upload',
  1194. 'oojs',
  1195. ],
  1196. 'messages' => [
  1197. 'uploaddisabledtext',
  1198. 'upload-dialog-disabled',
  1199. 'upload-foreign-cant-upload',
  1200. ]
  1201. ],
  1202. 'mediawiki.ForeignStructuredUpload.config' => [
  1203. 'class' => ResourceLoaderUploadDialogModule::class,
  1204. ],
  1205. 'mediawiki.ForeignStructuredUpload' => [
  1206. 'scripts' => 'resources/src/mediawiki.ForeignStructuredUpload.js',
  1207. 'dependencies' => [
  1208. 'mediawiki.ForeignUpload',
  1209. 'mediawiki.ForeignStructuredUpload.config',
  1210. ],
  1211. 'messages' => [
  1212. 'upload-foreign-cant-load-config',
  1213. ],
  1214. ],
  1215. 'mediawiki.Upload.Dialog' => [
  1216. 'scripts' => [
  1217. 'resources/src/mediawiki.Upload.Dialog.js',
  1218. ],
  1219. 'dependencies' => [
  1220. 'mediawiki.Upload.BookletLayout',
  1221. ],
  1222. 'messages' => [
  1223. 'upload-dialog-title',
  1224. 'upload-dialog-button-cancel',
  1225. 'upload-dialog-button-back',
  1226. 'upload-dialog-button-done',
  1227. 'upload-dialog-button-save',
  1228. 'upload-dialog-button-upload',
  1229. ],
  1230. ],
  1231. 'mediawiki.Upload.BookletLayout' => [
  1232. 'scripts' => [
  1233. 'resources/src/mediawiki.Upload.BookletLayout/BookletLayout.js',
  1234. ],
  1235. 'styles' => [
  1236. 'resources/src/mediawiki.Upload.BookletLayout/BookletLayout.css',
  1237. ],
  1238. 'dependencies' => [
  1239. 'oojs-ui-core',
  1240. 'oojs-ui-widgets',
  1241. 'oojs-ui-windows',
  1242. 'oojs-ui.styles.icons-content',
  1243. 'oojs-ui.styles.icons-editing-advanced',
  1244. 'moment',
  1245. 'mediawiki.Title',
  1246. 'mediawiki.user',
  1247. 'mediawiki.Upload',
  1248. 'mediawiki.jqueryMsg',
  1249. 'mediawiki.widgets.StashedFileWidget'
  1250. ],
  1251. 'messages' => [
  1252. 'upload-form-label-infoform-title',
  1253. 'upload-form-label-infoform-name',
  1254. 'upload-form-label-infoform-name-tooltip',
  1255. 'upload-form-label-infoform-description',
  1256. 'upload-form-label-infoform-description-tooltip',
  1257. 'upload-form-label-usage-title',
  1258. 'upload-form-label-usage-filename',
  1259. 'action-upload',
  1260. 'apierror-mustbeloggedin',
  1261. 'badaccess-groups',
  1262. 'apierror-timeout',
  1263. 'apierror-offline',
  1264. 'apierror-unknownerror',
  1265. 'api-error-unknown-warning',
  1266. 'fileexists',
  1267. 'filepageexists',
  1268. 'file-exists-duplicate',
  1269. 'file-deleted-duplicate',
  1270. 'filename-bad-prefix',
  1271. 'filename-thumb-name',
  1272. 'filewasdeleted',
  1273. 'badfilename',
  1274. 'protectedpagetext',
  1275. ],
  1276. ],
  1277. 'mediawiki.ForeignStructuredUpload.BookletLayout' => [
  1278. 'scripts' => 'resources/src/mediawiki.ForeignStructuredUpload.BookletLayout/BookletLayout.js',
  1279. 'dependencies' => [
  1280. 'mediawiki.ForeignStructuredUpload',
  1281. 'mediawiki.Upload.BookletLayout',
  1282. 'mediawiki.widgets.CategoryMultiselectWidget',
  1283. 'mediawiki.widgets.DateInputWidget',
  1284. 'mediawiki.jqueryMsg',
  1285. 'mediawiki.api',
  1286. 'moment',
  1287. 'mediawiki.libs.jpegmeta',
  1288. ],
  1289. 'messages' => [
  1290. 'upload-form-label-own-work',
  1291. 'upload-form-label-infoform-categories',
  1292. 'upload-form-label-infoform-date',
  1293. 'upload-form-label-own-work-message-generic-local',
  1294. 'upload-form-label-not-own-work-message-generic-local',
  1295. 'upload-form-label-not-own-work-local-generic-local',
  1296. 'upload-form-label-own-work-message-generic-foreign',
  1297. 'upload-form-label-not-own-work-message-generic-foreign',
  1298. 'upload-form-label-not-own-work-local-generic-foreign',
  1299. ],
  1300. ],
  1301. 'mediawiki.toc' => [
  1302. 'scripts' => 'resources/src/mediawiki.toc/toc.js',
  1303. 'styles' => [
  1304. 'resources/src/mediawiki.toc/toc.css'
  1305. => [ 'media' => 'screen' ],
  1306. 'resources/src/mediawiki.toc/print.css'
  1307. => [ 'media' => 'print' ],
  1308. ],
  1309. 'dependencies' => 'mediawiki.cookie',
  1310. 'messages' => [ 'showtoc', 'hidetoc' ],
  1311. 'targets' => [ 'desktop', 'mobile' ],
  1312. ],
  1313. 'mediawiki.toc.styles' => [
  1314. 'class' => ResourceLoaderLessVarFileModule::class,
  1315. 'lessMessages' => [ 'hidetoc', 'showtoc' ],
  1316. 'styles' => [
  1317. 'resources/src/mediawiki.toc.styles/common.css',
  1318. 'resources/src/mediawiki.toc.styles/screen.less'
  1319. => [ 'media' => 'screen' ],
  1320. 'resources/src/mediawiki.toc.styles/print.css'
  1321. => [ 'media' => 'print' ],
  1322. ],
  1323. 'targets' => [ 'desktop', 'mobile' ],
  1324. ],
  1325. 'mediawiki.Uri' => [
  1326. 'scripts' => 'resources/src/mediawiki.Uri/Uri.js',
  1327. 'templates' => [
  1328. 'strict.regexp' => 'resources/src/mediawiki.Uri/strict.regexp',
  1329. 'loose.regexp' => 'resources/src/mediawiki.Uri/loose.regexp',
  1330. ],
  1331. 'dependencies' => 'mediawiki.util',
  1332. 'targets' => [ 'desktop', 'mobile' ],
  1333. ],
  1334. 'mediawiki.user' => [
  1335. 'scripts' => 'resources/src/mediawiki.user.js',
  1336. 'dependencies' => [
  1337. 'mediawiki.api',
  1338. 'mediawiki.storage',
  1339. 'user.options',
  1340. 'user.tokens',
  1341. ],
  1342. 'targets' => [ 'desktop', 'mobile' ],
  1343. ],
  1344. 'mediawiki.userSuggest' => [
  1345. 'scripts' => 'resources/src/mediawiki.userSuggest.js',
  1346. 'dependencies' => [
  1347. 'jquery.suggestions',
  1348. 'mediawiki.api'
  1349. ]
  1350. ],
  1351. 'mediawiki.util' => [
  1352. 'class' => ResourceLoaderMediaWikiUtilModule::class,
  1353. 'scripts' => 'resources/src/mediawiki.util.js',
  1354. 'dependencies' => [
  1355. 'jquery.accessKeyLabel',
  1356. 'mediawiki.RegExp',
  1357. 'mediawiki.notify',
  1358. ],
  1359. 'targets' => [ 'desktop', 'mobile' ],
  1360. ],
  1361. 'mediawiki.viewport' => [
  1362. 'scripts' => 'resources/src/mediawiki.viewport.js',
  1363. 'targets' => [ 'desktop', 'mobile' ],
  1364. ],
  1365. 'mediawiki.checkboxtoggle' => [
  1366. 'scripts' => 'resources/src/mediawiki.checkboxtoggle.js',
  1367. ],
  1368. 'mediawiki.checkboxtoggle.styles' => [
  1369. 'styles' => 'resources/src/mediawiki.checkboxtoggle.styles.css',
  1370. ],
  1371. 'mediawiki.cookie' => [
  1372. 'scripts' => 'resources/src/mediawiki.cookie.js',
  1373. 'dependencies' => 'jquery.cookie',
  1374. 'targets' => [ 'desktop', 'mobile' ],
  1375. ],
  1376. 'mediawiki.toolbar' => [
  1377. 'class' => ResourceLoaderEditToolbarModule::class,
  1378. 'scripts' => 'resources/src/mediawiki.toolbar/toolbar.js',
  1379. 'styles' => 'resources/src/mediawiki.toolbar/toolbar.less',
  1380. 'dependencies' => 'jquery.textSelection',
  1381. ],
  1382. 'mediawiki.experiments' => [
  1383. 'scripts' => 'resources/src/mediawiki.experiments.js',
  1384. 'targets' => [ 'desktop', 'mobile' ],
  1385. ],
  1386. 'mediawiki.editfont.styles' => [
  1387. 'styles' => 'resources/src/mediawiki.editfont.less',
  1388. 'targets' => [ 'desktop', 'mobile' ],
  1389. ],
  1390. 'mediawiki.visibleTimeout' => [
  1391. 'scripts' => 'resources/src/mediawiki.visibleTimeout.js',
  1392. 'targets' => [ 'desktop', 'mobile' ],
  1393. ],
  1394. /* MediaWiki Action */
  1395. 'mediawiki.action.delete' => [
  1396. 'scripts' => 'resources/src/mediawiki.action/mediawiki.action.delete.js',
  1397. 'dependencies' => [
  1398. 'oojs-ui-core',
  1399. 'jquery.lengthLimit',
  1400. ],
  1401. 'messages' => [
  1402. // @todo Load this message in content language
  1403. 'colon-separator',
  1404. ],
  1405. ],
  1406. 'mediawiki.action.delete.file' => [
  1407. 'scripts' => 'resources/src/mediawiki.action/mediawiki.action.delete.file.js',
  1408. 'dependencies' => [
  1409. 'oojs-ui-core',
  1410. 'jquery.lengthLimit',
  1411. ],
  1412. 'messages' => [
  1413. // @todo Load this message in content language
  1414. 'colon-separator',
  1415. ],
  1416. ],
  1417. 'mediawiki.action.edit' => [
  1418. 'scripts' => [
  1419. 'resources/src/mediawiki.action/mediawiki.action.edit.js',
  1420. 'resources/src/mediawiki.action/mediawiki.action.edit.stash.js',
  1421. ],
  1422. 'styles' => 'resources/src/mediawiki.action/mediawiki.action.edit.css',
  1423. 'dependencies' => [
  1424. 'mediawiki.action.edit.styles',
  1425. 'mediawiki.editfont.styles',
  1426. 'jquery.textSelection',
  1427. 'oojs-ui-core',
  1428. 'mediawiki.widgets.visibleLengthLimit',
  1429. 'mediawiki.api',
  1430. 'mediawiki.util',
  1431. ],
  1432. ],
  1433. 'mediawiki.action.edit.styles' => [
  1434. 'targets' => [ 'desktop', 'mobile' ],
  1435. 'styles' => 'resources/src/mediawiki.action/mediawiki.action.edit.styles.less',
  1436. ],
  1437. 'mediawiki.action.edit.collapsibleFooter' => [
  1438. 'scripts' => 'resources/src/mediawiki.action/mediawiki.action.edit.collapsibleFooter.js',
  1439. 'styles' => 'resources/src/mediawiki.action/mediawiki.action.edit.collapsibleFooter.css',
  1440. 'dependencies' => [
  1441. 'jquery.makeCollapsible',
  1442. 'mediawiki.storage',
  1443. 'mediawiki.icon',
  1444. ],
  1445. ],
  1446. 'mediawiki.action.edit.preview' => [
  1447. 'scripts' => 'resources/src/mediawiki.action/mediawiki.action.edit.preview.js',
  1448. 'dependencies' => [
  1449. 'jquery.spinner',
  1450. 'jquery.textSelection',
  1451. 'mediawiki.api',
  1452. 'mediawiki.diff.styles',
  1453. 'mediawiki.language',
  1454. 'mediawiki.util',
  1455. 'mediawiki.jqueryMsg',
  1456. 'oojs-ui-core',
  1457. ],
  1458. 'messages' => [
  1459. // Keep the uses message keys in sync with EditPage#setHeaders
  1460. 'creating',
  1461. 'editconflict',
  1462. 'editing',
  1463. 'editingcomment',
  1464. 'editingsection',
  1465. 'pagetitle',
  1466. 'otherlanguages',
  1467. 'summary-preview',
  1468. 'subject-preview',
  1469. 'parentheses',
  1470. 'previewerrortext',
  1471. ],
  1472. ],
  1473. 'mediawiki.action.history' => [
  1474. 'scripts' => 'resources/src/mediawiki.action/mediawiki.action.history.js',
  1475. 'styles' => 'resources/src/mediawiki.action/mediawiki.action.history.css',
  1476. ],
  1477. 'mediawiki.action.history.styles' => [
  1478. 'styles' => 'resources/src/mediawiki.action/mediawiki.action.history.styles.css',
  1479. ],
  1480. 'mediawiki.action.view.dblClickEdit' => [
  1481. 'scripts' => 'resources/src/mediawiki.action/mediawiki.action.view.dblClickEdit.js',
  1482. 'dependencies' => [
  1483. 'mediawiki.util',
  1484. 'user.options',
  1485. ],
  1486. ],
  1487. 'mediawiki.action.view.metadata' => [
  1488. 'styles' => 'resources/src/mediawiki.action/mediawiki.action.view.metadata.css',
  1489. 'scripts' => 'resources/src/mediawiki.action/mediawiki.action.view.metadata.js',
  1490. 'messages' => [
  1491. 'metadata-expand',
  1492. 'metadata-collapse',
  1493. ],
  1494. 'dependencies' => 'mediawiki.action.view.filepage',
  1495. ],
  1496. 'mediawiki.action.view.categoryPage.styles' => [
  1497. 'styles' => 'resources/src/mediawiki.action/mediawiki.action.view.categoryPage.less',
  1498. 'targets' => [ 'desktop', 'mobile' ]
  1499. ],
  1500. 'mediawiki.action.view.postEdit' => [
  1501. 'scripts' => 'resources/src/mediawiki.action/mediawiki.action.view.postEdit.js',
  1502. 'styles' => 'resources/src/mediawiki.action/mediawiki.action.view.postEdit.less',
  1503. 'skinStyles' => [
  1504. 'monobook' => 'resources/src/mediawiki.action/mediawiki.action.view.postEdit.monobook.css',
  1505. ],
  1506. 'dependencies' => [
  1507. 'mediawiki.jqueryMsg',
  1508. 'mediawiki.notification'
  1509. ],
  1510. 'messages' => [
  1511. 'postedit-confirmation-created',
  1512. 'postedit-confirmation-restored',
  1513. 'postedit-confirmation-saved',
  1514. 'postedit-confirmation-published',
  1515. ],
  1516. ],
  1517. 'mediawiki.action.view.redirect' => [
  1518. 'scripts' => 'resources/src/mediawiki.action/mediawiki.action.view.redirect.js',
  1519. 'dependencies' => 'jquery.client',
  1520. 'targets' => [ 'desktop', 'mobile' ],
  1521. ],
  1522. 'mediawiki.action.view.redirectPage' => [
  1523. 'targets' => [ 'desktop', 'mobile' ],
  1524. 'styles' => 'resources/src/mediawiki.action/mediawiki.action.view.redirectPage.css',
  1525. ],
  1526. 'mediawiki.action.view.rightClickEdit' => [
  1527. 'scripts' => 'resources/src/mediawiki.action/mediawiki.action.view.rightClickEdit.js',
  1528. ],
  1529. 'mediawiki.action.edit.editWarning' => [
  1530. 'scripts' => 'resources/src/mediawiki.action/mediawiki.action.edit.editWarning.js',
  1531. 'dependencies' => [
  1532. 'jquery.textSelection',
  1533. 'mediawiki.jqueryMsg',
  1534. 'mediawiki.confirmCloseWindow',
  1535. 'user.options',
  1536. ],
  1537. 'messages' => [
  1538. 'editwarning-warning',
  1539. // editwarning-warning uses {{int:prefs-editing}}
  1540. 'prefs-editing'
  1541. ],
  1542. ],
  1543. 'mediawiki.action.view.filepage' => [
  1544. 'styles' => [
  1545. 'resources/src/mediawiki.action/mediawiki.action.view.filepage.print.css' =>
  1546. [ 'media' => 'print' ],
  1547. 'resources/src/mediawiki.action/mediawiki.action.view.filepage.css',
  1548. ],
  1549. ],
  1550. /* MediaWiki Language */
  1551. 'mediawiki.language' => [
  1552. 'class' => ResourceLoaderLanguageDataModule::class,
  1553. 'scripts' => [
  1554. 'resources/src/mediawiki.language/mediawiki.language.init.js',
  1555. 'resources/src/mediawiki.language/mediawiki.language.js',
  1556. 'resources/src/mediawiki.language/mediawiki.language.numbers.js',
  1557. 'resources/src/mediawiki.language/mediawiki.language.fallback.js',
  1558. ],
  1559. 'languageScripts' => [
  1560. 'bs' => 'resources/src/mediawiki.language/languages/bs.js',
  1561. 'dsb' => 'resources/src/mediawiki.language/languages/dsb.js',
  1562. 'fi' => 'resources/src/mediawiki.language/languages/fi.js',
  1563. 'ga' => 'resources/src/mediawiki.language/languages/ga.js',
  1564. 'hsb' => 'resources/src/mediawiki.language/languages/hsb.js',
  1565. 'hu' => 'resources/src/mediawiki.language/languages/hu.js',
  1566. 'hy' => 'resources/src/mediawiki.language/languages/hy.js',
  1567. 'la' => 'resources/src/mediawiki.language/languages/la.js',
  1568. 'os' => 'resources/src/mediawiki.language/languages/os.js',
  1569. 'sl' => 'resources/src/mediawiki.language/languages/sl.js',
  1570. ],
  1571. 'dependencies' => [
  1572. 'mediawiki.cldr',
  1573. ],
  1574. 'messages' => [
  1575. 'and',
  1576. 'comma-separator',
  1577. 'word-separator'
  1578. ],
  1579. ],
  1580. 'mediawiki.cldr' => [
  1581. 'scripts' => 'resources/src/mediawiki.language/mediawiki.cldr.js',
  1582. 'dependencies' => [
  1583. 'mediawiki.libs.pluralruleparser',
  1584. ],
  1585. 'targets' => [ 'desktop', 'mobile' ],
  1586. ],
  1587. 'mediawiki.libs.pluralruleparser' => [
  1588. 'scripts' => [
  1589. 'resources/lib/CLDRPluralRuleParser/CLDRPluralRuleParser.js',
  1590. 'resources/src/mediawiki.libs.pluralruleparser/export.js',
  1591. ],
  1592. 'targets' => [ 'desktop', 'mobile' ],
  1593. ],
  1594. 'mediawiki.jqueryMsg' => [
  1595. // Add data for mediawiki.jqueryMsg, such as allowed tags
  1596. 'class' => ResourceLoaderJqueryMsgModule::class,
  1597. 'scripts' => 'resources/src/mediawiki.jqueryMsg/mediawiki.jqueryMsg.js',
  1598. 'dependencies' => [
  1599. 'mediawiki.util',
  1600. 'mediawiki.language',
  1601. 'user.options',
  1602. ],
  1603. 'targets' => [ 'desktop', 'mobile' ],
  1604. ],
  1605. 'mediawiki.language.months' => [
  1606. 'targets' => [ 'desktop', 'mobile' ],
  1607. 'scripts' => 'resources/src/mediawiki.language/mediawiki.language.months.js',
  1608. 'dependencies' => 'mediawiki.language',
  1609. 'messages' => array_merge(
  1610. Language::$mMonthMsgs,
  1611. Language::$mMonthGenMsgs,
  1612. Language::$mMonthAbbrevMsgs
  1613. )
  1614. ],
  1615. 'mediawiki.language.names' => [ 'class' => ResourceLoaderLanguageNamesModule::class ],
  1616. 'mediawiki.language.specialCharacters' => [
  1617. 'class' => ResourceLoaderSpecialCharacterDataModule::class
  1618. ],
  1619. /* MediaWiki Libs */
  1620. 'mediawiki.libs.jpegmeta' => [
  1621. 'scripts' => [
  1622. 'resources/src/mediawiki.libs.jpegmeta/jpegmeta.js',
  1623. 'resources/src/mediawiki.libs.jpegmeta/export.js',
  1624. ],
  1625. 'targets' => [ 'desktop', 'mobile' ],
  1626. ],
  1627. /* MediaWiki Page */
  1628. 'mediawiki.page.gallery' => [
  1629. 'scripts' => 'resources/src/mediawiki.page.gallery.js',
  1630. 'dependencies' => [
  1631. 'mediawiki.page.gallery.styles',
  1632. 'jquery.throttle-debounce',
  1633. ]
  1634. ],
  1635. 'mediawiki.page.gallery.styles' => [
  1636. 'styles' => [
  1637. 'resources/src/mediawiki.page.gallery.styles/gallery.css',
  1638. 'resources/src/mediawiki.page.gallery.styles/print.css' => [ 'media' => 'print' ],
  1639. ],
  1640. 'targets' => [ 'desktop', 'mobile' ],
  1641. ],
  1642. 'mediawiki.page.gallery.slideshow' => [
  1643. 'scripts' => 'resources/src/mediawiki.page.gallery.slideshow.js',
  1644. 'dependencies' => [
  1645. 'mediawiki.api',
  1646. 'mediawiki.Title',
  1647. 'oojs',
  1648. 'oojs-ui-core',
  1649. 'oojs-ui-widgets',
  1650. 'oojs-ui.styles.icons-media',
  1651. 'oojs-ui.styles.icons-movement'
  1652. ],
  1653. 'messages' => [
  1654. 'gallery-slideshow-toggle'
  1655. ]
  1656. ],
  1657. 'mediawiki.page.ready' => [
  1658. 'scripts' => 'resources/src/mediawiki.page.ready.js',
  1659. 'dependencies' => [
  1660. 'jquery.accessKeyLabel',
  1661. 'jquery.checkboxShiftClick',
  1662. ],
  1663. 'targets' => [ 'desktop', 'mobile' ],
  1664. ],
  1665. 'mediawiki.page.startup' => [
  1666. 'scripts' => 'resources/src/mediawiki.page.startup.js',
  1667. 'targets' => [ 'desktop', 'mobile' ],
  1668. ],
  1669. 'mediawiki.page.patrol.ajax' => [
  1670. 'scripts' => 'resources/src/mediawiki.page.patrol.ajax.js',
  1671. 'dependencies' => [
  1672. 'mediawiki.api',
  1673. 'mediawiki.util',
  1674. 'mediawiki.Title',
  1675. 'mediawiki.notify',
  1676. 'jquery.spinner',
  1677. 'user.tokens'
  1678. ],
  1679. 'messages' => [
  1680. 'markedaspatrollednotify',
  1681. 'markedaspatrollederrornotify',
  1682. 'markedaspatrollederror-noautopatrol'
  1683. ],
  1684. ],
  1685. 'mediawiki.page.watch.ajax' => [
  1686. 'scripts' => 'resources/src/mediawiki.page.watch.ajax.js',
  1687. 'dependencies' => [
  1688. 'mediawiki.api',
  1689. 'mediawiki.notify',
  1690. 'mediawiki.util',
  1691. 'mediawiki.Title',
  1692. 'mediawiki.jqueryMsg',
  1693. 'jquery.accessKeyLabel',
  1694. 'mediawiki.RegExp',
  1695. ],
  1696. 'messages' => [
  1697. 'watch',
  1698. 'unwatch',
  1699. 'watching',
  1700. 'unwatching',
  1701. 'tooltip-ca-watch',
  1702. 'tooltip-ca-unwatch',
  1703. 'watcherrortext',
  1704. 'addedwatchtext',
  1705. 'addedwatchtext-talk',
  1706. 'removedwatchtext',
  1707. 'removedwatchtext-talk',
  1708. ],
  1709. ],
  1710. 'mediawiki.page.rollback' => [
  1711. 'scripts' => 'resources/src/mediawiki.page.rollback.js',
  1712. 'dependencies' => [
  1713. 'mediawiki.api',
  1714. 'mediawiki.notify',
  1715. 'mediawiki.util',
  1716. 'jquery.spinner',
  1717. ],
  1718. 'messages' => [
  1719. 'rollbackfailed',
  1720. 'actioncomplete',
  1721. ],
  1722. ],
  1723. 'mediawiki.page.image.pagination' => [
  1724. 'scripts' => 'resources/src/mediawiki.page.image.pagination.js',
  1725. 'dependencies' => [
  1726. 'mediawiki.util',
  1727. 'jquery.spinner',
  1728. ],
  1729. ],
  1730. /* MediaWiki Special pages */
  1731. 'mediawiki.rcfilters.filters.base.styles' => [
  1732. 'styles' => [
  1733. 'resources/src/mediawiki.rcfilters/styles/mw.rcfilters.less',
  1734. ],
  1735. ],
  1736. 'mediawiki.rcfilters.highlightCircles.seenunseen.styles' => [
  1737. 'styles' => [
  1738. 'resources/src/mediawiki.rcfilters/' .
  1739. 'styles/mw.rcfilters.ui.ChangesListWrapperWidget.highlightCircles.seenunseen.less',
  1740. ],
  1741. ],
  1742. 'mediawiki.rcfilters.filters.dm' => [
  1743. 'scripts' => [
  1744. 'resources/src/mediawiki.rcfilters/mw.rcfilters.js',
  1745. 'resources/src/mediawiki.rcfilters/dm/mw.rcfilters.dm.ItemModel.js',
  1746. 'resources/src/mediawiki.rcfilters/dm/mw.rcfilters.dm.FilterItem.js',
  1747. 'resources/src/mediawiki.rcfilters/dm/mw.rcfilters.dm.FilterGroup.js',
  1748. 'resources/src/mediawiki.rcfilters/dm/mw.rcfilters.dm.FiltersViewModel.js',
  1749. 'resources/src/mediawiki.rcfilters/dm/mw.rcfilters.dm.SavedQueryItemModel.js',
  1750. 'resources/src/mediawiki.rcfilters/dm/mw.rcfilters.dm.SavedQueriesModel.js',
  1751. 'resources/src/mediawiki.rcfilters/dm/mw.rcfilters.dm.ChangesListViewModel.js',
  1752. 'resources/src/mediawiki.rcfilters/mw.rcfilters.Controller.js',
  1753. 'resources/src/mediawiki.rcfilters/mw.rcfilters.UriProcessor.js',
  1754. ],
  1755. 'dependencies' => [
  1756. 'mediawiki.String',
  1757. 'oojs',
  1758. 'mediawiki.api',
  1759. 'mediawiki.jqueryMsg',
  1760. 'mediawiki.Uri',
  1761. 'mediawiki.user',
  1762. ],
  1763. 'messages' => [
  1764. 'quotation-marks',
  1765. 'rcfilters-filterlist-title',
  1766. ],
  1767. ],
  1768. 'mediawiki.rcfilters.filters.ui' => [
  1769. 'scripts' => [
  1770. 'resources/src/mediawiki.rcfilters/ui/mw.rcfilters.ui.GroupWidget.js',
  1771. 'resources/src/mediawiki.rcfilters/ui/mw.rcfilters.ui.CheckboxInputWidget.js',
  1772. 'resources/src/mediawiki.rcfilters/ui/mw.rcfilters.ui.FilterTagMultiselectWidget.js',
  1773. 'resources/src/mediawiki.rcfilters/ui/mw.rcfilters.ui.ItemMenuOptionWidget.js',
  1774. 'resources/src/mediawiki.rcfilters/ui/mw.rcfilters.ui.FilterMenuOptionWidget.js',
  1775. 'resources/src/mediawiki.rcfilters/ui/mw.rcfilters.ui.FilterMenuSectionOptionWidget.js',
  1776. 'resources/src/mediawiki.rcfilters/ui/mw.rcfilters.ui.TagItemWidget.js',
  1777. 'resources/src/mediawiki.rcfilters/ui/mw.rcfilters.ui.FilterTagItemWidget.js',
  1778. 'resources/src/mediawiki.rcfilters/ui/mw.rcfilters.ui.FilterMenuHeaderWidget.js',
  1779. 'resources/src/mediawiki.rcfilters/ui/mw.rcfilters.ui.MenuSelectWidget.js',
  1780. 'resources/src/mediawiki.rcfilters/ui/mw.rcfilters.ui.MainWrapperWidget.js',
  1781. 'resources/src/mediawiki.rcfilters/ui/mw.rcfilters.ui.ViewSwitchWidget.js',
  1782. 'resources/src/mediawiki.rcfilters/ui/mw.rcfilters.ui.ValuePickerWidget.js',
  1783. 'resources/src/mediawiki.rcfilters/ui/mw.rcfilters.ui.ChangesLimitPopupWidget.js',
  1784. 'resources/src/mediawiki.rcfilters/ui/mw.rcfilters.ui.ChangesLimitAndDateButtonWidget.js',
  1785. 'resources/src/mediawiki.rcfilters/ui/mw.rcfilters.ui.DatePopupWidget.js',
  1786. 'resources/src/mediawiki.rcfilters/ui/mw.rcfilters.ui.FilterWrapperWidget.js',
  1787. 'resources/src/mediawiki.rcfilters/ui/mw.rcfilters.ui.ChangesListWrapperWidget.js',
  1788. 'resources/src/mediawiki.rcfilters/ui/mw.rcfilters.ui.SavedLinksListWidget.js',
  1789. 'resources/src/mediawiki.rcfilters/ui/mw.rcfilters.ui.SavedLinksListItemWidget.js',
  1790. 'resources/src/mediawiki.rcfilters/ui/mw.rcfilters.ui.SaveFiltersPopupButtonWidget.js',
  1791. 'resources/src/mediawiki.rcfilters/ui/mw.rcfilters.ui.FormWrapperWidget.js',
  1792. 'resources/src/mediawiki.rcfilters/ui/mw.rcfilters.ui.FilterItemHighlightButton.js',
  1793. 'resources/src/mediawiki.rcfilters/ui/mw.rcfilters.ui.HighlightPopupWidget.js',
  1794. 'resources/src/mediawiki.rcfilters/ui/mw.rcfilters.ui.HighlightColorPickerWidget.js',
  1795. 'resources/src/mediawiki.rcfilters/ui/mw.rcfilters.ui.LiveUpdateButtonWidget.js',
  1796. 'resources/src/mediawiki.rcfilters/ui/mw.rcfilters.ui.MarkSeenButtonWidget.js',
  1797. 'resources/src/mediawiki.rcfilters/ui/mw.rcfilters.ui.RcTopSectionWidget.js',
  1798. 'resources/src/mediawiki.rcfilters/ui/mw.rcfilters.ui.RclTopSectionWidget.js',
  1799. 'resources/src/mediawiki.rcfilters/ui/mw.rcfilters.ui.RclTargetPageWidget.js',
  1800. 'resources/src/mediawiki.rcfilters/ui/mw.rcfilters.ui.RclToOrFromWidget.js',
  1801. 'resources/src/mediawiki.rcfilters/ui/mw.rcfilters.ui.WatchlistTopSectionWidget.js',
  1802. 'resources/src/mediawiki.rcfilters/mw.rcfilters.HighlightColors.js',
  1803. 'resources/src/mediawiki.rcfilters/mw.rcfilters.init.js',
  1804. ],
  1805. 'styles' => [
  1806. 'resources/src/mediawiki.rcfilters/styles/mw.rcfilters.mixins.less',
  1807. 'resources/src/mediawiki.rcfilters/styles/mw.rcfilters.variables.less',
  1808. 'resources/src/mediawiki.rcfilters/styles/mw.rcfilters.ui.less',
  1809. 'resources/src/mediawiki.rcfilters/styles/mw.rcfilters.ui.Overlay.less',
  1810. 'resources/src/mediawiki.rcfilters/styles/mw.rcfilters.ui.FilterTagMultiselectWidget.less',
  1811. 'resources/src/mediawiki.rcfilters/styles/mw.rcfilters.ui.ItemMenuOptionWidget.less',
  1812. 'resources/src/mediawiki.rcfilters/styles/mw.rcfilters.ui.FilterMenuOptionWidget.less',
  1813. 'resources/src/mediawiki.rcfilters/styles/mw.rcfilters.ui.FilterMenuSectionOptionWidget.less',
  1814. 'resources/src/mediawiki.rcfilters/styles/mw.rcfilters.ui.TagItemWidget.less',
  1815. 'resources/src/mediawiki.rcfilters/styles/mw.rcfilters.ui.FilterMenuHeaderWidget.less',
  1816. 'resources/src/mediawiki.rcfilters/styles/mw.rcfilters.ui.MenuSelectWidget.less',
  1817. 'resources/src/mediawiki.rcfilters/styles/mw.rcfilters.ui.ViewSwitchWidget.less',
  1818. 'resources/src/mediawiki.rcfilters/styles/mw.rcfilters.ui.ValuePickerWidget.less',
  1819. 'resources/src/mediawiki.rcfilters/styles/mw.rcfilters.ui.ChangesLimitPopupWidget.less',
  1820. 'resources/src/mediawiki.rcfilters/styles/mw.rcfilters.ui.DatePopupWidget.less',
  1821. 'resources/src/mediawiki.rcfilters/styles/mw.rcfilters.ui.FilterWrapperWidget.less',
  1822. 'resources/src/mediawiki.rcfilters/styles/mw.rcfilters.ui.ChangesListWrapperWidget.less',
  1823. 'resources/src/mediawiki.rcfilters/styles/mw.rcfilters.ui.HighlightColorPickerWidget.less',
  1824. 'resources/src/mediawiki.rcfilters/styles/mw.rcfilters.ui.FilterItemHighlightButton.less',
  1825. 'resources/src/mediawiki.rcfilters/styles/mw.rcfilters.ui.SavedLinksListWidget.less',
  1826. 'resources/src/mediawiki.rcfilters/styles/mw.rcfilters.ui.SavedLinksListItemWidget.less',
  1827. 'resources/src/mediawiki.rcfilters/styles/mw.rcfilters.ui.SaveFiltersPopupButtonWidget.less',
  1828. 'resources/src/mediawiki.rcfilters/styles/mw.rcfilters.ui.LiveUpdateButtonWidget.less',
  1829. 'resources/src/mediawiki.rcfilters/styles/mw.rcfilters.ui.RcTopSectionWidget.less',
  1830. 'resources/src/mediawiki.rcfilters/styles/mw.rcfilters.ui.RclToOrFromWidget.less',
  1831. 'resources/src/mediawiki.rcfilters/styles/mw.rcfilters.ui.RclTargetPageWidget.less',
  1832. 'resources/src/mediawiki.rcfilters/styles/mw.rcfilters.ui.WatchlistTopSectionWidget.less',
  1833. ],
  1834. 'skinStyles' => [
  1835. 'vector' => [
  1836. 'resources/src/mediawiki.rcfilters/styles/mw.rcfilters.ui.Overlay.vector.less',
  1837. ],
  1838. 'monobook' => [
  1839. 'resources/src/mediawiki.rcfilters/styles/mw.rcfilters.ui.Overlay.monobook.less',
  1840. 'resources/src/mediawiki.rcfilters/styles/mw.rcfilters.ui.CapsuleItemWidget.monobook.less',
  1841. 'resources/src/mediawiki.rcfilters/styles/mw.rcfilters.ui.FilterMenuOptionWidget.monobook.less',
  1842. ],
  1843. ],
  1844. 'messages' => [
  1845. 'rcfilters-tag-remove',
  1846. 'rcfilters-activefilters',
  1847. 'rcfilters-activefilters-hide',
  1848. 'rcfilters-activefilters-show',
  1849. 'rcfilters-activefilters-hide-tooltip',
  1850. 'rcfilters-activefilters-show-tooltip',
  1851. 'rcfilters-advancedfilters',
  1852. 'rcfilters-group-results-by-page',
  1853. 'rcfilters-limit-title',
  1854. 'rcfilters-limit-and-date-label',
  1855. 'rcfilters-date-popup-title',
  1856. 'rcfilters-days-title',
  1857. 'rcfilters-hours-title',
  1858. 'rcfilters-days-show-days',
  1859. 'rcfilters-days-show-hours',
  1860. 'rcfilters-highlighted-filters-list',
  1861. 'rcfilters-quickfilters',
  1862. 'rcfilters-quickfilters-placeholder-title',
  1863. 'rcfilters-quickfilters-placeholder-description',
  1864. 'rcfilters-savedqueries-defaultlabel',
  1865. 'rcfilters-savedqueries-rename',
  1866. 'rcfilters-savedqueries-setdefault',
  1867. 'rcfilters-savedqueries-unsetdefault',
  1868. 'rcfilters-savedqueries-remove',
  1869. 'rcfilters-savedqueries-new-name-label',
  1870. 'rcfilters-savedqueries-new-name-placeholder',
  1871. 'rcfilters-savedqueries-add-new-title',
  1872. 'rcfilters-savedqueries-already-saved',
  1873. 'rcfilters-savedqueries-apply-label',
  1874. 'rcfilters-savedqueries-apply-and-setdefault-label',
  1875. 'rcfilters-savedqueries-cancel-label',
  1876. 'rcfilters-restore-default-filters',
  1877. 'rcfilters-clear-all-filters',
  1878. 'rcfilters-show-new-changes',
  1879. 'rcfilters-search-placeholder',
  1880. 'rcfilters-invalid-filter',
  1881. 'rcfilters-empty-filter',
  1882. 'rcfilters-filterlist-title',
  1883. 'rcfilters-filterlist-feedbacklink',
  1884. 'rcfilters-filterlist-noresults',
  1885. 'rcfilters-filterlist-whatsthis',
  1886. 'rcfilters-highlightbutton-title',
  1887. 'rcfilters-highlightmenu-title',
  1888. 'rcfilters-highlightmenu-help',
  1889. 'rcfilters-noresults-conflict',
  1890. 'rcfilters-state-message-subset',
  1891. 'rcfilters-state-message-fullcoverage',
  1892. 'rcfilters-filter-excluded',
  1893. 'rcfilters-tag-prefix-namespace',
  1894. 'rcfilters-tag-prefix-namespace-inverted',
  1895. 'rcfilters-tag-prefix-tags',
  1896. 'rcfilters-exclude-button-off',
  1897. 'rcfilters-exclude-button-on',
  1898. 'rcfilters-view-tags',
  1899. 'rcfilters-view-namespaces-tooltip',
  1900. 'rcfilters-view-tags-tooltip',
  1901. 'rcfilters-view-return-to-default-tooltip',
  1902. 'rcfilters-view-tags-help-icon-tooltip',
  1903. 'rcfilters-liveupdates-button',
  1904. 'rcfilters-liveupdates-button-title-on',
  1905. 'rcfilters-liveupdates-button-title-off',
  1906. 'rcfilters-watchlist-markseen-button',
  1907. 'rcfilters-watchlist-edit-watchlist-button',
  1908. 'rcfilters-other-review-tools',
  1909. 'rcfilters-filter-showlinkedfrom-label',
  1910. 'rcfilters-filter-showlinkedfrom-option-label',
  1911. 'rcfilters-filter-showlinkedto-label',
  1912. 'rcfilters-filter-showlinkedto-option-label',
  1913. 'rcfilters-target-page-placeholder',
  1914. 'blanknamespace',
  1915. 'namespaces',
  1916. 'tags-title',
  1917. 'invert',
  1918. 'recentchanges-noresult',
  1919. 'recentchanges-timeout',
  1920. 'recentchanges-network',
  1921. 'recentchanges-notargetpage',
  1922. 'allpagesbadtitle',
  1923. 'quotation-marks',
  1924. ],
  1925. 'dependencies' => [
  1926. 'oojs-ui-widgets',
  1927. 'jquery.makeCollapsible',
  1928. 'mediawiki.jqueryMsg',
  1929. 'mediawiki.language',
  1930. 'mediawiki.user',
  1931. 'mediawiki.util',
  1932. 'mediawiki.widgets',
  1933. 'mediawiki.rcfilters.filters.dm',
  1934. 'oojs-ui.styles.icons-content',
  1935. 'oojs-ui.styles.icons-moderation',
  1936. 'oojs-ui.styles.icons-editing-core',
  1937. 'oojs-ui.styles.icons-editing-styling',
  1938. 'oojs-ui.styles.icons-interactions',
  1939. 'oojs-ui.styles.icons-layout',
  1940. 'oojs-ui.styles.icons-media',
  1941. ],
  1942. ],
  1943. 'mediawiki.special' => [
  1944. 'styles' => [
  1945. 'resources/src/mediawiki.special/special.css',
  1946. 'resources/src/mediawiki.special/apisandbox.css',
  1947. 'resources/src/mediawiki.special/comparepages.less',
  1948. 'resources/src/mediawiki.special/edittags.css',
  1949. 'resources/src/mediawiki.special/movePage.css',
  1950. 'resources/src/mediawiki.special/newpages.less',
  1951. 'resources/src/mediawiki.special/pagesWithProp.css',
  1952. 'resources/src/mediawiki.special/upload.css',
  1953. 'resources/src/mediawiki.special/userrights.css',
  1954. 'resources/src/mediawiki.special/watchlist.css',
  1955. ],
  1956. 'targets' => [ 'desktop', 'mobile' ],
  1957. ],
  1958. 'mediawiki.special.apisandbox' => [
  1959. 'styles' => 'resources/src/mediawiki.special.apisandbox/apisandbox.css',
  1960. 'scripts' => 'resources/src/mediawiki.special.apisandbox/apisandbox.js',
  1961. 'targets' => [ 'desktop', 'mobile' ],
  1962. 'dependencies' => [
  1963. 'mediawiki.api',
  1964. 'mediawiki.jqueryMsg',
  1965. 'mediawiki.util',
  1966. 'oojs-ui',
  1967. 'oojs-ui.styles.icons-content',
  1968. 'oojs-ui.styles.icons-editing-advanced',
  1969. 'oojs-ui.styles.icons-interactions',
  1970. 'oojs-ui.styles.icons-moderation',
  1971. 'mediawiki.widgets.datetime',
  1972. 'jquery.makeCollapsible',
  1973. ],
  1974. 'messages' => [
  1975. 'apisandbox-intro',
  1976. 'apisandbox-submit',
  1977. 'apisandbox-reset',
  1978. 'apisandbox-retry',
  1979. 'apisandbox-loading',
  1980. 'apisandbox-load-error',
  1981. 'apisandbox-fetch-token',
  1982. 'apisandbox-add-multi',
  1983. 'apisandbox-helpurls',
  1984. 'apisandbox-examples',
  1985. 'apisandbox-dynamic-parameters',
  1986. 'apisandbox-dynamic-parameters-add-label',
  1987. 'apisandbox-dynamic-parameters-add-placeholder',
  1988. 'apisandbox-dynamic-error-exists',
  1989. 'apisandbox-templated-parameter-reason',
  1990. 'apisandbox-deprecated-parameters',
  1991. 'apisandbox-no-parameters',
  1992. 'api-help-param-limit',
  1993. 'api-help-param-limit2',
  1994. 'api-help-param-integer-min',
  1995. 'api-help-param-integer-max',
  1996. 'api-help-param-integer-minmax',
  1997. 'api-help-param-multi-separate',
  1998. 'api-help-param-multi-max',
  1999. 'api-help-param-maxbytes',
  2000. 'api-help-param-maxchars',
  2001. 'apisandbox-submit-invalid-fields-title',
  2002. 'apisandbox-submit-invalid-fields-message',
  2003. 'apisandbox-results',
  2004. 'apisandbox-sending-request',
  2005. 'apisandbox-loading-results',
  2006. 'apisandbox-results-error',
  2007. 'apisandbox-results-login-suppressed',
  2008. 'apisandbox-request-selectformat-label',
  2009. 'apisandbox-request-format-url-label',
  2010. 'apisandbox-request-url-label',
  2011. 'apisandbox-request-format-json-label',
  2012. 'apisandbox-request-json-label',
  2013. 'apisandbox-request-time',
  2014. 'apisandbox-results-fixtoken',
  2015. 'apisandbox-results-fixtoken-fail',
  2016. 'apisandbox-alert-page',
  2017. 'apisandbox-alert-field',
  2018. 'apisandbox-continue',
  2019. 'apisandbox-continue-clear',
  2020. 'apisandbox-continue-help',
  2021. 'apisandbox-param-limit',
  2022. 'apisandbox-multivalue-all-namespaces',
  2023. 'apisandbox-multivalue-all-values',
  2024. 'api-format-prettyprint-status',
  2025. 'blanknamespace',
  2026. 'comma-separator',
  2027. 'word-separator',
  2028. 'and'
  2029. ],
  2030. ],
  2031. 'mediawiki.special.block' => [
  2032. 'scripts' => 'resources/src/mediawiki.special.block.js',
  2033. 'dependencies' => [
  2034. 'oojs-ui-core',
  2035. 'oojs-ui.styles.icons-editing-core',
  2036. 'oojs-ui.styles.icons-editing-advanced',
  2037. 'mediawiki.widgets.SelectWithInputWidget',
  2038. 'mediawiki.widgets.DateInputWidget',
  2039. 'mediawiki.util',
  2040. 'mediawiki.htmlform',
  2041. 'moment',
  2042. ],
  2043. ],
  2044. 'mediawiki.special.changecredentials.js' => [
  2045. 'scripts' => 'resources/src/mediawiki.special.changecredentials.js',
  2046. 'dependencies' => [
  2047. 'mediawiki.api',
  2048. 'mediawiki.htmlform.ooui'
  2049. ],
  2050. 'targets' => [ 'desktop', 'mobile' ],
  2051. ],
  2052. 'mediawiki.special.changeslist' => [
  2053. 'styles' => 'resources/src/mediawiki.special.changeslist.css',
  2054. 'targets' => [ 'desktop', 'mobile' ],
  2055. ],
  2056. 'mediawiki.special.changeslist.enhanced' => [
  2057. 'styles' => 'resources/src/mediawiki.special.changeslist.enhanced.css',
  2058. ],
  2059. 'mediawiki.special.changeslist.legend' => [
  2060. 'styles' => 'resources/src/mediawiki.special.changeslist.legend.css',
  2061. 'targets' => [ 'desktop', 'mobile' ],
  2062. ],
  2063. 'mediawiki.special.changeslist.legend.js' => [
  2064. 'scripts' => 'resources/src/mediawiki.special.changeslist.legend.js',
  2065. 'dependencies' => [
  2066. 'jquery.makeCollapsible',
  2067. 'mediawiki.cookie',
  2068. ],
  2069. 'targets' => [ 'desktop', 'mobile' ],
  2070. ],
  2071. 'mediawiki.special.contributions' => [
  2072. 'scripts' => 'resources/src/mediawiki.special.contributions.js',
  2073. 'dependencies' => [
  2074. 'mediawiki.widgets.DateInputWidget',
  2075. 'mediawiki.jqueryMsg',
  2076. ]
  2077. ],
  2078. 'mediawiki.special.edittags' => [
  2079. 'scripts' => 'resources/src/mediawiki.special.edittags.js',
  2080. 'dependencies' => [
  2081. 'jquery.chosen',
  2082. 'jquery.lengthLimit',
  2083. ],
  2084. 'messages' => [
  2085. 'tags-edit-chosen-placeholder',
  2086. 'tags-edit-chosen-no-results',
  2087. ],
  2088. ],
  2089. 'mediawiki.special.import' => [
  2090. 'scripts' => 'resources/src/mediawiki.special.import.js',
  2091. ],
  2092. 'mediawiki.special.movePage' => [
  2093. 'scripts' => 'resources/src/mediawiki.special.movePage.js',
  2094. 'dependencies' => [
  2095. 'mediawiki.widgets.visibleLengthLimit',
  2096. 'mediawiki.widgets',
  2097. ],
  2098. ],
  2099. 'mediawiki.special.pageLanguage' => [
  2100. 'scripts' => 'resources/src/mediawiki.special.pageLanguage.js',
  2101. 'dependencies' => [
  2102. 'oojs-ui-core',
  2103. ],
  2104. ],
  2105. 'mediawiki.special.preferences' => [
  2106. 'targets' => [ 'desktop', 'mobile' ],
  2107. 'scripts' => [
  2108. 'resources/src/mediawiki.special.preferences/confirmClose.js',
  2109. 'resources/src/mediawiki.special.preferences/convertmessagebox.js',
  2110. 'resources/src/mediawiki.special.preferences/tabs.legacy.js',
  2111. 'resources/src/mediawiki.special.preferences/timezone.js',
  2112. 'resources/src/mediawiki.special.preferences/personalEmail.js',
  2113. ],
  2114. 'messages' => [
  2115. 'prefs-tabs-navigation-hint',
  2116. 'prefswarning-warning',
  2117. 'saveprefs',
  2118. 'savedprefs',
  2119. ],
  2120. 'dependencies' => [
  2121. 'mediawiki.language',
  2122. 'mediawiki.confirmCloseWindow',
  2123. 'mediawiki.notification.convertmessagebox',
  2124. ],
  2125. ],
  2126. 'mediawiki.special.preferences.styles' => [
  2127. 'targets' => [ 'desktop', 'mobile' ],
  2128. // legacy
  2129. 'styles' => 'resources/src/mediawiki.special.preferences.styles.css',
  2130. ],
  2131. 'mediawiki.special.preferences.ooui' => [
  2132. 'targets' => [ 'desktop', 'mobile' ],
  2133. 'scripts' => [
  2134. // FIXME: This uses files already belonging to another module
  2135. 'resources/src/mediawiki.special.preferences/confirmClose.js',
  2136. 'resources/src/mediawiki.special.preferences/convertmessagebox.js',
  2137. 'resources/src/mediawiki.special.preferences.ooui/editfont.js',
  2138. 'resources/src/mediawiki.special.preferences.ooui/tabs.js',
  2139. 'resources/src/mediawiki.special.preferences/timezone.js',
  2140. 'resources/src/mediawiki.special.preferences/personalEmail.js',
  2141. ],
  2142. 'messages' => [
  2143. 'prefs-tabs-navigation-hint',
  2144. 'prefswarning-warning',
  2145. 'saveprefs',
  2146. 'savedprefs',
  2147. ],
  2148. 'dependencies' => [
  2149. 'mediawiki.language',
  2150. 'mediawiki.confirmCloseWindow',
  2151. 'mediawiki.notification.convertmessagebox',
  2152. 'oojs-ui-widgets',
  2153. 'mediawiki.widgets.SelectWithInputWidget',
  2154. 'mediawiki.editfont.styles',
  2155. ],
  2156. ],
  2157. 'mediawiki.special.preferences.styles.ooui' => [
  2158. 'targets' => [ 'desktop', 'mobile' ],
  2159. 'styles' => 'resources/src/mediawiki.special.preferences.styles.ooui.less',
  2160. ],
  2161. 'mediawiki.special.recentchanges' => [
  2162. 'scripts' => 'resources/src/mediawiki.special.recentchanges.js',
  2163. 'targets' => [ 'desktop', 'mobile' ],
  2164. ],
  2165. 'mediawiki.special.revisionDelete' => [
  2166. 'scripts' => 'resources/src/mediawiki.special.revisionDelete.js',
  2167. 'messages' => [
  2168. // @todo Load this message in content language
  2169. 'colon-separator',
  2170. ],
  2171. 'dependencies' => [
  2172. 'jquery.lengthLimit',
  2173. ],
  2174. 'targets' => [ 'desktop', 'mobile' ],
  2175. ],
  2176. 'mediawiki.special.search' => [
  2177. 'scripts' => 'resources/src/mediawiki.special.search/search.js',
  2178. 'styles' => 'resources/src/mediawiki.special.search/search.css',
  2179. 'dependencies' => 'mediawiki.widgets.SearchInputWidget',
  2180. 'messages' => [
  2181. 'powersearch-togglelabel',
  2182. 'powersearch-toggleall',
  2183. 'powersearch-togglenone',
  2184. ],
  2185. ],
  2186. 'mediawiki.special.search.commonsInterwikiWidget' => [
  2187. 'scripts' => 'resources/src/mediawiki.special.search.commonsInterwikiWidget.js',
  2188. 'dependencies' => [
  2189. 'mediawiki.api',
  2190. 'mediawiki.Uri',
  2191. 'mediawiki.jqueryMsg'
  2192. ],
  2193. 'targets' => [ 'desktop', 'mobile' ],
  2194. 'messages' => [
  2195. 'search-interwiki-more-results',
  2196. 'searchprofile-images'
  2197. ],
  2198. ],
  2199. 'mediawiki.special.search.interwikiwidget.styles' => [
  2200. 'styles' => 'resources/src/mediawiki.special.search.interwikiwidget.styles.less',
  2201. 'targets' => [ 'desktop', 'mobile' ]
  2202. ],
  2203. 'mediawiki.special.search.styles' => [
  2204. 'styles' => 'resources/src/mediawiki.special.search.styles.css',
  2205. 'targets' => [ 'desktop', 'mobile' ],
  2206. ],
  2207. 'mediawiki.special.undelete' => [
  2208. 'scripts' => 'resources/src/mediawiki.special.undelete.js',
  2209. 'dependencies' => [
  2210. 'mediawiki.widgets.visibleLengthLimit',
  2211. 'mediawiki.widgets',
  2212. ],
  2213. ],
  2214. 'mediawiki.special.unwatchedPages' => [
  2215. 'scripts' => 'resources/src/mediawiki.special.unwatchedPages/unwatchedPages.js',
  2216. 'styles' => 'resources/src/mediawiki.special.unwatchedPages/unwatchedPages.css',
  2217. 'messages' => [
  2218. 'addedwatchtext-short',
  2219. 'removedwatchtext-short',
  2220. 'unwatch',
  2221. 'unwatching',
  2222. 'watch',
  2223. 'watcherrortext',
  2224. 'watching',
  2225. ],
  2226. 'dependencies' => [
  2227. 'mediawiki.api',
  2228. 'mediawiki.notify',
  2229. 'mediawiki.Title',
  2230. 'mediawiki.util',
  2231. ],
  2232. ],
  2233. 'mediawiki.special.upload' => [
  2234. 'templates' => [
  2235. 'thumbnail.html' => 'resources/src/mediawiki.special.upload/templates/thumbnail.html',
  2236. ],
  2237. 'scripts' => 'resources/src/mediawiki.special.upload/upload.js',
  2238. 'messages' => [
  2239. 'widthheight',
  2240. 'size-bytes',
  2241. 'size-kilobytes',
  2242. 'size-megabytes',
  2243. 'size-gigabytes',
  2244. 'largefileserver',
  2245. 'editwarning-warning',
  2246. // editwarning-warning uses {{int:prefs-editing}}
  2247. 'prefs-editing',
  2248. ],
  2249. 'dependencies' => [
  2250. 'mediawiki.special',
  2251. 'jquery.spinner',
  2252. 'mediawiki.jqueryMsg',
  2253. 'mediawiki.api',
  2254. 'mediawiki.libs.jpegmeta',
  2255. 'mediawiki.Title',
  2256. 'mediawiki.util',
  2257. 'mediawiki.confirmCloseWindow',
  2258. 'user.options',
  2259. ],
  2260. ],
  2261. 'mediawiki.special.userlogin.common.styles' => [
  2262. 'targets' => [ 'desktop', 'mobile' ],
  2263. 'skinStyles' => [
  2264. 'default' => 'resources/src/mediawiki.special.userlogin.common.styles/userlogin.css',
  2265. ],
  2266. ],
  2267. 'mediawiki.special.userlogin.login.styles' => [
  2268. 'styles' => [
  2269. 'resources/src/mediawiki.special.userlogin.login.styles/login.css',
  2270. ],
  2271. ],
  2272. 'mediawiki.special.userlogin.signup.js' => [
  2273. 'scripts' => 'resources/src/mediawiki.special.userlogin.signup.js',
  2274. 'messages' => [
  2275. 'createacct-emailrequired',
  2276. 'noname',
  2277. 'userexists',
  2278. ],
  2279. 'dependencies' => [
  2280. 'mediawiki.api',
  2281. 'mediawiki.jqueryMsg',
  2282. 'jquery.throttle-debounce',
  2283. 'mediawiki.htmlform.checker',
  2284. ],
  2285. ],
  2286. 'mediawiki.special.userlogin.signup.styles' => [
  2287. 'styles' => [
  2288. 'resources/src/mediawiki.special.userlogin.signup.styles/signup.css',
  2289. ],
  2290. ],
  2291. 'mediawiki.special.userrights' => [
  2292. 'scripts' => 'resources/src/mediawiki.special.userrights.js',
  2293. 'dependencies' => [
  2294. 'mediawiki.notification.convertmessagebox',
  2295. 'jquery.lengthLimit',
  2296. ],
  2297. ],
  2298. 'mediawiki.special.watchlist' => [
  2299. 'scripts' => [
  2300. 'resources/src/mediawiki.special.watchlist/watchlist.js',
  2301. 'resources/src/mediawiki.special.watchlist/visitedstatus.js',
  2302. ],
  2303. 'messages' => [
  2304. 'addedwatchtext',
  2305. 'addedwatchtext-talk',
  2306. 'removedwatchtext',
  2307. 'removedwatchtext-talk',
  2308. 'tooltip-ca-watch',
  2309. 'tooltip-ca-unwatch',
  2310. 'watchlist-unwatch',
  2311. 'watchlist-unwatch-undo',
  2312. ],
  2313. 'dependencies' => [
  2314. 'mediawiki.api',
  2315. 'mediawiki.jqueryMsg',
  2316. 'mediawiki.Title',
  2317. 'mediawiki.util',
  2318. 'oojs-ui-core',
  2319. 'user.options',
  2320. ],
  2321. ],
  2322. 'mediawiki.special.version' => [
  2323. 'styles' => 'resources/src/mediawiki.special.version.css',
  2324. ],
  2325. /* MediaWiki Installer */
  2326. // Used in the web installer. Test it after modifying this definition!
  2327. 'mediawiki.legacy.config' => [
  2328. // These files are not actually loaded via ResourceLoader, so dependencies etc. won't work.
  2329. 'scripts' => 'mw-config/config.js',
  2330. 'styles' => 'mw-config/config.css',
  2331. ],
  2332. /* MediaWiki Legacy */
  2333. 'mediawiki.legacy.commonPrint' => [
  2334. 'styles' => [
  2335. 'resources/src/mediawiki.legacy/commonPrint.css' => [ 'media' => 'print' ]
  2336. ],
  2337. ],
  2338. 'mediawiki.legacy.protect' => [
  2339. 'scripts' => 'resources/src/mediawiki.legacy/protect.js',
  2340. 'dependencies' => 'jquery.lengthLimit',
  2341. 'messages' => [ 'protect-unchain-permissions' ]
  2342. ],
  2343. // Used in the web installer. Test it after modifying this definition!
  2344. 'mediawiki.legacy.shared' => [
  2345. 'targets' => [ 'desktop', 'mobile' ],
  2346. 'styles' => [
  2347. 'resources/src/mediawiki.legacy/shared.css' => [ 'media' => 'screen' ]
  2348. ],
  2349. ],
  2350. 'mediawiki.legacy.oldshared' => [
  2351. 'styles' => [
  2352. 'resources/src/mediawiki.legacy/oldshared.css' => [ 'media' => 'screen' ]
  2353. ],
  2354. ],
  2355. /* MediaWiki UI */
  2356. 'mediawiki.ui' => [
  2357. 'deprecated' => 'Please use OOUI instead.',
  2358. 'skinStyles' => [
  2359. 'default' => [
  2360. 'resources/src/mediawiki.ui/default.less',
  2361. ],
  2362. ],
  2363. 'targets' => [ 'desktop', 'mobile' ],
  2364. ],
  2365. 'mediawiki.ui.checkbox' => [
  2366. 'skinStyles' => [
  2367. 'default' => [
  2368. 'resources/src/mediawiki.ui/components/checkbox.less',
  2369. ],
  2370. ],
  2371. 'targets' => [ 'desktop', 'mobile' ],
  2372. ],
  2373. 'mediawiki.ui.radio' => [
  2374. 'skinStyles' => [
  2375. 'default' => [
  2376. 'resources/src/mediawiki.ui/components/radio.less',
  2377. ],
  2378. ],
  2379. 'targets' => [ 'desktop', 'mobile' ],
  2380. ],
  2381. // Lightweight module for anchor styles
  2382. 'mediawiki.ui.anchor' => [
  2383. 'skinStyles' => [
  2384. 'default' => [
  2385. 'resources/src/mediawiki.ui/components/anchors.less',
  2386. ],
  2387. ],
  2388. 'targets' => [ 'desktop', 'mobile' ],
  2389. ],
  2390. // Lightweight module for button styles
  2391. 'mediawiki.ui.button' => [
  2392. 'skinStyles' => [
  2393. 'default' => [
  2394. 'resources/src/mediawiki.ui/components/buttons.less',
  2395. ],
  2396. ],
  2397. 'targets' => [ 'desktop', 'mobile' ],
  2398. ],
  2399. 'mediawiki.ui.input' => [
  2400. 'skinStyles' => [
  2401. 'default' => [
  2402. 'resources/src/mediawiki.ui/components/inputs.less',
  2403. ],
  2404. ],
  2405. 'targets' => [ 'desktop', 'mobile' ],
  2406. ],
  2407. 'mediawiki.ui.icon' => [
  2408. 'skinStyles' => [
  2409. 'default' => [
  2410. 'resources/src/mediawiki.ui/components/icons.less',
  2411. ],
  2412. ],
  2413. 'targets' => [ 'desktop', 'mobile' ],
  2414. ],
  2415. // Lightweight module for text styles
  2416. 'mediawiki.ui.text' => [
  2417. 'skinStyles' => [
  2418. 'default' => [
  2419. 'resources/src/mediawiki.ui/components/text.less',
  2420. ],
  2421. ],
  2422. 'targets' => [ 'desktop', 'mobile' ],
  2423. ],
  2424. 'mediawiki.widgets' => [
  2425. 'scripts' => [
  2426. 'resources/src/mediawiki.widgets/mw.widgets.NamespaceInputWidget.js',
  2427. 'resources/src/mediawiki.widgets/mw.widgets.ComplexNamespaceInputWidget.js',
  2428. 'resources/src/mediawiki.widgets/mw.widgets.TitleWidget.js',
  2429. 'resources/src/mediawiki.widgets/mw.widgets.TitleInputWidget.js',
  2430. 'resources/src/mediawiki.widgets/mw.widgets.TitleSearchWidget.js',
  2431. 'resources/src/mediawiki.widgets/mw.widgets.ComplexTitleInputWidget.js',
  2432. 'resources/src/mediawiki.widgets/mw.widgets.TitleOptionWidget.js',
  2433. ],
  2434. 'skinStyles' => [
  2435. 'default' => [
  2436. 'resources/src/mediawiki.widgets/mw.widgets.TitleWidget.less',
  2437. ],
  2438. ],
  2439. 'dependencies' => [
  2440. 'oojs-ui-widgets',
  2441. 'mediawiki.widgets.styles',
  2442. // TitleInputWidget
  2443. 'mediawiki.Title',
  2444. 'mediawiki.api',
  2445. 'mediawiki.String',
  2446. ],
  2447. 'messages' => [
  2448. // NamespaceInputWidget
  2449. 'blanknamespace',
  2450. 'namespacesall',
  2451. // TitleInputWidget
  2452. 'mw-widgets-titleinput-description-new-page',
  2453. 'mw-widgets-titleinput-description-redirect',
  2454. ],
  2455. 'targets' => [ 'desktop', 'mobile' ],
  2456. ],
  2457. 'mediawiki.widgets.styles' => [
  2458. 'skinStyles' => [
  2459. 'default' => [
  2460. 'resources/src/mediawiki.widgets/mw.widgets.ComplexNamespaceInputWidget.base.css',
  2461. 'resources/src/mediawiki.widgets/mw.widgets.ComplexTitleInputWidget.base.css',
  2462. ],
  2463. ],
  2464. 'targets' => [ 'desktop', 'mobile' ],
  2465. ],
  2466. 'mediawiki.widgets.DateInputWidget' => [
  2467. 'scripts' => [
  2468. 'resources/src/mediawiki.widgets/mw.widgets.CalendarWidget.js',
  2469. 'resources/src/mediawiki.widgets/mw.widgets.DateInputWidget.js',
  2470. ],
  2471. 'skinStyles' => [
  2472. 'default' => [
  2473. 'resources/src/mediawiki.widgets/mw.widgets.CalendarWidget.less',
  2474. 'resources/src/mediawiki.widgets/mw.widgets.DateInputWidget.less',
  2475. ],
  2476. ],
  2477. 'messages' => [
  2478. 'mw-widgets-dateinput-no-date',
  2479. 'mw-widgets-dateinput-placeholder-day',
  2480. 'mw-widgets-dateinput-placeholder-month',
  2481. ],
  2482. 'dependencies' => [
  2483. 'oojs-ui-widgets',
  2484. 'oojs-ui.styles.icons-movement',
  2485. 'moment',
  2486. 'mediawiki.widgets.DateInputWidget.styles',
  2487. ],
  2488. 'targets' => [ 'desktop', 'mobile' ],
  2489. ],
  2490. 'mediawiki.widgets.DateInputWidget.styles' => [
  2491. 'skinStyles' => [
  2492. 'default' => [
  2493. 'resources/src/mediawiki.widgets/mw.widgets.DateInputWidget.styles.less',
  2494. ],
  2495. ],
  2496. 'targets' => [ 'desktop', 'mobile' ],
  2497. ],
  2498. 'mediawiki.widgets.visibleLengthLimit' => [
  2499. 'scripts' => [
  2500. 'resources/src/mediawiki.widgets.visibleLengthLimit/mediawiki.widgets.visibleLengthLimit.js'
  2501. ],
  2502. 'dependencies' => [
  2503. 'oojs-ui-core',
  2504. 'jquery.lengthLimit',
  2505. 'mediawiki.language',
  2506. 'mediawiki.String',
  2507. ],
  2508. 'targets' => [ 'desktop', 'mobile' ]
  2509. ],
  2510. 'mediawiki.widgets.datetime' => [
  2511. 'scripts' => [
  2512. 'resources/src/mediawiki.widgets.datetime/mediawiki.widgets.datetime.js',
  2513. 'resources/src/mediawiki.widgets.datetime/CalendarWidget.js',
  2514. 'resources/src/mediawiki.widgets.datetime/DateTimeFormatter.js',
  2515. 'resources/src/mediawiki.widgets.datetime/DateTimeInputWidget.js',
  2516. 'resources/src/mediawiki.widgets.datetime/ProlepticGregorianDateTimeFormatter.js',
  2517. ],
  2518. 'skinStyles' => [
  2519. 'default' => [
  2520. 'resources/src/mediawiki.widgets.datetime/CalendarWidget.less',
  2521. 'resources/src/mediawiki.widgets.datetime/DateTimeInputWidget.less',
  2522. ],
  2523. ],
  2524. 'messages' => [
  2525. 'timezone-utc',
  2526. 'timezone-local',
  2527. 'january',
  2528. 'february',
  2529. 'march',
  2530. 'april',
  2531. 'may_long',
  2532. 'june',
  2533. 'july',
  2534. 'august',
  2535. 'september',
  2536. 'october',
  2537. 'november',
  2538. 'december',
  2539. 'jan',
  2540. 'feb',
  2541. 'mar',
  2542. 'apr',
  2543. 'may',
  2544. 'jun',
  2545. 'jul',
  2546. 'aug',
  2547. 'sep',
  2548. 'oct',
  2549. 'nov',
  2550. 'dec',
  2551. 'sunday',
  2552. 'monday',
  2553. 'tuesday',
  2554. 'wednesday',
  2555. 'thursday',
  2556. 'friday',
  2557. 'saturday',
  2558. 'sun',
  2559. 'mon',
  2560. 'tue',
  2561. 'wed',
  2562. 'thu',
  2563. 'fri',
  2564. 'sat',
  2565. 'period-am',
  2566. 'period-pm',
  2567. ],
  2568. 'dependencies' => [
  2569. 'oojs-ui-core',
  2570. 'oojs-ui.styles.icons-moderation',
  2571. 'oojs-ui.styles.icons-movement',
  2572. ],
  2573. 'targets' => [ 'desktop', 'mobile' ],
  2574. ],
  2575. 'mediawiki.widgets.expiry' => [
  2576. 'scripts' => [
  2577. 'resources/src/mediawiki.widgets/mw.widgets.ExpiryInputWidget.js',
  2578. ],
  2579. 'dependencies' => [
  2580. 'oojs-ui-core',
  2581. 'oojs-ui-widgets',
  2582. 'moment',
  2583. 'mediawiki.widgets.datetime'
  2584. ],
  2585. 'skinStyles' => [
  2586. 'default' => 'resources/src/mediawiki.widgets/mw.widgets.ExpiryInputWidget.less',
  2587. ],
  2588. 'targets' => [ 'desktop', 'mobile' ],
  2589. ],
  2590. 'mediawiki.widgets.CheckMatrixWidget' => [
  2591. 'scripts' => [
  2592. 'resources/src/mediawiki.widgets/mw.widgets.CheckMatrixWidget.js',
  2593. ],
  2594. 'dependencies' => [
  2595. 'oojs-ui-core',
  2596. ],
  2597. 'targets' => [ 'desktop', 'mobile' ],
  2598. ],
  2599. 'mediawiki.widgets.CategoryMultiselectWidget' => [
  2600. 'scripts' => [
  2601. 'resources/src/mediawiki.widgets/mw.widgets.CategoryTagItemWidget.js',
  2602. 'resources/src/mediawiki.widgets/mw.widgets.CategoryMultiselectWidget.js',
  2603. ],
  2604. 'dependencies' => [
  2605. 'oojs-ui-widgets',
  2606. 'mediawiki.api',
  2607. 'mediawiki.ForeignApi',
  2608. 'mediawiki.Title',
  2609. ],
  2610. 'messages' => [
  2611. 'red-link-title',
  2612. 'mw-widgets-categoryselector-add-category-placeholder',
  2613. ],
  2614. 'targets' => [ 'desktop', 'mobile' ],
  2615. ],
  2616. 'mediawiki.widgets.SelectWithInputWidget' => [
  2617. 'scripts' => 'resources/src/mediawiki.widgets/mw.widgets.SelectWithInputWidget.js',
  2618. 'dependencies' => [
  2619. 'mediawiki.widgets.SelectWithInputWidget.styles',
  2620. 'oojs-ui-widgets',
  2621. ],
  2622. 'targets' => [ 'desktop', 'mobile' ],
  2623. ],
  2624. 'mediawiki.widgets.SelectWithInputWidget.styles' => [
  2625. 'styles' => 'resources/src/mediawiki.widgets/mw.widgets.SelectWithInputWidget.base.css',
  2626. 'targets' => [ 'desktop', 'mobile' ],
  2627. ],
  2628. 'mediawiki.widgets.SizeFilterWidget' => [
  2629. 'scripts' => 'resources/src/mediawiki.widgets/mw.widgets.SizeFilterWidget.js',
  2630. 'dependencies' => [
  2631. 'mediawiki.widgets.SizeFilterWidget.styles',
  2632. 'oojs-ui-widgets',
  2633. ],
  2634. 'messages' => [
  2635. 'minimum-size',
  2636. 'maximum-size',
  2637. 'pagesize',
  2638. ],
  2639. 'targets' => [ 'desktop', 'mobile' ],
  2640. ],
  2641. 'mediawiki.widgets.SizeFilterWidget.styles' => [
  2642. 'styles' => 'resources/src/mediawiki.widgets/mw.widgets.SizeFilterWidget.base.css',
  2643. 'targets' => [ 'desktop', 'mobile' ],
  2644. ],
  2645. 'mediawiki.widgets.MediaSearch' => [
  2646. 'scripts' => [
  2647. 'resources/src/mediawiki.widgets/MediaSearch/mw.widgets.APIResultsProvider.js',
  2648. 'resources/src/mediawiki.widgets/MediaSearch/mw.widgets.APIResultsQueue.js',
  2649. 'resources/src/mediawiki.widgets/MediaSearch/mw.widgets.MediaResourceProvider.js',
  2650. 'resources/src/mediawiki.widgets/MediaSearch/mw.widgets.MediaSearchProvider.js',
  2651. 'resources/src/mediawiki.widgets/MediaSearch/mw.widgets.MediaResourceQueue.js',
  2652. 'resources/src/mediawiki.widgets/MediaSearch/mw.widgets.MediaSearchQueue.js',
  2653. 'resources/src/mediawiki.widgets/MediaSearch/mw.widgets.MediaSearchWidget.js',
  2654. 'resources/src/mediawiki.widgets/MediaSearch/mw.widgets.MediaResultWidget.js',
  2655. ],
  2656. 'styles' => [
  2657. 'resources/src/mediawiki.widgets/MediaSearch/mw.widgets.MediaSearchWidget.css',
  2658. 'resources/src/mediawiki.widgets/MediaSearch/mw.widgets.MediaResultWidget.css',
  2659. ],
  2660. 'dependencies' => [
  2661. 'oojs-ui-widgets',
  2662. 'mediawiki.ForeignApi',
  2663. 'mediawiki.Title',
  2664. 'mediawiki.util',
  2665. ],
  2666. 'messages' => [
  2667. 'mw-widgets-mediasearch-noresults',
  2668. 'mw-widgets-mediasearch-input-placeholder',
  2669. ],
  2670. 'targets' => [ 'desktop', 'mobile' ],
  2671. ],
  2672. 'mediawiki.widgets.UserInputWidget' => [
  2673. 'scripts' => [
  2674. 'resources/src/mediawiki.widgets/mw.widgets.UserInputWidget.js',
  2675. ],
  2676. 'dependencies' => [
  2677. 'mediawiki.api',
  2678. 'oojs-ui-widgets',
  2679. ],
  2680. 'targets' => [ 'desktop', 'mobile' ],
  2681. ],
  2682. 'mediawiki.widgets.UsersMultiselectWidget' => [
  2683. 'scripts' => [
  2684. 'resources/src/mediawiki.widgets/mw.widgets.UsersMultiselectWidget.js',
  2685. ],
  2686. 'dependencies' => [
  2687. 'mediawiki.api',
  2688. 'oojs-ui-widgets',
  2689. ],
  2690. 'targets' => [ 'desktop', 'mobile' ],
  2691. ],
  2692. 'mediawiki.widgets.SearchInputWidget' => [
  2693. 'scripts' => [
  2694. 'resources/src/mediawiki.widgets/mw.widgets.SearchInputWidget.js',
  2695. ],
  2696. 'dependencies' => [
  2697. 'mediawiki.searchSuggest',
  2698. 'oojs-ui.styles.icons-interactions',
  2699. // FIXME: Needs TitleInputWidget only
  2700. 'mediawiki.widgets',
  2701. ],
  2702. ],
  2703. 'mediawiki.widgets.SearchInputWidget.styles' => [
  2704. 'skinStyles' => [
  2705. 'default' => [
  2706. 'resources/src/mediawiki.widgets/mw.widgets.SearchInputWidget.css',
  2707. ],
  2708. ],
  2709. 'targets' => [ 'desktop', 'mobile' ],
  2710. ],
  2711. 'mediawiki.widgets.StashedFileWidget' => [
  2712. 'scripts' => [
  2713. 'resources/src/mediawiki.widgets/mw.widgets.StashedFileWidget.js',
  2714. ],
  2715. 'skinStyles' => [
  2716. 'default' => [
  2717. 'resources/src/mediawiki.widgets/mw.widgets.StashedFileWidget.less',
  2718. ],
  2719. ],
  2720. 'dependencies' => [
  2721. 'mediawiki.api',
  2722. 'oojs-ui-core',
  2723. ],
  2724. ],
  2725. /**
  2726. * html5shiv
  2727. *
  2728. * This library is intended to run on older browsers
  2729. * that MediaWiki no longer supports as Grade A, and
  2730. * is not loaded through the normal module loading
  2731. * system.
  2732. */
  2733. 'html5shiv' => [
  2734. 'scripts' => [
  2735. 'resources/lib/html5shiv/html5shiv.js'
  2736. ],
  2737. 'raw' => true,
  2738. ],
  2739. /* EasyDeflate */
  2740. 'easy-deflate.core' => [
  2741. 'scripts' => [ 'resources/lib/easy-deflate/easydeflate.js' ],
  2742. 'targets' => [ 'desktop', 'mobile' ],
  2743. ],
  2744. 'easy-deflate.deflate' => [
  2745. 'scripts' => [ 'resources/lib/easy-deflate/deflate.js' ],
  2746. 'dependencies' => [ 'easy-deflate.core' ],
  2747. 'targets' => [ 'desktop', 'mobile' ],
  2748. ],
  2749. 'easy-deflate.inflate' => [
  2750. 'scripts' => [ 'resources/lib/easy-deflate/inflate.js' ],
  2751. 'dependencies' => [ 'easy-deflate.core' ],
  2752. 'targets' => [ 'desktop', 'mobile' ],
  2753. ],
  2754. /* OOjs */
  2755. 'oojs' => [
  2756. 'scripts' => [
  2757. 'resources/lib/oojs/oojs.jquery.js',
  2758. 'resources/src/oojs-global.js',
  2759. ],
  2760. 'targets' => [ 'desktop', 'mobile' ],
  2761. ],
  2762. 'mediawiki.router' => [
  2763. 'scripts' => [
  2764. 'resources/src/mediawiki.router/index.js',
  2765. ],
  2766. 'targets' => [ 'desktop', 'mobile' ],
  2767. 'dependencies' => [
  2768. 'oojs-router',
  2769. ],
  2770. ],
  2771. 'oojs-router' => [
  2772. 'scripts' => [
  2773. 'resources/lib/oojs-router/oojs-router.js',
  2774. ],
  2775. 'targets' => [ 'desktop', 'mobile' ],
  2776. 'dependencies' => [
  2777. 'oojs',
  2778. ],
  2779. ],
  2780. /* OOjs UI */
  2781. // Omnibus module.
  2782. 'oojs-ui' => [
  2783. 'dependencies' => [
  2784. 'oojs-ui-core',
  2785. 'oojs-ui-widgets',
  2786. 'oojs-ui-toolbars',
  2787. 'oojs-ui-windows',
  2788. ],
  2789. 'targets' => [ 'desktop', 'mobile' ],
  2790. ],
  2791. // The core JavaScript library.
  2792. 'oojs-ui-core' => [
  2793. 'class' => ResourceLoaderOOUIFileModule::class,
  2794. 'scripts' => [
  2795. 'resources/lib/ooui/oojs-ui-core.js',
  2796. 'resources/src/ooui-local.js',
  2797. ],
  2798. 'themeScripts' => 'core',
  2799. 'dependencies' => [
  2800. 'oojs',
  2801. 'oojs-ui-core.styles',
  2802. 'oojs-ui.styles.indicators',
  2803. 'oojs-ui.styles.textures',
  2804. 'mediawiki.language',
  2805. 'oojs-ui.styles.icons-content',
  2806. 'oojs-ui.styles.icons-alerts',
  2807. 'oojs-ui.styles.icons-interactions',
  2808. ],
  2809. 'messages' => [
  2810. 'ooui-field-help'
  2811. ],
  2812. 'targets' => [ 'desktop', 'mobile' ],
  2813. ],
  2814. // This contains only the styles required by core widgets.
  2815. 'oojs-ui-core.styles' => [
  2816. 'class' => ResourceLoaderOOUIFileModule::class,
  2817. 'styles' => [
  2818. 'resources/lib/ooui/wikimedia-ui-base.less', // Providing Wikimedia UI LESS variables to all
  2819. ],
  2820. 'themeStyles' => 'core',
  2821. 'targets' => [ 'desktop', 'mobile' ],
  2822. ],
  2823. // Additional widgets and layouts module.
  2824. 'oojs-ui-widgets' => [
  2825. 'class' => ResourceLoaderOOUIFileModule::class,
  2826. 'scripts' => 'resources/lib/ooui/oojs-ui-widgets.js',
  2827. 'themeStyles' => 'widgets',
  2828. 'dependencies' => [
  2829. 'oojs-ui-core',
  2830. 'oojs-ui.styles.icons-interactions',
  2831. 'oojs-ui.styles.icons-content',
  2832. 'oojs-ui.styles.icons-editing-advanced',
  2833. 'oojs-ui.styles.icons-movement',
  2834. 'oojs-ui.styles.icons-moderation',
  2835. ],
  2836. 'messages' => [
  2837. 'ooui-item-remove',
  2838. 'ooui-outline-control-move-down',
  2839. 'ooui-outline-control-move-up',
  2840. 'ooui-outline-control-remove',
  2841. 'ooui-selectfile-button-select',
  2842. 'ooui-selectfile-dragdrop-placeholder',
  2843. 'ooui-selectfile-not-supported',
  2844. 'ooui-selectfile-placeholder',
  2845. ],
  2846. 'targets' => [ 'desktop', 'mobile' ],
  2847. ],
  2848. // You should never directly load this module. The CSS classes it defines are not a public API,
  2849. // they depend on the internal structure of OOUI widgets, which can change at any time. If you
  2850. // find that you need to load this module, you're probably doing something wrong or very hacky.
  2851. 'oojs-ui-widgets.styles' => [
  2852. 'class' => ResourceLoaderOOUIFileModule::class,
  2853. 'themeStyles' => 'widgets',
  2854. 'targets' => [ 'desktop', 'mobile' ],
  2855. ],
  2856. // Toolbar and tools module.
  2857. 'oojs-ui-toolbars' => [
  2858. 'class' => ResourceLoaderOOUIFileModule::class,
  2859. 'scripts' => 'resources/lib/ooui/oojs-ui-toolbars.js',
  2860. 'themeStyles' => 'toolbars',
  2861. 'dependencies' => [
  2862. 'oojs-ui-core',
  2863. 'oojs-ui.styles.icons-movement',
  2864. ],
  2865. 'messages' => [
  2866. 'ooui-toolbar-more',
  2867. 'ooui-toolgroup-collapse',
  2868. 'ooui-toolgroup-expand',
  2869. ],
  2870. 'targets' => [ 'desktop', 'mobile' ],
  2871. ],
  2872. // Windows and dialogs module.
  2873. 'oojs-ui-windows' => [
  2874. 'class' => ResourceLoaderOOUIFileModule::class,
  2875. 'scripts' => 'resources/lib/ooui/oojs-ui-windows.js',
  2876. 'themeStyles' => 'windows',
  2877. 'dependencies' => [
  2878. 'oojs-ui-core',
  2879. 'oojs-ui.styles.icons-movement',
  2880. ],
  2881. 'messages' => [
  2882. 'ooui-dialog-message-accept',
  2883. 'ooui-dialog-message-reject',
  2884. 'ooui-dialog-process-continue',
  2885. 'ooui-dialog-process-dismiss',
  2886. 'ooui-dialog-process-error',
  2887. 'ooui-dialog-process-retry',
  2888. ],
  2889. 'targets' => [ 'desktop', 'mobile' ],
  2890. ],
  2891. 'oojs-ui.styles.indicators' => [
  2892. 'class' => ResourceLoaderOOUIImageModule::class,
  2893. 'themeImages' => 'indicators',
  2894. ],
  2895. 'oojs-ui.styles.textures' => [
  2896. 'class' => ResourceLoaderOOUIImageModule::class,
  2897. 'themeImages' => 'textures',
  2898. ],
  2899. 'oojs-ui.styles.icons-accessibility' => [
  2900. 'class' => ResourceLoaderOOUIImageModule::class,
  2901. 'themeImages' => 'icons-accessibility',
  2902. ],
  2903. 'oojs-ui.styles.icons-alerts' => [
  2904. 'class' => ResourceLoaderOOUIImageModule::class,
  2905. 'themeImages' => 'icons-alerts',
  2906. ],
  2907. 'oojs-ui.styles.icons-content' => [
  2908. 'class' => ResourceLoaderOOUIImageModule::class,
  2909. 'themeImages' => 'icons-content',
  2910. ],
  2911. 'oojs-ui.styles.icons-editing-advanced' => [
  2912. 'class' => ResourceLoaderOOUIImageModule::class,
  2913. 'themeImages' => 'icons-editing-advanced',
  2914. ],
  2915. 'oojs-ui.styles.icons-editing-citation' => [
  2916. 'class' => ResourceLoaderOOUIImageModule::class,
  2917. 'themeImages' => 'icons-editing-citation',
  2918. ],
  2919. 'oojs-ui.styles.icons-editing-core' => [
  2920. 'class' => ResourceLoaderOOUIImageModule::class,
  2921. 'themeImages' => 'icons-editing-core',
  2922. ],
  2923. 'oojs-ui.styles.icons-editing-list' => [
  2924. 'class' => ResourceLoaderOOUIImageModule::class,
  2925. 'themeImages' => 'icons-editing-list',
  2926. ],
  2927. 'oojs-ui.styles.icons-editing-styling' => [
  2928. 'class' => ResourceLoaderOOUIImageModule::class,
  2929. 'themeImages' => 'icons-editing-styling',
  2930. ],
  2931. 'oojs-ui.styles.icons-interactions' => [
  2932. 'class' => ResourceLoaderOOUIImageModule::class,
  2933. 'themeImages' => 'icons-interactions',
  2934. ],
  2935. 'oojs-ui.styles.icons-layout' => [
  2936. 'class' => ResourceLoaderOOUIImageModule::class,
  2937. 'themeImages' => 'icons-layout',
  2938. ],
  2939. 'oojs-ui.styles.icons-location' => [
  2940. 'class' => ResourceLoaderOOUIImageModule::class,
  2941. 'themeImages' => 'icons-location',
  2942. ],
  2943. 'oojs-ui.styles.icons-media' => [
  2944. 'class' => ResourceLoaderOOUIImageModule::class,
  2945. 'themeImages' => 'icons-media',
  2946. ],
  2947. 'oojs-ui.styles.icons-moderation' => [
  2948. 'class' => ResourceLoaderOOUIImageModule::class,
  2949. 'themeImages' => 'icons-moderation',
  2950. ],
  2951. 'oojs-ui.styles.icons-movement' => [
  2952. 'class' => ResourceLoaderOOUIImageModule::class,
  2953. 'themeImages' => 'icons-movement',
  2954. ],
  2955. 'oojs-ui.styles.icons-user' => [
  2956. 'class' => ResourceLoaderOOUIImageModule::class,
  2957. 'themeImages' => 'icons-user',
  2958. ],
  2959. 'oojs-ui.styles.icons-wikimedia' => [
  2960. 'class' => ResourceLoaderOOUIImageModule::class,
  2961. 'themeImages' => 'icons-wikimedia',
  2962. ],
  2963. ];