Commit graph

21376 commits

Author SHA1 Message Date
Amir E. Aharoni 3ab0128bfd Parse a message correctly
Follow-up to
I2495fe32c2d540be50450d715b049173f2f8727d

Done with the help of Matma Rex at Wikimedia Hackathon 2024.

Bug: T361103
Change-Id: Ica328233cb6172277e66d2341cfb53f87f8aff67
2024-05-07 12:06:37 +00:00
Translation updater bot c6499e166a Localisation updates from https://translatewiki.net.
Change-Id: Ib82c353d3ed2323d5167d5932396cc1770e5a21a
2024-05-07 09:23:53 +02:00
Translation updater bot f049c5f76a Localisation updates from https://translatewiki.net.
Change-Id: I0ee0490814fad24dd0f2296713e5f83bf52117b3
2024-05-06 09:26:50 +02:00
jenkins-bot 4fa86e99f8 Merge "Update minus-x to 1.1.3" 2024-05-04 17:17:20 +00:00
Alexander Vorwerk 63deb35205 Update minus-x to 1.1.3
this repo is a libup canary

Change-Id: Ic89fd967fae36eb252a7635f209bbe30de0467e4
2024-05-04 18:38:03 +02:00
James D. Forrester 0d48df9927 Update VE core submodule to master (55a4050b9)
New changes:
14e855b40 README.md: Update doc link; add coverage; drop live demo
074cc8bde README.md: Fix Coverage/Code coverage link name split
f94cae724 JSDoc: Load all theme plugins
608c8194c README.md: Mark [[mw:VisualEditor/Setup]] link, as JSDoc doesn't autolink
9e65bfde3 eslint: Switch all code from jsduck to jsdoc mode
fdc0addee Prefer short arrow functions
5bbdc2f3e JSDoc: Fix some missing complex returns types
00b5bcdc4 Use ES6 variadic arguments
0a4a7e3a7 JSDoc: {Mixed} -> {any}
419162782 LanguageInputWidget: Fix logic for checking if language exists
2bc827327 Use more variadic args

Change-Id: I40fdc33b7b46fb38c597308e2615a37c89406378
2024-05-04 18:33:44 +03:00
jenkins-bot 6bdd8e21a3 Merge "Fix displaying of "<Invalid>" when an language code isn't found" 2024-05-04 14:48:12 +00:00
Amir E. Aharoni c1386d615f Replace <> with <em> in a message
Bug: T361103
Change-Id: I2495fe32c2d540be50450d715b049173f2f8727d
2024-05-04 08:36:49 +00:00
jenkins-bot 8f75500ef7 Merge "Fix media dialog layout." 2024-05-03 23:23:17 +00:00
Ed Sanders acd075a4d7 Fix displaying of "<Invalid>" when an language code isn't found
Bug: T361109
Depends-On: I1e85a9d41c017fc3e3897b8b69177f342c5a43ef
Change-Id: I2ef072c3265fa9477ca2be539a7084454a8d8cae
2024-05-03 17:38:14 +01:00
Ed Sanders eb757c4c9f Remove unnecessary context binding when using arrow functions
Change-Id: Ie25e90aeb0519b1e0f793348b27d4d4a6b686698
2024-05-03 12:47:47 +01:00
Translation updater bot 9fa475d66e Localisation updates from https://translatewiki.net.
Change-Id: I1780f8a639f94bd051f60d20c73481a8887e5635
2024-05-03 09:29:54 +02:00
jenkins-bot 8a35d3cf83 Merge "JSDoc: {Mixed} -> {any}" 2024-05-02 18:20:12 +00:00
Zoë f0cef27552 Fix media dialog layout.
Restored a selector lost in Ic9fad12f

Bug: T363992
Change-Id: I68b3052665db6ad09c594debbc593b11b7edebff
2024-05-02 18:59:29 +01:00
libraryupgrader c107fd0cd8 build: Updating ejs to 3.1.10
* https://github.com/advisories/GHSA-ghr5-ch3p-vcr6

