Commit graph

2047 commits

Author SHA1 Message Date
Translation updater bot e4577337d5 Localisation updates from https://translatewiki.net.
Change-Id: Ia6c03b47d8dc3a663ccbc57526a8755d7eebb440
2021-02-15 10:05:44 +01:00
Moritz Schubotz (physikerwelt) 7780424504 Extend mathoids Checker functionality
* Keep status code and response in memory
* Allow external cache preloading.
  This will be required for the one-stop mathoid batch rendering
* Duplicate functionality from the restBASE interface
** Error rendering
** Validity checks
** getter for validated tex

Depends-On: Ic779e671ada0d0306e0935e578b47c431abd520e
Change-Id: I066975b9ba03f5861f6c92687cba4743044ea82a
2021-02-09 23:36:03 +01:00
Translation updater bot 6e52bc2807 Localisation updates from https://translatewiki.net.
Change-Id: Ia1cd024d58e46e8b00349b33f9abe213ea56d2f3
2021-02-08 08:42:21 +01:00
libraryupgrader 79a7324eed build: Updating dependencies
composer:
* mediawiki/mediawiki-codesniffer: 34.0.0 → 35.0.0
  The following sniffs are failing and were disabled:
  * MediaWiki.Commenting.PropertyDocumentation.MissingDocumentationPrivate
  * MediaWiki.Commenting.PropertyDocumentation.MissingDocumentationProtected
  * MediaWiki.Commenting.PropertyDocumentation.MissingDocumentationPublic
  * MediaWiki.Commenting.PropertyDocumentation.WrongStyle

* mediawiki/minus-x: 1.1.0 → 1.1.1

npm:
* eslint-config-wikimedia: 0.17.0 → 0.18.1
  The following rules are failing and were disabled:
  * no-useless-escape

Additional changes:
* Added the "composer phan" command to conveniently run phan.

Change-Id: I1c641a4945f94337ca22763920601400ee9ab691
2021-02-06 12:19:19 +00:00
jenkins-bot 33dee20ee1 Merge "Improve debugging" 2021-02-05 21:32:56 +00:00
Moritz Schubotz (physikerwelt) 67720e080d Improve debugging
* simplify generation of debug output
* invert if statement to reduce indention
* minor fixes:
** update storedInDatabase
** store PNG output
** restore matoid style handling from
   Ief1b6345c17db41f92684e00233d57240e97599f

Bug: T252389
Change-Id: I71853124e5f2633f94fc9aacdedc24a86f27d08b
2021-02-05 18:08:29 +01:00
Moritz Schubotz (physikerwelt) 2e0276c7f9 Remove mathoids coverage test
Before the HTTP tests were blocked T265628, the Math extension did
test all examples from w:Help:TeX and additional regression test
against the configured mathoid/restbase instance. Effectively, those
tests did only verify the hashes returned from mathoid/restbase.
We now drop this kind of integration test.

Bug: T265646

