aboutsummaryrefslogtreecommitdiffstats
path: root/maintenance/resources
Commit message (Collapse)AuthorAgeFilesLines
* Follow-up f9b4bbff: Fix typo'ed variable nameJames D. Forrester2016-05-031-1/+1
| | | | Change-Id: Ied52bbaa8d9b8e15470a99cd45ebef0c43c5dd69
* oojs/oojs-ui: Swap to using Phabricator for the links to release notesChad Horohoe2016-04-292-2/+2
| | | | Change-Id: I6bc1caa02673615f6fab539cec0c8de36958dd63
* resources: Load OOjs UI from its four partsBartosz Dziewoński2016-02-031-3/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | 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
* resources: Add OOjs UI's Apex theme's filesBartosz Dziewoński2015-05-231-1/+6
| | | | | | Currently not used, but there are big plans for them! Change-Id: Iaa0e82a3ebda4665c5eafac5167c8912e82199d4
* maintenance/resources: Enable 'set -e' and 'set -u' in bash scriptsTimo Tijhof2015-04-292-31/+41
| | | | | | | | | | * 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
* Use ResourceLoaderImageModule to serve icons for OOjs UIBartosz Dziewoński2015-04-281-12/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* Resources: Use OOjs UI distribution with vector→raster fallbackBartosz Dziewoński2015-02-181-0/+3
| | | | | Bug: T87501 Change-Id: Iff139bf2601d517d91f922c033f1e3e793757943
* maintenance: Have update-oojs-ui.sh update composer.json tooJames D. Forrester2015-01-101-1/+5
| | | | Change-Id: Ifa37c9dcd136051c5ab8967f7ba1e490a5aa7861
* maintenance: Don't copy the Apex styles when importing OOjs UIJames D. Forrester2014-12-191-3/+9
| | | | | | Also remove the existing ones. Change-Id: I60450f5ce3d8e5b1136f9ffa3557aaf3687ca814
* Maintenance: Simplify reading of package.json by using require()Timo Tijhof2014-11-252-2/+2
| | | | Change-Id: Ifdee4733527cca8353cb9b59d6079939fdd7309e
* Maintainance: Update OOjs UI pull-through script to use release versionsJames D. Forrester2014-11-252-69/+32
| | | | | | | Fetch from npm repository instead of from local git clone. Matching the update-oojs.sh script. Change-Id: I9e441064be2e28daaf55435e783a0318358bb565
* update-oojs-ui.sh: Exclude the minimised distribution filesJames D. Forrester2014-09-211-2/+2
| | | | | | | Introduced by Ic8f8194. Also removing unneeded exclusion of non-existant unthemed CSS file after Ieb27c3fd. Change-Id: Ib0293695764ac32b8aac3be7c4f37b72cbd72561
* Merge "resources: Switch oojs to the version optimised for environments with ↵jenkins-bot2014-07-231-1/+1
|\ | | | | | | jQuery"
| * resources: Switch oojs to the version optimised for environments with jQueryJames D. Forrester2014-07-231-1/+1
| | | | | | | | Change-Id: Ic8cc04c2e89203825efe64ecc3c91d0cae0b2daa
* | Revert "maintenance: Update comment in the OOjs UI pull through script"Catrope2014-07-221-4/+2
|/ | | | | | | | | 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
* maintenance: Update comment in the OOjs UI pull through scriptJames D. Forrester2014-07-211-2/+4
| | | | | | Follows-up I05967ab7. Change-Id: Ibbdb77f720a22cd087e3a1d18d92748bb63069e4
* oojs update scripts: Use quotes to prevent globbing and word splittingTimo Tijhof2014-07-202-16/+16
| | | | Change-Id: I69a0782fafbf2e8ce943ab819ccba83ac3e92f71
* maintenance: Exclude OOjs UI's new RTL built CSS files from the pull-throughJames D. Forrester2014-07-111-1/+1
| | | | Change-Id: I05967ab737afa76e92f98292cd95dd20c607678f
* Follow-up I81663929: Use grunt git-build to ensure we get the hashJames D. Forrester2014-06-271-1/+1
| | | | Change-Id: Idd140a9027ad4f1891e139c83b19de33f4a19d23
* maintenance: Simpler OOjs UI pullthrough-scriptJames D. Forrester2014-06-271-4/+2
| | | | | | | No need to run grunt test, given that the grunt build from npm install will suffice for our needs. Change-Id: I816639290874e4962d5dac7d580d314e3bd1cb16
* update-oojs-ui.sh: Replace target dir instead of adding file copiesTimo Tijhof2014-04-191-0/+97
| | | | | | | | | | | | | | | | | | | | | * 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
* oojs-update.sh: Replace target dir instead of adding file copiesTimo Tijhof2014-04-191-13/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | * 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
* update-oojs.sh: Rewrite to fetch from npm repo instead of building from gitTimo Tijhof2014-04-071-0/+51
* 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