Commit graph

1606 commits

Author SHA1 Message Date
WMDE-Fisch 0525f0bdb2 Do not assume that revIds increase in time
This patch fixes issues with the RevisonSlider assuming that the higher
revision id belongs to the newer revision. Min/Max methods to decide what
the diff and what the oldid is are removed and the usage of methods is
adjusted accordingly.

Also the test for switchover pointers is removed since this will not work
with the patch.

Bug: T164455
Change-Id: If5d9cbb8ebd872aee376d249942e6881c8edb984
2017-06-01 18:29:22 +02:00
WMDE-Fisch 9e977cec67 Add icon styles to extension.json
The used icons are not loaded in core by default anymore so we need
to load them manualy.

Change-Id: Ic55bf7c3ce531472153c10e75dbbc6a623ad4eb2
2017-06-01 17:05:36 +02:00
WMDE-Fisch 323984103e Update to banana 0.6.0
Change-Id: I633de137917cfb2e5e50f40a215e31aaf3579016
2017-05-31 16:11:46 +02:00
Translation updater bot 831b6081f3 Localisation updates from https://translatewiki.net.
Change-Id: I63c667e173948a5f840d2c3c1bbe39051c6ab345
2017-05-30 22:42:14 +02:00
Translation updater bot d37f59c141 Localisation updates from https://translatewiki.net.
Change-Id: I848effe9cdf5b7ed75efe634a495a5e03617b199
2017-05-29 23:26:53 +02:00
Translation updater bot ce75740359 Localisation updates from https://translatewiki.net.
Change-Id: I07e9bdf5f94a355d232f83a7b78028e083fd0968
2017-05-28 22:34:52 +02:00
Translation updater bot f17e52a88f Localisation updates from https://translatewiki.net.
Change-Id: I1ee22944d603ea2e2e38cc98e785d7afc20bd995
2017-05-26 22:46:04 +02:00
Translation updater bot f79fc28adc Localisation updates from https://translatewiki.net.
Change-Id: Ib9b85b04de7091672ead383aec50405eff33bac0
2017-05-25 22:50:00 +02:00
Translation updater bot 9ee6c04352 Localisation updates from https://translatewiki.net.
Change-Id: Iad5f5830bdd415cec0b15c029a4fa2a967dea0e5
2017-05-24 22:57:09 +02:00
WMDE-Fisch fce6b2e950 Adjust z-indexes to work with Modern skin
Bug: T166209
Change-Id: I54e7310d215c44ef3e139e940bf61dbee52bf5a8
2017-05-24 13:41:31 +00:00
jenkins-bot b5669a8157 Merge "Do not use the main config for extension configuration options" 2017-05-24 08:23:54 +00:00
Translation updater bot 0b57f65f57 Localisation updates from https://translatewiki.net.
Change-Id: If489f4fd13d65f9e9ed08ff0415a307bffdbff77
2017-05-23 23:01:47 +02:00
jenkins-bot d02f2e066b Merge "Fix handling of escape key" 2017-05-23 12:54:25 +00:00
pppery 4ed9851610 Fix handling of escape key
Previously, pressing ESC aborted the dragging of the slider, but this
was broken by I64cca7a7547310bee64ad95f500b722c362bbb45, which refactored
uses of a variable that was previously a closure into two separate functions.

Bug: T140965
Change-Id: I6b7bc383128d8c7d99da469706bff881f1329cd9
2017-05-22 15:22:55 -04:00
Translation updater bot a793fe4620 Localisation updates from https://translatewiki.net.
Change-Id: I2193ec203136c1307298ed7bf52ec533f1a68d2d
2017-05-20 22:49:26 +02:00
Florian Schmidt 5173fe59d4 Do not use the main config for extension configuration options
This currently just works, because the currently used backend are
global variables. Once the main config uses a more scoped/focused
backend, such as a HashConfig or a database-based config, requesting
extension configurations from it will not work anymore.

Therefore, use the extensions Config object to request configuration
options for the extension.

