Commit graph

2848 commits

Author SHA1 Message Date
jenkins-bot 1f24f820e5 Merge "Use moment.js for date formatting" 2013-11-18 18:45:48 +00:00
Translation updater bot 2e4c68fdce Localisation updates from http://translatewiki.net.
Change-Id: I60966f1264c4f64298454d80a802bb198da4549c
2013-11-17 20:26:07 +00:00
tgr 5d419682f5 Use moment.js for date formatting
Add moment.js ( http://momentjs.com/ ) as a ResourceLoader module
and use it to parse and format date strings. Moment.js seems to be
the least bad option right now; eventually it should be replaced
by i18n functionality in core Javascript modules.

Change-Id: I332655778be3d694781b83fa5dea1e59770d8866
2013-11-15 14:53:45 +00:00
Mark Holmquist 96c4b06858 Rewrite of UI initialization
Split it into a bunch of different functions.

No helper functions because apparently most of my UI code is pretty
unique and not refactorable, or at least not easily.

Change-Id: I8209fd91ec6788c26b8dea26d97c26f8231ddbbf
2013-11-14 21:38:51 +00:00
Mark Holmquist c0c9e7037f ResourceLoader consistency file moves
Keep modules in separate dirs, move images to their module dirs, and fix
up the module declarations so they still work.

Also moved viewer.svg into the root.

Bug: 56421
Change-Id: Ia84ddfd3b91c784c42d9ba243c5cfd46354f139f
2013-11-14 13:38:40 -08:00
Translation updater bot c49e587b60 Localisation updates from http://translatewiki.net.
Change-Id: I0f2d03c6ba13dfabc382b48106f3abb83229b94c
2013-11-14 20:36:11 +00:00
jenkins-bot b8b7aa2e7c Merge "Don't interfere with middle click" 2013-11-13 20:52:40 +00:00
Translation updater bot 682a256b06 Localisation updates from http://translatewiki.net.
Change-Id: I68198a3283df76e6ddf0b2bcc64502d968c33f92
2013-11-13 20:22:48 +00:00
Translation updater bot c94d1215b1 Localisation updates from http://translatewiki.net.
Change-Id: I8689f8113f5df87e6b10e0912487275df72ad331
2013-11-12 20:31:35 +00:00
Ebrahim Byagowi f6e4ba2b20 Don't interfere with middle click
Bug: 56905
Change-Id: Ib612a77e825324f5b262bc757ae3dc4346d8b858
2013-11-12 20:09:47 +00:00
Translation updater bot 7a0efb7bab Localisation updates from http://translatewiki.net.
Change-Id: I2a567434493690311b6f373f8ae07b2bb76d0c7d
2013-11-11 20:19:22 +00:00
Translation updater bot 5b859a3e36 Localisation updates from http://translatewiki.net.
Change-Id: I41b0a4310710eb09d795a037ebc6f21fa272e2fb
2013-11-10 20:28:54 +00:00
Translation updater bot 1e7506b08a Localisation updates from http://translatewiki.net.
Change-Id: I5c7a882820c1114c9b34f7099684f11ac28889fc
2013-11-09 19:12:18 +00:00
Translation updater bot 9b5400dc28 Localisation updates from http://translatewiki.net.
Change-Id: Icc730d5ae160f72443274437c0c74a5fe7052121
2013-11-07 20:21:14 +00:00
Translation updater bot 66e7b5f2a0 Localisation updates from http://translatewiki.net.
Change-Id: I82aeba291f77d80366dd8efa0c7d2d1510c0be8d
2013-11-06 20:47:58 +00:00
jenkins-bot 2ecc736379 Merge "Shorter text for license link" 2013-11-06 16:33:41 +00:00
Translation updater bot 2a9464db64 Localisation updates from http://translatewiki.net.
Change-Id: I653be340fbda50b85316ae8631ca4a9be36b2b1e
2013-11-05 21:07:57 +00:00
tgr b0b0ee726f Shorter text for license link
Bug: 56456
Change-Id: I293122de3eca900962c40e5ee5898e5c29155cb4
2013-11-05 00:15:50 +00:00
jenkins-bot daccf8ce23 Merge "Support for all manner of images" 2013-11-04 21:56:03 +00:00
Mark Holmquist 32a1c2e194 Support for all manner of images
Thumbnails still supported, but we also do categories and galleries,
now!

https://mingle.corp.wikimedia.org/projects/multimedia/cards/57

Change-Id: Ieee973eb165eec3e4cff1f0d387e2c20369e126b
2013-11-04 13:40:31 -08:00
Translation updater bot 601af534de Localisation updates from http://translatewiki.net.
Change-Id: I2d3335e83054a22fcebf74aef0723a5a6aa11ca9
2013-11-04 19:59:51 +00:00
Translation updater bot 5cb29c2e3a Localisation updates from http://translatewiki.net.
Change-Id: Ie8752b10e549694756b25550d215e7dee405cc06
2013-11-03 19:57:06 +00:00
Translation updater bot a179179b06 Localisation updates from http://translatewiki.net.
Change-Id: Ied853f09f9ea7aa13e78e9ee2ada078fc6745f3f
2013-11-02 20:00:11 +00:00
Mark Holmquist 21e4d76ea8 Make description scrollable
The autoEllipsis nonsense wasn't working, this is wayyy better.

Bug: 56145
Change-Id: Iaca83c405969d09c53c09561236a39d82bad7de2
2013-11-01 12:21:37 -07:00
jenkins-bot d0ed247165 Merge "Fullscreen support for IE 11" 2013-11-01 17:27:23 +00:00
Brion Vibber 5d4e12e3b9 Fullscreen support for IE 11
Support "ms"-prefixed fullscreen API in IE 11.

Bug: 56470
Change-Id: I7647433c12314ac34f3fcd6d03e7d4da6893a7ee
2013-11-01 10:06:59 -07:00
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