Change-Id: Iffe5105457297fdc2222af9f11ff56e78c479f32
2021-02-02 19:16:21 +00:00
Translation updater bot 71e77e82bf Localisation updates from https://translatewiki.net.
Change-Id: I1294d0dc6ed851432ce6d5fb404f0ba48a3fc7c1
2021-02-02 08:39:23 +01:00
Moritz Schubotz (physikerwelt) 50a8fe1079 Convert Math to abstract schema
Bug: T268561
Change-Id: I0c7c1fec8cc4d2b7eb6e14db03b1b753ba95193b
2021-01-30 19:28:21 +01:00
Translation updater bot 51f405c413 Localisation updates from https://translatewiki.net.
Change-Id: I710c2198423e9ab613ca5bbbc44187ace19f216b
2021-01-25 08:54:03 +01:00
Umherirrender bcaab9cbf6 Improve function and property documentation
Change-Id: Ic809107bbce3d9019e0c9239281635a738ccdc36
2021-01-23 01:46:48 +01:00
jenkins-bot ff51ab3207 Merge "Fixes tags data being lost after first onParserAfterTidy call" 2021-01-22 17:52:45 +00:00
Translation updater bot a194598672 Localisation updates from https://translatewiki.net.
Change-Id: Iaf27e72914864966c45f0d795f2eba05b4b50b9a
2021-01-21 08:32:15 +01:00
Translation updater bot e4541b544f Localisation updates from https://translatewiki.net.
Change-Id: Ic28fac1c272926285ff69ec0f347501cf53f459a
2021-01-18 08:38:41 +01:00
Vedmaka d110f7eeef
Fixes tags data being lost after first onParserAfterTidy call
This patch is a result of an observation that when <math> tags being
placed before {{#tree:..}} call they are not rendering correctly and
displaying -postMath strip markers instead, so never being replaced by
the actual math markup.

The reason is that the TreeAndMenu do parse operations within its parser
function callback and considering the MathHooks::onParserAfterTidy is
programmed to clear all the MathHooks::$tags data after first call of
the hook it looses all the data stored.

This issue also should appear of <math> is used with any other extension
function that calls parser `parse`, `recursiveTagParse`, etc

The patch modified MathHooks::onParserAfterTidy callback making it
remove tag data only after successful replacement instead of clearing
all the tags data on the first call

Change-Id: Icd115c61492d2ee9aa2004ad1940ff837bd1059a
2021-01-15 11:11:28 +03:00
Translation updater bot 6a359d2907 Localisation updates from https://translatewiki.net.
Change-Id: If2770212d280dc0f58a2c18fa24895887f125ab8
2021-01-14 08:50:41 +01:00
Translation updater bot 832c98694b Localisation updates from https://translatewiki.net.
Change-Id: Ia179d192b59a44a3851529fa76ca80e5cdb46bc0
2021-01-08 08:56:05 +01:00
Translation updater bot 2747026419 Localisation updates from https://translatewiki.net.
Change-Id: I7b61fd8f907fbbba99697e7331bd71a6a809bfe1
2021-01-04 08:44:02 +01:00
Translation updater bot 784cbb93bc Localisation updates from https://translatewiki.net.
Change-Id: I9b4917727b3373b911ce137eb1359b6dcdbf744f
2020-12-30 10:14:23 +01:00
Translation updater bot b4c5632d96 Localisation updates from https://translatewiki.net.
Change-Id: I81a7075ee5c56442d08f1419621189c3ad5122f4
2020-12-28 10:39:07 +01:00
jenkins-bot 51a51bccb0 Merge "Implement wikidata entity selector" 2020-12-20 19:22:33 +00:00
jenkins-bot 88c89af181 Merge "Avoid wfMessage in special page" 2020-12-19 21:55:18 +00:00
libraryupgrader 0dd8ac3389 build: Updating mediawiki/mediawiki-phan-config to 0.10.6
Change-Id: Id0c2f41f1e62f19cbd2fc6cbc00e9e49138394ac
2020-12-19 21:10:12 +00:00
Umherirrender 9f4f4301cc Avoid wfMessage in special page
Use self::msg instead to avoid global state

Change-Id: I9a9af6ff854fdd94929d06ea270c044320f62cab
2020-12-19 20:19:59 +00:00
Moritz Schubotz (physikerwelt) ba19b3e1cd Implement wikidata entity selector
The current wikidata entity selector requires WikibaseRepo to be enabled on the client wiki, which is only the case for very small installations.

We implement our custom entity selector that
* displays the item label and
* uses the description as tool-tip.

The implementation was inspired by
mw.widgets.TitleInputWidget.

Bug: T229939
Change-Id: I35d6cc317cf2984d9de6e062f79030f5c31c0811
2020-12-19 09:11:40 +01:00
Umherirrender 99c3e91fb4 Add missing @var and improve documentation
Change-Id: I8be91329f1f85f3bf40ea19d3b7e0be7dc655df1
2020-12-17 21:53:28 +01:00
Translation updater bot 140b6101f2 Localisation updates from https://translatewiki.net.
Change-Id: I9a468efbb36b4a237019eadc598931f294121bb4
2020-12-17 08:55:33 +01:00
Translation updater bot f369513b16 Localisation updates from https://translatewiki.net.
Change-Id: I9fa6686509f9f67151009aa97fa671a373b7346e
2020-12-16 08:30:18 +01:00
jenkins-bot bef99f610b Merge "MathGenerateTests: Remove use of $wgUser" 2020-12-14 21:57:06 +00:00
libraryupgrader 823552f6ec build: Updating ini to 1.3.8
* https://npmjs.com/advisories/1589

Change-Id: Ibd68a60ce3e67e7ee096756d89a852910e5ac06d
2020-12-13 12:00:28 +00:00
Translation updater bot 0c960b38a3 Localisation updates from https://translatewiki.net.
Change-Id: I492b44d093c06d31c1b2ba04792d2276dc65b395
2020-12-11 08:35:52 +01:00
libraryupgrader 6181f3b8f2 build: Updating mediawiki/mediawiki-phan-config to 0.10.5
Change-Id: If645b9d5cb14be08c42537db98dbed33778f4630
2020-12-10 13:15:12 +00:00
Translation updater bot 9b0ce90569 Localisation updates from https://translatewiki.net.
Change-Id: Icb561928ffe83edb58a50638ef0c1218bc7f9f79
2020-12-09 08:42:08 +01:00
DannyS712 4868d632c1 MathGenerateTests: Remove use of $wgUser
Being written to, but not read from, so shouldn't be
needed anymore - set the User of the main RequestContext
instead.

Bug: T248550
Change-Id: I32d50e7bcd81ed77646d625e1a10b0e91e5d6c21
2020-12-09 01:03:32 +00:00
Translation updater bot c2b3f74402 Localisation updates from https://translatewiki.net.
Change-Id: I308477769eb4b8c4a85bc2db02bda009d16fb15b
2020-12-07 08:45:47 +01:00
libraryupgrader 02d39313a0 build: Updating mediawiki/mediawiki-codesniffer to 34.0.0
Change-Id: I53cf71312a1bc8178b97a24fbadd38b82f9914f8
2020-12-06 16:33:13 +00:00
Translation updater bot 6720794f55 Localisation updates from https://translatewiki.net.
Change-Id: I9983ea19c5fd1919f458e4ffee1007b80f38dd18
2020-12-04 08:33:32 +01:00
Translation updater bot 183a4a3e6f Localisation updates from https://translatewiki.net.
Change-Id: I0e7ded86ab5221023829b178d6b3c98cd03ee009
2020-12-03 08:32:47 +01:00
Translation updater bot 9cd7c41dff Localisation updates from https://translatewiki.net.
Change-Id: I1ec0bf8b1dff12c0e3903d1c89fdb3dcb099e715
2020-12-02 08:32:40 +01:00
Moritz Schubotz (physikerwelt) 31aa824cc9 Remove RESTbase check compatibility endpoint
Change-Id: I8c539e96519e0f23ed606403ed88370edde70764
2020-11-24 19:24:41 +01:00
libraryupgrader a956c73b3e build: Updating npm dependencies
* grunt-stylelint: 0.15.0 → 0.16.0
* stylelint-config-wikimedia: 0.10.1 → 0.10.3

Change-Id: Icaed7d1c4b2c4f68610308f46ce4d65359432f77
2020-11-22 06:01:29 +00:00
libraryupgrader da3c9edb26 build: Updating mediawiki/mediawiki-phan-config to 0.10.4
Change-Id: I0476384b99c41102ddca5928fbb068c45c139d56
2020-11-20 12:50:55 +00:00
Umherirrender dc007663b2 Usage of Yoda conditions is not allowed; switch the expression order
Change-Id: I3e3ca5e380521b514062953d4aeb635793819e89
2020-11-19 22:34:09 +01:00
Translation updater bot 4f72fb13be Localisation updates from https://translatewiki.net.
Change-Id: I6d7b1a952c9f81a24196586d087e3b5e947d43bf
2020-11-19 09:10:23 +01:00
Translation updater bot bbcfbabad9 Localisation updates from https://translatewiki.net.
Change-Id: Ica26f604639e73fae08c28d4347fa4cd6eefac52
2020-11-11 08:36:11 +01:00
Clara Andrew-Wani 510e16e1d8 Update api-testing to 1.4.2
Change-Id: I6ad2dd62be31f9ebee13cf81159242daebf4389e
2020-11-10 13:05:35 -05:00
Translation updater bot 0315bd365a Localisation updates from https://translatewiki.net.
Change-Id: I218f409442c5db4b103021b2f91e68965419b331
2020-11-10 08:41:28 +01:00
Clara Andrew-Wani d1315079f2 Update api-testing package and test to use updated methods
Change-Id: I95f3fe36d41c71ddb4fb928a3b1878fb88fc9458
2020-11-05 16:53:18 -05:00
Translation updater bot 5d9be9878a Localisation updates from https://translatewiki.net.
Change-Id: I4733c7d06363a6da76647c3004283097b6f06981
2020-11-04 08:33:38 +01:00
libraryupgrader ce88944fe5 build: Updating mediawiki/mediawiki-codesniffer to 33.0.0
The following sniffs are failing and were disabled:
* Generic.ControlStructures.DisallowYodaConditions.Found
* MediaWiki.Commenting.FunctionComment.ObjectTypeHintParam
* MediaWiki.Commenting.PropertyDocumentation.MissingDocumentationPrivate
* MediaWiki.Commenting.PropertyDocumentation.MissingDocumentationProtected
* MediaWiki.Usage.ExtendClassUsage.FunctionConfigUsage
* MediaWiki.Usage.ExtendClassUsage.FunctionVarUsage

Additional changes:
* Dropped .inc files from .phpcs.xml (T200956).

Change-Id: I2a0a579219607d60c1557d4b700cdf810f07f538
2020-11-04 04:01:14 +00:00