Change-Id: Iea02d3c284f9a0e12abff33e3624dce9585ab51c
2017-05-20 11:54:52 +02:00
Translation updater bot c7be55dbc5 Localisation updates from https://translatewiki.net.
Change-Id: Ic8c0a24fee29e5491a57199645385af9fa6cd453
2017-05-18 22:53:23 +02:00
Translation updater bot 6ff0e3dea7 Localisation updates from https://translatewiki.net.
Change-Id: I33bd07cc55cbf5cfaff39c18a1968b0186b7e0ee
2017-05-14 22:39:54 +02:00
Translation updater bot 2f79fa2eb3 Localisation updates from https://translatewiki.net.
Change-Id: Iaa06c31d693afab51067945b1cbb140ad34b3e5e
2017-05-12 23:11:21 +02:00
jenkins-bot 6dc7cd7b39 Merge "Split ext.RevisionSlider.lazy into Js and Css modules" 2017-05-12 11:02:37 +00:00
Translation updater bot b12880ffe0 Localisation updates from https://translatewiki.net.
Change-Id: I62be13ea49262c2ba01b874fc80d727627337874
2017-05-11 23:28:12 +02:00
addshore ed48f4ef3b Split ext.RevisionSlider.lazy into Js and Css modules
Bug: T164893
Change-Id: Ideb82a24aa852067acc60e512318a26f88f2d395
2017-05-11 10:45:57 +02:00
Translation updater bot 7c63d7cdc2 Localisation updates from https://translatewiki.net.
Change-Id: I6a0b0f31fe600439afa35c35f62ed8ddd6b1eb9e
2017-05-09 23:02:26 +02:00
Andrew-WMDE 96a366ddb0 Update help dialogue to explain new sliding mechanism
- works with the setting var to switch help text
 - minified new SVGs with svgo
 - adjusted new SVGs dimensions
 - updated accompanying text

Bug: T162773
Change-Id: I3da66a006977fa6b1999686ba4f415e891f4ea02
2017-05-09 19:50:39 +02:00
jenkins-bot 9f1a91dc6a Merge "Convert touch events to mouse events on pointers" 2017-05-09 10:27:15 +00:00
Translation updater bot f1beae0e17 Localisation updates from https://translatewiki.net.
Change-Id: Ia0c8a326f2bf0e879044ca57bf26dfa1fa7ee23a
2017-05-08 22:53:55 +02:00
WMDE-Fisch 31b9fe31ef Convert touch events to mouse events on pointers
This will make the pointers work on touch devices. The events responsible
for the touch drag and move are converted to mouse actions that will
trigger the draggable.

When using Chrome on touch devices and zooming the offset of elements
calculated by jQuery is wrong. There is a workaround that seems to work
and also seems to not break behavior with normal browsers and on other
devices. Since this only seems to be a problem in Chrome the fix will
only applied to Chrome browsers to avoid performance los on others.

Also introduced a script file for static utility methods.

Bug: T164249
Change-Id: I245f77eb836afded249f3b5ebb7129dab08d0017
2017-05-08 12:55:31 +02:00
Translation updater bot 2b666e4dc3 Localisation updates from https://translatewiki.net.
Change-Id: I8826d09691a2abd3954db65dcde3daca441ddafa
2017-05-06 22:58:23 +02:00
Translation updater bot 117c25f856 Localisation updates from https://translatewiki.net.
Change-Id: I39e11d5500ae61c8140302963cc825d0f3d0708e
2017-05-05 22:47:45 +02:00
Antoine Musso 0ec23e53ee build: add jakub-onderka/php-console-highlighter
Highlight PHP code when parallel-lint fails

Change-Id: Ie7582baa805457a0445a119bfd5fb859f693e51f
2017-05-05 21:40:02 +02:00
jenkins-bot 7a705aade7 Merge "build: Update eslint to 0.4.0 and make pass" 2017-05-04 21:13:42 +00:00
Ed Sanders c6465dee07 build: Update eslint to 0.4.0 and make pass
Change-Id: I6e3e2f30615996c57650127cde9738d3a6dd9ae5
2017-05-04 21:06:08 +00:00
Translation updater bot 062caac484 Localisation updates from https://translatewiki.net.
Change-Id: I1c87884127dec98cae232ae5348f83d28a5e21f7
2017-05-04 23:03:13 +02:00
WMDE-Fisch 61e9ad6afb Make links in help external
Then they will also work in 3rd party wikis.

