Commit graph

320 commits

Author SHA1 Message Date
James D. Forrester
e7e607e807 Update OOjs UI to v0.21.4
Release notes:
 https://phabricator.wikimedia.org/diffusion/GOJU/browse/master/History.md;v0.21.4

Depends-On: I676c9aadbf4739437b94ec729cc4fe47ed19c886
Change-Id: Ie9f8e42c46948688495cbd80e778b484c7b03982
2017-05-16 23:34:01 +01:00
Volker E
adf31f97d4 Update OOjs UI to v0.21.3
Release notes:
 https://phabricator.wikimedia.org/diffusion/GOJU/browse/master/History.md;v0.21.3

Change-Id: I53696e023197ae4dd85605d6615e9faceda05398
2017-05-09 18:21:26 -07:00
Timo Tijhof
9f3bec98c3 jquery.ui: Avoid deprecated jQuery.expr[":"]
Compatible with jQuery 1.11 and 3.x, as jQuery.expr.pseudos was
introduced in jQuery 1.8.

Note that this is not blocking jQuery 3 (T124742) since it is
covered by jQuery Migrate. But fixing this makes the edit page less
noisy by default.

Change-Id: I7ffbfd2e55aa7dcc31860eb0117b203e63ca7283
2017-05-05 16:39:16 -07:00
Volker E
580d8de9b1 Update OOjs UI to v0.21.2
Release notes:
 https://phabricator.wikimedia.org/diffusion/GOJU/browse/master/History.md;v0.21.2

Change-Id: Id7cae80a4f3d84ea5d50003f2409537b307c0c58
2017-04-25 18:28:38 -07:00
James D. Forrester
8d4cda3ce5 HACK: Temporarily patch OOjs UI locally to work around upstream problem
Applied upstream in Ic11b981e70e3.

Bug: T163358
Change-Id: If8c26ffe5095e4e8c2f206c9dda1981bccba2b62
2017-04-19 11:25:22 -07:00
James D. Forrester
e169d184c9 Update OOjs UI to v0.21.1
Release notes:
 https://phabricator.wikimedia.org/diffusion/GOJU/browse/master/History.md;v0.21.1

Depends-On: I5edcf21effee760d9951965a152481f2c603b59b
Change-Id: I5edcf21effee760d9951965a152481f2c603b5b9
2017-04-18 16:41:08 -07:00
Timo Tijhof
bf69459d50 Upgrade to jQuery v3
Source code:
 https://code.jquery.com/jquery-3.2.1.js
 https://code.jquery.com/jquery-migrate-3.0.0.js

Documentation:
 https://blog.jquery.com/2016/06/09/jquery-3-0-final-released/
 https://jquery.com/upgrade-guide/3.0/

This is not a breaking change because jQuery Migrate covers
all breaking changes.

However some extensions (especially unit tests) may've relied
on undocumented behaviour. For that reason, and due to unresolved
upsteam issues this is still behind a feature flag for now.

It is true by default to ensure this has wide exposure to discover
issues as quickly as possible. If this is not resolved before
the end of the 1.29 release cycle it should be turned off again.

Bug: T124742
Change-Id: I3c3dedaa9a9d449eaa2b7e5d24b4540e7fa421c0
2017-04-12 21:07:37 -07:00
Volker E
2d3367238e Update OOjs UI to v0.21.0
Release notes:
 https://phabricator.wikimedia.org/diffusion/GOJU/browse/master/History.md;v0.21.0

Change-Id: I94d5b7a89551e7d34d53223872ad3005f0ac4a04
2017-04-11 16:41:59 -07:00
James D. Forrester
532b982fe7 Update OOjs to v2.0.0
Release notes:
 https://phabricator.wikimedia.org/diffusion/GOJS/browse/master/History.md;v2.0.0

