Commit graph

333 commits

Author SHA1 Message Date
Ed Sanders
3314ffcc06 build: Update linters
Change-Id: Ic5ffd9a998e08e09420513114d8f9a89723801f4
2019-10-31 21:47:42 +00:00
Translation updater bot
82e9709602 Localisation updates from https://translatewiki.net.
Change-Id: I50126e0185c3229cce66f131fdee9cf6ed26a172
2019-10-29 08:46:11 +01:00
jenkins-bot
eb1643630d Merge "build: Upgrade stylelint-config-wikimedia to 0.7.0" 2019-10-22 10:24:38 +00:00
James D. Forrester
d12deeb236 build: Upgrade stylelint-config-wikimedia to 0.7.0
Change-Id: I5f7abd5daa28e1833c96734df41a4297ec749302
2019-10-22 10:35:26 +01:00
Daimona Eaytoy
6efe05b0aa build: Bump mediawiki-phan-config to 0.8.0
Change-Id: I4104815380c0ecbd597015389decabd9d4745b9e
2019-10-21 14:01:45 +00:00
jenkins-bot
4fb97e4679 Merge "Remove IE 6 & 7 specific code" 2019-10-16 22:37:00 +00:00
Translation updater bot
cf6ab93360 Localisation updates from https://translatewiki.net.
Change-Id: I46ed139425d2ea91684f6c6e9035273c9d739423
2019-10-16 20:46:56 +02:00
Volker E
cdafe2a796 Remove IE 6 & 7 specific code
Bug: T234582
Change-Id: I3b51005bdc4ce49a534f8fc005f8e5a67b5c39e7
2019-10-13 09:15:38 -07:00
James D. Forrester
7a12fac7a1 build: Upgrade mediawiki-codesniffer to v28.0.0
Change-Id: I99529c096b30e513741c879748125cc56d8a1b51
2019-10-11 11:59:59 -07:00
Ed Sanders
4adb126343 build: Update linters
Change-Id: I83682b6da9cb5d49c9b7153d8c6c31c0e8c2b6f6
2019-10-07 16:44:36 +01:00
Translation updater bot
d3c04ffa3c Localisation updates from https://translatewiki.net.
Change-Id: I91f39c16caa3b0637c67e43749b4888435080bd8
2019-09-26 08:27:38 +02:00
Translation updater bot
1275cfae76 Localisation updates from https://translatewiki.net.
Change-Id: I5c3615fab83d3e1fc2406c03fd83638845efd76f
2019-09-20 08:27:43 +02:00
Translation updater bot
1b0e24bf32 Localisation updates from https://translatewiki.net.
Change-Id: Idaca95ff07c555f0510cf03519a6bea0d9e0233c
2019-09-10 08:48:40 +02:00
libraryupgrader
3f07f757bf build: Updating eslint-utils to 1.4.2
* https://npmjs.com/advisories/1118

Additional changes:
* Added .eslintcache to .gitignore.

Change-Id: Ife5cea42076a36c0a3afe98aa386a8c98bec4a34
2019-08-24 03:06:39 +00:00
jenkins-bot
0b288c7de7 Merge "Style RelatedArticle cards" 2019-08-16 19:52:27 +00:00
Translation updater bot
b87125ad02 Localisation updates from https://translatewiki.net.
Change-Id: If791161ea00e2578e67d2ad823aa06ee7c5b6f41
2019-08-05 08:32:03 +02:00
libraryupgrader
bbcb1ddf99 build: Updating grunt-stylelint to 0.11.1
Change-Id: Id7411b55a054937e9483af964f5913104ca5280f
2019-08-01 06:56:12 +00:00
Translation updater bot
cc0fd5df05 Localisation updates from https://translatewiki.net.
Change-Id: I1b9d975968af3393506df9419fd97ad4d65cfadf
2019-07-29 08:32:25 +02:00
Isarra
a2d4476d12 Style RelatedArticle cards
If RelatedArtcles uses the SkinAfterContent hook (depends-on patch)
and we move the hook out of the main content block (parent patch),
it needs some styles to remain consistent.

Bug: T181242
Change-Id: I9fc00c22fb5e5b7d363455abe9d85062e67c7dfa
Depends-On: Iebd759c0d1a536768d18953f372664df762d9e04
2019-07-26 19:50:24 +00:00
jenkins-bot
6a32ca83c0 Merge "Enhance the 'MonoBookAfterToolbox' hook by passing the class instance to the hook subscribers" 2019-07-21 18:11:17 +00:00
Jack Phoenix
9ade7fcbe6 Enhance the 'MonoBookAfterToolbox' hook by passing the class instance to the hook subscribers
That way hook subscribers can use RequestContext and whatnot instead of having to resort to globals.