Change-Id: I5473d3a5535044973edf4904a32e1df559d94e33
2024-05-02 15:06:18 +00:00
Ed Sanders 29e42695e4 Follow-up Ifdb15ea9: Restore deleted 'new' keyword
Change-Id: I6cd6a617ae63347df1a2b7de111cac6860950cf3
2024-05-02 12:28:51 +01:00
Ed Sanders 673dea4852 JSDoc: {Mixed} -> {any}
Change-Id: I457475a9c436c40a384675027c052294e6b1305d
2024-05-02 10:39:25 +01:00
Translation updater bot c05851aa4f Localisation updates from https://translatewiki.net.
Change-Id: I883d7f93aee32b044635d3072952284d7dbc1491
2024-05-02 09:20:26 +02:00
Timo Tijhof 6cbedbf9d2 tests: Adopt QUnit.test.each() and native async-await in a few places
* Remove need for manual hacking of sub groups via "msg" strings
  carefully prepended to every assertion.

* Improve CI details, by reporting the specific case that failed,
  and local dev via ability to re-run each case, and reporting names
  directly in the HTML Reporter and CLI summary.

* Reduce need for assert.async() and tracking of callbacks, especially
  to improve failure details in case of Promise rejection.
  Current logic was likely to cause a confusing timeout instead of a
  clear failure if the promise ends up rejected.

  QUnit propagates these as part of awaiting and asserting the test
  closure's promise value (as async fn) automatically.

  This approach also avoids the pitfal of a falsely passing test
  when an assertion inside a done() handler was never reached.

* Use modern for-of where possible to remove need for closures and
  arrow functions. Thus reducing complexity of test code, where
  complexity should be kept lowest to avoid false confidence.

* Use plain for-in instead of overly complex Object.keys().forEach().

Change-Id: I934a266e75e64371081f104cfb867fb2c282c84a
2024-05-01 19:01:19 +01:00
jenkins-bot a85e1f44e4 Merge "Use forEach loops for cases" 2024-05-01 15:22:39 +00:00
Ed Sanders 4db99d7a27 Use more arrow functions
Change-Id: Ifdb15ea9e5ca606e02ddaf822bfd6397c3ce639e
2024-05-01 14:11:55 +01:00
Ed Sanders 33db46e6fa Use arrow callbacks with OO.ui.Process
Change-Id: I9bf32a382ffc2c0f1915f70bd8909668722cfb16
2024-05-01 14:11:55 +01:00
Ed Sanders e3659d4846 Prefer arrow callbacks
Change-Id: Ia05b27f7c71c33580ffd0718e3bbc673dd8b3d63
2024-05-01 14:11:54 +01:00
Ed Sanders c360e550de Fix incorrect uses of context
Change-Id: Ib8b2dd12db567e9373b633c5c7a0b2990c638d97
2024-05-01 14:10:32 +01:00
Ed Sanders e382d3af0a Use forEach loops for cases
Change-Id: Ica8773f54572bd90d4ee1ecde43254331fd2e313
2024-05-01 14:02:29 +01:00
jenkins-bot 92b82c67fe Merge "docs: Escape __magicwords__ to avoid bold formatting by markdown" 2024-05-01 07:45:35 +00:00
jenkins-bot a8a19e9975 Merge "Readme: Mark links, as JSDoc doesn't autolink" 2024-05-01 07:44:09 +00:00
Translation updater bot 43c0ac58a6 Localisation updates from https://translatewiki.net.
Change-Id: I36167ac379fe1789c15b9f9fff0b08b5ad1c2e8e
2024-05-01 09:23:00 +02:00
Ed Sanders 41cce182fe docs: Escape __magicwords__ to avoid bold formatting by markdown
Change-Id: Ic4660b12091429dd3f34d241b326350049a0019a
2024-04-30 22:32:03 +01:00
jenkins-bot 5c929ab457 Merge "Rename isModified to isSaveable and deprecate the old name." 2024-04-30 17:14:58 +00:00
jenkins-bot 3fec1cf55c Merge "Confirm abort if saving would make a change to the underlying document" 2024-04-30 17:14:47 +00:00
jenkins-bot ff6ea23256 Merge "Remove unused files" 2024-04-30 16:48:50 +00:00
Zoë 2df1b00f18 Rename isModified to isSaveable and deprecate the old name.
Bug: T334513
Change-Id: I9f639dae88787774cf362c15cd134d50bd73abee
2024-04-30 16:43:01 +01:00
Zoë a6f826e989 Confirm abort if saving would make a change to the underlying document
Bug: T334513
Change-Id: Ia8935b5b1acb87a351fd02d07f72875e4d7a005c
2024-04-30 16:20:45 +01:00
Ed Sanders 5e519f5191 Readme: Mark links, as JSDoc doesn't autolink
Change-Id: Iee4c6edc7f1e0819f55a797d87368771ba560a08
2024-04-30 13:29:26 +01:00
Ed Sanders 5eb040c882 JSDoc: Load all plugins from theme
Change-Id: I5f0febe08ca51aa0b5681ede143a54c42fb803d2
2024-04-30 13:03:12 +01:00
Ed Sanders 8093aa43c1 JSDoc: Update jsdoc-wmf-theme to 1.0.0
Change-Id: Ibca8da2015bdbcc08817c9852c5cda7c72e07b38
2024-04-30 12:32:58 +01:00
Ed Sanders 373538d206 JSDoc: Add namespaces
Change-Id: Id9a5e2633667786d3bd1c900893007f0ec71a8a5
2024-04-30 12:24:10 +01:00
Ed Sanders 97955431aa JSDoc: Fix some more documentation warnings
Change-Id: Ib5cf7fd8a544d45274935e77b6c64f868e25ac85
2024-04-30 12:00:19 +01:00
jenkins-bot e2f3082466 Merge "JSDoc: Fix event documentation and complex return types" 2024-04-30 09:04:23 +00:00
jenkins-bot bc5fc1b8f7 Merge "JSDoc: Generate external class links automatically" 2024-04-30 09:00:29 +00:00
Translation updater bot aa3c490953 Localisation updates from https://translatewiki.net.
Change-Id: Iccf51107869175a00ef94ec7a29d0c68168ecf58
2024-04-30 09:21:29 +02:00
Ed Sanders 4da1329c02 JSDoc: Generate external class links automatically
Change-Id: I868007533d7042658a1241d777518ecb7e5dcd04
Depends-On: Iae57a314e07bccfeeec11f4a54a9e76252f2f70e
2024-04-29 20:28:13 +00:00
jenkins-bot dd0c173c39 Merge "Update VE core submodule to master (9d641c0f4)" 2024-04-29 19:29:57 +00:00
James D. Forrester fc51a44169 Update VE core submodule to master (9d641c0f4)
New changes:
f654f54a4 Localisation updates from https://translatewiki.net.
dab6ad7d7 General external links for OO/OOJS dynamically
a27e99c9d JSDoc externals: Load config correctly
511dba52e JSDoc externals: Support prefixMapIgnore
9d641c0f4 JSDoc externals: Parse complex types

