Commit graph

2316 commits

Author SHA1 Message Date
d.savuljesku 06bac0d920 Fix calling array function on stdClass
Bug: T322634
Change-Id: I8c7c7004128da9de6f266ebca43b9aa78802a2de
(cherry picked from commit ef32effe35)
2022-11-10 18:05:43 +00:00
Reedy 3c3ad511c3 DeclhTest: Fix string interpolation
Bug: T314096
Change-Id: I1c2a11c1481ca7d8e91e9c0468600ace9038e333
(cherry picked from commit 6081e9b01a)
2022-11-10 18:05:23 +00:00
Translation updater bot 6f7cf56ceb Localisation updates from https://translatewiki.net.
Change-Id: If162c9bb140797be97b8787c45aa1bc3d9cc5b1b
2022-11-10 07:20:55 +01:00
Translation updater bot 069429be52 Localisation updates from https://translatewiki.net.
Change-Id: I5fd74287812b35c25b50047e7699b91ca5258f8d
2022-11-03 07:19:50 +01:00
Translation updater bot f131629cce Localisation updates from https://translatewiki.net.
Change-Id: I3532eff5c8a67fea2ba45efd6e21d5160fdacda8
2022-10-27 08:03:18 +02:00
Translation updater bot 23d985d3e1 Localisation updates from https://translatewiki.net.
Change-Id: Ie82d071e8d77840275b87272c10311b2cffc9db1
2022-10-20 07:36:46 +02:00
Translation updater bot 18d7578b84 Localisation updates from https://translatewiki.net.
Change-Id: Ife03f6ba51b0023bf0ce8cd9479b5994289e0d7d
2022-10-13 07:22:43 +02:00
Translation updater bot 9bcdac612a Localisation updates from https://translatewiki.net.
Change-Id: I320b9662cf3aa03369d7bfeee5d65ed416dfa794
2022-10-06 07:12:27 +02:00
Translation updater bot d64c03f333 Localisation updates from https://translatewiki.net.
Change-Id: Icb7ee979f91cea16f44812dfe3e56c3bb32c3ff9
2022-09-29 07:13:45 +02:00
Translation updater bot 19fa5d1c3b Localisation updates from https://translatewiki.net.
Change-Id: I777be1123007e210be7893bf4a2aa5457e44b2db
2022-09-22 16:18:03 +02:00
jenkins-bot 0288e45c75 Merge "Add further nodes" 2022-09-05 11:42:56 +00:00
Translation updater bot b9d244a796 Localisation updates from https://translatewiki.net.
Change-Id: Ieac2f090611161ebe27e6182364a658b253c7712
2022-09-05 10:11:18 +02:00
Stegmujo d940161a3e
Add further nodes
Related code:
fb56991251/lib/nodes/

Bug: T312528
Change-Id: I8bd30bc45d2c23214b317ca0c04aa8e7d6a2da33
2022-09-02 19:34:07 +02:00
Translation updater bot ef841a04e3 Localisation updates from https://translatewiki.net.
Change-Id: I555367ab069db33f1abe7b04d048fef8b94cce32
2022-09-01 09:34:10 +02:00
Translation updater bot f96f46f9d1 Localisation updates from https://translatewiki.net.
Change-Id: I6f31aa4f569c312cb4e8c5bc1d879bb0f92c31a0
2022-08-31 09:35:25 +02:00
Translation updater bot 1148dfc8da Localisation updates from https://translatewiki.net.
Change-Id: I2471275ef5acabcb4a2b105fe36d9dc457f8fbc3
2022-08-29 09:14:43 +02:00
jenkins-bot 1f4eedf891 Merge "Change type hints for TexNode" 2022-08-27 15:06:29 +00:00
Moritz Schubotz (physikerwelt) db942c2325
Replace 3 backslashes with 4
3 backslashes work as well according to

https://stackoverflow.com/a/28063081

However, it might be confusing as the behaviour would change in double qouted strings. Also mw-core seems to mostly use 4 backslashes.

