Commit graph

16855 commits

Author SHA1 Message Date
Roan Kattouw 501518cb4d init: Check for disabled welcome dialog again async
The first time we check, it's too early for any code that might have
wanted to call stopShowingWelcomeDialog() to have done so (because we
check synchronously after making that function available).

I'm not sure if checking twice like this is the best solution, or if it
would be better to defer the whole thing and only check once.

Change-Id: If5b88bb50c3becaa3d7931c8b8e4d0faed7b69d2
2020-06-01 13:10:49 -07:00
jenkins-bot ab452b4c74 Merge "Update VE core submodule to master (5cc9cecd4)" 2020-06-01 16:56:17 +00:00
Bartosz Dziewoński 1fc11e0146 Handle <noinclude> etc. as nodes rather than metaitems
The difference is that metaitems are not visible on the editing
surface, and their exact position is not preserved when the paragraph
containing them is edited.

This behavior is desirable for e.g. categories, but not for
<noinclude> and related tags, which are intentionally placed in
specific places in the text.

Note that we don't really have any editing interface for these nodes
yet. But you can see them (and they come with descriptions and links
to documentation pages), and delete or copy-paste them.

Bug: T250937
Change-Id: I104e7abbd650567df0e59813653c46a66d955d58
2020-06-01 18:47:14 +02:00
Translation updater bot 3d624fce22 Localisation updates from https://translatewiki.net.
Change-Id: Iab6191dea70e8824dfe4f07ebf78ff7906b86d2d
2020-06-01 10:09:35 +02:00
jenkins-bot 68ebb8b2b8 Merge "SaveDialog: only allow vertical resize of summary" 2020-05-31 16:29:03 +00:00
James D. Forrester bb6dbc1f5d Update VE core submodule to master (5cc9cecd4)
New changes:
a4926b7d2 build: Updating http-proxy to 1.18.1
6ffa100f2 ve.ui.LinearContextItem: Make items with no actions have normal padding

Change-Id: I8974bbc3589944ad3a19e595566b96c9aec9b966
2020-05-29 10:16:43 -07:00
jenkins-bot 4b81264bbd Merge "ve.dm.MWAlienMetaItem: Never match mw:Extension nodes" 2020-05-29 11:09:07 +00:00
Translation updater bot 20a81f736d Localisation updates from https://translatewiki.net.
Change-Id: I0a10f39b8662e51c182673800b18b7770411dbbf
2020-05-29 08:33:35 +02:00
jenkins-bot 4a68959504 Merge "Fixes edit section being cropped on page with zoom" 2020-05-28 20:03:27 +00:00
bkudiess-msft fb2290f032 Fixes edit section being cropped on page with zoom
Bug: T253601
Change-Id: Ifa449d927e69c38ad5fa8fcb004b14417fab5e7d
2020-05-28 21:43:34 +02:00
James D. Forrester af32f6f148 Update VE core submodule to master (71b16e52b)
New changes:
73dbd766f build: Unbreak language lists, adding 'ti'
75889f97d Avoid listing languages twice in availableLanguages
71b16e52b Adds role to Document Node

Bug: T253592
Change-Id: Ifeb3908a882d36d147db97497ff8ffa8352600f5
2020-05-28 08:21:16 -07:00
Translation updater bot 0aae60f0a4 Localisation updates from https://translatewiki.net.
Change-Id: Ia3e96962c15481a736512e668dfb6adf9b1ea691
2020-05-28 08:41:40 +02:00
James D. Forrester a8a616f7ce build: Upgrade mediawiki-codesniffer from v30.0.0 to v31.0.0
Change-Id: Ia12194a0c10b5c6eef4ba4a115af7ae678edfeaf
2020-05-26 12:15:53 -07:00
jenkins-bot 88009a0991 Merge "Update VE core submodule to master (549239957)" 2020-05-26 18:41:23 +00:00
jenkins-bot 3313ebe5d4 Merge "Parse messages in string context" 2020-05-26 18:37:51 +00:00
James D. Forrester 50691fd4af Update VE core submodule to master (549239957)
New changes:
2a4509800 Update RangeFix to 0.2.9
549239957 Localisation updates from https://translatewiki.net.