Added files:
- build/jsdoc-externals.js

Change-Id: Ia62089f656ccf808e9109c130be63ac5004043f5
2024-04-29 19:21:53 +01:00
Ed Sanders afbed7c5b3 JSDoc: Fix event documentation and complex return types
Change-Id: I5dbce39294a34a999303ccfec88261d8c92b17ca
2024-04-29 19:14:26 +01:00
Ed Sanders fd122da6fd JSDoc: @mixins -> @mixes
Change-Id: Ic06b8e058b387f8d683db6273f689694cf416ce6
2024-04-29 18:51:41 +01:00
jenkins-bot f4c7a5418a Merge "Load diff modules in onTextSlotDiffRendererTablePrefix as well" 2024-04-29 17:02:05 +00:00
Bartosz Dziewoński 95edc6010e Remove unused files
Accidentally added in d42a0772bb.
I noticed when one of them appeared in Codesearch results.

Change-Id: I06e3a8802314b6547267293b3d4236a2272fbfce
2024-04-29 18:52:36 +02:00
James D. Forrester b518e55ef9 docs: Replace JSDuck with JSDoc (and pull-through VE with said change)
This is not great, but it's a start (and unblocks other pull-throughs).

New changes:
c401efc98 build: Replace jsduck with jsdoc for documentation
16ba162a0 JSDoc: @mixins -> @mixes
9e0a1f53b JSDoc: Fix complex return types
449b6cc0f Prefer arrow function callbacks
1539af2c8 Remove 'this' bindings in arrow functions
b760f3b14 Use arrow functions in OO.ui.Process steps
57c24109e Use arrow functions in jQuery callbacks
9622ccef9 Convert some remaining functions callbacks to arrow functions
f6c885021 Remove useless local variable
1cd800020 Clear branch node cache when rebuilding tree

Bug: T250843
Bug: T363329
Change-Id: I0f4878ca84b95e3f388b358b943f105637e455f9
2024-04-29 16:16:50 +01:00