Commit graph

16660 commits

Author SHA1 Message Date
jenkins-bot c8cffbd394 Merge "ArticleTarget: Clean up WelcomeDialog show/hide handling" 2020-04-21 21:25:36 +00:00
Bartosz Dziewoński ae86f7290b ApiVisualEditor: Add option to return lint errors from Parsoid
Depends-On: I6bbe2fc5aea07c65eb99768f2c44ed42601792a3
Depends-On: I6bdf5635763ef8a44d44a031c64cd7f289261a32
Change-Id: I723ec766d1244d117f8d624440026fe5af0d3403
2020-04-21 22:49:29 +02:00
Roan Kattouw ab763f37df DesktopArticleTarget.init: Add mw.libs.ve.disableWelcomeDialog()
This allows code in other extensions to suppress the welcome dialog
temporarily (just for that one page view), without touching the user's
preferences.

Bug: T235566
Change-Id: Ief6545289cf59fda851aa944b059994abd90253e
2020-04-21 11:43:36 -07:00
Roan Kattouw e0125e3e9d DesktopArticleTarget: Move shouldShowWelcomeDialog() to init
Move shouldShowWelcomeDialog() and stopShowingWelcomeDialog() from
DesktopArticleTarget to DesktopArticleTarget.init, and use them to
deduplicate code in init that manages the wikitext welcome dialog.

Look for both the vehidebetadialog and hidewelcomedialog URL params.
The code in DesktopArticleTarget used vehidebetadialog, but the code in
init for the wikitext welcome dialog used hidewelcomedialog.

Bug: T249954
Change-Id: I19f1a2da36bc65addb52811c3d3c73c1259bc8f5
2020-04-21 11:41:59 -07:00
Bartosz Dziewoński b01c69a800 mw.ArticleTarget: Fix #saveErrorBadToken / #saveErrorNewUser calls
Follow-up to 8065fdf2b9.
I noticed this while trying to reproduce an unrelated bug.

Change-Id: If5b18b055cbee6fc2513161a4f445667dd2a72e0
2020-04-21 18:52:02 +02:00
Translation updater bot e4f5cfc870 Localisation updates from https://translatewiki.net.
Change-Id: I11997e358d4cb60f3653d992d4de3c5e998d2dac
2020-04-21 08:46:32 +02:00
James D. Forrester a4dee12d83 Replace class_exists with ExtensionRegistry::isLoaded()
Change-Id: I229f83cd18473bb3c89c376b0e2ec62d13feff37
2020-04-20 15:07:01 -07:00
Translation updater bot 71b3c4baf9 Localisation updates from https://translatewiki.net.
Change-Id: I029aee12ff3f313f653c7d361b46db7b9d42dfd9
2020-04-20 08:43:37 +02:00
Roan Kattouw e1f4e3f148 ArticleTarget: Move shouldShowWelcomeDialog() into DesktopArticleTarget
The base class doesn't use it, it only defines it, and
DesktopArticleTarget is the only subclass that uses it.
MobileArticleTarget calls it, but also overrides it to be a no-op.

Change-Id: Ib3feea94844f4e1ed71dccece7657450516cac89
2020-04-17 15:46:07 -07:00
Roan Kattouw 7457834dc5 ArticleTarget: Clean up WelcomeDialog show/hide handling
Factor out the logic for whether the WelcomeDialog should be shown into
its own method, and write it in a less confusing way. Do the same thing
with the logic for setting the preference/storage/cookie for hiding the
WelcomeDialog.

This makes maybeShowWelcomeDialog() much simpler, and removes duplicated
code in DesktopArticleTarget.

There is one minor change in behavior: if the WelcomeDialog is
suppressed using the URL parameter, that no longer causes the preference
to be updated as if the dialog had been shown.

Change-Id: I1d4f912c5f6bd7a2bbad2b209b97c3ec1f250a07
2020-04-17 15:46:07 -07:00
Ed Sanders 3b9ba67889 Separate out client code from screenshots runners
Change-Id: I92a588492169dafaf070477bef9fe22fa1fea5d3
2020-04-17 22:59:11 +01:00
Ed Sanders 651756c4fc eslint: Enable the mediawiki/class-doc rule and make pass
Also minor other adjustments

Change-Id: I9ee48359e3e53799f2f6240e44b53972283ce328
2020-04-17 22:59:11 +01:00
jenkins-bot ae404ff919 Merge "Remove some hardcoded CAPTCHA support code" 2020-04-17 19:56:57 +00:00
Sohom Datta d16d93ccf7 Treat links to diffs and history pages as external links
Wrote code such that only redlinks and normal page urls
 using the script path are treated as internal links.

