| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
| |
Change-Id: I34bb289e941751ae4722c708511326a2a5431bfc
|
|
|
|
| |
Change-Id: I52fdc5e5bc64bbe7ea895b9d7106dd3c99b0a908
|
|
|
|
| |
Change-Id: Ic9f254b55d3936f351ba9c7cc3b553544fc63a58
|
|
|
|
|
|
|
| |
Temporarily disable no-var & prefer-const as resulting errors
need to be fixed manually.
Change-Id: I6cb62a2c70a4c1fc265a00b1f18af127ac9d5029
|
|
|
|
|
| |
Bug: T356455
Change-Id: Id0296c6bd464a868a9dc9624a5d4b61f5372fb7b
|
|
|
|
| |
Change-Id: Iddfa574e42e569ac5e2a2b098ad2f11ca80c5955
|
|
|
|
| |
Change-Id: I59199e24efd85240d6a40b288bd06f455d4524d2
|
|
|
|
|
|
|
|
|
| |
* Uses class descriptions for classes and descriptions
for constructors.
* Switch out deprecated "done" function for Promise compatible "then"
Bug: T357164
Change-Id: I6071851a2519638d67954bba5d74260d99237863
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Applying new tokens:
- @background-color-neutral: #eaecf0;
- @background-color-neutral-subtle: #f8f9fa;
… instead of static values.
Also import skin variables and change files to Less where necessary.
Change-Id: I64c9f570fdd36abe5c8d62a98425911ef7b9e6d3
|
|
|
|
|
|
|
|
| |
Various fixes for typos, punctuation, examples, and links
Bug: T360241
Bug: T360475
Change-Id: Ib1061b1cd008b947071dde9900d87fd9e0c9d32c
|
|
|
|
|
|
| |
Follow up to I110c51616e9994338d2de1a53523f4dc291765cd
Change-Id: I77b8d0950b139a01d5c1a72dc23ec034aa1ad148
|
|
|
|
|
|
|
|
|
| |
This converts mw.Upload.Dialog, mw.Upload.BookletLayout,
mw.ForeignStructuredUpload.Bookletlayout, and
mw.widgets.StashedFileWidget.
Bug: T352308
Change-Id: I110c51616e9994338d2de1a53523f4dc291765cd
|
|
|
|
| |
Change-Id: I2aec6bf8b2c5ac9178449016014ae2c80f339825
|
|
|
|
|
| |
Bug: T120821
Change-Id: Ia26c1242c69cba169d3ef600fa435b7280e1fc8a
|
|
|
|
|
|
|
|
|
| |
mw.Upload.BookletLayout and ApiUpload prompt IP users to log in
if they do not have the permission to upload. Show the same
prompt to temporary users if they do not have the permission.
Bug: T331578
Change-Id: Ic35d8277772d69155fe95b24cc028f91b8a366bb
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Now that we've got Codex design tokens available via
'mediawiki.skin.variables.less', let's standardize on them
where applicable. Starting here with all color related, `border-*`,
`border-radius`, `cursor` and `transition` properties.
Replacing or removing deprecated mediawiki.ui variables where possible.
Some replacements are back to static values for now as the new
tokens would result in a different value and the colors might be
wrongly applied. Returning in this few exceptions to the static values
signals a design issue better than before.
Also
- moving one mediawiki.ui variable `size-input-binary` to checkbox and
radio
- syncing checkboxes, radios, inputs and buttons with Codex styles
- putting variables import always first consistently
- removing unnecessary `:hover` `border-color` on button
Bug: T319381
Bug: T332541
Change-Id: Ib38ca0b01bb43b42c5227296b8ff9b2a00ef8616
|
|
|
|
|
|
|
| |
Also remove 'mediawiki.mixins' includes where unused.
Bug: T306488
Change-Id: Ie36ed1feb8382415a8017522404bb8f59437606b
|
|
|
|
|
|
|
|
|
| |
The mediawiki.widgets.StashedFileWidget module was only used as
a dependency of mediawiki.Upload.BookletLayout and thus doesn't
need to exist as its own module.
Bug: T291443
Change-Id: I8cd85516f80cd32f017b7e34c8c26a24d2a0fee5
|
|
|
|
|
|
|
|
|
| |
Previously users had to take the promise from #initialize
and wait for it to resolve. This makes usage simpler by
providing a simple loading page.
Bug: T264441
Change-Id: Ib2e1bd5df9ad2d745e1d55fe267bec966bd2aa87
|
|
|
|
|
|
|
|
|
| |
There was an unintentional breaking change to this API in OOUI in
f70fa9df0 (v0.31.3 / 2019-04-03). It only supports an array of files
now. This fixes uploading by dragging-and-dropping or copy-pasting
an image into VisualEditor editing surface.
Change-Id: I6dcd109c085d2542b0256e37bfbf130c92261e2e
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Given an API response indicating an error, it returns a jQuery object
containing a human-readable error message that you can display
somewhere on the page.
Handling the "real" API responses from the server is easy, since they
already contain the error message and we basically just extract it.
The important part of this patch is handling the issues that happen
on the client, or server-side issues where the error-handling API
code never runs, so we have to figure out what happened and make up
our own error message.
I have not yet seen any mw.Api consumer that handles all the error
cases correctly (I thought VisualEditor did, but in the process of
writing this patch I learned that we missed a few cases there as
well), and most don't even try. This might not be perfect but it
should be the closest thing so far.
The new code is inspired by error handling in VisualEditor (see
I69d9432162f195dcfe9470485b549a1b007617ff) and in mw.Upload.BookletLayout.
New messages:
* 'api-clientside-error-noconnect'
- Adapted from 'apierror-offline' and 'visualeditor-error-noconnect'
* 'api-clientside-error-http'
- Adapted from 'visualeditor-loadwarning' and 'visualeditor-error-http'
* 'api-clientside-error-timeout'
- Copied from 'apierror-timeout'
* 'api-clientside-error-aborted'
- Entirely new
* 'api-clientside-error-invalidresponse'
- Copied from 'visualeditor-error-invalidresponse'
Update some existing code to use it, as an example:
* mediawiki.page.watch.ajax
- Removed messages: 'watcherrortext'
* mediawiki.special.unwatchedPages
- Removed messages: 'watcherrortext'
* mediawiki.action.edit.preview
- (errors were hardcoded in English)
* mediawiki.feedback
- Removed messages: 'feedback-error2', 'feedback-error3'
(error1 and error4 remain, they handle errors not caused by the API)
* mediawiki.Upload.BookletLayout
- Removed messages: 'apierror-timeout', 'apierror-offline', 'apierror-unknownerror'
* mediawiki.page.ready
- Removed messages: 'logout-failed'
* 'mediawiki.page.patrol.ajax
- (the messages are already used by the patrol API)
Example usages in extensions:
* VisualEditor: I69d9432162f195dcfe9470485b549a1b007617ff
* DiscussionTools: Ice92fafb1f546510dab28e3f8aa7d2280668965a
Bug: T240519
Change-Id: Ie18666b41f4aff1ab4bcf93f9df6e3000ac7b500
|
|
|
|
|
| |
Bug: T235502
Change-Id: If77ddf2caf667504bd0f7e0150649745ae31c4e2
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Follows-up Id6d13bbea6:
- '$': mw.loader.implement does this already.
- 'mw': Use the canonical name directly.
This replaces the following patterns:
File closures (common):
- `( function ( $, mw ) {` => `( function () {`
- `( function ( $ ) {` => `( function () {`
- `( function ( mw ) {` => `( function () {`
- `( function ( mw, $ ) {` => `( function () {`
File closures (rare):
- `( function ( mw, $, OO ) {` => `( function () {`
- `( function ( mw, OO, $ ) {` => `( function () {`
- `( function ( mw, document ) {` => `( function () {`
Combined dom-ready and file closure (rare):
- `jQuery( function ( $ ) {` => `$( function () {
- `jQuery( function () {` => `$( function () {
Remaining references in files without a closure, as found by
the new ESLint setting (rare):
- `jQuery` => `$`
- `mediaWiki` => `mw`
Change-Id: I7cf2426cde597259e8c6f3f6f615a1a81a0ca82b
|
|
|
|
| |
Change-Id: Ie3b246fcb064a04bc90fec06f6285306a013a819
|
|
Single-file modules to src/, the remaining as sub directories.
A few highlights:
* mediawiki.Upload.BookletLayout. (stylesheet: no image references)
* mediawiki.feedback - Also move the image to its own images/ subdir.
* mediawiki.searchSuggest. (stylesheet: no image references)
* mediawiki.toc. (stylesheet: no image references)
Also updated any other references to 'src/mediawiki/' that I could find
in core:
* Fixed references in docs/uidesign/*.html
* Remove redundant exclude from jsduck.json.
After this, there are 4 files remaining in src/mediawiki,
which are the 4 files used by the actual 'mediawiki' base module.
Bug: T193826
Change-Id: I8058652892a78b3f5976397bd850741dd5c92427
|