Commit graph

771 commits

Author SHA1 Message Date
Translation updater bot 3f2d352606 Localisation updates from https://translatewiki.net.
Change-Id: I8d1f0b19f4d8723d5ee14ccd82ffa07119150bd8
2022-10-31 09:45:48 +01:00
Translation updater bot 93a5aedb86 Localisation updates from https://translatewiki.net.
Change-Id: Ic1a98436f217a7aff03f5e8184fa057ef672285e
2022-10-27 08:55:00 +02:00
Translation updater bot 454dfc0140 Localisation updates from https://translatewiki.net.
Change-Id: I963bdca86afe3e39557b90672ac3c5182c4ca14c
2022-10-25 08:24:05 +02:00
Translation updater bot 1ce8fd9b63 Localisation updates from https://translatewiki.net.
Change-Id: Icb15b5a6cce5f53fd63d36b1bff9359395216a66
2022-10-24 08:22:50 +02:00
Siddharth VP 7793a9475f Add support for ES6 gadgets, but with validation disabled
Gadgets can mark themselves as ES6-only by specifying the requiresES6
boolean attribute. Syntax validation is disabled for them (as the
validator doesn't support ES6 yet), and they are loaded together in a
separate request.

The minifier doesn't reject syntax errors, and thus these would
be passed through to web clients. Hence, communities using this feature
are encouraged to use ESLint or another linter to make sure only
valid ES <= 6 code is being used.

Because of the above, this feature is only made available for
non-default gadgets.

Bug: T75714
Change-Id: Ib98ac0700471554d5721d7ab858d4660e1e0e980
2022-10-20 22:03:18 +00:00
Translation updater bot d2c7da6dc5 Localisation updates from https://translatewiki.net.
Change-Id: Ib3f3a6c43f860a39b9ad09ee67c3aa9d75f73541
2022-10-19 08:19:56 +02:00
Translation updater bot 7082f4b69b Localisation updates from https://translatewiki.net.
Change-Id: I5c76abf7d013960a85e2a74ebf5ffc9f54406943
2022-10-18 08:22:30 +02:00
Translation updater bot 27e6d404c6 Localisation updates from https://translatewiki.net.
Change-Id: Ie25c3569aa84b2c55a0715bda66f8701fed81345
2022-10-17 08:21:32 +02:00
Translation updater bot c5954d45c9 Localisation updates from https://translatewiki.net.
Change-Id: I3c5779b9a250f3f4cb1130095d94ad2021d0eeb9
2022-10-13 08:08:51 +02:00
Translation updater bot ff21bc9ccf Localisation updates from https://translatewiki.net.
Change-Id: I6f9d0636a12be849e6118008a3a92900b8a1cbf1
2022-10-10 10:20:11 +02:00
Translation updater bot 7b7326e66e Localisation updates from https://translatewiki.net.
Change-Id: I784e5f711e07e1af4590faaf4558f5510ff92f02
2022-10-04 08:29:42 +02:00
Translation updater bot 58b2945402 Localisation updates from https://translatewiki.net.
Change-Id: Iafa0e63a4b227c0f581e7b242db71d3fda607484
2022-10-03 09:45:44 +02:00
Translation updater bot 3301bb502c Localisation updates from https://translatewiki.net.
Change-Id: Iabe72a5c929521f12212052528ba873167787005
2022-09-30 08:53:50 +02:00
Translation updater bot fc1e7d2a4c Localisation updates from https://translatewiki.net.
Change-Id: I0b1ba1052f5f9666297293d9c9d4e5bea2b26ee0
2022-09-29 08:27:26 +02:00
jenkins-bot 2c4c23fe6c Merge "Add a description for Special:Preferences" 2022-09-28 19:31:09 +00:00
Translation updater bot 4294576183 Localisation updates from https://translatewiki.net.
Change-Id: I1ea4d2a23b35680277a5b8c72e0c09977e04f717
2022-09-28 08:21:29 +02:00
suecarmol 14f18c3b32 Add a description for Special:Preferences
Added a description that will be displayed in Special:Preferences mobile layout

Bug: T311717
Change-Id: I494253c57ea3bb13180fbd0cea16ab4a871e1109
2022-09-27 12:51:35 -05:00
Translation updater bot a28a0127ed Localisation updates from https://translatewiki.net.
Change-Id: Iad8e6b1f8c96e726516fbd029c259a8f71f74c4c
2022-09-26 08:15:17 +02:00
Translation updater bot 30e3ba12ca Localisation updates from https://translatewiki.net.
Change-Id: I9fcb656a4d45a579b59f4a472ea13842d17d52c6
2022-09-23 08:29:13 +02:00
Translation updater bot 6c22db9177 Localisation updates from https://translatewiki.net.
Change-Id: Id2c7f0e716cbc8d7760eb37124c0fb2341f09058
2022-09-21 08:28:49 +02:00
Translation updater bot 9a55cfbb25 Localisation updates from https://translatewiki.net.
Change-Id: Ia3081aa97003388d023ea018ae3f67523c9b99c7
2022-09-05 10:10:50 +02:00
Translation updater bot 08dff80114 Localisation updates from https://translatewiki.net.
Change-Id: I49d472acf894caf5cfc5ce3dfc59afdef8facfc4
2022-08-31 09:35:10 +02:00
Translation updater bot 14a31b76fe Localisation updates from https://translatewiki.net.
Change-Id: Ied0579e65399b18160f8fe06e4be3459bae816ea
2022-08-29 09:14:14 +02:00
Translation updater bot 777a1303a8 Localisation updates from https://translatewiki.net.
Change-Id: Ibc38725991ec85a558683ff065881d733ccc4de5
2022-08-26 08:22:48 +02:00
Translation updater bot d370e9c8b9 Localisation updates from https://translatewiki.net.
Change-Id: I4b378e85a9232bb3c7d4ac0c57cd0a3a3b6da545
2022-08-19 08:29:32 +02:00
Translation updater bot 185b248900 Localisation updates from https://translatewiki.net.
Change-Id: Ie4100a055cf73da9f58bf1d1f3b8341f1847cd9f
2022-08-09 08:19:42 +02:00
Translation updater bot 04ab1daf12 Localisation updates from https://translatewiki.net.
Change-Id: I7db4bbbdf7f4db299b13daa553c8d3b30515d3fa
2022-08-08 08:58:38 +02:00
Translation updater bot 759775bb45 Localisation updates from https://translatewiki.net.
Change-Id: Ia5d177e684794294051dbdc1cec57da84a003aa4
2022-08-04 08:42:48 +02:00
Translation updater bot 17cfa8d56f Localisation updates from https://translatewiki.net.
Change-Id: I0e419c9e153ec02ed4ea87d0e583f0105652bfb0
2022-07-29 08:53:09 +02:00
Translation updater bot c198fc8d46 Localisation updates from https://translatewiki.net.
Change-Id: Icb8e23242c391516161d34230a2cb6fe8538c8ca
2022-07-25 08:36:39 +02:00
Translation updater bot 3f515ebfbf Localisation updates from https://translatewiki.net.
Change-Id: I8914478e26cb00401061e099520b87a44753df5c
2022-07-21 09:03:44 +02:00
Translation updater bot 65e70d94cd Localisation updates from https://translatewiki.net.
Change-Id: I73d6d097003f86d6e47495323681c33ec112d836
2022-07-19 08:16:35 +02:00
Translation updater bot 62f01a1c12 Localisation updates from https://translatewiki.net.
Change-Id: I4bb3a991d855fecebe80974c200f51dde4053495
2022-07-15 08:43:28 +02:00
Translation updater bot 3d63f4ef39 Localisation updates from https://translatewiki.net.
Change-Id: Ia686f910ee113b468bedc00a76c048265d4d15f2
2022-07-11 09:49:41 +02:00
Translation updater bot 5f5a483256 Localisation updates from https://translatewiki.net.
Change-Id: I5bcd1ead43934ef95193a08b433207a478537a91
2022-07-05 08:38:14 +02:00
Translation updater bot 11ebb4a227 Localisation updates from https://translatewiki.net.
Change-Id: I2ac469c38bac72626f6638b88a8df44bc92134e9
2022-07-04 08:22:08 +02:00
Translation updater bot 6c446f8c5b Localisation updates from https://translatewiki.net.
Change-Id: I9aa298906aa49d5f848e0447b19c7cb1032da1b0
2022-06-22 08:13:26 +02:00
Translation updater bot 32cda9d7e9 Localisation updates from https://translatewiki.net.
Change-Id: Ic9857a7e95384971bfb02eaa798ebd6fea959c77
2022-06-20 08:16:58 +02:00
Translation updater bot 2258653f23 Localisation updates from https://translatewiki.net.
Change-Id: Ic29d4c61de044752a87de70ea8e7e55d615d230b
2022-06-13 08:28:12 +02:00
Translation updater bot 84928cf99d Localisation updates from https://translatewiki.net.
Change-Id: Ib9147c832442265f92164e4316a7af447c36a62f
2022-06-09 08:16:40 +02:00
Translation updater bot ef596fef7a Localisation updates from https://translatewiki.net.
Change-Id: I9bb14ac9719c8b1baef7cdf4a00a22fc67b52528
2022-06-03 08:57:38 +02:00
Translation updater bot ab0e224fce Localisation updates from https://translatewiki.net.
Change-Id: I7caadb0caeead88ee54820ddbd39f75f7e54293a
2022-05-23 08:16:53 +02:00
Translation updater bot 1f2f0d0432 Localisation updates from https://translatewiki.net.
Change-Id: Ib83da50ef9a173e61c7c97a1ab279628ffee5f66
2022-05-17 08:28:08 +02:00
Translation updater bot 9180ab87b8 Localisation updates from https://translatewiki.net.
Change-Id: I2abc86bcfa81b1a0d88fe2c4e9459eb4b752a340
2022-04-25 08:17:55 +02:00
Translation updater bot 2c479393f6 Localisation updates from https://translatewiki.net.
Change-Id: I45eb0b5988e66289ff7998fcb831867151355ce1
2022-04-21 08:12:14 +02:00
Translation updater bot b839ee8b0a Localisation updates from https://translatewiki.net.
Change-Id: I632806d22091ef3976b959d1403b4a4b57d2743c
2022-04-15 09:56:27 +02:00
Translation updater bot f39529c8e7 Localisation updates from https://translatewiki.net.
Change-Id: I61baf6b5842785196e8745617b9d20f0fbfb5d35
2022-04-04 09:34:26 +02:00
Translation updater bot 9f089b6cbb Localisation updates from https://translatewiki.net.
Change-Id: I53a2b992d8db6c3cc55d99faa34052360aad321f
2022-03-31 08:35:54 +02:00
Translation updater bot 95a884a312 Localisation updates from https://translatewiki.net.
Change-Id: I56d303fbab92f8c27bc4c9ecda9eac541a1227a5
2022-03-28 08:21:04 +02:00
Translation updater bot b9f07350fd Localisation updates from https://translatewiki.net.
Change-Id: I74fa3a995b1eb0c0b0a0179907fd33126cd38289
2022-03-21 08:14:47 +01:00
Translation updater bot f5b9ef7322 Localisation updates from https://translatewiki.net.
Change-Id: I75c37596c540ea090829883442f1ab335d29e8e2
2022-03-16 08:07:40 +01:00
Translation updater bot 12d0780486 Localisation updates from https://translatewiki.net.
Change-Id: I5339265567f9149eaf6fb833a0975af5e70101da
2022-03-03 08:22:39 +01:00
Translation updater bot d35308558a Localisation updates from https://translatewiki.net.
Change-Id: I7297265a9ca9690342ae7802677cd5c0a57aefdf
2022-03-01 14:32:45 +01:00
Translation updater bot b725b4147b Localisation updates from https://translatewiki.net.
Change-Id: Ieb9082d17e7ef26c716512421732ed1c64cac74a
2022-02-25 09:43:46 +01:00
Translation updater bot 569b75dfc6 Localisation updates from https://translatewiki.net.
Change-Id: I11b43a68918f36b2cd6a6b78ffad8b9ffe378d47
2022-02-24 08:49:13 +01:00
Translation updater bot 035dea565d Localisation updates from https://translatewiki.net.
Change-Id: I3074d21f21ee2b047c5ec35b7dadd87f1b9ab403
2022-02-22 08:11:42 +01:00
Translation updater bot 17e2369774 Localisation updates from https://translatewiki.net.
Change-Id: Idaed0c0e108be9c9e117dc311e0977baeac74f26
2022-02-14 08:14:21 +01:00
Translation updater bot 42b985460e Localisation updates from https://translatewiki.net.
Change-Id: I27c303e502f2936b9ff785d205328af25a269888
2022-02-11 08:41:36 +01:00
Translation updater bot e489ab6982 Localisation updates from https://translatewiki.net.
Change-Id: I072b658c34180b5e2e6527ab8335391b4ced0f7f
2022-02-08 08:28:36 +01:00
Translation updater bot 65ffc6946a Localisation updates from https://translatewiki.net.
Change-Id: I93aba9c3bdd949d17d572502742115fc75deeff7
2022-02-07 08:22:07 +01:00
Translation updater bot dfe7928f4e Localisation updates from https://translatewiki.net.
Change-Id: I0149053b723ab0f9c2afa4e9f5c8719e36a81525
2022-02-03 08:44:06 +01:00
Translation updater bot 20e2ed0016 Localisation updates from https://translatewiki.net.
Change-Id: I5158740203cf4e0f65ab9fbd2d3839991de1c213
2022-02-02 08:20:03 +01:00
Translation updater bot 32cbc20b8c Localisation updates from https://translatewiki.net.
Change-Id: I56a2e3e9e1baadc12cfed58c55cc504c00bf0f32
2022-02-01 08:27:01 +01:00
Translation updater bot 6a847a1bf1 Localisation updates from https://translatewiki.net.
Change-Id: Ic6e79aac0ef2d4121b833cad5dd3d1b44149049d
2022-01-31 08:22:04 +01:00
Translation updater bot f86502f292 Localisation updates from https://translatewiki.net.
Change-Id: I587f0ed6b35b2be6d80bcd70684e0ba62729c92d
2022-01-27 08:38:46 +01:00
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