Bug: T248076
Change-Id: Ie476bf7f4b389a659899eab4351c912fc6b24bee
2020-04-17 22:48:14 +05:30
Translation updater bot 7e1615661a Localisation updates from https://translatewiki.net.
Change-Id: Ie0e99059ebfe39de289b6d1e04095b2b67c11f4c
2020-04-17 09:07:51 +02:00
libraryupgrader d1efaac5b2 build: Updating npm dependencies
* eslint-config-wikimedia: 0.15.0 → 0.15.3
  The following rules are failing and were disabled:
  * mediawiki/class-doc
  * mediawiki/valid-package-file-require

* grunt-banana-checker: 0.8.1 → 0.9.0
* grunt-stylelint: 0.14.0 → 0.15.0
* stylelint-config-wikimedia: 0.9.0 → 0.10.1

Change-Id: If718fe8876cc4721602757d38fe06ab421ce8d80
2020-04-16 22:55:11 +00:00
jenkins-bot 298a889319 Merge "DesktopArticleTarget.init: Also extend existing URL in SET mode" 2020-04-16 19:07:18 +00:00
jenkins-bot 057bdf7e60 Merge "Update VE core submodule to master (8cc305d97)" 2020-04-16 17:04:58 +00:00
jenkins-bot faa6d75de8 Merge "Adding accessibility label to template and field name edit textbox" 2020-04-16 17:04:54 +00:00
Translation updater bot 5ff8784aab Localisation updates from https://translatewiki.net.
Change-Id: If060672a70c66f4fa7a4571c0e9951233c72e005
2020-04-16 09:34:21 +02:00
James D. Forrester 4c62e2c3b9 Update VE core submodule to master (8cc305d97)
New changes:
6423eff25 Localisation updates from https://translatewiki.net.
41e9efd53 Update OOUI to v0.38.0
c88420bd9 build: Drop direct dependency on eslint-plugin-mediawiki
84d99a0b6 build: Upgrade eslint-config-wikimedia to 0.15.3 and make pass
8cc305d97 build: Fix mediawiki/class-doc errors and enable

Change-Id: I3caf459b115db944d0edcf35851674eeba97fcc9
2020-04-15 20:09:54 -07:00
James D. Forrester 7dae6eb9d4 build: Bump phan to 0.10.2, remove taint-check
Test change to ensure everything is working fine.

Bug: T248630
Change-Id: Id7d9438a6b2be29d5764e3fa809b2cdbe7772958
2020-04-15 09:26:51 -07:00
Bartosz Dziewoński 1846b72998 Remove some hardcoded CAPTCHA support code
While we pretend that the ConfirmEdit CAPTCHA support is added by
ve.init.mw.CaptchaSaveErrorHandler in the ConfirmEdit extension,
we still have a bunch of code here required for it to work.

This commit removes some of it, no longer needed after
I6605017fd31a4f96c529dd0beb69e9f4433cebc1.

Depends-On: I6605017fd31a4f96c529dd0beb69e9f4433cebc1
Change-Id: I41e032fd754927b7ea6cfb767eb9f21b522ccacd
2020-04-15 13:18:47 +00:00
Translation updater bot 108131f4e1 Localisation updates from https://translatewiki.net.
Change-Id: I980389230ce8faa4110b4555301e4bc29d6d57a2
2020-04-15 08:25:21 +02:00
Roan Kattouw de2baff16d DesktopArticleTarget.init: Also extend existing URL in SET mode
This unbreaks the use of ?vehidebetadialog=1 on page views (i.e. without
action=edit) in single edit tab mode.

Bug: T249957
Change-Id: I0109f5d95cebbb3e585d25b7623764cc7350cda0
2020-04-14 17:01:23 -07:00
jenkins-bot ed518b619b Merge "Update VE core submodule to master (0217e5819)" 2020-04-14 15:46:13 +00:00
Yuki Shira 55985819d2 Add Special:MyLanguage for better user experience
Change-Id: I03bdfe752300c15fbf356acf4d1c6f091828ee69
2020-04-14 22:42:56 +09:00
Translation updater bot c5722460a6 Localisation updates from https://translatewiki.net.
Change-Id: I3ef8f2bf10548af5ae4086c034a0eaac0bf6660c
2020-04-14 08:25:53 +02:00
James D. Forrester a0a33d98b4 Update VE core submodule to master (0217e5819)
New changes:
90607c5dc Localisation updates from https://translatewiki.net.
07d6a017e Update OOUI to v0.37.1
12c4b3cb3 Localisation updates from https://translatewiki.net.
f48768d1c Fix initialization typo
747ba0305 build: Upgrade eslint- and stylelint-config-wikimedia
685c0256d Localisation updates from https://translatewiki.net.
407016209 Match entity encoding in HTML comments to Parsoid

Bug: T144708
Change-Id: I7ff2d73e4478ec42136b4ff9fc778b3a5d4e2019
2020-04-13 08:39:47 -07:00
Translation updater bot cc44140d23 Localisation updates from https://translatewiki.net.
Change-Id: I23fb1c2dd94f146f74f75875d1e6d8ec02aec666
2020-04-13 09:03:32 +02:00
Timo Tijhof 48c4dfd59e Remove redundant dependency on 'mediawiki.notify'
The 1 line of code this module contained (to lazy-load
'mediawiki.notification', and forward the function call) was
moved to 'mediawiki.base' and requires no dependency.