Change-Id: Ie21532a3ddb2cd6d254ca5480a6b0ba79e0ffb30
2020-05-26 10:22:37 -07:00
Translation updater bot c8779b8cb6 Localisation updates from https://translatewiki.net.
Change-Id: Ib554a153bd545d4cfc59b5e092c9376f7f90c47f
2020-05-26 08:38:07 +02:00
Bartosz Dziewoński a6647a258a ve.dm.MWAlienMetaItem: Never match mw:Extension nodes
Bug: T247001
Change-Id: I11771fc2537585622852e6756e800c3d5e530ac8
2020-05-25 19:14:46 +00:00
Translation updater bot 0f4a8b5179 Localisation updates from https://translatewiki.net.
Change-Id: Icffa63b454d845df61fa995b7a32be7c0af0ccbe
2020-05-25 08:41:28 +02:00
Umherirrender 742d91fe37 Parse messages in string context
The current default for Message::__toString() is to parse, so this
keeps that behaviour unchanged.

Change-Id: I528a60c1d9c0f8c1596a15e06a764200a2b2565f
2020-05-24 14:46:40 +02:00
Lucas Werkmeister fd974c25c2 SaveDialog: only allow vertical resize of summary
By default, many browsers permit resizing the textarea in both
dimensions; however, the SaveDialog doesn’t handle horizontal resizing
very well (the textarea is no longer centered and the options don’t
adapt to the new width), so add some CSS to limit the resizing to
vertical only.

Change-Id: I91bf63357237ddc2e3ede8e661480ab0cb48d10e
2020-05-23 11:22:13 +02:00
James D. Forrester 414bbac1b4 Update VE core submodule to master (3af5d5964)
New changes:
1c7d30c5c Update OOjs to v5.0.0
efe39c405 Update OOUI to v0.39.0

Change-Id: I341ec6a57ddd31929a2dfee4ed0269bea69096bd
2020-05-22 09:07:41 -07:00
Translation updater bot b80978e9cc Localisation updates from https://translatewiki.net.
Change-Id: I2f0d83efb4b3f03f01a34b8b93f77cbb538bc680
2020-05-22 08:36:43 +02:00
jenkins-bot 8ac4b48e96 Merge "Use HttpRequestFactory::createMultiClient()" 2020-05-21 20:38:03 +00:00
Translation updater bot 436532e977 Localisation updates from https://translatewiki.net.
Change-Id: Id8c757c91b9e6370e066a81471685f98042b0803
2020-05-21 08:20:20 +02:00
Tim Starling 92ab300859 Use HttpRequestFactory::createMultiClient()
This allows it to respect the proposed limit on HTTP request timeout.

Bug: T245170
Depends-On: I8252f6c854b98059f4916d5460ea71cf4b580149
Change-Id: I1c3d96720709253ad15bb8528cdd132571de2e4e
2020-05-21 14:56:22 +10:00
jenkins-bot dc90695d8c Merge "Refactor getPreferredEditor and expose reusable parts" 2020-05-20 18:48:21 +00:00
Ed Sanders d6823dbdb4 Use fake server for link inspector tests
Also remove fake server constants in other fake server tests

Bug: T247278
Change-Id: If091c73ad411ac7b16900448bc96745dc84997ba
2020-05-20 15:54:04 +01:00
Ed Sanders df639d1717 Bump version number
Change-Id: I382aee3563cdcccd2f872c0f1b0ebd0feff6859c
2020-05-20 13:11:29 +01:00
Translation updater bot 70a7f8775b Localisation updates from https://translatewiki.net.
Change-Id: Ib93923f85bb1191b8f46f1655baccfd63928829e
2020-05-20 08:36:08 +02:00
Bartosz Dziewoński 63638e380d Tweaks in API code per code review
Follow-up to If5c8d95560cbb078ae4980f4a912cbaeafe53d3e.