https: //codesearch.wmcloud.org/core/?q=%5B%5E%5C%5C%5D%5C%5C%5C%5C%5C%5C%5B%5E%5C%5C%5D&i=nope&files=.php%24&excludeFiles=&repos=
Change-Id: I9be37c386f8ca0f9d0a7be641484654cf9a2f7fa
2022-08-27 09:13:08 +02:00
Moritz Schubotz (physikerwelt) 971b7954fe Change type hints for TexNode
Bug: T315978
Change-Id: I06004360a6538f974733021c1f06d8a5bb1f1f7b
2022-08-27 06:55:39 +00:00
jenkins-bot bfcb547e63 Merge "Minor: MathDatabaseTest cleaning" 2022-08-26 17:15:36 +00:00
jenkins-bot 008f6a6739 Merge "Add some basic nodes and texUtil" 2022-08-26 17:06:28 +00:00
jenkins-bot 1d3bbf8fe7 Merge "tests: Skip schema test for sqlite/postgres" 2022-08-26 16:45:54 +00:00
Moritz Schubotz (physikerwelt) 7cae2517e5
Minor: MathDatabaseTest cleaning
* Remove unused constants
* Refactor deprecated wfGetDB

Change-Id: I926fbe59fd2fef9617da9870b8b9c2a6662f22df
2022-08-26 18:23:50 +02:00
Stegmujo 6be5724740 Add some basic nodes and texUtil
Texutil related functionalities and tests will come in other changeset.
Related code:
fb56991251/lib/nodes/

Bug: T312528
Change-Id: Iead338a31403348603442b43ae802270f6b1d675
2022-08-26 15:41:38 +00:00
Translation updater bot 580571e067 Localisation updates from https://translatewiki.net.
Change-Id: Ia08fff5ec88528fce48960784e8e9b8476667375
2022-08-26 08:23:03 +02:00
jenkins-bot d6947f64ef Merge "Add TexNode" 2022-08-23 10:15:46 +00:00
Stegmujo 4901388cfc
Add TexNode
This is corresponding to 6c6988c4f6/lib/nodes/texnode.js

Bug: T312528
Change-Id: Idfd6826e6d15c0e70848e879dd23fc5e4cf113b5
2022-08-23 08:43:01 +02:00
Translation updater bot da7f6a7e1b Localisation updates from https://translatewiki.net.
Change-Id: I18e9a40e7a185261ba171e88f06757d4e01459e3
2022-08-19 08:29:56 +02:00
Translation updater bot 50bdfdcae3 Localisation updates from https://translatewiki.net.
Change-Id: Id9102093f501f6d566cbe18de4dd31a3454e0d61
2022-08-17 08:24:44 +02:00
Translation updater bot 91ae81248a Localisation updates from https://translatewiki.net.
Change-Id: Icd25a0d67fe8d3fb48deee7f3873e90fcc9751de
2022-08-15 08:26:42 +02:00
Translation updater bot dcf12bd021 Localisation updates from https://translatewiki.net.
Change-Id: I1791bb259ad5d5a51b43a3ad6ffd731a74b807c3
2022-08-11 08:51:02 +02:00
Translation updater bot 82aa80d8a1 Localisation updates from https://translatewiki.net.
Change-Id: Ie5c4ab7247a530548d58d39d084559206a702cce
2022-08-08 08:58:57 +02:00
Reedy b05db18e25 MathRenderer: Check output of parse_url()
Bug: T311674
Change-Id: I437c2d91d6923485da4432f32390a54c1d3abadf
2022-08-07 22:18:45 +01:00
jenkins-bot 5033866682 Merge "REST API endpoint for popups" 2022-08-06 05:56:02 +00:00
AndreG-P 951dec1fab
REST API endpoint for popups
Implement a rest API endpoint that displays the popup that is currently
only shown on a special page.

Code was revived from Idd22057a88312bf1a1cb5546d0a6edca5678d80d

