Commit graph

1110 commits

Author SHA1 Message Date
Kunal Mehta 519f30355e Implement Gadgets definition namespace repo
Implements:
* Gadget definition content and content handler
* Basic validation for gadget definition content
* GadgetDefinitionNamespace implementation of GadgetRepo
* DataUpdates upon editing/deletion of Gadget definition pages
* EditFilterMerged hook for improved error messages
* 'GadgetsRepoClass' option to switch GadgetRepo implementation used
* Lazy-load the GadgetResourceLoaderModule class so we don't need to
load each individual gadget object unless its needed

Note that Special:Gadgets's export feature intentionally doesn't work
yet, and will be fixed in a follow up patch.

Bug: T106177
Change-Id: Ib11db5fb0f7b46793bfa956cf1367f1dc1059b1c
2015-11-20 12:01:21 -06:00
Kunal Mehta f52d81a245 Update README
* Requires 1.27
* require_once is not a function
* BeforePageDisplay does run in modern versions of the CologneBlue skin.
* User code typically runs after Gadgets now, and they do have access to
things defined in gadgets.

Change-Id: I37431940693abdc2df840980025ff517e95f4a09
2015-11-06 17:38:23 -08:00
Translation updater bot 319a2b6ac4 Localisation updates from https://translatewiki.net.
Change-Id: Icd6a0cef3edcad0e2770046be19b3b9b5b5f9657
2015-11-05 21:43:12 +01:00
Translation updater bot f5d278ec89 Localisation updates from https://translatewiki.net.
Change-Id: I29e0c902928a56814ca21f63210e176978fb7852
2015-11-04 21:20:14 +01:00
jenkins-bot 94a695343a Merge "Add Estonian translations for gadget namespaces" 2015-11-03 22:17:10 +00:00
Pikne da39c5a1d9 Add Estonian translations for gadget namespaces
Change-Id: I961ac79605999b366f5944642a9c741875482bb9
2015-11-03 22:15:38 +00:00
niharika29 ccfb869417 Remove non-existent gadgets from Special:GadgetUsage
Bug: T117120
Change-Id: I6590d625f9428b5df1e4d68d8f15e1ffc94dd324
2015-11-03 22:11:10 +00:00
Translation updater bot 51ef5ca22e Localisation updates from https://translatewiki.net.
Change-Id: I006a418b9802f850279579c92d71e1ea2a289b07
2015-11-03 21:50:48 +01:00
Translation updater bot c50e49ae2e Localisation updates from https://translatewiki.net.
Change-Id: Id45f566070e7e6f300f6ffc4e5e6cc3381cd9060
2015-11-02 22:36:50 +01:00
jenkins-bot 100a7ce5d3 Merge "Remove default gadgets from Special:GadgetUsage" 2015-11-02 18:35:23 +00:00
niharika29 c23335fe5e Remove default gadgets from Special:GadgetUsage
The numbers for default gadgets are inconsistent and can be misleading.

Change-Id: Ib46084d617a536e4e25da80424ad70cec2a09f5a
2015-11-02 18:32:56 +00:00
Translation updater bot 1855060e77 Localisation updates from https://translatewiki.net.
Change-Id: Iaeb9f238462754e45b12ccae2f0613ab1e7622cc
2015-11-01 21:39:55 +01:00
Translation updater bot b4d5dda10b Localisation updates from https://translatewiki.net.
Change-Id: I3f75c323f3f506ed1fe3492ba0c6a0cac333a566
2015-10-31 21:05:39 +01:00
Translation updater bot 4ba349cd7c Localisation updates from https://translatewiki.net.
Change-Id: Ic1c9ade13a7a2338d2ec3cea80130057765645b1
2015-10-30 21:48:19 +01:00
Translation updater bot e76340f89c Localisation updates from https://translatewiki.net.
Change-Id: I513fb506ad8c2a1ec5ad36cefd244f98c13701e2
2015-10-29 21:24:02 +01:00
Translation updater bot f7e1a7465b Localisation updates from https://translatewiki.net.
Change-Id: Iac7d6872489cdd9867b4226b4c7fe352889b63aa
2015-10-28 21:54:02 +01:00
Translation updater bot d8284954c0 Localisation updates from https://translatewiki.net.
Change-Id: I5ff3b5a179d88766b6d2f327557d33013fe9e1fe
2015-10-27 21:32:15 +01:00
jenkins-bot 61feae80a8 Merge "Add wgQueryPages hook for Special:GadgetUsage page" 2015-10-27 16:03:40 +00:00
niharika29 e03ff36127 Add wgQueryPages hook for Special:GadgetUsage page
Change-Id: Ifacd705886f923e3ee58d4cd004d50c8ec4002d8
2015-10-27 13:29:26 +00:00
Brian Wolff 246329b7fc Fix escaping in Special:GadgetUsage.
wfEscapeWikiText() is incorrect in this context. It escapes
HTML, but also escapes a whole bunch of other stuff that
is not needed here

Also: Prefer html::element for escaping, because it makes it
easier to see at a glance everything is escaped.

Change-Id: I91b0722ea98f1e20339c7e0aa839c1073b778ed5
2015-10-27 10:30:42 +00:00
Timo Tijhof e009534e5c Remove position default logic
Follows-up 3b141e7.

See also Ib9821b7b87 in MediaWiki core.