Change-Id: I5bbc3e0ec7c4789c6b476c0fb039e0292027c014
2017-04-05 08:42:26 -07:00
James D. Forrester
09fcee6110 startup: Drop JavaScript support for ES3-only browsers
Bug: T128115
Change-Id: I95400637d1b85d2c607cd91bcb39ce21733295c8
2017-04-03 19:04:08 -07:00
Volker E
ff22b6aff8 Update OOjs UI to v0.20.2
Release notes:
 https://phabricator.wikimedia.org/diffusion/GOJU/browse/master/History.md;v0.20.2

Change-Id: Ib79bda91982de97425b6a025b18299ec8693255d
2017-03-30 14:40:56 -07:00
Volker E
5df9a27b27 Update OOjs UI to v0.20.1
Release notes:
 https://phabricator.wikimedia.org/diffusion/GOJU/browse/master/History.md;v0.20.1

Depends-On: I9b50eee459085eaa00819cbabe340ac442a332bd
Change-Id: I9b50eee459085eaa00819cbabe340ac442a332db
2017-03-29 19:44:37 +00:00
jenkins-bot
71883474cf Merge "Update OOjs UI to v0.20.0" 2017-03-21 20:02:30 +00:00
Timo Tijhof
a866197cf7 jquery.ui: Add previously undocumented changes in PATCHES
Change-Id: I8d9561916820212842f87fa2306ff7474b268173
2017-03-15 16:52:31 -07:00
Volker E
f4d122ce53 Update OOjs UI to v0.20.0
Release notes:
 https://phabricator.wikimedia.org/diffusion/GOJU/browse/master/History.md;v0.20.0

Change-Id: I10ef5d85fcfae3a0b22b07a8a5ed3ae3e2d51288
2017-03-15 10:33:46 -07:00
Volker E
44565fa7b9 Update OOjs UI to v0.19.5
Release notes:
 https://phabricator.wikimedia.org/diffusion/GOJU/browse/master/History.md;v0.19.5

Change-Id: Ic15534df2f4006b94d1161a91e2d689f96892073
2017-03-07 15:26:57 -08:00
Volker E
36cd338271 Update OOjs UI to v0.19.4
Release notes:
 https://phabricator.wikimedia.org/diffusion/GOJU/browse/master/History.md;v0.19.4

Change-Id: Ifa1c6cb355a0c4f5073c93e37939cfc2f6653c81
2017-02-28 15:53:58 -08:00
Volker E
d969a58e74 Update OOjs UI to v0.19.2
Release notes:
 https://phabricator.wikimedia.org/diffusion/GOJU/browse/master/History.md;v0.19.2

Depends-On: If351020ee7f29d038eeea8258e0bd607c4134060
Change-Id: I2dbc0fb49cb500f8a378b5f9c8175fd1dabebf17
2017-02-16 00:59:40 +00:00
James D. Forrester
f13a0d9521 resources: Bump moment.js from 2.8.4 to 2.15.0
Languages and locales now with support:
* aeb-arab
* dv
* fy
* gd
* jv
* kk-cyrl
* ky
* lo
* ms
* pa
* se
* si
* ss
* sw
* te
* zh-hk

Skipped languages because we don't support them in MW:
* ar-ly
* en-ie
* en-nz
* es-do
* fr-ch
* me
* tlh
* tzl

Change-Id: I7f89569c6ee6640d368af1378e84c5a9e725da0d
2017-02-08 20:17:46 +00:00
Volker E
0993a9f442 Update OOjs UI to v0.19.1
Release notes:
 https://phabricator.wikimedia.org/diffusion/GOJU/browse/master/History.md;v0.19.1

Change-Id: I6ef09c5285f89feee040a894785c02dab728e6ad
2017-02-07 16:50:58 -08:00
Volker E
dd46ccf3fa Update OOjs UI to v0.19.0
Release notes:
 https://phabricator.wikimedia.org/diffusion/GOJU/browse/master/History.md;v0.19.0

Change-Id: I56c43ff1b49631d0e4c477a72d3e7cdd9d46c4c9
2017-02-01 15:30:46 -08:00
WMDE-Fisch
71e11de2a3 Fix positioning error with draggable, revert and grid
This minor change fixes an error when using draggable revert and grid.