Change-Id: Iff72b5b21c0f5ce6a45cc48d6a8fc060159d7d23
2020-05-19 19:56:56 +02:00
jenkins-bot 97b2547daf Merge "Replace use of old global with MW_VERSION constant" 2020-05-18 23:51:11 +00:00
jenkins-bot 4233f931fd Merge "Extract Parsoid/RESTBase stuff out of our API code" 2020-05-18 23:49:14 +00:00
jenkins-bot 29940cc99d Merge "Improve deactivating tabs when switching/exiting on MonoBook etc." 2020-05-18 23:39:10 +00:00
jenkins-bot 0410ed44ba Merge "DesktopArticleTarget.init: Set veEditSourceUri in SET mode too" 2020-05-18 23:08:32 +00:00
jenkins-bot 88732d7765 Merge "Update VE core submodule to master (d4085dd7d)" 2020-05-18 22:04:06 +00:00
jenkins-bot d2dd31b805 Merge "Fix #unwrapParsoidSections for pseudo-sections (generated by templates)" 2020-05-18 20:32:28 +00:00
Bartosz Dziewoński 4f70ead440 Fix #unwrapParsoidSections for pseudo-sections (generated by templates)
In 92c3055628 I changed `sectionId > 0`
to `sectionId !== '0'`. That was actually a mistake, as Parsoid's
section IDs can be negative, which indicates pseudo-sections, which
may not have headings.

https://www.mediawiki.org/wiki/Specs/HTML/2.1.0#Headings_and_Sections

Bug: T252238
Change-Id: I9133d4365a71d6db1fa58b69ae3b970166d15c1e
2020-05-18 21:41:13 +02:00
jenkins-bot 5b21c5b67a Merge "Don't log VEFeatureUse from DiscussionTools" 2020-05-18 17:54:13 +00:00
jenkins-bot b9e793d3b7 Merge "Update extension.json authors to match AUTHORS.txt" 2020-05-18 17:49:26 +00:00
David Lynch 92f4e5432e Don't log VEFeatureUse from DiscussionTools
Change-Id: Ie02381e1e65175871c5b43c8089688f632a5066c
2020-05-18 10:25:27 -05:00
Translation updater bot 4492c81cb9 Localisation updates from https://translatewiki.net.
Change-Id: Ic5744a1c85f0923de73d35a3a13f6b90ea53c7a2
2020-05-18 08:31:44 +02:00
Ed Sanders 07867cf349 Update extension.json authors to match AUTHORS.txt
Change-Id: I8ad57c1038b4fd24c2be7c510149d6903910a27b
2020-05-15 22:32:42 +01:00
James D. Forrester 8ccd7cc95a Update VE core submodule to master (d4085dd7d)
New changes:
e946a30cf Localisation updates from https://translatewiki.net.
15f596aa8 Localisation updates from https://translatewiki.net.
d4085dd7d Update principal authors

Change-Id: I5dce4f259ffe28438582f799c41aee7e48db5be4
2020-05-15 12:40:15 -07:00
Ed Sanders 38114d5da8 Update principal authors
Change-Id: If54432471883faaf55b4ed0ae1a664f11828aa0d
2020-05-15 20:25:36 +01:00
Ed Sanders d1f653f58b Update Authors.txt based on lib/ve
* Drops Base64.js

Mentions some depedencies of lib/ve as this is the place we
acknowlege them on wiki (Special:Version/Credits/VisualEditor).

Change-Id: Ic54b8a9de9c07ce799e270a5445c58bb4797409e
2020-05-15 20:16:48 +01:00
James D. Forrester 969b1f266b Replace use of old global with MW_VERSION constant
This repo already requires MW 1.35+ so compatibility isn't a concern.

Change-Id: I3be0e1afe7f9acb56e7070d9d81424b7461a1603
2020-05-15 12:09:26 -07:00
jenkins-bot 38034b1051 Merge "Treat links to diffs and history pages as external links" 2020-05-14 18:54:04 +00:00
Bartosz Dziewoński 61de7530c7 Improve deactivating tabs when switching/exiting on MonoBook etc.
Previously we didn't deactivate them, so if you opened VE, then
switched to NWE, then exited the editor, all three tabs would appear
active.

Change-Id: I904d6daf2896ceadf004f5e57a88c2359f33fd44
2020-05-14 20:24:57 +02:00
Translation updater bot e31c60c63c Localisation updates from https://translatewiki.net.
Change-Id: I9f464fccd0455f615f42a812d1ea700ecd09b7d3
2020-05-13 08:43:45 +02:00