Commit graph

2075 commits

Author SHA1 Message Date
Timo Tijhof c35519b5af Avoid parsing and re-encoding ct-options in categoryTree.js
Follows-up 680cdd688a, which accessed the data attribute
using data() instead of attr(), making it thus be parsed as JSON,
only to be re-encoded with JSON.stringify().

I considered to instead change the 'wgCategoryTreePageCategoryOptions'
mw.config var to not be double-encoded as JSON, but concluded
it actually makes sense the way it is. Right now the options are,
from the client-side perspective, considered to be a blackbox string
set on either a link attribute, or in an mw.config key, and are
to be passed as-is (in whatever format) to the 'options' parameter
of the API module.

At least until we need these values on the client (which we don't right now)
it makes more sense not to have any js for decoding and re-coding.

Change-Id: I1e1e02a13d7a5293c9ae2e0ec61575ddb7a1f286
2018-02-20 04:27:15 +00:00
Translation updater bot 43ac7014e0 Localisation updates from https://translatewiki.net.
Change-Id: I2a9f7fc5318c6d70e8c1b692853a7ebd40882dda
2018-02-18 22:40:12 +01:00
Translation updater bot 5e0fa431d0 Localisation updates from https://translatewiki.net.
Change-Id: I400fdce9cc9f9a18e3d846cdbe4221656ebc35dd
2018-02-17 22:27:20 +01:00
libraryupgrader fbabf98e4c build: Updating mediawiki/minus-x to 0.3.1
Change-Id: I62590392ec877a2fcfbaf4aa4e4338ba2035e298
2018-02-17 19:13:27 +00:00
Timo Tijhof 38babc1011 Set visibility of CategoryTree::encodeOptions() as protected
Not referenced anywhere in Wikimedia Git, except for the one
method that uses it, in the same class here.

Also:
* Set explicit 'public' visibility of getOptionsAsJsStructure().
* Avoid use of !is_null().
* Avoid assignment in ternary.

Change-Id: I71d2a247e001b7f7f4f52546e8167a79d873076e
2018-02-16 19:30:51 -08:00
Translation updater bot 600caa9505 Localisation updates from https://translatewiki.net.
Change-Id: Id6cadf010704208753dcb656e2f32112cfb6f652
2018-02-16 22:28:55 +01:00
libraryupgrader c598422ad8 build: Updating mediawiki/mediawiki-codesniffer to 16.0.0
Change-Id: Ia9838601a37c93ac36811cb72f0f81ed1c332b5e
2018-02-15 09:00:51 +00:00
James D. Forrester 120b01696b build: Bump devDependencies to latest
eslint-config-wikimedia      0.4.0  →   0.5.0
 grunt                        1.0.1  →   1.0.2
 grunt-banana-checker         0.5.0  →   0.6.0
 grunt-eslint                19.0.0  →  20.1.0
 grunt-jsonlint               1.0.8  →   1.1.0
 grunt-stylelint              0.6.0  →   0.9.0
 stylelint                    7.8.0  →   8.2.0
 stylelint-config-wikimedia   0.4.1  →   0.4.2

Change-Id: Id081b31764ae923486031255cc5f24bfd6601782
2018-02-14 09:21:40 -08:00
Tulsi Bhagat 9e98b1c4a5 Removed deprecated position statements from resource loader module
Bug: T184257
Change-Id: Ib8c741b7eef50deb79ae2bc0d71c913077f95df7
2018-02-12 12:18:17 +00:00
Translation updater bot ca3e357dd3 Localisation updates from https://translatewiki.net.
Change-Id: I6c46aa8050232d607fba5968db6eb4092d789fc1
2018-02-11 10:42:00 +01:00
Kunal Mehta 8e51ea4e3a Move classes into includes/
Change-Id: I308523aa764594798d72974fb79e19aef6c3f342
2018-02-08 22:23:07 -08:00
Translation updater bot 9bb35aba53 Localisation updates from https://translatewiki.net.
Change-Id: I7f37bd2051dcb50d242e2b78cd473e6061a71506
2018-02-07 22:17:16 +01:00
Translation updater bot 067edb8e85 Localisation updates from https://translatewiki.net.
Change-Id: I6bc39d6aaf9c5be8e9014b387e229a39861264cc
2018-02-06 22:35:20 +01:00
Translation updater bot c412f63032 Localisation updates from https://translatewiki.net.
Change-Id: I8a8e723dd18dfbe234e42bc57fcb1d78f3dc2d36
2018-02-04 22:43:24 +01:00
Translation updater bot 80549b1c37 Localisation updates from https://translatewiki.net.
Change-Id: Ib65029e67b906939fc1b1bb1082bbb0385d26b9b
2018-01-31 22:19:53 +01:00
Translation updater bot bfd88aa921 Localisation updates from https://translatewiki.net.
Change-Id: Id05db2b7104d8322b7b9baf6def4a315180699f7
2018-01-26 22:36:26 +01:00
Translation updater bot 62310fc4d5 Localisation updates from https://translatewiki.net.
Change-Id: I55d397d4fd4ed1d2cf11479d17a52717d7a26084
2018-01-24 22:20:40 +01:00
Translation updater bot e29f966e66 Localisation updates from https://translatewiki.net.
Change-Id: I0d85f72a60d0c575fe30a9fd5cee73a598f2c0a2
2018-01-21 22:17:03 +01:00
Translation updater bot daa7f84ccb Localisation updates from https://translatewiki.net.
Change-Id: Ie3e9626e9da12036a7d289d77001ab0bfb3c2ddc
2018-01-20 14:42:25 +01:00
Translation updater bot 2f0ad135d6 Localisation updates from https://translatewiki.net.
Change-Id: Ie74c2168adb55704e9ff5f3152a029ead1572325
2018-01-16 22:49:16 +01:00
Translation updater bot 44ff499091 Localisation updates from https://translatewiki.net.
Change-Id: I774654699909aecc8e19392542ab9ef3316bc4eb
2018-01-07 22:46:56 +01:00
jenkins-bot 39989bed01 Merge "Use SPDX 3.0 license identifier" 2018-01-06 08:41:37 +00:00
Translation updater bot 6e9691f5db Localisation updates from https://translatewiki.net.
Change-Id: I47cf89c5830d1f2cd17b689413130e1f07d278b7
2018-01-05 09:21:23 +01:00
Kunal Mehta 525a4121ec Use SPDX 3.0 license identifier
SPDX released version 3 of their license list (<https://spdx.org/licenses/>),
which changed the FSF licenses to explicitly end in -only or -or-later
instead of relying on an easy to miss + symbol.

Bug: T183858
Change-Id: Ie7dda5637ce63abd241cfca73ee37b3d014d2efb
2018-01-04 02:52:36 -08:00
libraryupgrader c2208e3cfa build: Updating mediawiki/mediawiki-codesniffer to 15.0.0
The following sniffs are failing and were disabled:
* Squiz.Scope.MethodScope.Missing

Change-Id: Id35b841091974031c033371646cbca0fb5891d59
2017-12-29 23:24:48 +00:00
Translation updater bot 632c5fd56f Localisation updates from https://translatewiki.net.
Change-Id: I59a06965057822815a4cdb33e03a1693e59c7fe3
2017-12-27 10:30:50 +01:00
Translation updater bot d63380b8e2 Localisation updates from https://translatewiki.net.
Change-Id: Ic3dd344d5bcad712709fa329d6c93b37898e8a2a
2017-12-18 23:06:08 +01:00
Dolfinus 23b2dd947f Add MobileFrontend support
Bug: T171767
Change-Id: I302876cd8fee451ad75e3e84a4d951edd324ff28
2017-12-18 21:09:08 +01:00
Translation updater bot 5a1ff11e73 Localisation updates from https://translatewiki.net.
Change-Id: I74f9648bb3db7ea8b089ab9a77a39103eaefef00
2017-12-17 22:25:50 +01:00
Umherirrender 1f1defc070 Split CategoryPageSubclass.php into two files
Makes MediaWiki.Files.OneClassPerFile.MultipleFound pass


Change-Id: Ic4d064272a5297e33b1edc090b807937cfb06545
2017-12-16 13:03:29 +01:00
Translation updater bot 15cb0defc6 Localisation updates from https://translatewiki.net.
Change-Id: I5f8ed3921897b7cd097f3a76ea03666f5e65ec52
2017-12-12 22:52:41 +01:00
Translation updater bot 072df0b27f Localisation updates from https://translatewiki.net.
Change-Id: I319580fef1397203289bc0668c6d06ec06dae632
2017-12-10 22:33:04 +01:00
libraryupgrader d0423c514b build: Updating mediawiki/minus-x to 0.2.1
Change-Id: I7a2e3fcf40e9204d5fb4974be831c336367c3cd0
2017-12-10 02:29:18 +00:00
Translation updater bot d786e87110 Localisation updates from https://translatewiki.net.
Change-Id: I7f2c2d6b396a39c2719118619ce14e7fd700c9f4
2017-12-05 09:40:03 +01:00
Translation updater bot db698fc98a Localisation updates from https://translatewiki.net.
Change-Id: I097cdeb7e8db831b0cf8722b04dc6b527b2b97ef
2017-11-28 22:23:57 +01:00
Translation updater bot c004b656a9 Localisation updates from https://translatewiki.net.
Change-Id: I445073b91f6b255b36df0eae153f860eeff8d234
2017-11-24 23:01:58 +01:00
Translation updater bot 9d83232a4c Localisation updates from https://translatewiki.net.
Change-Id: Iacf899b9d8cd86d02c08ae2f805ac1d0a45bf3db
2017-11-18 22:36:27 +01:00
Translation updater bot ea4b893f19 Localisation updates from https://translatewiki.net.
Change-Id: I45dc6003ced0136872b819fd2cb190ecfa093aed
2017-11-17 22:37:06 +01:00
Translation updater bot a731748ccc Localisation updates from https://translatewiki.net.
Change-Id: I9e249de51ebf248eb628072d0a736a772cb27ab5
2017-11-11 22:30:14 +01:00
Umherirrender fac5a558cf build: Always exclude node_modules
Change-Id: I85763f25045b994f5ca39948160c471b6065d4d6
2017-11-11 14:42:42 +01:00
Translation updater bot cbba91bd93 Localisation updates from https://translatewiki.net.
Change-Id: I813377d7151b9bc7c19d8daf55f0c8d81a8be737
2017-11-07 22:28:01 +01:00
Translation updater bot 9d9a769f59 Localisation updates from https://translatewiki.net.
Change-Id: I6314d12b87549bbc85527f595c50e4bac80e5bd3
2017-11-06 22:46:00 +01:00
Kunal Mehta 3920063fe3 build: Adding MinusX
Change-Id: I7b0d06e3920983800ce49e832f3187a1e1cfa60d
2017-11-02 18:22:48 -07:00
Translation updater bot 9e9ac0ced3 Localisation updates from https://translatewiki.net.
Change-Id: I85b714d6624a34badee4d452036f07dda8eeb7df
2017-11-02 22:43:20 +01:00
Translation updater bot 0a28873df9 Localisation updates from https://translatewiki.net.
Change-Id: I23e9dd185dd844e4ae7550c49213a939e1adfad9
2017-10-31 22:21:26 +01:00
Translation updater bot 2a9850d7af Localisation updates from https://translatewiki.net.
Change-Id: I57c9c2ec9d5362c8f7d131dcf61403ca853be23f
2017-10-25 22:33:09 +02:00
Translation updater bot 507aa5b093 Localisation updates from https://translatewiki.net.
Change-Id: Ief8f72dcb00b9f554d75b0407e92800e83d32bdc
2017-10-22 22:27:34 +02:00
libraryupgrader 5f83f7d305 build: Updating mediawiki/mediawiki-codesniffer to 14.1.0
And moved phpcs.xml to .phpcs.xml (T177256).

Change-Id: I20923b6389ac83b6b4ae7100557765bfbba6e75c
2017-10-21 04:17:48 +00:00
Translation updater bot d4506718f1 Localisation updates from https://translatewiki.net.
Change-Id: I982862e8c89c37c53f9ba0f18e1198f5f0ce9c8c
2017-10-20 22:26:25 +02:00
Translation updater bot d935eb00b1 Localisation updates from https://translatewiki.net.
Change-Id: If2708ac6e6fb47af9e5c99b1ca9d74cb67d2fed1
2017-10-18 22:24:00 +02:00