Commit graph

2336 commits

Author SHA1 Message Date
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
suecarmol 12eada5338 Add PreferencesGetIconHook
Added PreferencesGetIconHook to add an icon on the Special:Preferences section.

Bug: T317419
Depends-On: I6d5730d47e7595b1705787995fe5db2fe734d7f5
Change-Id: Ie2505622680573dfe9e50b48976c986cf2512097
2022-10-14 19:02:29 -05: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
libraryupgrader eb99f12bce build: Updating mediawiki/mediawiki-phan-config to 0.12.0
Change-Id: Ic857959b35f31be8a963e1889b6d79b54dbd3855
2022-10-09 12:06:20 +00:00
libraryupgrader 43f80d6802 build: Updating grunt-banana-checker to 0.10.0
Change-Id: If4fa8e3b9529ea9b7b3d3a44d8903f18399b64df
2022-10-06 03:51:50 +00: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
Gergő Tisza 1083062529
Purge in-process cache in MWGadgetsDefinitionRepo::handlePageUpdate
This is needed for registering gadgets for parser tests.

Change-Id: If7bf0cf63cc352566a58c20c4cf49e57c0085bb9
2022-09-01 21:41:04 -07: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
jenkins-bot 327f82e680 Merge "Allow pages in gadget namespace to begin with a lowercase letter" 2022-08-27 17:45:22 +00:00
Siddharth VP 03ae3a0ff1 Allow pages in gadget namespace to begin with a lowercase letter
* By convention, JavaScript and CSS files on disk are almost always
named with a leading lowercase. It is good to have parallelism
with on-wiki page names (such as while uploading git-managed source
files on disk). With the introduction of packaged gadgets (T198758), it
is preferable to write require('./data.json') rather than
require('./Data.json')
* There could be existing pages like MediaWiki:Gadget-Foo.js and
MediaWiki:Gadget-foo.js. During the migration, both titles would
conflictingly have the same move destination Gadget:Foo.js.

Bug: T300000
Change-Id: I2172112caf06cf37ff8808808feb06991010fee9
2022-08-27 17:48:02 +05:30
Siddharth VP 08cf009f36 Migrate usage of Database::selectFieldValues to SelectQueryBuilder
Bug: T312440
Change-Id: I4a54426667cd4c6070b0ff7953e6478dc25b96c8
2022-08-27 17:17:27 +05:30
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
jenkins-bot 27c6d6d42a Merge "Remove default values for the constructor of SpecialPage" 2022-08-14 14:21:32 +00:00
Translation updater bot 185b248900 Localisation updates from https://translatewiki.net.
Change-Id: Ie4100a055cf73da9f58bf1d1f3b8341f1847cd9f
2022-08-09 08:19:42 +02:00
Fomafix dda2f5a129 Remove default values for the constructor of SpecialPage
Change-Id: Ibdc2d3906f3020798cd885d6fba7e5149d1b5cdf
2022-08-08 15:44:05 +00: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
Fomafix adc1aaa001 Remove LEFT-TO-RIGHT MARK (U+200E) from source code comments
'LEFT-TO-RIGHT MARK' (U+200E) is not needed in the source code
comments.

c8caf26ffd9 removed already the LRM/RLM from Names.php.

Change-Id: I7a737760bd69983703bc324592e56c5ee4acfaad
2022-07-22 16:24:39 +00: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
na1307 13cdf606a1
Add Korean special page alias
Change-Id: Ie00880dac6cfbe13cb4a14c7eddd419efc5ec5a7
2022-06-30 21:46:08 +09:00
Reedy 67b8bf23d0 SpecialGadgets: Don't call explode() on null
Bug: T311557
Change-Id: I05455a309bee4a4f59dc5351484dfffc682a329a
2022-06-29 00:51:24 +00:00
Reedy 6e30b50063 MediaWikiGadgetsDefinitionRepo::loadGadgets(): Cast ttl to int
Bug: T311367
Change-Id: I4ca0d075bad91903f24906c34d1fbac915fde735
2022-06-28 19:56:01 +00: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
MarcoAurelio 47e7c249c2 Namespace translations for Kyrgyz language
Authored by: <https://phabricator.wikimedia.org/p/Bosogo/>

Bug: T309866
Change-Id: I3c2eacef138e89465f9ca169e1b22b6d509f63b8
2022-06-09 09:57:02 +00:00
Translation updater bot 84928cf99d Localisation updates from https://translatewiki.net.
Change-Id: Ib9147c832442265f92164e4316a7af447c36a62f
2022-06-09 08:16:40 +02:00