Commit graph

2818 commits

Author SHA1 Message Date
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
Translation updater bot fbed87fa48 Localisation updates from https://translatewiki.net.
Change-Id: I13fa4529156b81021f169c51b97f0e4245b0d600
2017-10-06 22:42:35 +02:00
Translation updater bot 0f4e7adbdc Localisation updates from https://translatewiki.net.
Change-Id: Ib2859bf786271cd4a7360524562be30a97c3c726
2017-10-05 22:44:47 +02:00
Translation updater bot 4be3dbfe67 Localisation updates from https://translatewiki.net.
Change-Id: Ie30ec263f005b978e838b61313aae1766a198d09
2017-10-04 22:44:54 +02:00
Translation updater bot b3a0a94092 Localisation updates from https://translatewiki.net.
Change-Id: I0d563cb8ec38ea453e82cb50e37608b90abd96d4
2017-10-02 22:56:36 +02:00
Translation updater bot b9a0d60eca Localisation updates from https://translatewiki.net.
Change-Id: I543968228b6530cc9a31a9ce61ddc398acf812ee
2017-10-01 22:34:10 +02:00
Translation updater bot bca4e8d9aa Localisation updates from https://translatewiki.net.
Change-Id: I6718224ceab583017e1878d593184d9ba08672fa
2017-09-30 22:47:55 +02:00
Gergő Tisza bbe174bca8 Display warning for licence/attribution problems
Bug: T76030
Bug: T71389
Bug: T71557
Change-Id: I38c1548a0de6cfd3a48db7efd7502a99f168d4a5
2017-09-28 15:34:30 +02:00
Gergő Tisza eca337e62f Add functions to display/remove a warning in the dialogs
Adds setWarning(<element>,...) and clearWarning() to mw.mmv.ui.Dialog.
These functions can be used to display a warning ribbon with the given
text in the reuse dialogs, typically when the copyright status of the
file is problematic (e.g. non-free or tagged with {{wrong licence}}).

Bug: T76030
Bug: T71389
Bug: T71557
Change-Id: I7c477c810d391578ec64635357eda97a85ab2954
2017-09-28 12:45:17 +00:00
Arseny Kravchenko 92c6578ce3 Update for $wgMediaViewerEnableByDefault
To be consistent with $wgDefaultUserOptions logic

Migration of bugzilla bug id to maniphest

Bug: T148492
Change-Id: Ie371a0c2445c9aededb5c9e26018d19cbd616358
Depends-On: If53a735458703f0bd2c094349edf86f38f05ccd7
2017-09-25 15:00:25 -05:00
Translation updater bot 149dada123 Localisation updates from https://translatewiki.net.
Change-Id: I35883857d4409d4d0f627640444e6b8f345900e3
2017-09-24 22:48:08 +02:00
libraryupgrader 882c047fad build: Updating mediawiki/mediawiki-codesniffer to 13.0.0
Change-Id: I982115b5aa22e4f2b66c6353a5fb8aa37f342e13
2017-09-24 05:29:42 +00:00
Translation updater bot f5a9d86e59 Localisation updates from https://translatewiki.net.
Change-Id: I82e6eb1dfcc1b0f931719ef125944383d8f8aa3a
2017-09-23 22:43:26 +02:00
Ed Sanders 2156f3f485 Remove jquery.scrollTo library
This is an old library that is broken in Chrome 61.
Rather than updating it we can just use $(window).scrollTop/Left
which works in all the browsers we currently support.

Fix MPSP.toggle to return a promise, instead of a deferred
(although this return value is not used yet).

Bug: T173618
Change-Id: Iaec56debbb808bd95cf65c1ebfe22bdf0116da68
2017-09-14 12:45:46 +01:00
Translation updater bot 663f410c2e Localisation updates from https://translatewiki.net.
Change-Id: I47e1e654d11758ce22916baa3b7b51832aab62cc
2017-09-10 22:35:04 +02:00
Translation updater bot 3d07cfe68e Localisation updates from https://translatewiki.net.
Change-Id: Ifc7c931528a8d7e4beaa1317597af28cbd58c452
2017-09-09 22:39:42 +02:00
Translation updater bot 22441cadfc Localisation updates from https://translatewiki.net.
Change-Id: I7b3927b193db9d9e2e2b2f9c780387b76c1d75e0
2017-09-04 22:39:15 +02:00
Translation updater bot 6a3e224a28 Localisation updates from https://translatewiki.net.
Change-Id: Idcc36ea4d30549f34f9d84ce52b83eb463dd141b
2017-09-03 22:25:48 +02:00