Commit graph

2085 commits

Author SHA1 Message Date
Kunal Mehta 405639a809 Use SPDX 3.0 license identifier
SPDX released version 3 of their license list (<https://spdx.org/licenses/>),
which changed the FSF licenses to explicitly end in -only or -or-later
instead of relying on an easy to miss + symbol.

Bug: T183858
Change-Id: I5524242867f06a0812fc5b455997208e11540fae
2018-03-02 15:26:41 -08:00
Prateek Saxena b6136712a4 Use findSelectedItem instead of getSelectedItem
Bug: T76630
Depends-on: I0f1d9c1f31efcc10d3647103548770d2101050d9
Change-Id: Id81bbe7b0daf104484272e05730e16f495cfd0e1
2018-02-27 15:34:10 +00:00
Translation updater bot f7d9576c89 Localisation updates from https://translatewiki.net.
Change-Id: I5cd768f07014d6d99859b5f0256cdac1272a6a22
2018-02-26 22:20:40 +01:00
libraryupgrader ba58f12e86 build: Updating mediawiki/mediawiki-codesniffer to 16.0.1
Change-Id: I2972569d061bf33198cf6396cf79fbbac43f7a10
2018-02-25 09:53:17 +00:00
Translation updater bot e95bf8caf7 Localisation updates from https://translatewiki.net.
Change-Id: I3e5f5dd46d9320f431877e48029fc3c6d945b6eb
2018-02-23 23:01:43 +01:00
Translation updater bot 2ab09badce Localisation updates from https://translatewiki.net.
Change-Id: Ib2601d7595e48e67eb8c1ae265824b52c29a4091
2018-02-22 23:22:15 +01:00
Translation updater bot cfd1939914 Localisation updates from https://translatewiki.net.
Change-Id: Iacf61b5f232703786ed1b3d3586fb9ab57303bdd
2018-02-18 22:40:54 +01:00
libraryupgrader 7240a2d8c7 build: Updating mediawiki/minus-x to 0.3.1
Change-Id: I4b6f2d7f77c1a00c1c290b25c58df2acb3422cd1
2018-02-18 04:46:45 +00:00
Translation updater bot a2984b1c0b Localisation updates from https://translatewiki.net.
Change-Id: I20ce8149312ec6196f5c9d7b625ca5cd87cc0725
2018-02-16 22:29:22 +01:00
libraryupgrader 096c181f03 build: Updating mediawiki/mediawiki-codesniffer to 16.0.0
Change-Id: Id20549d8dee62b1283e176f386a03c6d8e481530
2018-02-15 12:49:16 +00:00
Derk-Jan Hartman 340e7680a1 MMV: Allow <sub> and <sup> in captions
As we already allow visual markup in captions, I see no reason to not
whitelist sup and sub. These elements are even allowed in the
displaytitle whitelist for articles, so seems appropriate to have them
for media captions as well.

Bug: T186844
Change-Id: I4339ee85d139301770a4e15650c9dc0d64c136cd
2018-02-09 10:34:53 +01:00
jenkins-bot 1657e4241e Merge "Use saveOption from 'mediawiki.api.options'" 2018-02-09 00:18:05 +00:00
Volker E b81f6393aa Remove special color treatment of close icon on confirmation
Removing arbitrary close confirmation color treatment with green.
We don't feature such treatment anywhere else, nor are we planning
to do. Let's remove it.

Bug: T50067
Change-Id: Ia597a51cd9c5ca057720c720b1e3
2018-02-05 15:29:29 +05:30
Fomafix 61581fa905 Use saveOption from 'mediawiki.api.options'
Change-Id: I33a60cbaf10f5d53a4e49f335ce8f16d108f9dfb
2018-02-03 16:37:21 +01:00
Translation updater bot 6f1bd995da Localisation updates from https://translatewiki.net.
Change-Id: I0e023f7b85a26085d92b5cc52d97b9bc96fff036
2018-01-26 22:36:41 +01:00
jenkins-bot cfdd3cc79a Merge "Bring SVGO optimization to build step" 2018-01-25 01:49:53 +00:00
jenkins-bot 0d0b4cdf81 Merge "Unify SVG markup" 2018-01-25 01:35:12 +00:00
Volker E d1f416278a Bring SVGO optimization to build step
Enabling SVGO automation with conservative plugin set, among those:
- disable cleanupIDs, removeDesc, removeTitle, removeViewBox &
  removeXMLProcInst and
- don't use multipass,
- enable removeRasterImages and sortAttrs

Bug: T185596
Change-Id: Ic13afb6e1cbc4d26af7a100cb7a916619fb4158e
2018-01-24 00:27:53 -08:00
Volker E 268e1406d4 Unify SVG markup
Align SVG markup across Foundation products by:
- unifying XML declaration,
- removing unnecessary `standalone="no"` attribute as it's default,
- removing unnecessary `enable-background` attribute as it got removed
  from standard
- removing all SVG editor metadata
- adding `width` and `height` attributes where missing,
- removing all `g` group elements except where necessary for transforms,
- putting attributes on `path`,
- removing unnecessary ids and
- unifying whitespace.

Also
- changing 'expand' and 'gear' icon colors to resemble general button style,
- while at this renaming 'gear_gray' to 'gear' including CSS reference,
- slightly adapt remaining colors to WikimediaUI color palette and
- deleting unused, unreferenced icon files.

Saving up to 79% file size before gzipping.

Bug: T178867
Change-Id: I9e54a3a972903811f5205def05397383f3484d63
2018-01-23 23:59:28 -08:00
Volker E 8a8d8277af Use “OOUI” as unified name in code comments
Bug: T182360
Change-Id: I20e85bf4d5ef55797b5be59ae1772f791d504ade
2018-01-17 00:16:54 -08:00
Translation updater bot a9ee3eff43 Localisation updates from https://translatewiki.net.
Change-Id: I214aaea5da9e3bc5fcba39c1605121d19723ec9a
2018-01-09 22:29:42 +01:00
Translation updater bot e67966e363 Localisation updates from https://translatewiki.net.
Change-Id: I9518a758a0881355fe15cf0a148da27f82cf4842
2018-01-07 22:47:21 +01:00
Translation updater bot e887469bad Localisation updates from https://translatewiki.net.
Change-Id: Iaa297a9a8269e151e26a42e7d8b672c3fa0080fe
2018-01-05 09:22:46 +01:00
Umherirrender 3ba186ef42 build: Updating mediawiki/mediawiki-codesniffer to 15.0.0
Change-Id: I801c7f79af38f5ecf4e1ed07841386e9fab36f6b
2017-12-30 23:42:47 +01:00
Translation updater bot 69e5023a20 Localisation updates from https://translatewiki.net.
Change-Id: I14470ba610767c015a83ea9611c5edf9b94adb84
2017-12-29 10:06:37 +01:00
Translation updater bot 241636c689 Localisation updates from https://translatewiki.net.
Change-Id: I8cbf7e68474ea2541fd09a440567dab4f4f4e462
2017-12-27 10:31:19 +01:00
Translation updater bot 9411a64d42 Localisation updates from https://translatewiki.net.
Change-Id: I14afef5cc836990b05e2f7a929304e731dfb1d43
2017-12-23 22:27:05 +01:00
Translation updater bot 5a2e5d1061 Localisation updates from https://translatewiki.net.
Change-Id: I49c4cd1bd7359fd7ca3bf68e8e7ba097a25aec61
2017-12-18 23:06:47 +01:00
libraryupgrader 46d4ceca28 build: Updating mediawiki/minus-x to 0.2.1
Change-Id: I6739285b1d64e672e3203c5e0d9356f625c34593
2017-12-11 00:19:45 +00:00
Hashar 55d2d11dab Merge "Update RuboCop Ruby gem" 2017-12-08 10:53:54 +00:00
Translation updater bot 0597c9eead Localisation updates from https://translatewiki.net.
Change-Id: Ie7561daa3443486b5c1d8e27c88c56e05dfc4424
2017-12-05 09:41:13 +01:00
Željko Filipin 817c4a759d Update RuboCop Ruby gem
Bug: T180878
Change-Id: I2f559ded2f029bda8ba8bc2d87054330643bac09
2017-12-04 16:53:35 +01:00
Gergő Tisza db3975fb1a Fix title detection on file pages
Media Viewer tries to detect the file name from the thumbnail name.
That can break for the main image of a file page, which is normally
a preview (ie. a normal thumbnail) but for unhandled types it can
be some asset (such as a PDF icon).

Bug: T137477
Change-Id: Ie6b23d7ef213087971b320460129910f2efd248e
2017-11-27 14:23:51 +01:00
Translation updater bot 4e513e8122 Localisation updates from https://translatewiki.net.
Change-Id: If5929897a3cd72904171d9fb557499532ba04c2a
2017-11-26 22:41:38 +01:00
Umherirrender 1f153df6d2 build: Always exclude vendor and node_modules
Change-Id: I40a46de7388d6c48762c3d9452fd3341354015a0
2017-11-12 00:25:39 +01:00
jenkins-bot 580dc91ba3 Merge "build: Adding MinusX" 2017-11-04 00:33:55 +00:00
Kunal Mehta 9a778e93d0 build: Adding MinusX
Change-Id: Ia8ef35fb534bb7e22bbb94270d08e055225526a6
2017-11-03 17:19:13 -07:00
Translation updater bot 5c37bd1d56 Localisation updates from https://translatewiki.net.
Change-Id: Ic28194a2738e7f643dccb5df035f6f8b39c45c1b
2017-11-03 22:35:58 +01:00
James D. Forrester 61febc07e3 Follow-up 3e5ad4c8: Fix jsduck for introduction of mw.storage
Change-Id: I1aebfa88fb6fc567c035cb47f2a71d88e23f2827
2017-10-31 12:41:21 -07:00
Ed Sanders 42b577bae9 build: Update linters
Change-Id: I7262fb369df0428c39adaf55128b83f019afb4c0
2017-10-31 18:42:04 +00:00
Translation updater bot 3d3a574c92 Localisation updates from https://translatewiki.net.
Change-Id: I10a0b33e6fb414ebbf252deb79f8694961c7678d
2017-10-22 22:41:08 +02:00
libraryupgrader e0b5000a37 build: Updating mediawiki/mediawiki-codesniffer to 14.1.0
And moved phpcs.xml to .phpcs.xml (T177256).

Change-Id: I79c2828e8b73dc0c8d5724c894a0cbf258d4cb48
2017-10-21 04:26:41 +00:00
Translation updater bot d15cdfe764 Localisation updates from https://translatewiki.net.
Change-Id: I838e2a864d2f3a8e93419cf2df93a5fe69f6e5a0
2017-10-20 22:41:07 +02:00
jenkins-bot a71ff2e318 Merge "Use User::getDefaultOptions instead of wgDefaultUserOptions" 2017-10-19 15:06:05 +00:00
Translation updater bot eb86d66931 Localisation updates from https://translatewiki.net.
Change-Id: Ied04afe4aa2ea2b3cda589d29a2a4f24ee254a1d
2017-10-17 22:51:12 +02:00
Matthias Mullie 51baec14a3 Use User::getDefaultOptions instead of wgDefaultUserOptions
multimediaviewer-enable default option does not exist in
$wgDefaultUserOptions, but is added in a UserGetDefaultOptions
hook callback.

User::getDefaultOptions will trigger that hook (and merge it
with $wgDefaultUserOptions), so that's the result that should
be used to figure out the value for multimediaviewer-enable.

Bug: T166058
Change-Id: Ib16a779430886305582dfce7db6600edd87ace11
2017-10-17 14:21:34 +02:00
Translation updater bot b360693984 Localisation updates from https://translatewiki.net.
Change-Id: I993a1b12ce421bba9c3d8460822d78cf116e9112
2017-10-13 22:44:55 +02:00
Translation updater bot a39647a247 Localisation updates from https://translatewiki.net.
Change-Id: I50f56d442c57ac81d211105139d8df45cfdc4a14
2017-10-11 23:03:42 +02:00
Umherirrender 08e52cb05d Improve some parameter docs
Change-Id: Id84edc2b38bf94724817e0b119aa27ea11341acb
2017-10-07 20:18:15 +00:00
Umherirrender 590c6cdf32 Allow https in test regex
Test failure from jenkins:
https://integration.wikimedia.org/ci/job/mwext-mw-selenium-jessie/6608/console
   Background:                             # features/mmv.download.feature:4
     Given I am viewing an image using MMV # features/step_definitions/mmv_steps.rb:21
       expected "https://creativecommons.org/licenses/by-sa/3.0" to match /^http:\/\/creativecommons.org\/licenses\/by-sa\/3.0$/
       Diff:
       @@ -1,2 +1,2 @@
       -/^http:\/\/creativecommons.org\/licenses\/by-sa\/3.0$/
       +"https://creativecommons.org/licenses/by-sa/3.0"
        (RSpec::Expectations::ExpectationNotMetError)
       ./features/step_definitions/mmv_steps.rb:126:in `check_elements_in_viewer_for_image2'
       ./features/step_definitions/mmv_steps.rb:73:in `block (2 levels) in <top (required)>'
       ./features/step_definitions/mmv_steps.rb:70:in `/^the image metadata and the image itself should be there$/'
       ./features/step_definitions/mmv_steps.rb:25:in `/^I am viewing an image using MMV$/'
       features/mmv.download.feature:5:in `Given I am viewing an image using MMV'
 
   Scenario: Download menu can be opened   # features/mmv.download.feature:7
     When I click the download icon        # features/step_definitions/mmv_download_steps.rb:8
     Then the download menu should appear  # features/step_definitions/mmv_download_steps.rb:54

Change-Id: I6feda65ca8ff2bc8f790eaaac8f63e1feafcbdfd
2017-10-07 20:17:55 +00:00