Commit graph

706 commits

Author SHA1 Message Date
Translation updater bot 0f0688ebf2 Localisation updates from https://translatewiki.net.
Change-Id: I2468ba1d2c3b606ab0e131fb4284ef12d3d65b1c
2022-01-26 08:25:02 +01:00
Translation updater bot 36a19b1613 Localisation updates from https://translatewiki.net.
Change-Id: I301170495b9898ce04cccac45f67e80ff49fcaa9
2022-01-25 08:32:41 +01:00
Translation updater bot 0a7aeb655a Localisation updates from https://translatewiki.net.
Change-Id: Ife73c783a439fa4d01f2dd11821b4804922a78eb
2022-01-24 08:27:14 +01:00
jenkins-bot de2ed9219f Merge "Restrict ?withgadget query parameter to opt-in gadgets." 2022-01-24 00:46:10 +00:00
Ammarpad 5d3a547c8b Restrict ?withgadget query parameter to opt-in gadgets.
?withgadget query parameters allows for ad-hoc loading of gadgets
(after passing all other basic checks). This was recently added in
I5b30d4e.

In T29766#7611796 Gergo raised concerns about how this can be
potentially abused.

This patch aims to restrict the feature by giving gadgets latitude
to either use it or not depending on the nature of the gadget.

The patch does so by adding `supportsUrlLoad` option that gadgets
(maybe those deemed safe) can use it to opt-in to the parameter.
By default gadgets don't support it, so it can be enabled for each
on a case-by-case basis.

Bug: T29766
Change-Id: Ie64174085e650579d76cc862774a4fe1b3d08396
2022-01-24 00:31:19 +00:00
Translation updater bot 55f4ba11a7 Localisation updates from https://translatewiki.net.
Change-Id: I69b7d2ad03d25b7cdae1242411d9d380768e818b
2022-01-20 09:17:40 +01:00
Translation updater bot 8ad07cc7a1 Localisation updates from https://translatewiki.net.
Change-Id: I9c62de9f416a452410880815e37f04009ec90095
2022-01-19 08:24:06 +01:00
jenkins-bot 1cd6771f3a Merge "Avoid raising exception while trying to change content model of gadget definition" 2022-01-18 21:18:22 +00:00
Translation updater bot cce06923c6 Localisation updates from https://translatewiki.net.
Change-Id: I0f952e9e3de8c417cf7062daf0007410a385df80
2022-01-18 08:10:54 +01:00
Translation updater bot bb07f9305f Localisation updates from https://translatewiki.net.
Change-Id: I688f67eb0838162b8cf9c0f3c9e264a47e7423bf
2022-01-17 08:12:10 +01:00
Siddharth VP f1673c441a Avoid raising exception while trying to change content model of gadget definition
Currently, trying to change content model of a page in gadget definition namespace (via either the special page or the API) raises an exception. This uncaught exception has been replaced with a localisable error message.