Bug: T288076
Bug: T233099
Change-Id: I65fcbf25ac5818f6c649daf494c719921247e8f5
2022-08-05 17:47:44 +09:00
Translation updater bot 3d9d30ec6a Localisation updates from https://translatewiki.net.
Change-Id: I7e130269b2868cc77cce2f64786f29366b51d7f6
2022-08-01 08:22:53 +02:00
Translation updater bot a4174e2ecd Localisation updates from https://translatewiki.net.
Change-Id: I1195ce2ec4b535550cc7361a24f094d5d75c39e5
2022-07-28 08:57:17 +02:00
AndreG-P 14c4df1336
Support new properties 'Symbol Represents' and 'In Defining Formula'
Add support for the new properties 'P9758' (symbol represents) and
'P2534' (in defining formula) for the special page that shows
in depth information about tagged formulae.

Bug: T312893
Change-Id: I39551e04487f77cca60c89e8c95293032fd5bd6a
2022-07-27 22:30:54 +09:00
Moritz Schubotz (physikerwelt) 480d241f97
Make dependency to Wikibase client config optional
The MathEntitySelector gets its config from wbRepo which caused a hard
dependency on the Wikibase client.
If the Wikibase client config is not available a default value (wikidata)
is used to determine the URL of the foreign repo.
As the dropdown will never do write operations, we restrict the repo
access to anonymous read only.

Bug: T313143
Change-Id: Iba33dfd32a78f4ad7c2e99a1f56218458ab884b4
2022-07-25 09:51:47 +02:00
jenkins-bot 9bb379ad3f Merge "Localisation updates from https://translatewiki.net." 2022-07-25 07:30:47 +00:00
jenkins-bot cda7562b0e Merge "Revert "Revert "Add wbEntitySelector widget to edit qid in VE""" 2022-07-25 07:21:02 +00:00
jenkins-bot 12ca486684 Merge "Replace MathWikibaseConfig with ServiceOptions" 2022-07-25 07:10:18 +00:00
Translation updater bot cb75844431 Localisation updates from https://translatewiki.net.
Change-Id: I0b635819fefed18971a2781efdaadec11a2bc803
2022-07-25 08:37:38 +02:00
jenkins-bot 53a2ea9909 Merge "Provide static Factory Class for Math related services" 2022-07-25 05:52:32 +00:00
Moritz Schubotz (physikerwelt) 882c49599b
Replace MathWikibaseConfig with ServiceOptions
MathWikibaseConfig introduced additional complexity by passing through
some services to MathWikibaseConnector.
The remaining options were just a list of properties that could also be defined as ServiceOptions.

Bug: T313646
Change-Id: Ib9083c0cb62f6d972befc7f5dc3ed47f55cf92a5
2022-07-23 11:37:30 +02:00
Physikerwelt 63e19a8c69 Revert "Revert "Add wbEntitySelector widget to edit qid in VE""
This reverts commit 2dc6bcac48.

Reason for revert: Re-enable functionality with fix

Bug: T313143 
Change-Id: I7536ae187872b9c0a6abab18861499290ad621e0
2022-07-23 07:57:54 +00:00
Moritz Schubotz (physikerwelt) 73c41b4626
Provide static Factory Class for Math related services
Initially we provide one service. More services will come in
the future.

Change-Id: I98a0f5f181f729e123a063dabf3597b5effa55b8
2022-07-22 18:59:11 +02:00
Moritz Schubotz (physikerwelt) 0bec9dc904 Remove deprecated method hasSite
The method always returns true and has no obvious benefit.

Change-Id: I77727d37c16e6234cf13e0ccf5d8fe94142ddd2a
2022-07-22 12:51:21 +00:00
jenkins-bot 6632c41605 Merge "Transform MathWikibaseConfig into a service" 2022-07-21 14:08:47 +00:00
Moritz Schubotz (physikerwelt) a274beae78
Transform MathWikibaseConfig into a service
* add some basic tests
* migrate MathWikibaseConnectorTest to a unit test

Bug: T313331
Depends-On: Ic3b8d4f685d5cf648a02696284b6ee499502a12a
Change-Id: I38d6425eb5e2c52ae4362c4b8656223a8d9d90a5
2022-07-21 15:22:47 +02:00