Commit graph

19 commits

Author SHA1 Message Date
addshore ba4015ed6b Add localizable placeholder message while loading
Change-Id: I762b03c5af8765b90afee81af750880096db6638
2016-05-03 15:35:39 +02:00
addshore 8490d0f040 Reserve space for RevSlider to load into
Bug: T133275
Change-Id: I97283cfe0798a3bacc42fcb8bc067e74ab085ff1
2016-05-03 15:27:27 +02:00
addshore bc9373dc0f Fix Hooks isRevisionPage
As far as I can tell diff is the only thing that is needed
to show a diff page (which is where we want to show the Slider)

For example:
 - http://localhost/w/index.php?title=Foo&diff=5

Change-Id: I0c4e5ae04412a6da4034cf8c804742537aaeafdd
2016-05-03 10:35:12 +01:00
addshore 79cfbf8199 Update grunt npm packages
grunt 1.0.1 no longer also needs grunt-cli

Change-Id: I2b542884d265630b19408258a1f496e0338e85ec
2016-05-02 10:47:32 +01:00
addshore 5496370086 Add npm test script
Bug: T133282
Change-Id: I421c127077665614400efd0e62dfd1171d596b52
2016-05-02 10:42:57 +01:00
WMDE-Fisch a25d94bc53 Changed tick width and container calculation
Addresses bugs with pointer movements and revision ticks shown.
Changes width calulations to fixed tick width.

Bug: T133280
Change-Id: I3585df472906d482d26155966f2e62c4e7bd3458
2016-04-29 11:02:56 +00:00
Jakob Warkotsch 8c6676f939 Create module for Revision type.
This pulls out some of the code around revisions into a decoupled and
tested module.

Change-Id: Ib2a4f96f0e0b9a96ec85d300d97cd52dcaffe89e
2016-04-28 12:38:24 +02:00
addshore 1edc596fef Fix i18n things
this fixes the entry in the extension.json so that
the i18n files are correctly loaded.

It also changes all i18n codes to all lower case.

Change-Id: Ic64ab7e1356837124eb433df1db6a2b875dc5432
2016-04-27 12:27:49 +01:00
WMDE-Fisch 3884f98479 implement centered and calculated slider width
Slider width is now calculated according to number of revs.
Slider is now always shown in the center of the page.
The width of the ticks depends on the number of revisions per page.

Bug: T133281
Change-Id: I460b2bccff35c9dd6a4c2e5b7e847e2c59f882d3
2016-04-26 17:04:13 +02:00
Jakob Warkotsch 4b35b4d294 Fix all complaints jscs had.
Running `node_modules/grunt-cli/bin/grunt test` does now not throw
errors anymore.

Change-Id: I13a37f4b46c2dc35e35a4f8ec31b300e9d414a49
2016-04-22 17:06:21 +02:00
jenkins-bot a3e74615cb Merge "Replace old PHP configuration by extension.json" 2016-04-20 09:05:38 +00:00
WMDE-Fisch 5ffee1fe1c Replace old PHP configuration by extension.json
Change-Id: I2d71bc47916f68ac3cf9fd9b41be7a2009ecce53
2016-04-20 10:48:57 +02:00
Addshore 51c4423029 Merge "Update URL in extension.json" 2016-04-20 08:33:33 +00:00
jenkins-bot 921656964d Merge "Add URL to qqq revisionSlider-desc" 2016-04-20 07:54:11 +00:00
Leszek Manicki ab91246ef4 Update URL in extension.json
Change-Id: I081a1a0dcd66beb2e2b1836234b96eec8518313c
2016-04-20 09:49:34 +02:00
addshore d11dfddfb9 Add URL to qqq revisionSlider-desc
Change-Id: If2fcd7b8d310ac63ff94208bd611a8458d32d5d1
2016-04-20 08:43:40 +01:00
addshore 800d93c9ce Remove empty php test file
Change-Id: Ib119672ba450de22bd6cd58ffc8f58b99054c258
2016-04-20 08:40:40 +01:00
Jakob Warkotsch 23b5b2f112 Initial commit.
This turns the prototype code of the Revision Slider into a MediaWiki
extension.
With this extension enabled the slider should appear on diff pages
already but it won't actually show diffs when adjusting the slider
pointers.

Things that changed so far in the prototype JS code:
- pulled out the rainbow function and made it use Math.floor instead of
 the ~~ binary operator
- pulled out the API request that fetches the revisions into its own
 module
- cleaned up and documented some parts of the code

The code is still very much WIP and JSCS still has a couple of
complaints.

Bug: T132576
Change-Id: I2e22365f3b93a76d5b8d3997242b5fed996c6d78
2016-04-19 16:35:37 +02:00
Christian Aistleitner 3e2553ef81 Add .gitreview 2016-04-18 13:54:12 +02:00