Bug: T299303
Change-Id: Iad7d353d03cdfb52bf66aa2c9a12bc71a840577c
2022-01-16 22:43:37 +05:30
Translation updater bot 868591df51 Localisation updates from https://translatewiki.net.
Change-Id: Id0f8d7a3e6a3a578aed82a9a6162cbfd5770ec0f
2022-01-13 08:27:02 +01:00
Translation updater bot 2d1f320e23 Localisation updates from https://translatewiki.net.
Change-Id: Ib3ecee7f8352d60cb4165bd600efab42a3dc0d4f
2022-01-12 08:25:09 +01:00
Translation updater bot bf88b0826d Localisation updates from https://translatewiki.net.
Change-Id: Ib5cd5584bc8807360d3f8733e3c820202a8175f4
2022-01-11 08:23:08 +01:00
Translation updater bot 43fd45950e Localisation updates from https://translatewiki.net.
Change-Id: Ic809d9358186094d7d3dda1888313c47e247daea
2022-01-10 08:11:19 +01:00
Translation updater bot d51ddd3abc Localisation updates from https://translatewiki.net.
Change-Id: Id8a1473d5e75658012051bc779d9ac50ddc5aa18
2022-01-06 08:31:38 +01:00
Translation updater bot 2753d49ab3 Localisation updates from https://translatewiki.net.
Change-Id: Ib12b410d2c64863bf599895b7219c18d596ea893
2022-01-05 08:16:08 +01:00
Translation updater bot 5666eb11ba Localisation updates from https://translatewiki.net.
Change-Id: I4c461ffab1b0a3ee8b6a5f77d1c2309997665630
2022-01-04 08:27:49 +01:00
Translation updater bot 354c99e3d8 Localisation updates from https://translatewiki.net.
Change-Id: I5a9d21db2620a0a176f19f5c983a0c9a855de89a
2022-01-03 08:11:17 +01:00
Gergő Tisza 6b74e170c0
Add edit link to gadget definition in Special:Gadgets
When using the Gadget definition: namespace, link to the definition
pages from Special:Gadgets. Also change the wording of the links
to edit the names of the gadgets, to disambiguate them.

Change-Id: I327a4cfa9846edec60e1aaafc674cd66f4e0beae
2021-12-31 20:42:37 -08:00
jenkins-bot 2d86f9b62e Merge "Allow specifying page actions in definitions" 2021-12-31 19:35:18 +00:00
Siddharth VP 7ead5dab61 Allow specifying page actions in definitions
Allow specifying page actions ('view', 'edit', 'history', etc) in
gadget definitions. If specified, the gadget is run only on the given
page action(s).

This is especially useful for default gadgets like RefToolbar[1] and
TextReactions[2] that only need to be loaded while editing.

[1]: https://en.wikipedia.org/wiki/WP:RefToolbar
[2]: https://en.wikipedia.org/wiki/WP:Text_reactions

Bug: T204201
Bug: T63007
Change-Id: Idde71b3f1f6c36cd21539a2312be8f12217a9acc
2022-01-01 00:41:08 +05:30
Translation updater bot 4fd267d520 Localisation updates from https://translatewiki.net.
Change-Id: I1675022b99f576b0aeefb8c2c56d35126973bdec
2021-12-30 09:37:45 +01:00
Siddharth VP 1f7b9d90df Support JSON files in gadgets
The parsed content of JSON files in the gadget is made available from the
gadget's JS files via require(). That is, MediaWiki:Gadget-data.json (or
Gadget:data.json) is available as `require('./data.json')`. This is
supported for both MediaWikiGadgetsDefinitionRepo and
GadgetDefinitionNamespaceRepo. The JSON parsing is done server-side.

JSON can only be used in "package" gadgets - in which the JS files can
also be invoked via require().

Also added a test for GadgetResourceLoaderModule.

