Commit graph

2348 commits

Author SHA1 Message Date
Translation updater bot e2962512fc Localisation updates from https://translatewiki.net.
Change-Id: Ic62592983b5622f23f590da070a6e9db54c0652f
2019-08-01 09:17:42 +02:00
Translation updater bot 4242d7c90e Localisation updates from https://translatewiki.net.
Change-Id: Ia012b4a0e73e2cb5a145ec133fb7bf0694627ca5
2019-07-29 09:15:40 +02:00
Translation updater bot 03c015415c Localisation updates from https://translatewiki.net.
Change-Id: I7d0b13259c48a89a3ded18828c4f7f4a20d21689
2019-07-23 08:55:14 +02:00
Translation updater bot e32fe6e7f7 Localisation updates from https://translatewiki.net.
Change-Id: I49bfe4df81d32844a9180ba57bb93cb937b0ae25
2019-07-15 08:35:13 +02:00
Translation updater bot d11593624d Localisation updates from https://translatewiki.net.
Change-Id: Ie44f9b3984f95d78655e9a37238d97f398dd2049
2019-07-12 08:44:28 +02:00
James D. Forrester 85084a4484 build: Upgrade phan-taint-check-plugin from 1.5.x to 2.0.1
Change-Id: I6bbf150ae44e0e54cbf7c6167df03b856dc9f668
2019-07-09 14:14:45 -07:00
Translation updater bot 9e864e7c2b Localisation updates from https://translatewiki.net.
Change-Id: I9f67e4c627075998ed33bf7451006e3024deb747
2019-07-07 22:41:21 +02:00
Translation updater bot 1912ea943d Localisation updates from https://translatewiki.net.
Change-Id: I4044a9d9506b1bcd74c81dfe54a5dc0fa6adeca4
2019-06-30 22:39:11 +02:00
Nicholas Ray be27746e59 Build: add package-lock file
Add package-lock file. The previous version of Node.js did not support
package-locks but v10.15.2 does.

Bug: T179229
Change-Id: I6cd0df235294dd455086ca3be569e63577a61b4f
2019-06-20 16:11:00 -06:00
Dan Andreescu 27a95517b7 Remove dependencies on deprecated schema modules
As mentioned in T205744, EventLogging schema ResourceLoader modules have
been deprecated.  This removes those modules from loader calls.

Bug: T221281
Change-Id: I1b7355c69e09756f50ccd1c1955b45cae4a64b9e
2019-06-19 09:51:30 -06:00
Translation updater bot 629ac10557 Localisation updates from https://translatewiki.net.
Change-Id: I2f07e2c96f32a0d968dbbcd511d94b8fca4123cd
2019-06-13 22:40:19 +02:00
Translation updater bot 1aebfdf3f1 Localisation updates from https://translatewiki.net.
Change-Id: Icf2f9f628970be0e41eebbb9417a2239f23bd955
2019-06-10 22:55:35 +02:00
Timo Tijhof a3796a24ee Doc: Refer to Node versions without "v" prefix
As of Node.js version 8, upstream has consistently avoided this
to avoid confusion with V8, the JavaScript engine that power
Node.js and Chromium.

Change-Id: I702cee3247cc69ab4aac313176c884c9c2785ea9
2019-06-10 17:30:26 +01:00
libraryupgrader 8c3c943468 build: Updating mediawiki/mediawiki-phan-config to 0.6.1
Change-Id: I98849b0e976c261fe5e3bef98e5c71e1b5b99da9
2019-06-10 10:03:03 +00:00
James D. Forrester 4fb6120fc9 Upgrade from node 6 to node 10, now that CI is running that
Change-Id: I8830cc39c8f5c5d22299d3c3cc90b308f50fb08a
2019-06-03 14:51:51 -07:00
Translation updater bot 8f850877c2 Localisation updates from https://translatewiki.net.
Change-Id: I8830cc39c8f5c5d22299d3c3cc90b308f50fb08c
2019-06-02 22:30:45 +02:00
Translation updater bot 54a5f6f6ab Localisation updates from https://translatewiki.net.
Change-Id: I7cd8635b1d0d6d4ac84f4babfed0512c94a70490
2019-05-30 22:54:02 +02:00
Volker E d1fc6786bf Remove wrong ARIA role=tooltip from container
Removing wrong ARIA `role=tooltip`. Those are meant only for static
text content on short `title` like dynamic tooltips.