Bug: T233676
Change-Id: Ifcb1bca030bede62065a87dc7a8594fe17e017cc
2020-04-08 17:47:21 +01:00
Translation updater bot 403071cced Localisation updates from https://translatewiki.net.
Change-Id: Ic78d4925d724c0deb6a4529873f638e9b463bcb0
2020-04-07 08:52:40 +02:00
Akinwale Alagbe 3b7a567bfc Fix: Adding label to source editor switch editor tool
Change-Id: I7cd90bbbd0f65c0a5b0588fd337e922a63b618b5
2020-04-06 18:10:26 +00:00
Translation updater bot 080097b3be Localisation updates from https://translatewiki.net.
Change-Id: Iacd44754a5e5944fd1a7ace56503c1db5f62f3e7
2020-04-06 09:03:07 +02:00
libraryupgrader a87fe877c5 build: Updating npm dependencies
* postcss-sass: 0.4.2 → 0.4.4
  * https://npmjs.com/advisories/1179
* decompress: 4.2.0 → 4.2.1
  * https://npmjs.com/advisories/1217

Change-Id: Id9d5a69ebff0e7966f03f6a0451961c52a79e8d8
2020-04-05 11:11:32 +00:00
Translation updater bot 88b450015c Localisation updates from https://translatewiki.net.
Change-Id: I138b3e4c9eafd5052221c70ae9edef3da0b79f1f
2020-04-03 08:29:05 +02:00
Akinwale Alagbe 229a249cca Adding accessibility label to template and field name edit textbox
Change-Id: Ieeb29de8534300751956eb76477b38578478b4a2
2020-04-02 21:02:55 -07:00
Translation updater bot df2dd3950f Localisation updates from https://translatewiki.net.
Change-Id: Id5edd9c0d78d4a6bc3561c9d48aa1b2dae537bc6
2020-04-02 08:25:42 +02:00
jenkins-bot 443cb0fe55 Merge "Overwrite "edit source" link only when needed" 2020-04-01 21:51:56 +00:00
jenkins-bot 65b9f4ff46 Merge "Fix issues with treating section "numbers" as integers" 2020-04-01 20:57:12 +00:00
Bartosz Dziewoński 92c3055628 Fix issues with treating section "numbers" as integers
In MediaWiki, section numbers may be prefixed with 'T-' if they refer
to sections on a transcluded page, so they are not really numbers.

Change e2cb9ce93e caused us to treat them as strings most of the time,
but it looks like there are several places where we treated them as
integer numbers, which I missed when making that patch.

The first two changes in ArticleTarget#restoreEditSection fix T248795
and T248968/T249112, respectively. The other changes are cleanup.

Bug: T248795
Bug: T248968
Bug: T249112
Change-Id: I8373a7ab515595769ce6f3051a182c922415b643
2020-04-01 21:41:17 +02:00
Translation updater bot 5a70975163 Localisation updates from https://translatewiki.net.
Change-Id: Id6aa06da1a76941bf7c3b1bc3ce459538d394d5b
2020-04-01 08:25:50 +02:00
jenkins-bot 55a868812c Merge "Remove use of Revision::newFromId" 2020-03-30 12:38:10 +00:00
Translation updater bot ba2895ca5d Localisation updates from https://translatewiki.net.
Change-Id: I2b4bd2cda45d17f374dd8dd8f674196879073f03
2020-03-30 09:15:41 +02:00
DannyS712 de392e6133 Remove use of Revision::newFromId
Bug: T246284
Change-Id: Ia3de1caeac5edb2a8ee272fb9b80d36e1d778314
2020-03-30 04:45:24 +00:00
MtMNC fd0b145db3 Overwrite "edit source" link only when needed
Prevent JS from overwriting the contents of the "edit source" link
if the change is unnecessary as it can break third-party skins.

Bug: T248025
Change-Id: Ica1e45488813877583efadabc72526544e8943ac
2020-03-27 12:20:33 -07:00
Translation updater bot e4065c3781 Localisation updates from https://translatewiki.net.
Change-Id: Ia9353a1f402cb369b2409888a396a582ecfea497
2020-03-27 08:42:25 +01:00
Translation updater bot a718e9dcca Localisation updates from https://translatewiki.net.
Change-Id: I01f23e3092cada2cecca181f650d7fa19fe62bec
2020-03-26 08:33:28 +01:00
Translation updater bot 4b0f8c621d Localisation updates from https://translatewiki.net.
Change-Id: I17d6622f88ee3ced73f8dcddb32ea292ed81f99d
2020-03-25 08:34:03 +01:00
jenkins-bot 774c3ec1e4 Merge "Move MWutils to preinit and rename to parsoid utils" 2020-03-24 22:31:17 +00:00