Change-Id: I1e4be7156aaea12fef75169bd0216140b9d50388
2019-07-21 18:03:37 +00:00
Translation updater bot
b162339a4a Localisation updates from https://translatewiki.net.
Change-Id: I8dd5724cd88c82af9e94970ece46d18efab00b94
2019-07-17 22:22:56 +02:00
Bartosz Dziewoński
6c53b601f8 Use media queries rather than manual checks for mobile hacks
If the page was long enough to have a vertical scrollbar, the check
for `$( window ).width()` would be incorrect because of the width of
the scrollbar itself. The correct value is `$( window ).outerWidth()`.

But rather than deal with that, we can instead use the API
specifically for matching media queries [1], then copy-paste the
media query from CSS and not have to think about it at all!

[1] https://developer.mozilla.org/en-US/docs/Web/API/Window/matchMedia

Bug: T227916
Change-Id: I79478040620391f5391b10aee52134fde0b88adf
2019-07-12 21:59:26 +02:00
Bartosz Dziewoński
3f52a1796c Fix funny Echo integration when mobile hack kicks in after using the icons
When the icons are clicked for the first time, they are replaced with
a JS interface by Echo code, so don't cache them in a long-lived variable.

Otherwise if the user clicks one of the notification icons, then
resizes the browser to a mobile width, and then resizes it back, we
would insert duplicate Echo icons.

Also rename the temporary variable per conventions.

Bug: T227916
Change-Id: I08f2e3d2e293d727ac4492d1fb6fe2c7c65df4ad
2019-07-12 21:57:12 +02:00
Bartosz Dziewoński
4c4efadf59 When the personal bar doesn't fit, make overflowing links usable
When the personal menu bar is wider than the screen (browser window),
it gets cut off on the left (and the overflowing links slide under the
logo and then off the screen, making it impossible to click them).
This is caused by the `float: right` rule added in 5a7e620. To avoid
this, add `max-width: 100%`, which results in the menu being cut off
on the right again (which lets the user view the overflowing links by
horizontal scrolling).

Bug: T226875
Change-Id: Id4186215cc069f283f8ebeca0db587e1f1369062
2019-07-12 21:30:21 +02:00
MarcoAurelio
664fbbfce9 build: Updated composer dependencies
Change-Id: Ia95b81e3f5639324cd5ee1d038b77be75d49d28c
2019-07-12 15:47:07 +00:00
MarcoAurelio
f4a17ce80e build: Update npm dependencies
eslint-config-wikimedia  0.11.0  →  0.13.1
 grunt-banana-checker      0.7.0  →   0.7.1
 grunt-eslint             21.0.0  →  22.0.0
 grunt-jsonlint            1.1.0  →   2.0.0
 grunt-stylelint          0.10.1  →  0.11.0
 grunt-svgmin              5.0.0  →   6.0.0

Updates also package-lock.json

Change-Id: Iadda9f7b15f5c70819c7b9599af754d9dd1b641b
2019-07-11 22:50:29 +00:00
James D. Forrester
147550142d build: Upgrade phan-taint-check-plugin from 1.5.x to 2.0.1
Add `@param-taint $contents escapes_htmlnoent` annotation to
MonoBookTemplate::getBox(). The method will escape the $contents
parameter if it's an array, but it will not if it's a string; Phan
can't distinguish the types, and assumes it always escapes. Use
escapes_htmlnoent to suppress warnings about double-escaped output.

Change-Id: Id8ef73f2efbe8d4d5510917d55dbac4e41b2b3a1
2019-07-10 17:12:44 +02:00
jenkins-bot
fa1deee55e Merge "Move DataAfterContent outside of main content block" 2019-07-08 21:18:35 +00:00
Isarra
5a7e620ed5 Echo compatibility: use float: right instead of text-align: right
on personal tools

Echo badges, like all OOUI buttons and quite a few other elements,
hide their labels with a negative text indent. This does not work
properly with backwards text alignment (align: right in ltr
scripts). We can achieve the same visual effect as the text-align:
right on the personal tools, however, by floating the entire list
right instead, thus unbreaking the default badge label hiding
method and also rendering the skin more consistent with Vector,
Example, etc.

And this should negate the need for bonkers workarounds.

Bug: T226684
Bug: T226594
Change-Id: I0ed21a78feb1b1298c30b969a1c80a4323e74043
2019-06-28 02:18:17 +00:00
MarcoAurelio
dd06d6e216 Use oojs-ui.styles.icons-alerts
`ext.echo.badgeicons` got removed in was removed in I8218530e.