Bug: T198758
Depends-On: Ib4556d09c4d393269e32771aab00f59a5f630e1b
Depends-On: Id4589a597ccfc4266b3e63d10f75b146aa7a287a
Change-Id: I21acb46cdd244a39b5cc6963aa763f0113bd1e38
2021-12-27 17:33:21 +00:00
Translation updater bot 12e439a636 Localisation updates from https://translatewiki.net.
Change-Id: Ia152e9ae345a2a6995236c85a021a912fb10086a
2021-12-27 09:30:13 +01:00
Translation updater bot 4443e5a757 Localisation updates from https://translatewiki.net.
Change-Id: I276dba70b50c178d1de4da5ed3bd1d4ffbd5abd8
2021-12-23 08:38:05 +01:00
Translation updater bot 6239112b5c Localisation updates from https://translatewiki.net.
Change-Id: I710108eb957bf8321fa173707d982e7946acb7e9
2021-12-16 08:29:33 +01:00
Translation updater bot 9597ccb765 Localisation updates from https://translatewiki.net.
Change-Id: I743141f87b379825e33b1e84586b41d4f229505a
2021-12-10 09:19:27 +01:00
Translation updater bot 13924823de Localisation updates from https://translatewiki.net.
Change-Id: I6b160de284e2ed4d0e45dfbff88ab0baffc6afc2
2021-12-10 08:24:06 +01:00
Translation updater bot b4632bc4b9 Localisation updates from https://translatewiki.net.
Change-Id: If8c759188b56db82497d39767ad27fd89acd6e87
2021-11-29 08:11:45 +01:00
Translation updater bot 8478c86ae1 Localisation updates from https://translatewiki.net.
Change-Id: I086a93f1502e8905fa0e3946997ebcf85e68f1a7
2021-11-25 08:24:18 +01:00
Translation updater bot 8ca6563de3 Localisation updates from https://translatewiki.net.
Change-Id: I172d424d27196e4f0a6e476dc740f66c6ac31c74
2021-11-15 08:11:46 +01:00
Translation updater bot 05eb8cd98e Localisation updates from https://translatewiki.net.
Change-Id: I2ca0ef7f1a128a3c42ac1772d78e395355e8fc2c
2021-11-08 08:16:56 +01:00
Translation updater bot 671290d263 Localisation updates from https://translatewiki.net.
Change-Id: Idd77538841e13109aa182076ef3e9829b6fd0dee
2021-11-01 09:33:47 +01:00
Translation updater bot 70123ae344 Localisation updates from https://translatewiki.net.
Change-Id: I4896736414ac9a239391ee36b11ed13e658b2862
2021-10-21 08:21:46 +02:00
Translation updater bot 6eb0ad00e6 Localisation updates from https://translatewiki.net.
Change-Id: Ib7d16cad3b4132c70c7abe96f84ec4c153fa96bc
2021-10-20 08:36:59 +02:00
Translation updater bot 397f7306c0 Localisation updates from https://translatewiki.net.
Change-Id: Ia2f94cbb98e036e3a86dc4f5803a2bc6f892c85c
2021-10-18 15:20:13 +02:00
Translation updater bot 0007744ee6 Localisation updates from https://translatewiki.net.
Change-Id: I20f9b00d5deee7bb27599b7af7eac68600e5e03f
2021-09-28 08:18:48 +02:00
Translation updater bot 220dd66c42 Localisation updates from https://translatewiki.net.
Change-Id: I563276d0019c98e4fd549c5f036f58a71fb706a3
2021-09-27 08:34:53 +02:00
Translation updater bot 45217277b9 Localisation updates from https://translatewiki.net.
Change-Id: Ide9cd2c01664f0c9d8bd60a5b1df4e4462420080
2021-09-20 08:18:59 +02:00
Translation updater bot 8d5a15a01b Localisation updates from https://translatewiki.net.
Change-Id: I23b286a3f539a663fe836a14d1b9f8b1db52e33c
2021-09-17 08:45:22 +02:00
Translation updater bot 785871fa9d Localisation updates from https://translatewiki.net.
Change-Id: I41451fe655647063f7bb6d18d42802f9fddafb5e
2021-08-23 09:03:57 +02:00
Translation updater bot d9819b3a1d Localisation updates from https://translatewiki.net.
Change-Id: Ib2077decce766cfa7bf3a68cb30da52cc3650de8
2021-08-19 08:13:29 +02:00
Translation updater bot 67ba781489 Localisation updates from https://translatewiki.net.
Change-Id: I82ba2af71f01ba9f99d3fdb9119f04d7ac54fced
2021-08-11 08:19:17 +02:00
Translation updater bot e45b2ccba9 Localisation updates from https://translatewiki.net.
Change-Id: I3fee0115e4d14d4d351d1a129034cd345798dc97
2021-08-09 08:24:04 +02:00
Translation updater bot 3d2102f375 Localisation updates from https://translatewiki.net.
Change-Id: Ia359725032242bf274c9f624ddc6bdef02d6c6dc
2021-08-06 08:13:33 +02:00
Translation updater bot c2fa8e2b6f Localisation updates from https://translatewiki.net.
Change-Id: I27f99fbfe8af0ac8bc1e9a1f3f3d78daa0819808
2021-08-02 08:36:53 +02:00
Translation updater bot eab0a86e84 Localisation updates from https://translatewiki.net.
Change-Id: I4f0f64f1541f3c6af58376cb9aae2298596a7d91
2021-07-29 08:44:56 +02:00
Translation updater bot e43aa2629a Localisation updates from https://translatewiki.net.
Change-Id: I607ad59d9d1c601299e5c86d2664079e28a1b31e
2021-07-20 08:20:32 +02:00
Translation updater bot c5cec478d5 Localisation updates from https://translatewiki.net.
Change-Id: Idbbb765b1a64de845c5a2d88595c92f578a446ea
2021-07-19 08:15:48 +02:00
Translation updater bot cf3bfd77e7 Localisation updates from https://translatewiki.net.
Change-Id: Ib0313e275e23eaac2a0bd6eef92f75759fa01e3a
2021-06-14 08:36:58 +02:00
Translation updater bot 27858ba338 Localisation updates from https://translatewiki.net.
Change-Id: Ia426c6929dfba0ffaaff41e6997397b314cfc174
2021-06-04 08:36:30 +02:00
Translation updater bot e42882f040 Localisation updates from https://translatewiki.net.
Change-Id: Ifabc413e3bd648e2c2d9fd2538b15af9a2b06dcf
2021-05-31 08:31:12 +02:00
Translation updater bot 70579af3fe Localisation updates from https://translatewiki.net.
Change-Id: I3d4f03847ff894a5de42f9f654cad4505100feb2
2021-05-26 09:04:37 +02:00
Translation updater bot 832dc50d63 Localisation updates from https://translatewiki.net.
Change-Id: Ia8c8d3aa1243c260bb56025d64f69dc138156fbe
2021-05-24 09:53:55 +02:00
Translation updater bot dd28c2588e Localisation updates from https://translatewiki.net.
Change-Id: Iece4475e140cca8a814e9ad0eab6f23ca1bd0882
2021-05-17 08:42:09 +02:00
Translation updater bot ab6bbc8352 Localisation updates from https://translatewiki.net.
Change-Id: Id5e8fcafdfeae030b328735109840eb34c9823c9
2021-05-12 09:21:51 +02:00
Translation updater bot cc554d3d96 Localisation updates from https://translatewiki.net.
Change-Id: I75d1653e0f3b447fe1b56702eb249178ff2e8703
2021-05-11 09:06:29 +02:00
Translation updater bot a9d1fa6bc6 Localisation updates from https://translatewiki.net.
Change-Id: I0b01d5787e41b5c9c3300dc228a96fc21f98938d
2021-05-10 08:51:39 +02:00
Translation updater bot 1f084d6507 Localisation updates from https://translatewiki.net.
Change-Id: Ic1b25ec2d31e83de98db462a059884318eb01c97
2021-05-04 08:51:58 +02:00
Translation updater bot d26b18ad66 Localisation updates from https://translatewiki.net.
Change-Id: I6731efaf58c008a5de4c7f8a84729cd942702c81
2021-04-28 08:48:25 +02:00
Translation updater bot ac45fa2820 Localisation updates from https://translatewiki.net.
Change-Id: If10b2b8e394240cb241a1bcb13709c7c773fd0be
2021-04-12 08:37:42 +02:00
Translation updater bot 169f4ecd5a Localisation updates from https://translatewiki.net.
Change-Id: I8c0af9a1f3db8365ed57756a16a8d8382c3edaf3
2021-04-06 12:02:16 +02:00
Translation updater bot 8148b01f2c Localisation updates from https://translatewiki.net.
Change-Id: I91ee3970eea6831821813d4f75a8daa763721544
2021-03-23 08:24:51 +01:00
Translation updater bot e507d404df Localisation updates from https://translatewiki.net.
Change-Id: Ia605ba33de0619c37dfd7d8c885ff77da1fe46bb
2021-03-12 08:45:48 +01:00
Translation updater bot ff1d9e75a1 Localisation updates from https://translatewiki.net.
Change-Id: I48997a45b2ddf1d9923706e97460cf4861d2f9d3
2021-02-08 08:41:07 +01:00
Translation updater bot 20743546ec Localisation updates from https://translatewiki.net.
Change-Id: I9dd825833c1a57a3cd7cfa1c7cbe403468437b47
2021-01-21 08:31:47 +01:00
Translation updater bot af14f1e402 Localisation updates from https://translatewiki.net.
Change-Id: I444d1f8a57039852e7d37fce591e42ec90ae809b
2021-01-18 08:38:01 +01:00
Translation updater bot d544b5610b Localisation updates from https://translatewiki.net.
Change-Id: I674ffb35d52fd4633b458aba32e25b9e36412889
2021-01-04 08:43:25 +01:00
Translation updater bot 6b4d046b82 Localisation updates from https://translatewiki.net.
Change-Id: I13a0ee8064996baf2793fe79017702bd8318df21
2020-12-28 10:38:27 +01:00
Translation updater bot 9195d71814 Localisation updates from https://translatewiki.net.
Change-Id: I2d24aa3d0a5d0cccb5060f2f8469d7fbdd257bda
2020-12-07 08:44:56 +01:00
Translation updater bot 988d545e28 Localisation updates from https://translatewiki.net.
Change-Id: I5f24bb3b77f6524f7d744abbef75c7b9d12dc2b8
2020-11-19 09:10:11 +01:00
Translation updater bot a0d7781995 Localisation updates from https://translatewiki.net.
Change-Id: I45dc4a65ee9c894f0f39c2397b61626f21700fcd
2020-11-17 08:42:31 +01:00
Translation updater bot 229edf6d0a Localisation updates from https://translatewiki.net.
Change-Id: I0edc842d3f19f5ed564c5c6308e010a9eedba00d
2020-11-16 08:37:04 +01:00
Translation updater bot 46317688db Localisation updates from https://translatewiki.net.
Change-Id: Ibe6138e7c99871d959cac6b117383bca160455a8
2020-11-13 08:30:26 +01:00
Translation updater bot 81bfd521da Localisation updates from https://translatewiki.net.
Change-Id: I1e961691ca20f26e2e5bf627ca8da1a826399d7c
2020-10-30 08:28:21 +01:00
Translation updater bot 4a046ea2c4 Localisation updates from https://translatewiki.net.
Change-Id: Ib7f668e45860fd671a81f265aebab60e7db1ccf2
2020-10-21 08:26:59 +02:00
Translation updater bot 0cd142c02b Localisation updates from https://translatewiki.net.
Change-Id: I826dcb4c31235948dfa49ca6d7736d9e21695c14
2020-10-14 08:27:56 +02:00
Translation updater bot 4e1c28f856 Localisation updates from https://translatewiki.net.
Change-Id: Ibe8a90fc913cf18e42729c8bff8ad2ffc47b200c
2020-10-13 08:42:25 +02:00
Translation updater bot a38ae2bb80 Localisation updates from https://translatewiki.net.
Change-Id: I1261b865528ac75fd9aea0b1ec321fcb37c98397
2020-10-05 08:41:57 +02:00
Translation updater bot ec8ec633d7 Localisation updates from https://translatewiki.net.
Change-Id: I494bd16449442d8274b0c75b6b4e56f0a3ce0b7a
2020-09-21 08:29:32 +02:00
Translation updater bot 1d74a62522 Localisation updates from https://translatewiki.net.
Change-Id: Ib23e5de6a1a42774e0a2e3e466cf6da850d12097
2020-09-18 08:37:20 +02:00
Translation updater bot aa94a58ee7 Localisation updates from https://translatewiki.net.
Change-Id: Ia971f7df2d033fa6eba7ec906bfa957c03e90252
2020-09-17 08:32:48 +02:00
Translation updater bot 0414795384 Localisation updates from https://translatewiki.net.
Change-Id: I2dcef9da97badc30eaf232f33b38eaad237175fe
2020-08-26 09:50:55 +02:00
Translation updater bot d887177bf3 Localisation updates from https://translatewiki.net.
Change-Id: Ia319bab4fb512f7652dceb94b060027a87b79e62
2020-08-17 08:42:52 +02:00
Translation updater bot 12e0f56ad3 Localisation updates from https://translatewiki.net.
Change-Id: I5bee53c902e1ea90dff52828511ef60629f33faa
2020-08-14 08:38:03 +02:00
Translation updater bot c344acfa1b Localisation updates from https://translatewiki.net.
Change-Id: I8cdd90afd1a554c0bdcc7746b09ca68fbe2364b7
2020-08-10 09:01:04 +02:00
Translation updater bot 404b11c4d1 Localisation updates from https://translatewiki.net.
Change-Id: I60e8d87e4ade04188b77261572c3f1b4253e7269
2020-07-27 08:37:28 +02:00
Translation updater bot 4cb29be369 Localisation updates from https://translatewiki.net.
Change-Id: If50f53fe4b2fbdfd4668c6e42f8ed162077fcc13
2020-07-21 09:11:38 +02:00
Translation updater bot b37d324493 Localisation updates from https://translatewiki.net.
Change-Id: Ia78b9309dad11c94d4e0f42b12dae2a216e7c4ae
2020-07-20 09:01:11 +02:00
Nikerabbit 1e54c80148 Revert "Localisation updates from https://translatewiki.net."
This reverts commit 2960daae6e.