Bug: T223827
Change-Id: Ib4f490c7ad421e516fb0cf47eff4335bcaf26c43
2019-05-29 15:27:08 -07:00
Translation updater bot 5f573d1abf Localisation updates from https://translatewiki.net.
Change-Id: I8033b42e93683c954d5ab8490dbe83a846ed7222
2019-05-26 22:23:28 +02:00
Translation updater bot b67d7e2181 Localisation updates from https://translatewiki.net.
Change-Id: I30eb99428db6e8b0f6c1a3108797c63481b9107c
2019-05-23 23:06:39 +02:00
James D. Forrester 692a706e08 build: Upgrade mediawiki/mediawiki-phan-config from 0.5.0 to 0.6.0
Change-Id: I96b36d9e535c6d886aec7e9e77334ed239569b3a
2019-05-23 19:18:53 +00:00
Thiemo Kreuz 59a5e4e981 Fix fade-out gradient not disappearing when page is zoomed
We did a strict === comparison before. This works fine when the page
zoom is either 100% or 200%. Other zoom factors produce fractional
numbers. Comparing them with === is doomed to fail because these numbers
are IEEE representations, not necessarily being identical in situations
where you would expect them to be identical.

This applies two fixes: Change the comparison to a >=, and always ignore
1 extra pixel. If we are so close to the bottom, the gradient is not
helpful any more.

Change-Id: Idf4c604142de8d2a803e1d94f3093cec8a8abb72
2019-05-20 11:02:19 +00:00
jenkins-bot 8c7527af04 Merge "referencePreview: Replace width: 0 with display: none" 2019-05-18 14:45:19 +00:00
jenkins-bot af5adf3e07 Merge "Docs: Remove incorrect documentation about LocalSettings in tests README" 2019-05-18 14:43:23 +00:00
Translation updater bot 0af283914a Localisation updates from https://translatewiki.net.
Change-Id: I986aec37b7bf17e50da8e2f6c65da49b09107638
2019-05-16 09:10:14 +02:00
Translation updater bot 68362f26de Localisation updates from https://translatewiki.net.
Change-Id: I97173e6314ebb7daef1bf478764e4a9a9e6f5e62
2019-05-15 09:14:08 +02:00
Translation updater bot a6b41e6569 Localisation updates from https://translatewiki.net.
Change-Id: I1253c6eda10e4d6f7881dde71e93bc02aeb79a12
2019-05-13 23:22:27 +02:00
Adam Wight ed06a6dbb1 Docs: Remove incorrect documentation about LocalSettings in tests README
Follows-up 1cff4a15a7.

There is no such file to copy, delete from README.

Change-Id: I1fa0ac574743f5dbd577653aa74d416ca4609aa8
2019-05-13 11:52:55 +00:00
Translation updater bot 2dc22b24ae Localisation updates from https://translatewiki.net.
Change-Id: I6daaf1a38ad178566fb819c6b4d649eb2fe3acbf
2019-05-12 22:34:11 +02:00
WMDE-Fisch a498423f90 Avoid popups on self links with file extension
This fixes page previews appearing when there is self link to a page
that has a file extension in it's name.

Bug: T222869
Change-Id: I5caf610fa76986026948a5b7b55537723752b755
2019-05-10 18:02:50 +02:00
jenkins-bot 32a415d81e Merge "referencePreview: No event bubbling on inner child elements" 2019-05-10 08:28:35 +00:00
Translation updater bot 498aa793b6 Localisation updates from https://translatewiki.net.
Change-Id: Id59e3933d4a417090b65d3683868c69f9fa0ca80
2019-05-10 09:20:43 +02:00
Thiemo Kreuz ac65bd3082 referencePreview: No event bubbling on inner child elements
This is relevant in case the HTML looks like this:
<… class="reference"><a><span>[</span>2<span>]</span></a></…>
The additional <span> cause many additional mouseover and mouseout
events. The code already tries to filter these duplicate events that
are all triggered on the same link, but gets confused, especially when
the multiple chains of events overlap each other in unexpected ways.
It's a timing issue. This change does not fix the fundamental issue,
but does make it much less painfull.

This patch also removes the > from the selector. This is in case the
HTML looks like this:
<… class="reference"><span><a>[2]</a></span></…>
The additional inner <span> would prevent any reference preview from
being shown.

Bug: T214693
Change-Id: If2554ba78072245c27a1f85c46f33e3c58582c1d
2019-05-09 13:23:45 +02:00
Thiemo Kreuz b3fb2b5867 referencePreview: Replace width: 0 with display: none
Before, the element is still part of the DOM, shows up in the debugger,
and consumes rendering time (probably close to zero, but still). After,
the element is gone.

Change-Id: I580fd89868b5a91118a8115d71d819824ff7f80c
2019-05-09 13:19:14 +02:00
jenkins-bot fe6c707da1 Merge "Show referencePreviews on click" 2019-05-08 16:00:02 +00:00
Translation updater bot 503184584a Localisation updates from https://translatewiki.net.
Change-Id: I74e847b56c7033724879a98baa3fe948f8bda6fc
2019-04-29 22:16:13 +02:00
WMDE-Fisch 1879a4d59e Show referencePreviews on click
Introducing the REFERENCE_CLICK action that will fetch and show the
preview for the clicked reference right away without any delay.