Bug: T226503
Change-Id: Id4d912fdaedf94dca8c42d64cc1f342f5566e642
2019-06-25 14:29:29 +00:00
Translation updater bot
8cc92e6289 Localisation updates from https://translatewiki.net.
Change-Id: Iebcecca0c02f0c5de619e7ac83f2c3bd4256f1ad
2019-06-23 22:11:21 +02:00
Timo Tijhof
896f88e740 Use array_merge() instead of manual assignment loop
Change-Id: I0acd669658720ec95e724fd91ef41060560b4888
2019-06-20 19:22:42 +00:00
Isarra
c86558a8b4 I have no damn clue!
Change-Id: Icf173be114856897c0663b04c1a4e19aada0e74b
2019-06-20 19:06:08 +00:00
Isarra
1e0aa01470 Move DataAfterContent outside of main content block
Bug: T226199
Change-Id: I367302e528a4df7c4b53c93caa5b4ba2bfd30e33
2019-06-20 17:43:25 +00:00
MarcoAurelio
d9a330bbae build: Update some composer dependencies
Change-Id: Ib12ae38630698830c1f45f15f3bc49a0204c5f76
2019-06-16 11:13:28 +00:00
libraryupgrader
d79dc21f3c build: Updating mediawiki/mediawiki-phan-config to 0.6.1
Change-Id: Iad6356522cfc4d1980005364d5e5ae919fdc3477
2019-06-10 04:40:15 +00:00
libraryupgrader
106030367e build: Updating npm dependencies for security issues
* Updated grunt to 1.0.4, addressing:
  * https://npmjs.com/advisories/788
  * https://npmjs.com/advisories/813
* Updated stylelint-config-wikimedia to 0.6.0, addressing:
  * https://npmjs.com/advisories/786

Committed package-lock.json (T179229) too.

Change-Id: If1b025d8223766073a58e54164c36e663d346676
2019-06-07 18:09:46 +00:00
libraryupgrader
a243d77ce6 build: Updating mediawiki/mediawiki-codesniffer to 26.0.0
Change-Id: I4155fcb3fe280d4f5d46080b9dafd836d9683512
2019-06-07 15:54:14 +00:00
Translation updater bot
d18ffa4779 Localisation updates from https://translatewiki.net.
Change-Id: I9d6bc256cf2223492baacd801bbe485fc162c977
2019-06-06 22:22:13 +02:00
Translation updater bot
bcc8497b45 Localisation updates from https://translatewiki.net.
Change-Id: Ib4036fc581d56d3abb55b7894718a7eb18f107d5
2019-06-02 22:00:57 +02:00
Translation updater bot
58e30f5a92 Localisation updates from https://translatewiki.net.
Change-Id: I018623b3825571634d464ad237598b64975ee3e9
2019-05-30 22:25:01 +02:00
Translation updater bot
e577ec8b9f Localisation updates from https://translatewiki.net.
Change-Id: Icdfa6b85a5098f7da92e06b8a37c43fb2ced38d8
2019-05-23 22:42:28 +02:00
James D. Forrester
f8b08d09d3 build: Upgrade mediawiki/mediawiki-phan-config from 0.5.0 to 0.6.0
Change-Id: Ic32748529c65b8e75fbb93cd88c0fd70edaeaf6d
2019-05-19 18:59:48 +00:00
Jack Phoenix
1bb0c40a49 Remove last references to the long-gone CSS classes .editExternally and .editExternallyHelp
See core commit 1890f315a2d756b9fa31856f59437ade8aafea7a for the full explanation, but tl,dr: these classes haven't been used since 2005.

Change-Id: I52d7facccce955da9f66102b657a0e3627904167
2019-04-21 00:05:04 +03:00
Translation updater bot
770529238a Localisation updates from https://translatewiki.net.
Change-Id: I5c5765061822d0069cb1e1f512165ab618b08c32
2019-04-14 22:03:34 +02:00
Volker E
7698e737bf Remove list-style-image fallback treatment for non-SVG browsers
Bug: T220327
Change-Id: I421716a8d964be4676a82b39446dd78ac78b7fba
2019-04-07 23:15:31 -07:00
Kunal Mehta
1c67fac1b4 Upgrade to newer phan
Change-Id: Idb1940b42d85afb80422c4f10a50942464c3afba
2019-03-20 19:43:14 -07:00
Ed Sanders
244bc6b050 build: Update eslint-config-wikimedia to 0.11.0
Change-Id: I408ff717768a00de74868b52d390dcc4b3269bcd
2019-03-13 22:57:00 +00:00
Translation updater bot
6a9a3764a5 Localisation updates from https://translatewiki.net.
Change-Id: I23beb11b1b06d4862bc4cb4f0f8c78474cf52210
2019-03-05 22:09:55 +01:00