Reason for revert: Broken export

Change-Id: I5bda0ac88001400cd243aa389eaa6a53a3ac2215
2020-07-13 11:46:02 +00:00
Translation updater bot 2960daae6e Localisation updates from https://translatewiki.net.
Change-Id: Iaf5b31f26e6d131d6f1f2a453e6b3ec40fb1bd80
2020-07-13 08:42:49 +02:00
Translation updater bot 8f1cf4b549 Localisation updates from https://translatewiki.net.
Change-Id: Ia3854f95c6975deae16e4346e79ddccafd72b877
2020-07-07 09:31:15 +02:00
Translation updater bot 03b8b5d8b6 Localisation updates from https://translatewiki.net.
Change-Id: Id93c46ac6ef823e92d4fb1c47d72c589be4f23e9
2020-07-06 09:51:37 +02:00
Translation updater bot 0a27ce83ad Localisation updates from https://translatewiki.net.
Change-Id: Ie3678b7febb63a8b0c8d125bdfe1221ba765392c
2020-06-11 09:01:42 +02:00
Translation updater bot 31d2d75ae0 Localisation updates from https://translatewiki.net.
Change-Id: I360a36839f29d55c3de69d67b0de7f848df6b9bc
2020-06-08 08:50:33 +02:00
Translation updater bot 54b90e5a4c Localisation updates from https://translatewiki.net.
Change-Id: I1431e66c6f249c11eb9132c0eb650e5cfba9b2cf
2020-06-05 08:53:11 +02:00
Translation updater bot 5bd71d6148 Localisation updates from https://translatewiki.net.
Change-Id: Ib7624b71968ff4fcc9baf9b4647dadaaa027e284
2020-06-04 08:23:49 +02:00
Translation updater bot 44361a143a Localisation updates from https://translatewiki.net.
Change-Id: If81895d038070467f57589cc30b98777e6c88cc2
2020-06-01 10:07:45 +02:00
Translation updater bot 580a5ef61d Localisation updates from https://translatewiki.net.
Change-Id: Id9710d76e0b3c335eb80f2d0561dbd6dae9a1278
2020-05-26 08:36:09 +02:00