Commit graph

16641 commits

Author SHA1 Message Date
jenkins-bot 20d2ea0767 Merge "Update VE core submodule to master (1cce47f5c)" 2020-05-07 20:09:07 +00:00
jenkins-bot 80038e727e Merge "DesktopArticleTarget.init: Identify our events on multi section edit links" 2020-05-07 20:05:03 +00:00
Bartosz Dziewoński 91f3a971f4 DesktopArticleTarget.init: Identify our events on multi section edit links
This is now consistent with all other events.

Needed for I9904e8af4a60b0f5e9a6e263cd4fd8e1e3fd1f98.

Change-Id: If52aa9d619eac08456874fc75c0f6e1adff01246
2020-05-07 21:42:56 +02:00
Ed Sanders 50db102c4d Refactor getPreferredEditor and expose reusable parts
Separate out logic specific to edit pages

Change-Id: I5b3b47feeeca2085fcd283d55d7e9ceafa73be70
2020-05-07 14:33:21 +01:00
Translation updater bot 81d6810c0a Localisation updates from https://translatewiki.net.
Change-Id: I259e95dc6446d3883f5c781437d62e48166552b1
2020-05-07 08:36:04 +02:00
Bartosz Dziewoński f98ab8c08f Update VE core submodule to master (1cce47f5c)
New changes:
42b098042 TargetWidget: Re throw 'submit' event from the surface
163b0b673 TargetWidget: Don't assume surface exists in setReadOnly

Change-Id: I56db786fac487dd282c8bf22a5f29181a74518e4
2020-05-06 22:25:16 +02:00
Bartosz Dziewoński b1f40f4f9f DesktopArticleTarget.init: Set veEditSourceUri in SET mode too
Bug: T192974
Change-Id: I1a2485e6f6ba3cb21d669e5f675ce50e4ba81d8f
2020-05-06 19:56:28 +00:00
Translation updater bot 687cdc84e8 Localisation updates from https://translatewiki.net.
Change-Id: Ib47fc439ab9b7afbf7e211556ee0588dc01fcdf4
2020-05-06 08:32:31 +02:00
James D. Forrester e6dd62b718 Update VE core submodule to master (d1220be78)
New changes:
8cc7bc479 Localisation updates from https://translatewiki.net.
6adf65179 lib: Update jQuery from 3.4.1 to 3.5.0
fe3f0d2f8 Update OOjs to v4.0.0
e82f2256d Update OOUI to v0.38.1
0010fd6c0 Localisation updates from https://translatewiki.net.
d1220be78 build: Upgrade karma-related devDependencies to latest

Change-Id: Ia30431823cf8fec93259c6478d6b2c9f3e293038
2020-05-05 09:44:18 -07:00
Translation updater bot 29c9d44ccf Localisation updates from https://translatewiki.net.
Change-Id: Ieeafe2de6498429bf48c9af13fbfc09bdb3ed9e9
2020-05-05 08:31:45 +02:00
Translation updater bot 3443b05c78 Localisation updates from https://translatewiki.net.
Change-Id: If2c795c364e0b4ee312a0a6bc326f1a21e378b4a
2020-05-04 09:16:44 +02:00
Roan Kattouw 31db495bcf init: Manage education popup state the same way as welcome popup state
And factor out the common code for using a preference with a fallback to
localStorage or a cookie.

Bug: T235566
Change-Id: Ibb983319edcd2987225fe89677fd10e3ff8f9df6
2020-05-01 19:12:30 -07:00
Translation updater bot 84c0202ef6 Localisation updates from https://translatewiki.net.
Change-Id: If62355d829dcd76952b27124fa9990e1f1aebf3c
2020-04-30 08:40:47 +02:00
jenkins-bot 7643be1c98 Merge "Replace class_exists with ExtensionRegistry::isLoaded()" 2020-04-29 20:13:33 +00:00
jenkins-bot 608486c238 Merge "Update VE core submodule to master (ae55f4b86)" 2020-04-29 20:12:25 +00:00
James D. Forrester 46c86bddbe Update VE core submodule to master (ae55f4b86)
New changes:
ae55f4b86 Mixin PendingElement to TargetWidget

Change-Id: Ibfa5bee591ce8dda8473433f1b551fd84a326e79
2020-04-29 10:11:46 -07:00
Ed Sanders 0c6b6e3e89 Improve shortcut in getWikitextFragment
Use hasContent to
1. Catch cases where the document is empty, e.g. <p></p>
2. Avoid having to use the converter

Change-Id: Ib1bb36824ca871e535bef38cef8137fdfb81b53e
2020-04-29 17:32:09 +01:00
Translation updater bot 4e30398c2e Localisation updates from https://translatewiki.net.
Change-Id: I75d5228ffd8e67e4827f160f66f671b7e0df071d
2020-04-29 08:37:39 +02:00
Translation updater bot 8e487fb98b Localisation updates from https://translatewiki.net.
Change-Id: I41227c15868ef7ab8d11a2f7b6ae4f9413c298da
2020-04-28 08:33:17 +02:00
James D. Forrester b25c8677da Update VE core submodule to master (e571a9e73)
New changes:
897aa19ce eslintrc: Cleanup rule overrides
ab8013136 Localisation updates from https://translatewiki.net.
fc897b699 Cleanup unicorns even in another content branch node
daf17a986 Localisation updates from https://translatewiki.net.
0fa6c4af9 Follow-up daf17a986: build: Unbreak language lists, adding 'lij'
ded34d9b8 rebaser: Enforce no-var

Bug: T250702
Change-Id: Ie80fc58389ce929d21595252a41b50a9c7bf6152
2020-04-27 10:26:18 -07:00
jenkins-bot 421b64e204 Merge "build/: Enforce no-var" 2020-04-27 16:24:14 +00:00
jenkins-bot 1f39a0baa6 Merge "Separate out client code from screenshots runners" 2020-04-27 16:21:44 +00:00
Translation updater bot cb6ecae7fd Localisation updates from https://translatewiki.net.
Change-Id: I14ef3d4f5bec62dc522a1beeab53f7de69e628b7
2020-04-27 09:04:25 +02:00
Ed Sanders fbd0f494ec build/: Enforce no-var
Change-Id: Iddae4bb325139a9ff4107702798a3deb9602d6f1
2020-04-24 22:15:01 +01:00
jenkins-bot e4fe634201 Merge "ApiVisualEditor: Add option to return lint errors from Parsoid" 2020-04-24 10:03:40 +00:00
Translation updater bot 6ced29c572 Localisation updates from https://translatewiki.net.
Change-Id: If7092055fdb031cac37c20b7031e0631a6787ff1
2020-04-24 08:23:46 +02:00
Translation updater bot 26d1fb5d90 Localisation updates from https://translatewiki.net.
Change-Id: I5e456ec9a4ab214cef7e2f7f44725af100f4d631
2020-04-23 08:44:33 +02:00
Translation updater bot 3e57d04d48 Localisation updates from https://translatewiki.net.
Change-Id: I4325cfcbd183489a55683484540618f56513c22b
2020-04-22 08:57:15 +02:00
jenkins-bot 8f924cf543 Merge "DesktopArticleTarget.init: Add mw.libs.ve.disableWelcomeDialog()" 2020-04-21 21:27:07 +00:00
jenkins-bot 3e519667a1 Merge "DesktopArticleTarget: Move shouldShowWelcomeDialog() to init" 2020-04-21 21:27:04 +00:00
jenkins-bot 3e70794645 Merge "ArticleTarget: Move shouldShowWelcomeDialog() into DesktopArticleTarget" 2020-04-21 21:27:01 +00:00
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