Commit graph

222 commits

Author SHA1 Message Date
Brion Vibber 64fb52a709 MultimediaViewer hi-DPI support
Multiply target dimensions by $.devicePixelRatio() when fetching
image for the viewer lightbox.

Bug: 55477
Change-Id: I5d64d21ecc563486a6f7d4709cebc129ef77f930
2013-11-01 16:20:05 +00:00
jenkins-bot ea4949891b Merge "Fix bug in spinner code" 2013-10-31 22:40:09 +00:00
Mark Holmquist dd3df43e37 Fix bug in spinner code
Needed to use $.createSpinner instead of hacking in the image directly,
else bits.wikimedia.org won't work as expected. Will test on beta.

Change-Id: I0eba356f7910fd6a3173ed66c601fd42264ff336
2013-10-31 15:33:40 -07:00
jenkins-bot e33f80df21 Merge "Fullscreen fix" 2013-10-31 22:19:19 +00:00
tgr 4a7f53931a Fullscreen fix
Bug: 56374
Change-Id: I28b90244e3bb97654e4f6c9b0c07a8d336ffdd78
2013-10-31 22:14:24 +00:00
Translation updater bot c28c8a9641 Localisation updates from http://translatewiki.net.
Change-Id: I41e3386107a57bf55757eebe57c420286e3c635c
2013-10-31 20:22:05 +00:00
jenkins-bot bd0ae60a68 Merge "Icon changes" 2013-10-31 17:33:26 +00:00
Mark Holmquist 45f0820ec1 Icon changes
Removed unused circle.svg, added use.svg for "use this file", added
new SVG versions for most icons from Vibha.

Change-Id: Ice2db8fdaf785dae9d3018f78db35c6cbd15f774
2013-10-31 10:16:41 -07:00
Mark Holmquist dd2e2d153f Add info links for Media Viewer
Bug: 56332
Change-Id: I2d229481693735a4662f1d898bd0f19c200e39bc
2013-10-31 17:15:43 +00:00
jenkins-bot 9411057591 Merge "Clear entire interface" 2013-10-30 20:34:41 +00:00
Mark Holmquist 9ded203080 Clear entire interface
In the future, I'll have a nicer UI creation helper method that will
mark these as clearable and empty them for me. Until then...

Change-Id: I8a03040a294a4fec19cd7714d4219f5d571b0c48
2013-10-30 13:22:25 -07:00
Mark Holmquist ca46c13d13 Add "use this file" link and dialog
Little bit hacky, maybe, but it's working nicely and it's a very useful
tool for the lightbox.

Selection, it turns out, is really really difficult.

Bug: 56141
Change-Id: Ifd3e2f771010190c9f401fd4219342aff48f4be8
2013-10-30 13:06:18 -07:00
Translation updater bot 9cbdc69fa4 Localisation updates from http://translatewiki.net.
Change-Id: Ie994b4419e62ac96ee23e2dfef44cf17a7e2255e
2013-10-30 19:35:22 +00:00
jenkins-bot df2f60080b Merge "Add image's license to the lightbox header" 2013-10-30 18:57:55 +00:00
Mark Holmquist e40d993227 Add image's license to the lightbox header
Depends on…

* core
:* I77303d8e535fc1c42e14cfb853814e5c434a81ec
* CommonsMetadata
:* I5e6bc45f9751641e16426231dabcc8277b86fee0 (merged)
:* If3cf6a0ee444d1613d0caf14045b92fad6afa2ab (merged)

Change-Id: I60180f7ca3a16a04a0adee8af8482fa0940ac555
2013-10-30 11:53:26 -07:00
jenkins-bot c8d3d6f2d1 Merge "Increase title font size, bold it" 2013-10-30 18:24:13 +00:00
jenkins-bot 8161af183b Merge "Take down the font size in lis, tweak colour" 2013-10-30 18:23:16 +00:00
Mark Holmquist fe2141e488 Fix up whitelistHtml
There were a few nasty things going on here, but it looks fixed up, and
probably a mite faster too!

Thanks so much for the review, Krinkle.

Thanks to Gergo also for the better algo.

Change-Id: I630a1ad625abb803e31c7e7dd2cb4f4386d52607
2013-10-30 10:37:21 -07:00
jenkins-bot 00e76b4a5d Merge "position: fixed for multilightbox" 2013-10-30 16:18:21 +00:00
jenkins-bot db55298d77 Merge "Load thumbnails, use loading image in core" 2013-10-30 16:14:54 +00:00
Mark Holmquist 9ecc3d7f70 Take down the font size in lis, tweak colour
Bug: 56265
Change-Id: Id017deb474ee621c3c2ae8cf5fb9512abfeabffe
2013-10-28 16:25:20 -07:00
Mark Holmquist 29d7283a92 Increase title font size, bold it
Bug: 56112
Change-Id: I4f5dd4af99a313d250cc3dedf2d0d93789404cc0
2013-10-28 16:20:17 -07:00
Mark Holmquist 71e87c64e6 Load thumbnails, use loading image in core
This makes the loading experience _way_ nicer, and hopefully faster.

Bug: 56266
Change-Id: Ided64b0e15af84d9fe65517db2adb291c174c4bf
2013-10-28 15:34:57 -07:00
Translation updater bot e09056850b Localisation updates from http://translatewiki.net.
Change-Id: I2ddf566344400c63cab53c47818ccaebad72ef8a
2013-10-28 20:11:34 +00:00
Mark Holmquist a7d2685a9c position: fixed for multilightbox
Also moved something out of the ml.css file that shouldn't have been
there.