Since upgrading of jQuery UI probably won't happen in the near future [1]
I looked for another way to fix the issue.

See [2]. Unlike stated in the second comment adding the lines below
won't fix the bug. Moving the lines up fixed the issue.

See also the description of the bug in [3].

[1] https://phabricator.wikimedia.org/T71386
[2] https://bugs.jqueryui.com/ticket/4696
[3] https://phabricator.wikimedia.org/T140965#2944610

Bug: T140965
Change-Id: Ib0f386c6a2447740f44591be70c34cf4a83b88c4
2017-01-30 14:03:00 +01:00
James D. Forrester
4fa09f5bc8 resources: Update OOjs UI with fixes on top of v0.18.4 (master)
Cherry-picked fixes:

* be46e1773cd0f6b04510c325054d49835714b5f3
* 629389a777b35d131289a12cecf986e52ff65534
* 92dcdcf5351f6d499624d247b2a3ebff66346aca
* f991c382ce3dd80ed3498bb09e81885b94f8795e

Bug: T155711
Bug: T155728
Change-Id: I741db3a17eec812b50b4befcc7eba603943b759c
2017-01-19 12:43:12 -08:00
James D. Forrester
58d61a7248 Update OOjs UI to v0.18.4
Release notes:
 https://phabricator.wikimedia.org/diffusion/GOJU/browse/master/History.md;v0.18.4

Change-Id: I09eacfe7597b26e33ef50e606afcee0cefca1d1c
2017-01-17 16:12:07 -08:00
James D. Forrester
6cf6b03ba7 Update OOjs UI to v0.18.3
Release notes:
 https://phabricator.wikimedia.org/diffusion/GOJU/browse/master/History.md;v0.18.3

Change-Id: I8f26c0024d44dd2bac2c19c869254a7154c4103e
2017-01-03 16:27:21 -08:00
Volker E
44164181fc Update OOjs UI to v0.18.2
Release notes:
 https://phabricator.wikimedia.org/diffusion/GOJU/browse/master/History.md;v0.18.2

Change-Id: Id08147e9015fc68a882733268a2bf860dd1ccb27
2016-12-06 15:42:12 -08:00
Bartosz Dziewoński
60f50ff59e OOjs UI: Backport I73f95965694ec7fb0fa9a474742286e1105e5c85
Bug: T151061
Change-Id: I715d2ac077c5a6f9de420d90f19ef4b631168f26
2016-12-05 01:01:37 +00:00
James D. Forrester
b47fbb4fde Update OOjs UI to v0.18.1
Release notes:
 https://phabricator.wikimedia.org/diffusion/GOJU/browse/master/History.md;v0.18.1

Change-Id: I5fe3129c9ccf3fa20494b5934bca7487d8d36879
2016-11-29 16:12:08 -08:00
Timo Tijhof
99aad9397e Upgrade QUnit from v1.22.0 to v1.23.1
Source
 https://code.jquery.com/qunit/qunit-1.23.1.js
 https://code.jquery.com/qunit/qunit-1.23.1.css

Changelog
 https://github.com/qunitjs/qunit/blob/1.23.1/History.md

