Commit graph

1527 commits

Author SHA1 Message Date
Translation updater bot c012862db6 Localisation updates from https://translatewiki.net.
Change-Id: I139b0dece98b9bf8f7c9a2355003c79c48528ed8
2017-02-19 22:44:08 +01:00
James D. Forrester 8f34233c69 build: Bump stylelint and make pass
grunt-stylelint              0.6.0  →   0.7.0
 stylelint-config-wikimedia   0.3.0  →   0.4.1

Change-Id: Id87b8df04d415e1f1058a4042a31408236402037
2017-02-17 16:22:57 -08:00
Translation updater bot 00723753b1 Localisation updates from https://translatewiki.net.
Change-Id: Ic9a24a773cff83e9aed3849af31fdbcd38276e8e
2017-02-17 22:47:19 +01:00
Translation updater bot ae411e5aa0 Localisation updates from https://translatewiki.net.
Change-Id: I7a7a4de922d086a7a7d47a4ba540fcb3bf7b2e22
2017-02-15 22:39:57 +01:00
Translation updater bot 5063cd6c0d Localisation updates from https://translatewiki.net.
Change-Id: Ibe8e8d81644eba8377e23391fdccd5eff8c2add0
2017-02-12 22:35:17 +01:00
Tobias Gritschacher ccab029670 Don't set min-height and min-width for oo-ui buttons
OOJS-UI 0.19.0 introduced min-height and min-width for
oo-ui-buttonElement in which caused our UI elements to be mis-dimentioned.

Bug: 157800
Change-Id: I24b4d2ff6abfe02581b99b48a622972e7ef2f6b1
2017-02-10 15:32:48 +01:00
Translation updater bot 72d9d14cd6 Localisation updates from https://translatewiki.net.
Change-Id: I0ff8790fd4faa55833dadaef2c77930c5c1113a8
2017-02-05 22:50:19 +01:00
Translation updater bot 7d4f25c807 Localisation updates from https://translatewiki.net.
Change-Id: I6cfe8a1cef272ae07d752a3df211989fe1aeb1b8
2017-02-04 22:53:31 +01:00
Translation updater bot 872a1854cb Localisation updates from https://translatewiki.net.
Change-Id: I108acdbf319a8f1eab07f621935eb90f30a9326e
2017-02-03 22:58:34 +01:00
addshore ce4bc18569 Attach to Newer / Older edit links
This now attaches the revisionslider to the
older and new links that are by default in the
diff.

This means when clicking them the revision slider
will use an ajax call to reload the diff (while moving
its own pointes) rather than reloading the whole page

Change-Id: I11fa92828140f980ca8edee27403a4e2a5f5a6a7
2017-02-03 15:06:20 +00:00
jenkins-bot 3f688ebf27 Merge "Remove WikEdDiff logging code" 2017-02-02 16:54:52 +00:00
addshore 4225951117 Remove WikEdDiff logging code
Change-Id: I898234d72f496d0ce7299f18c121faf2fe174645
2017-02-02 16:26:09 +00:00
jenkins-bot 95c50b0522 Merge "Switch BF links to meta WMDE_Technical_Wishes/RevisionSlider" 2017-01-30 13:47:08 +00:00
jenkins-bot 26dfdce687 Merge "Introduce ESC key detection during dragging RevisionSlider" 2017-01-30 13:32:53 +00:00
addshore 99ce25ab73 Switch BF links to meta WMDE_Technical_Wishes/RevisionSlider
Change-Id: Ibdb3093c1fc22e9119c4a24d9343b8c6e7b7035d
2017-01-30 12:58:14 +00:00
Fomafix 5176e2f7fa Remove unrecognized parameter uslimit from API request
The current API request with uslimit=500 generates a warning in the response:

{"warnings":{"main":{"*":"Unrecognized parameter: uslimit."}}...

Change-Id: I5bb5e505f3f7b64cdf71b3ef0e2084075988aad2
2017-01-28 13:34:30 +01:00
Fomafix 8100318ad9 Use formatversion=2 for API request
The changes in the response (invalid:true instead of invalid:"" and UTF-8
encoding instead of JSON escaping) does not matter here.

Change-Id: I0b2382e373527973c8cbc75ce9213b3b6e9dafb9
2017-01-28 12:39:47 +01:00
Translation updater bot 9619a97708 Localisation updates from https://translatewiki.net.
Change-Id: If2753bc6e9128bdb39871ff6bb42ff0b73076778
2017-01-25 14:41:17 +01:00
jenkins-bot 05cd9e0f74 Merge "build: Re-use MessageDirs in banana conf" 2017-01-24 08:06:35 +00:00
Translation updater bot 0cfb886a74 Localisation updates from https://translatewiki.net.
Change-Id: Id3ff442c85f0bc02a108749d144f659f532cadbd
2017-01-23 22:43:17 +01:00
Ed Sanders 3dbd4fb2b7 build: Re-use MessageDirs in banana conf
Change-Id: I24397a8869d5661b7fbf6ea8f678a909c14ac782
2017-01-23 14:06:05 +00:00
pppery b169f6237a Introduce ESC key detection during dragging RevisionSlider
When the ESC key is pressed, aborts the drag and returns the sliders to
their original positions

Bug: T140965
Depends-On: Ib0f386c6a2447740f44591be70c34cf4a83b88c4
Change-Id: I2dfc2fa03d2c7705fa2947dffa07fbce8ed3b185
2017-01-23 09:51:52 +00:00
addshore 7d1d445417 Remove redundant phan exclude_file_list check
Change-Id: I12a1486ea034c5372516dbf77b1e19e9df078d4f
2017-01-20 15:02:14 +00:00
jenkins-bot fef3b044e5 Merge "All connector-lines should be contained within the RevisionSlider" 2017-01-16 14:34:27 +00:00
Andrew-WMDE 37ea49b326 All connector-lines should be contained within the RevisionSlider
Bug: T151450
Change-Id: I317a2fc81a85d20cf07b1e45d5501cadaaa0b727
2017-01-13 12:18:22 +01:00
jenkins-bot d8a6bd5396 Merge "Add phan issues to gitignore" 2017-01-11 08:38:29 +00:00
addshore 12c6010de5 Require MW 1.25+
This extension uses extension registration...

Change-Id: Ice7a7ba6b69a2fcb3c9f6ebcf5ef89a1dd8589bf
2017-01-06 14:54:15 +00:00
WMDE-Fisch 5bd599b3b8 Add phan issues to gitignore
Change-Id: I80d3877bf96b78123e59328c6ec243da6a085b15
2017-01-04 15:19:26 +01:00
addshore 20e0d5a779 Add Phan config
See: https://www.mediawiki.org/wiki/Continuous_integration/Phan

Change-Id: I2e870d3e8994025e19d47a32b1ff229fbf2695bf
2017-01-04 11:02:04 +00:00
addshore 6755c1b0ce Move RevisionSliderHooks class to src dir
Change-Id: I57a52c8f82180c715cbe97f4f4dd8a765992e482
2017-01-03 19:26:33 +00:00
Translation updater bot bbcca62fe2 Localisation updates from https://translatewiki.net.
Change-Id: I530b14b4228faaccf857470ae17559809d05f568
2016-12-28 10:49:37 +01:00
Leszek Manicki 4705c81e58 Pin eslint version
Same as core did in I1c76dacd0950100825b85a3791f74c1f6d5477d9

Change-Id: Id977f752afd9a5bf48f4f5e40c7116df816e0de4
2016-12-21 08:56:07 +01:00
jenkins-bot cd602086c8 Merge "Check if QUnit tests are language-setting-proof" 2016-12-20 15:53:51 +00:00
jenkins-bot 6768cda9ee Merge "Revert "Reset custom separator transform tables in number formatting tests"" 2016-12-20 13:55:41 +00:00
Tobias Gritschacher 233b69ccbf Check if QUnit tests are language-setting-proof
Change-Id: I6ed0cc013db676a587f734c1f35f117525405db7
2016-12-20 14:44:56 +01:00
Tobias Gritschacher f81d65bf6d Revert "Reset custom separator transform tables in number formatting tests"
This reverts commit b46c105202.

Checking if this was fixed by changes to core.

Change-Id: Ia8dcae5227163edd5911cd1ea3c1b0213f7e654d
2016-12-20 13:23:33 +00:00
Translation updater bot 7dc37df30b Localisation updates from https://translatewiki.net.
Change-Id: Ib7e42309684fff879edfeb5f5d4f3175c23c248c
2016-12-16 22:16:55 +01:00
jenkins-bot f64c32b19e Merge "RevisionSlider should always be on top of the page" 2016-12-15 15:42:07 +00:00
Translation updater bot a7499b61e8 Localisation updates from https://translatewiki.net.
Change-Id: I94fd1be12187cfab6578dbf8d8091e9bd4d80c0f
2016-12-14 22:26:13 +01:00
Tobias Gritschacher effdcca08a RevisionSlider should always be on top of the page
E.g. in combination with FlaggedRevs extension, the RevisionSlider
was positioned between FlaggedRevs headers and diffs which looked odd.

Still todo: in combination with FlaggedRevs there is still an issue
with the connector-lines that should be fixed.

Bug: T151450
Change-Id: Ieb1a21549092063729f66656127f59918ec07c90
2016-12-14 10:38:42 +00:00
addshore a21c586762 Load bar arrow on left for RTL languages
Bug: T152913
Change-Id: Ic79be04f8345057ff66ceac6c8fd748682b03a79
2016-12-14 10:38:32 +00:00
Leszek Manicki b46c105202 Reset custom separator transform tables in number formatting tests
Looks like custom settings used in a test for number separator
transformation added in Icc9bc09675151645055c7e7f706472a15cc81b0f
influenced RevisonSlider's tests resulting in test failure if
that core test was run before RS test.
Relevant RevisionSlider tests now are ignoring any custom value.
Any value before the test is restored after the test run, though,
in case other tests relied on this (which does not seem to be a case).

Bug: T153121
Change-Id: Ida81b93e4d081b6948e760995a92d182ad79fe0f
2016-12-14 11:23:28 +01:00
Translation updater bot 1d459dbfa9 Localisation updates from https://translatewiki.net.
Change-Id: Ie44953c2b72f917496e2a62dad8795a63e934ce0
2016-12-13 22:45:11 +01:00
Translation updater bot ddc734aa73 Localisation updates from https://translatewiki.net.
Change-Id: I90b2a34107ee888b9e26ede6bda366a40a65bb38
2016-12-05 22:51:34 +01:00
Translation updater bot dd604fa3d5 Localisation updates from https://translatewiki.net.
Change-Id: I8369ea89ef8fa10c850eea1a254e76d0994067c9
2016-12-04 22:39:36 +01:00
jenkins-bot ac383df079 Merge "Fix pin-button vertical alignment" 2016-11-30 13:10:10 +00:00
WMDE-Fisch bf55a214e5 Remove doubled padding
The inline padding on the widget element seems to be the original reason
for the flickering. To reflect the CSS it needed to be moved to the
button element.

I overlooked this when fixing the lazy load patch. 
https://gerrit.wikimedia.org/r/#/c/323193/16..17/RevisionSlider.hooks.php

This patch fixes it by removing the now doubled padding on the 
widget element.

Change-Id: Ie904f619e8c84474653d2ba40d9f9e62e74fa9db
2016-11-30 12:25:44 +00:00
addshore 2cf768f7b7 Lazy load most of the JS
With the parent of this commit (current master)
Loading the RevisionSlider JS without it expanded increases
the request size by roughly 767KB on first request and 242KB
on subsequent requests.
The large size of the first request is mainly down the to
dependancies of the slider.

This lazy loading patch means the RevisionSlider JS
only causes an increase of 184 KB per request.

If the user has the bar expand by default the main JS will
be loaded straight away (and the lazy JS will not be).

This patch also means that when only the bar is loaded the
pin button to set auto expand will not be shown.
This will be added once the RevsionSlider is loaded.

Bug: T151668
Change-Id: I054a82e9ea2aa89326464632e744497239f7adba
2016-11-30 11:59:16 +01:00
WMDE-Fisch ee82977c1c Fix pin-button vertical alignment
Changes in https://gerrit.wikimedia.org/r/#/c/322114 did mess with
the vertical alignment of the pin-button.

Change-Id: Ie8906e69bc4c37772d0f2d36a87c099a7ad12776
2016-11-30 11:28:09 +01:00
Translation updater bot 33f84d0783 Localisation updates from https://translatewiki.net.
Change-Id: I702aa2100fc2889575c427d8086e2c0c443c25f4
2016-11-28 22:31:14 +01:00