Change-Id: If385f4c9bcf88b824099effa3c5b93545f372e82
2015-10-27 03:40:23 +00:00
Translation updater bot e6b44db894 Localisation updates from https://translatewiki.net.
Change-Id: I15c2c71e2ff3736a1b5fc5b7294615545d762d14
2015-10-26 21:03:10 +01:00
Translation updater bot b95b450a01 Localisation updates from https://translatewiki.net.
Change-Id: I767a820920820d4a83474a09e97a034641469d20
2015-10-25 22:04:26 +01:00
Fomafix a6418d2749 Remove double whitespaces
Change-Id: Ic6c095c25b0ba80f9340254c36fc5fec911ce87d
2015-10-23 21:11:01 +00:00
Translation updater bot 7cb5f3b5f3 Localisation updates from https://translatewiki.net.
Change-Id: Ic590286ccc9f8dcae30d0de4e87d7831b6572916
2015-10-23 21:43:45 +02:00
jenkins-bot dcda07d8cf Merge "Add a special page to show number of users for each gadget on the wiki" 2015-10-23 16:39:48 +00:00
niharika29 be8091a288 Add a special page to show number of users for each gadget on the wiki
Bug: T115152
Change-Id: Id1e245f8fdb2fc6a764682ae34937f35af24bd7c
2015-10-23 15:02:23 +00:00
Translation updater bot 3a654cf8c7 Localisation updates from https://translatewiki.net.
Change-Id: I4509f17f08abe3701828cd6b26fca3f3c80cece2
2015-10-20 22:47:15 +02:00
Translation updater bot 36e793b439 Localisation updates from https://translatewiki.net.
Change-Id: I57e0266423b6b3b4861a254228945d70f34b70a5
2015-10-18 21:54:55 +02:00
Translation updater bot 4ed9b1df82 Localisation updates from https://translatewiki.net.
Change-Id: Id85a1e9d99a173018b13de195a2f7a2a263f299e
2015-10-15 09:42:18 +02:00
Kunal Mehta 2cf23fd689 build: Updating development dependencies
* grunt-banana-checker: 0.2.2 → 0.4.0

Change-Id: If4a2a5c9fa909886160d84bb33a274c5bf1b1a5a
2015-10-11 11:45:25 -04:00
jenkins-bot 705dd577db Merge "Update getWithSetCallback() callers to the newer signature" 2015-10-08 15:53:21 +00:00
Aaron Schulz 4e7612bca1 Update getWithSetCallback() callers to the newer signature
Change-Id: I4207b1acfd2e831ec13998f784833ffc413cb690
2015-10-07 19:14:56 -07:00
Kunal Mehta b105abff1b Remove unused variable
Change-Id: Ib3237e16a332072c2a5840b27c391e89dcac3a69
2015-10-06 13:26:26 -07:00
Translation updater bot 2fb35e3014 Localisation updates from https://translatewiki.net.
Change-Id: I7dd061a63a7c9cab17be31cd811e7878792d09f2
2015-10-03 22:12:33 +02:00
Translation updater bot 7a3262b991 Localisation updates from https://translatewiki.net.
Change-Id: I9be6537b94a5634b5a1a701c3785b1b2e48a261b
2015-10-01 21:41:26 +02:00
maurelio bf7277029c Adding Spanish (es) namespaces for Gadgets extension
Change-Id: Ie8288a3a56dc6a0ca5648365b07d5bf3704df836
2015-09-29 08:39:10 +02:00
Translation updater bot b4c4d24316 Localisation updates from https://translatewiki.net.
Change-Id: I77de8c0e6a477cb72a7594ff36591e5992a8f503
2015-09-28 22:43:40 +02:00
Translation updater bot 4908d6d1c1 Localisation updates from https://translatewiki.net.
Change-Id: I6a160c79dce33db2cd861db4fb04d4368704a525
2015-09-25 22:34:22 +02:00
Translation updater bot dc773148cf Localisation updates from https://translatewiki.net.
Change-Id: Ic4531c2efcb92081160990d46da8fecd4afe6d54
2015-09-23 21:31:17 +02:00
Translation updater bot 35f96acf0e Localisation updates from https://translatewiki.net.
Change-Id: Ia219262a6157427b9c45652031c355358972c434
2015-09-21 21:55:57 +02:00
Translation updater bot 54720c001b Localisation updates from https://translatewiki.net.
Change-Id: I608cb69825e511229f65855ecf12304039c9dec5
2015-09-17 22:38:09 +02:00
Translation updater bot aa902591f5 Localisation updates from https://translatewiki.net.
Change-Id: Ibc67c1becaa724241bf8151bfc31140f5408b3d5
2015-09-15 22:46:37 +02:00
Translation updater bot ce494b919a Localisation updates from https://translatewiki.net.
Change-Id: Ib2c60e082ad47c5383820a84faed00b1cd1ba231
2015-09-14 22:04:49 +02:00
Niklas Laxström cbbde8eeb9 Fix typo in Ib09944359
Change-Id: Ic9c645d145cc079e43be0f4a225e87b005fc3ea0
2015-09-14 15:38:35 +02:00
jenkins-bot 5167008f36 Merge "Add Korean translation" 2015-09-13 23:41:12 +00:00
Translation updater bot c22c244619 Localisation updates from https://translatewiki.net.
Change-Id: Iaf4afe1f09788e10b35ad12c95cfd611ab04c175
2015-09-12 01:09:15 +02:00
Yongmin Hong cf1df9a0ac Add Korean translation
Change-Id: Ib0994435955b6e46966916e0de24a49da780e1c9
2015-09-11 10:49:01 +00:00
Yongmin Hong 6d2ad6e1e9 Add Orya translation
Bug: T110879
Change-Id: I87a0a59fd69059dca8ce9d2a58d5e560d6f3b862
2015-09-11 10:27:36 +00:00
Southparkfan dbecdaee62 chmod 644 for php and json files
Bug: T111743
Change-Id: I3ebc7c05f4a598a702cbd2948147dade3323e994
2015-09-08 18:06:35 +02:00