Change-Id: I03b4e1de699ef9f33a8db3dec605c8e32f823a93
2016-11-28 19:18:32 -08:00
Peter Hedenskog
fd5c3b5817 Remove JSON polyfill, deprecate 'json' module
All A-graded browsers now supports JSON so skip the
JSON polyfill. Krinkle investigated the current
status for 3 months on Wikimedia traffic (T141344#2784065)
with support being nearly 100%.

Bug: T141344
Change-Id: I8280faf1cbcd876ead2dafae4347b7d46e3e2acb
2016-11-22 23:28:19 +00:00
James D. Forrester
291f2c0519 Update OOjs UI to v0.18.0
Release notes:
 https://phabricator.wikimedia.org/diffusion/GOJU/browse/master/History.md;v0.18.0

Change-Id: I2b8ef74e090c10a0abc0938e2f3e51ebe3553a6b
Depends-On: I791df74d96b82d53530a365281407704ad1bd122
2016-11-09 11:56:28 +00:00
James D. Forrester
5dc0cc4082 Update OOjs UI to v0.17.10
Release notes:
 https://phabricator.wikimedia.org/diffusion/GOJU/browse/master/History.md;v0.17.10

Change-Id: I4faf83e301417ef5721a81a4a69890854e6c266b
2016-10-03 12:01:38 -07:00
James D. Forrester
2a00a6e256 OOjs UI: FieldsetLayout: Styling fixes for <legend> labels
[Backport from OOjs UI master as this fixes a significant regression.]

* Make the `<legend>` 'display: inline-table' rather than 'table'.
  A block-level table would push down elements that follow it,
  including the "help" icon, which in turn messed up the fields.
  Fixes T145682, T145678 and first half of T145680.
* Only style .oo-ui-labelElement-label with margin and padding
  if we have the .oo-ui-labelElement class (label is not empty).
  Fixes second half of T145680.

Follow-up to 9cf8b941a9c618f1d7ba2512508f576f70116e1e.

Bug: T145682
Bug: T145678
Bug: T145680
Change-Id: Id95f4167afa6c000d6d2fa2ad7a62b65b6d4d53b
2016-09-19 08:41:44 -07:00
jenkins-bot
597a2063db Merge "momentjs: Hack around bug in node/browser compat wrapper in locale files" 2016-09-13 21:58:58 +00:00
James D. Forrester
8e33e2b66d Update OOjs UI to v0.17.9
Release notes:
 https://phabricator.wikimedia.org/diffusion/GOJU/browse/master/History.md;v0.17.9

Change-Id: Ibe5ba723888646f48ab4be9b88bc7a16ee0ae054
2016-09-13 11:48:05 -07:00
Ed Sanders
0f05bb3a01 Follow-up dfd0464: Remove LICENSE.txt for deleted library 'phpjs-sha1'
Change-Id: Ia4bbd23c2e78eea9277dc8b1ade8bd3345559c9a
2016-09-12 20:54:34 +00:00
Roan Kattouw
939c85ac7f momentjs: Hack around bug in node/browser compat wrapper in locale files
If there is an element with id="global" on the page,
typeof global !== 'undefined' is true, but global.moment will
still be undefined and shouldn't be used.

For now, comment out the wrapper and just use 'this'.
We should look into upgrading to momentjs 2.14 where this bug is fixed.

Bug: T145382
Change-Id: Ia6e3b46e42248a5ee3c61c5fcda7d020d012e89e
2016-09-12 11:50:34 -07:00
James D. Forrester
d7e368ac0e Update OOjs UI to v0.17.8
Release notes:
 https://phabricator.wikimedia.org/diffusion/GOJU/browse/master/History.md;v0.17.8

Change-Id: I03793872885c70cabd1abd550b12d89e6e509e94
2016-08-16 14:22:47 -07:00
James D. Forrester
46708622dd Update OOjs UI to v0.17.7
Release notes:
 https://phabricator.wikimedia.org/diffusion/GOJU/browse/master/History.md;v0.17.7

Change-Id: I0f36a3485a75ad0346eef9ae98aa47eddb099faf
2016-08-03 09:41:35 -07:00
James D. Forrester
f77036a73a Update OOjs UI to v0.17.6
Release notes:
 https://phabricator.wikimedia.org/diffusion/GOJU/browse/master/History.md;v0.17.6

Change-Id: I82b26aa68c7402346c449cafb3f6ec9b772bc5c6
2016-07-12 13:30:06 -07:00
Ori Livneh
dfd046412f resourceloader: Replace SHA1 with 32-bit FNV-1 as hash function
SHA-1 is not secure enough to be used as a cryptographic hash function, and its
implementation in JavaScript is too long and too slow for it to be a good
general-purpose hash function. And we currently throw away most of the work:
SHA-1 produces 160-bit hash values, of which we keep 48.

Although the JavaScript implementation is not exported, SHA-1 is a well-known
hash function, and I'm willing to bet that sooner or later someone will move to
make it accessible to other modules, at which point usage will start to spread.

For ResourceLoader, the qualities we're looking for in a hash function are:

* Already implemented in PHP
* Easy to implement in JavaScript
* Fast
* Collision-resistant

The requirement that hashes be cheap to compute in JavaScript narrows the field
to 32-bit hash functions, because in JavaScript bitwise operators treat their
operands as 32 bits, and arithmetic uses double-precision floats, which have a
total precision of 53 bits. It's possible to work around these limitations, but
it's a lot of extra work.

The best match I found is the 32-bit variant of FNV-1, which is available in
PHP as of version 5.4 (as 'fnv1a32'). The fnv132 JavaScript function is
around ten times faster and eight times shorter than sha1.

Change-Id: I1e4fb08d17948538d96f241b2464d594fdc14578
2016-07-05 21:14:03 +00:00
James D. Forrester
b3bddf938e Update OOjs UI to v0.17.5
Release notes:
 https://phabricator.wikimedia.org/diffusion/GOJU/browse/master/History.md;v0.17.5

Change-Id: I17caee666b1d1cc2da670e073ef57122a66ecfc6
2016-06-29 14:32:06 +01:00
James D. Forrester
c57fd3008f Update OOjs UI to v0.17.4
Release notes:
 https://phabricator.wikimedia.org/diffusion/GOJU/browse/master/History.md;v0.17.4

Change-Id: I35019c565ec1d72fde0b69f217cab8d73ce441a4
2016-05-31 14:55:25 -07:00
James D. Forrester
eebe27de8f Update es5-shim to v4.5.8
Project site
* https://github.com/es-shims/es5-shim

File source
* https://github.com/es-shims/es5-shim/tree/v4.5.8

Changelog
* https://github.com/es-shims/es5-shim/blob/v4.5.8/CHANGES

Change-Id: I4a6a703d7db00d7eaaeb1365c1c19f3ae055c440
2016-05-25 15:03:20 +00:00
James D. Forrester
71889d72c9 Update OOjs UI to v0.17.3
Release notes:
 https://phabricator.wikimedia.org/diffusion/GOJU/browse/master/History.md;v0.17.3

Change-Id: I3fe38754c18a83554593479ea1b01f8a60144435
2016-05-25 02:33:04 +02:00
James D. Forrester
505cc11af4 Update OOjs UI to v0.17.2
Release notes:
 https://phabricator.wikimedia.org/diffusion/GOJU/browse/master/History.md;v0.17.2

Change-Id: I8e8101e3284c69f8fa6edf142f4cf84efff65e09
2016-05-10 16:06:27 -07:00
jenkins-bot
2e6c378bcd Merge "Introduce mediawiki.router for handling hash fragment navigation" 2016-05-05 19:47:22 +00:00
jdlrobson
7bacc11bd7 Introduce mediawiki.router for handling hash fragment navigation
Add a generic barebones Router class to core to allow registration of
routes in a central place and deal with potential clashes in future.

See patches making use of the router:
- Kartographer extension I456a4582a67e31533d51d5817d0f4af57528c35e
- mediawiki.special.preference If7cb76e362464943df20598bd09fd341574756c4

Bug: T114007
Change-Id: I4295db446eac7cf24a3ed89edfa9eefa5cb34b73
2016-05-05 15:34:53 -04:00
James D. Forrester
4e691f2c5f Update OOjs UI to v0.17.1
Release notes:
 https://phabricator.wikimedia.org/diffusion/GOJU/browse/master/History.md;v0.17.1

Change-Id: I6175a5d788f71f5d07efeabe54aca6335fce4766
2016-05-03 19:09:42 -04:00
James D. Forrester
841efe7274 Update OOjs UI to v0.17.0
Release notes:
 https://git.wikimedia.org/blob/oojs%2Fui.git/v0.17.0/History.md

Change-Id: Ie7864c1a7f9f79caa5909fb14345fa054713b49d
2016-04-26 14:48:42 -07:00