Bug: T164346
Change-Id: I7573ff313a6e843c540c899c7c6e2d641a227453
2017-05-03 14:29:51 +02:00
jenkins-bot fa99ffdaff Merge "Rename eslintrc to .json" 2017-05-03 09:36:45 +00:00
jenkins-bot 095c3ea863 Merge "Throw errors, not strings" 2017-05-03 09:33:09 +00:00
Ed Sanders 675d4d08ae Rename eslintrc to .json
Let's editors know how to syntax highlight, and allows
coverage by jsonlint.

Change-Id: I3207e85f67a04c7d21a5b999534e8c8075c0790d
2017-05-03 09:47:33 +01:00
Ed Sanders 4e9689ce36 Throw errors, not strings
Change-Id: I65bad18f2526283ba426aed8ff7da9121f230770
2017-05-03 09:47:14 +01:00
Translation updater bot a3526d359a Localisation updates from https://translatewiki.net.
Change-Id: I30baeaaf7c6e9e84b8a41bd9b75c40656c565269
2017-05-02 23:12:14 +02:00
WMDE-Fisch 72d19630ad Let revision bars leave space for the pointer line end border
The end border for the pointer lines can not be displayed because the
bars on the biggest revisions used all the height. This patch reduces
the max height of the bars slightly and refactores the calculating method.

Bug: T163436
Change-Id: Idfa6bdb9f85221063e13f3ec16b22fcfbe6cbd9c
2017-04-25 15:29:18 +02:00
WMDE-Fisch 3c4c9fed0d Fix OOjs UI tooltip position
The latest OOjs UI update seem to fix tooltip center positioning.
Margins added manually are removed now.

Change-Id: I883a5026002fae6fbda230b407303a4f2b82914d
2017-04-19 13:08:24 +00:00
jenkins-bot bf4cd0da02 Merge "Tooltips when hovering slider lines in the SliderViewTwo" 2017-04-19 12:02:55 +00:00
jenkins-bot fc8ec75d36 Merge "Introduce RevisionsListView element" 2017-04-19 12:01:51 +00:00
jenkins-bot 67122b59f6 Merge "Refactor offset based position calculation" 2017-04-19 11:59:41 +00:00
jenkins-bot 9e7fde2397 Merge "Revert "Temporary workaround for OOjs UI missing border bug"" 2017-04-19 11:55:25 +00:00
WMDE-Fisch 9e6f44cb06 Tooltips when hovering slider lines in the SliderViewTwo
This change enables tooltips when hovering the slider lines. To avoid
interference of these events when dragging a variable is set to keep
track of the dragging state.

Bug: T162602
Change-Id: I45c1b73ca470d7b8fcf8b95e15187864e35e907f
2017-04-19 11:26:51 +00:00
WMDE-Fisch 624b4786ec Introduce RevisionsListView element
This will avoid several jQuery calls.

Change-Id: I1934bcfde97415ca0c01465037f34d2555b6daa4
2017-04-19 11:26:44 +00:00
Jforrester 749db6fbe6 Revert "Temporary workaround for OOjs UI missing border bug"
This reverts commit 33aea27e94.

Sorry, I lied; we decided to release v0.21.1 anyway, which is now merged into master.

Change-Id: I791c814b33d17016d51f859948623b0bcc982f9c
2017-04-19 01:46:43 +00:00
Translation updater bot 6f3bbbc4d2 Localisation updates from https://translatewiki.net.
Change-Id: I34dea131d5248bffac030ef1fc0e440d7f711c41
2017-04-18 22:43:49 +02:00
WMDE-Fisch 33aea27e94 Temporary workaround for OOjs UI missing border bug
This is a workaround to show the missing border on the top button to expand the
RevisionSlider as seen in the ticket. It can be removed when OOjs UI v0.21.1
is used in core where the original issue is fixed.

Bug: T162858
Change-Id: Ib22d598b8fc62e4a19f03d0170ea6a474812d7f8
2017-04-18 17:09:41 +02:00