Bug: 55476
Change-Id: I94020b138a71683e2407a78ef480057692967eaf
2013-10-28 11:40:10 -07:00
jenkins-bot fba5671ccd Merge "Fix EL dependency loading" 2013-10-28 14:13:29 +00:00
jenkins-bot 183cf920d3 Merge "Capitalize "Lightbox"" 2013-10-27 17:40:43 +00:00
Translation updater bot 8c0ffcd8fc Localisation updates from http://translatewiki.net.
Change-Id: I09497223c7594cbf59c5990c445bd679b433dbac
2013-10-26 19:33:59 +00:00
Yuki Shira 84aab8c108 Capitalize "Lightbox"
Change-Id: Iac7e33ac9b15e68b5d302f2321a1126622b55631
2013-10-26 10:07:19 +09:00
Mark Holmquist 476846813e Fix EL dependency loading
Do it in an extension function. Cool feature.

Change-Id: I4a11d13d8c0742106ce4dda15b6b3caaa6489421
2013-10-25 16:42:57 -07:00
Kunal Mehta bac235e10d Remove dependency upon BetaFeatures extension
Change-Id: I21bb7d015c74784bb41e1a0402e74ec9458662aa
2013-10-25 16:27:25 -07:00
jenkins-bot 3b57311a23 Merge "Improve date display" 2013-10-25 23:01:52 +00:00
Translation updater bot b4ccd51718 Localisation updates from http://translatewiki.net.
Change-Id: I88d4bf871d38900ffaaba9fbec51f417df37e418
2013-10-25 18:58:44 +00:00
tgr 467a697d55 Improve date display
Strip any non-text content from the creation/upload date string,
and, if possible,  parse and format (according to browser locale)
the result.

Bug: 56146
Change-Id: I214e53c5219335b7a9fc852dc029b2992ca56435
2013-10-25 20:57:10 +04:00
Mark Holmquist 0719e17a6b Add source and authour to the title div
Strips out complex formatting, which should be useful later on as well.

Depends on:

* core
:* I77303d8e535fc1c42e14cfb853814e5c434a81ec
* CommonsMetadata
:* I5e6bc45f9751641e16426231dabcc8277b86fee0

Change-Id: Id835fd8133b9762e7bec10783f4fa4b983177aed
2013-10-24 15:59:24 -07:00
jenkins-bot a0c1e950c4 Merge "Put the username into the info list" 2013-10-24 22:58:08 +00:00
jenkins-bot ed7d36622c Merge "EventLogging support for MultimediaViewer" 2013-10-24 22:56:15 +00:00
Mark Holmquist 47c7fc1be8 Put the username into the info list
Link to the user page of the uploader.

Fetches the gender from the API - falls back to "unknown" especially in
cases of cross-domain requests.

Change-Id: I38940782dc5d2d56c8aea608b1fe72e04f397c00
2013-10-24 15:55:38 -07:00
jenkins-bot cf4c9ef4f4 Merge "Add creation time to list" 2013-10-24 22:46:43 +00:00
Mark Holmquist f26d8b06f5 EventLogging support for MultimediaViewer
Capture clicky events for most buttons and things.

Change-Id: I7d7ed21512df5cda19a0e5b7b7e1a32fd1ccfd2b
2013-10-24 15:33:55 -07:00
Mark Holmquist a66be06ae9 Add creation time to list
Fallback to upload time for now.

Helps to have:

* core
:* I77303d8e535fc1c42e14cfb853814e5c434a81ec
* CommonsMetadata
:* I5e6bc45f9751641e16426231dabcc8277b86fee0

Change-Id: I822b48cebbace51cd8f68adc45a68a1c93ec29db
2013-10-24 15:21:17 -07:00
Mark Holmquist ab2949e95f Clear interface before opening again
Bug: 56055
Change-Id: I1a36617ea7b141e0d695ff44ef3b05a2e327b4c4
2013-10-24 22:19:30 +00:00
Mark Holmquist 4dd724838d Fixes from MLB upstream
Bug: 56054
Bug: 56059
Change-Id: I549ba702c3b9bf9adec9fab692664eec1ff90005
2013-10-24 22:19:22 +00:00
Mark Holmquist ea778e990f Fix a few fullscreen bugs
Also pull in a change to multilightbox that will make things easier for
fullscreen handling.

Bug: 55489
Change-Id: I2eda8f82df8602a02dcf1c878c5232a8e6490e6a
2013-10-24 15:18:34 -07:00
Mark Holmquist bfc58e4533 Add description to the DOM
This is all getting really real, really fast!

Depends on:

* core
:* I77303d8e535fc1c42e14cfb853814e5c434a81ec
* CommonsMetadata
:* I5e6bc45f9751641e16426231dabcc8277b86fee0

Change-Id: I203852358fc6f7592832e48c562b24c5d9f046f5
2013-10-24 14:06:56 -07:00
Mark Holmquist c9bd8416ec Add whitelistHtml method
Used in source/authour and description patches

Change-Id: Iff17ee74f7a1bcee1c099053a2b15be7fc8bab77
2013-10-24 14:04:51 -07:00
Mark Holmquist 084cbfe7e4 Fetch extended metadata from the API
Depends on:

* core
:* I77303d8e535fc1c42e14cfb853814e5c434a81ec

Change-Id: Ic4700d33e4104783e034903f25a72b8fac2d89b2
2013-10-24 13:41:12 -07:00
jenkins-bot 822018c418 Merge "Only add handlers on image thumbnails" 2013-10-24 20:31:14 +00:00
jenkins-bot 8e82c32b16 Merge "Add remote image repository information to list" 2013-10-24 20:07:32 +00:00
jenkins-bot 69a60f2a4a Merge "Fix interface creation" 2013-10-24 19:44:24 +00:00