| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
| |
Change-Id: Ied52bbaa8d9b8e15470a99cd45ebef0c43c5dd69
|
|
|
|
| |
Change-Id: I6bc1caa02673615f6fab539cec0c8de36958dd63
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
See the task for more details. This is a backwards-compatible change.
If your script only needs a subset of OOjs UI functionality, you can
use one of the new smaller modules instead of the old big one.
New modules:
oojs-ui-core
The core JavaScript library.
oojs-ui-widgets
Additional widgets and layouts module.
oojs-ui-toolbars
Toolbar and tools module.
oojs-ui-windows
Windows and dialogs module.
Changed modules:
oojs-ui.styles
Now correctly only loads the styles needed by OOjs UI PHP.
oojs-ui
Now just loads core+widgets+toolbars+windows as dependencies.
Using the new modules in I58799e22f9c0a2f78c1b4a02c4b7af576157883a.
Bug: T113677
Change-Id: I0a3bf8fb25fb82325705a473cebd883e20b3ab8d
|
|
|
|
|
|
| |
Currently not used, but there are big plans for them!
Change-Id: Iaa0e82a3ebda4665c5eafac5167c8912e82199d4
|
|
|
|
|
|
|
|
|
|
| |
* set -e: Abort on error.
* set -u: Emit error for undefined variables.
This removes the need for endless "&&"-chains and easy-to-forget
"|| exit 1" statements.
Change-Id: I41a1c0d1bd57b5e241b83224096d32876fd913af
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Benefits:
* Full per-language icons support. Icons that differ for each language
(such as the 'Bold' icon) will now always display correctly
according to user interface language, even on old browsers.
* MediaWiki UI icons support. When the 'mediawiki.ui.icon' module is
loaded, you can use syntaxes such as below to display any OOUI icons
(from the packs that were loaded) without involving OOUI itself.
<div class="mw-ui-icon mw-ui-icon-before mw-ui-icon-check">OK</div>
<div class="mw-ui-icon mw-ui-icon-after mw-ui-icon-check">OK</div>
<div class="mw-ui-icon mw-ui-icon-element mw-ui-icon-check">OK</div>
Summary of changes:
* Resources.php:
* Remove icons CSS files. Include image data JSON files instead.
* Split the images from 'oojs-ui.styles' module to separate ones.
* OutputPage: Update enableOOUI() method for newly split modules.
* ResourceLoaderImageModule: Make it possible to load image data from
a JSON file.
* update-oojs-ui.sh: Copy source files rather than distribution for
icon packs.
This is not an improvement when it comes to code quality, though :(
Issues include some nasty code duplication, using "source code" (image
definitions) from OOUI rather than just distribution files, and hacky
methods to load image data from JSON files live.
Bug: T92551
Change-Id: Id369ecaec7048dcf68ba1e4df748362760533782
|
|
|
|
|
| |
Bug: T87501
Change-Id: Iff139bf2601d517d91f922c033f1e3e793757943
|
|
|
|
| |
Change-Id: Ifa37c9dcd136051c5ab8967f7ba1e490a5aa7861
|
|
|
|
|
|
| |
Also remove the existing ones.
Change-Id: I60450f5ce3d8e5b1136f9ffa3557aaf3687ca814
|
|
|
|
| |
Change-Id: Ifdee4733527cca8353cb9b59d6079939fdd7309e
|
|
|
|
|
|
|
| |
Fetch from npm repository instead of from local git clone.
Matching the update-oojs.sh script.
Change-Id: I9e441064be2e28daaf55435e783a0318358bb565
|
|
|
|
|
|
|
| |
Introduced by Ic8f8194. Also removing unneeded exclusion of non-existant
unthemed CSS file after Ieb27c3fd.
Change-Id: Ib0293695764ac32b8aac3be7c4f37b72cbd72561
|
|\
| |
| |
| | |
jQuery"
|
| |
| |
| |
| | |
Change-Id: Ic8cc04c2e89203825efe64ecc3c91d0cae0b2daa
|
|/
|
|
|
|
|
|
|
| |
You can't put a comment in the middle of a command split
across multiple lines, it terminates the command.
This reverts commit 3cc4314faaf852417771a86380104bd68cc31b96.
Change-Id: If5889f84033366c62c4924511997b5e6a108cfab
|
|
|
|
|
|
| |
Follows-up I05967ab7.
Change-Id: Ibbdb77f720a22cd087e3a1d18d92748bb63069e4
|
|
|
|
| |
Change-Id: I69a0782fafbf2e8ce943ab819ccba83ac3e92f71
|
|
|
|
| |
Change-Id: I05967ab737afa76e92f98292cd95dd20c607678f
|
|
|
|
| |
Change-Id: Idd140a9027ad4f1891e139c83b19de33f4a19d23
|
|
|
|
|
|
|
| |
No need to run grunt test, given that the grunt build from npm install will
suffice for our needs.
Change-Id: I816639290874e4962d5dac7d580d314e3bd1cb16
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* A command like "cp dist/* $TARGET_DIR" does not remove files
that were deleted in the release dist. Using rsync instead.
* Use bash -n or -z instead of "" and "x$VAR" == "x" tricks.
* The "git commit <dir>" doesn't properly take care of staging
deletion of files removed by the update script, nor does it
reliably (?) stage new files.
Instead using a combination of "git add -u <dir>" (The -u
stages deletion and modifcation of tracked files), and
"git add <dir>" (stages modification and creation of files in
that directory).
* Use "grunt test" instead of "grunt <default>" to make more
explicit what is going on (no change in behaviour, default=test).
And document why we don't use plain grunt-build without tests.
Change-Id: Id97a66df64d9e43e3c05388486b9f959108363c1
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* A command like "cp dist/* $TARGET_DIR" does not remove files
that were deleted in the release dist. Using rsync instead.
Though addition can happen, deletion should never happen as we
refer to these files in Resources.php. But we also shouldn't
leave behind old files mixed with new files, so delete them.
Our structure unit tests for resources take care of catching
references to files that don't (or no longer) exist.
* Use bash -n instead of != "".
* Refactor slightly to make it re-usable in other projects without
too much modification (only REPO_DIR and TARGET_DIR need updating,
the rest is generic now).
* The "git commit <dir>" doesn't properly take care of staging
deletion of files removed by the update script, nor does it
reliably (?) stage new files.
Instead using a combination of "git add -u <dir>" (The -u
stages deletion and modifcation of tracked files), and
"git add <dir>" (stages modification and creation of files in
that directory).
Change-Id: Ieb20978c887c5a141f31cab704b8d239f1572af0
|
|
* Fetch upstream build from npm repository instead of building it locally
from git (to avoid different timestamps and checksums not matching, no
need for MediaWiki code to know how to build a oojs distribution).
* Ran it which changed the oojs.js file slightly (it now contains the file
as released on npmjs.org instead of the local build by the person who
last updated it in mediawiki).
Follows-up:
* 648667a - Split up resources/ into resources/lib/ and resources/src/
* c68b967 - Add scripts to generate update builds of OOjs
Change-Id: I63f79293e21781c1db3d7c43658c22f58ba9102d
|