The main goal of the new chain of events introduced with the reference
click is showing the reference preview right away. The actions triggered
by the dwelling include delays in multiple parts of the process.

If there's a dwell action-chain in progress when the click action is
executed, the related promise ( that might still include steps with
delays ) and the reference preview is retrieved and shown right away
re-using the token. 

In the case where there's no dwell action running ( e.g. when the click
was triggered via touch ) we create a new token and start from scratch.

In either case we want to avoid, that multiple clicks trigger multiple
actions and abort early when there's already a click action in progress.

Bug: T218765
Change-Id: I073a93be2d17a21178aebe12267765f60a2811b9
2019-04-29 17:46:49 +00:00
Translation updater bot e18e92dbf9 Localisation updates from https://translatewiki.net.
Change-Id: I6b15463c03804756a6e925eaf83092f85b59dc1a
2019-04-26 22:28:12 +02:00
Thiemo Kreuz 3ca2709cfe Streamline code calculating fade-out bottom position
I actually tried to bring the animation for the "bottom" property back.
When finished, I realized this animation is done on *top* of the
horizontal scrollbar. This looks fancy, but is not what we want. We
need to keep animating the opacity.

This patch here contains a bit of refactoring that was left after I
went back animating the opacity.

Bug: T220200
Change-Id: Icf613f72f3baa3de86f8aa319667c8e8f16593fd
2019-04-26 18:14:30 +02:00
WMDE-Fisch d72ef0fa65 Avoid fade-out above horizontal scrollbars
The changes in the patch check if a horizontal scrollbar is present
and move the absolute positioned fade overlay above that scrollbar.

Since we cannot change the CSS of the :after element via JS a new div
element was introduced.

Bug: T220200
Change-Id: Ia69c9be0facaf3ecebdb9f76d36f7cb3412c0816
2019-04-26 18:02:06 +02:00
Thiemo Kreuz 8305eb8634 Minimize createStubTitle() helper method
Pretty much all usages of this function do *not* use the second
parameter to pass a page name prefixed with a namespace, but pass the
page name only.

This patch here removes the redundancy. The namespace prefix is now a
generated one, saying "Namespace <number>:…". It turns out no test
relies on this so far.

Bug: T220097
Change-Id: Ibd45d49c91e86a2647afe676a5e3bb07dfeab6ed
2019-04-26 07:45:13 -06:00
WMDE-Fisch 6c535739bf Use title.getNameText() to compare selflinks
config.get( 'wgTitle' ) returns the unnormalized title of the current
page while title.getName() gets the normalized title (e.g. with underscores ).

On pages with spaces in the check failed before this patch.

Bug: T220097
Change-Id: I58a532627bb27be030cbc553f1181a89109edd80
2019-04-26 13:58:08 +02:00
jenkins-bot f40cc718ce Merge "Use title and namespace id to check if link is current page" 2019-04-26 11:04:12 +00:00
jenkins-bot c334b7cdf7 Merge "Allow text selection on all fade-outs, not only on references" 2019-04-26 10:12:44 +00:00
jenkins-bot 61c91d7256 Merge "Don't block clicks on vertical scrollbar behind fade-out effect" 2019-04-26 10:12:42 +00:00
Umherirrender d7767ed7f5 Add phan
Change-Id: Ia56406f26ecf81d35f505d4a62a93615fcc718fd
2019-04-25 20:54:33 +02:00
Thiemo Kreuz 34cf1f0764 Allow text selection on all fade-outs, not only on references
The last line in all popups ends with a fade-out gradient to white.
The text in this last line can currently not be selected because it is
covered by this partially transparent container, and the container
consumes all mouse events.

This patch here moves the existing solution from "reference previews
only" (where this was a much more serious problem that on page
previews) to the top-level .less file that is for all popup types.
This is not strictly required, but I feel the code belongs there.

Bug: T220200
Change-Id: Iedf667ead453c9e72025d5fdc7af34756456e68a
2019-04-25 19:31:54 +02:00
Thiemo Kreuz 06cdb58d3e Don't block clicks on vertical scrollbar behind fade-out effect
This does not solve all two acceptance criteria mentioned in T220200:
* This will allow *interacting* with the scrollbar, no matter if it
  is partly covered by the fade-out effect.
* This still does not place the scrollbar in front of the fade-out
  effect. Very thin scrollbars are still very hard to see.

Bug: T220200
Change-Id: I394aea6a25c4b3923ad01e18328d42a5e50081f3
2019-04-25 19:26:25 +02:00
Translation updater bot 8df99c6b95 Localisation updates from https://translatewiki.net.
Change-Id: If7fce7c64aefcdbbc5a8b3729ed02cfa4d72e499
2019-04-23 22:46:03 +02:00
WMDE-Fisch 35aa05afee Use title and namespace id to check if link is current page
Bug: T220097
Change-Id: Ieffd6a02b4126f6713610e968d662516499d4998
2019-04-23 15:17:06 +02:00