Commit graph

1193 commits

Author SHA1 Message Date
Reedy 443d8b6988 Type hint for $wgParser
Change-Id: I91356be31d1ed7a9e4dd1efd140c55a9d91cbc1e
2017-04-04 01:04:36 +01:00
Reedy a71b44a8b9 array() -> []
Remove invalid "returns bool always true" comments

Remove return true from other hooks too, update their comments

Check for WikiEditor in a nicer way

Change-Id: I694e3b25f20e35cfc55ba269977047a9c52a2fca
2017-04-01 16:09:25 +01:00
Ed Sanders 02c22f53ff Styling fixes
* Move CSS out of mediawiki.css which is for wikitext
  highlighting rules.
* Account for wikieditor-ui adding wrappers even when
  disabled.

Change-Id: I0fca693a6771ee1d790800c9afd5c7091fda20c1
2017-03-27 14:02:25 +01:00
Pavel Astakhov 29fa173331 Fix CodeMirror state when initializing
Before CodeMirror was enabled every time (ignoring user settings)
since switchCodeMirror was called in initialisation and some others bugs...

Change-Id: I418c64000e05dbfac62f5bb2327cfe7ed74efb17
2017-03-27 14:23:21 +06:00
Kaldari a0be6aabf2 "Syntax highlight" should be two words in English, not one
Change-Id: I499a85e6eecde51cba4562be0e60cf2dd4b9bb93
2017-03-26 22:58:56 -07:00
Kaldari fe11d52eaa Explicitly declare mediawiki.api.options module dependency
Change-Id: Ie1915e6c0d0671d7f3327d0ad80542ca967dab98
2017-03-26 22:26:49 -07:00
Ed Sanders 3980fa0af0 Cleanup and use SVG icons
Change-Id: Idcad8e2554c5e44155c88bd925186095e3aad930
2017-03-27 02:59:13 +00:00
jenkins-bot 47b8f19d8e Merge "Switching fixes" 2017-03-27 02:54:23 +00:00
jenkins-bot 1512e38c4e Merge "Only give code mirror focus for specific commands" 2017-03-27 02:54:23 +00:00
jenkins-bot eaac96c5e1 Merge "Update CodeMirror to 5.25.0" 2017-03-22 21:57:42 +00:00
Ed Sanders 806527d8a1 Switching fixes
* Fix state toggle in WikiEditor
* Update options API code
* Fix font-size and line-height so text doesn't move
* Append to WikiEditor after loading so it appends in
  correct part of DOM.
* Only add border in classic editor

Change-Id: I5e80298030633d4859d01a92b6c61ef1fa969e96
2017-03-22 11:48:41 +00:00
Ed Sanders 53c64371dd Only give code mirror focus for specific commands
Previously focus was being called even for getContents, causing the
editor to instantly steal focus from the edit summary input (!!).

Change-Id: I5a14850d90a7c5605026e1fac192585ee62b4615
2017-03-22 11:48:41 +00:00
Ed Sanders 66ba217ba2 build: Replace jshint/jscs with eslint, introduce stylelint
Change-Id: I9b5afb39f5a0d32e722b2a1f56c219b8c85b451c
2017-03-21 16:45:56 +00:00
Ed Sanders 75ca882e38 Update CodeMirror to 5.25.0
Change-Id: I47680ba98e1ab39360608aa7a923e7fee7db615e
2017-03-21 15:05:52 +00:00
Translation updater bot a6427ea4c9 Localisation updates from https://translatewiki.net.
Change-Id: I638e2874cd250fdd8ec5e9aaf75666d69250796f
2017-02-24 22:23:06 +01:00
Translation updater bot 9be3cc30ff Localisation updates from https://translatewiki.net.
Change-Id: I9d3f89ca7a6702b06a33e2a18671c38a81c532b9
2016-12-12 22:21:57 +01:00
Translation updater bot f81b41bd70 Localisation updates from https://translatewiki.net.
Change-Id: I5ec3edc69ab95c0dcf47ed9dca43950f56e4f932
2016-10-28 22:37:52 +02:00
Chad Horohoe 0601c77b1b Whoops, track not trace
Change-Id: I4e8cf846f960ae213a864ecb1de5699ba64e0baf
2016-10-24 17:02:17 -07:00
Chad Horohoe c56c4b64f6 Swapping defaultbranch for trace
The former is a maintenance nightmare when branching.

Bug:T146293
Change-Id: I5dfcd77b0093c2341bfe919e274b8cb8355ec579
2016-10-24 16:37:15 -07:00
Translation updater bot 9c84fc90fc Localisation updates from https://translatewiki.net.
Change-Id: Iac5c1ee9f9389f6b702405c3b9d6daae87d4a3f3
2016-10-15 22:59:22 +02:00
Translation updater bot 5b4407fbc0 Localisation updates from https://translatewiki.net.
Change-Id: I3135ed7c726eecf1b70a4525e37dfca1e84969f0
2016-10-13 22:45:46 +02:00
Translation updater bot 24917c2652 Localisation updates from https://translatewiki.net.
Change-Id: I3a10fa47c42f2ece20614e160848db49523fe51e
2016-10-09 22:45:25 +02:00
Pavel Astakhov faf7246cd4 Update CodeMirror library to version 5.16.0
Change-Id: Iae9df045d0e897e03b3edcb935188731e019811f
2016-07-19 17:05:52 +06:00
Pavel Astakhov 339e677bee Remove usage of mod function
Change-Id: Id84d85318ef498b4aa8fcbe073b8bc8a8c8c7ed7
2016-07-19 16:31:35 +06:00
Translation updater bot 1175e15299 Localisation updates from https://translatewiki.net.
Change-Id: Id1f6d2837f01ff2cfb0d450ffe9c36dad99d3b14
2016-03-28 22:39:05 +02:00
Paladox 45ebd2d55d Update Jenkins tests
Test jshint and jscs through npm using latest version of jscs and jshint.

Add support for composer.json running phplint and in the future php code
sniffer.

Change-Id: Id8f11f9414fae8313dc18a857a07e11694354dcb
2016-03-03 13:29:48 +00:00
Legoktm bf5da5eec5 Revert "Compress PNGs with zopflipng"
This reverts commit a64a74ce7d.

Change-Id: Ifc03d61aabc711bde030f3e013669edc8f07a6b2
2016-02-27 23:32:49 +00:00
Ori Livneh a64a74ce7d Compress PNGs with zopflipng
Zopfli is the most efficient DEFLATE compression algorithm, trading run-time
performance for file sizes that are typically 3-8% smaller than those produced
by zlib with the maximum compression setting. Its output is Deflate-compatible,
so no specialized decoder is needed.

This change was created by running zopflipng against all the PNG files in this
repository. The exact invocation was:

  git ls-files --exclude-per-directory=.gitignore -- '*.png' \|
    parallel zopflipng -m -y {} {} \;

Files which zopflipng was not able to compress more efficiently were left unmodified.

Bug: T127608
Change-Id: I765f876aa2cf863479f93912efe387160b4ef348
2016-02-21 00:59:49 +00:00
Ori Livneh a97494e94e Compress PNGs with zopflipng
Zopfli is the most efficient DEFLATE compression algorithm, trading run-time
performance for file sizes that are typically 3-8% smaller than those produced
by zlib with the maximum compression setting. Its output is Deflate-compatible,
so no specialized decoder is needed.

This change was created by running zopflipng against all the PNG files in this
repository. The exact invocation was:

  git ls-files --exclude-per-directory=.gitignore -- '*.png' \|
    parallel zopflipng -m -y --iterations=500 --filters=01234mepb {} {} \;

Files which zopflipng was not able to compress more efficiently were left unmodified.

Bug: T127608
Change-Id: Iec319a37c5884798afa58145a30d496bb1c9d57b
2016-02-20 22:57:24 +00:00
Translation updater bot 8921068441 Localisation updates from https://translatewiki.net.
Change-Id: I95256396037afb0e7bcd46b5bc0a522147ecaea6
2016-01-16 21:55:36 +01:00
Pavel Astakhov 7854e7c06b Update the CodeMirror library to 5.9 (v 3.4.0)
Change-Id: Ia36b0573809d632c0521477cea72268b5524efae
2015-12-14 11:28:57 +06:00
Paladox d51ef3cc2a Update the CodeMirror library to 5.8
Url:

- https://github.com/codemirror/CodeMirror/tree/5.8.0

Change-Id: I1634b34f47386dbb55951b7679bac3a197b17484
2015-11-22 19:15:54 +00:00
Pavel Astakhov 740cc73d1a Go to next field when TAB key is pressed (v 3.3.0)
Bug: T118180
Change-Id: Ic86736f0c2b657bd3b56c16f9243a4f123af6d5e
2015-11-18 14:34:08 +06:00
Pavel Astakhov 82f8acd450 Fix conflict with the CodeEditor extension (v 3.2.3)
CodeMirror will be not initialized if CodeEditor is used

Change-Id: I78ab2814beb0e40a878f6a02b7d3967c216afce6
2015-11-18 11:34:36 +06:00
Translation updater bot 0cc7a8d635 Localisation updates from https://translatewiki.net.
Change-Id: I6e283213e1cad837dfc2684fb5b58f92ea2ecbdc
2015-11-12 22:57:54 +01:00
Pavel Astakhov 3db709ef0c Skip setCodeEditorPreference for anon users (v 3.2.2)
Change-Id: If4f208b3edd73a100404f09f170fb3a060ce1c3c
2015-10-29 09:15:29 +06:00
Translation updater bot 3678a01c3e Localisation updates from https://translatewiki.net.
Change-Id: Ib555bada3c1c9cdeeac4704f44aac9231a69d188
2015-10-22 21:58:46 +02:00
jenkins-bot 2b513e0e3d Merge "fix highlighting parameters inside a template transclusion (v 3.2.1)" 2015-08-21 05:20:53 +00:00
Translation updater bot 04069b4298 Localisation updates from https://translatewiki.net.
Change-Id: Ie0cff9810a012a906b5f09f09e1a9cda56739617
2015-08-20 21:26:19 +02:00
Pavel Astakhov 991be29500 fix highlighting parameters inside a template transclusion (v 3.2.1)
Bug: T108450
Change-Id: Ic686fe6aa211988d8458037c275779f512d03563
2015-08-20 10:32:11 +06:00
jenkins-bot 104794b753 Merge "fix bold and italic apostrophes (v 3.2)" 2015-08-20 03:13:42 +00:00
Pavel Astakhov 9acce89672 fix bold and italic apostrophes (v 3.2)
Bug: T108455
Change-Id: Ie9e0d734004d062e4c347f7940eb34bdc231d026
2015-08-19 21:10:31 +06:00
Translation updater bot a9780be86a Localisation updates from https://translatewiki.net.
Change-Id: I2fd804effc1bb731b6cc56614bd106bd20aac8f1
2015-08-16 21:54:15 +02:00
Translation updater bot 92e92da787 Localisation updates from https://translatewiki.net.
Change-Id: I672a0f07bca2cc7be868da8cbd3a09ee7665691b
2015-08-14 22:08:25 +02:00
Pavel Astakhov 66b518d8dd fix highlighting of external links, multiple apostrophes end link (3.1.14)
Change-Id: Ibbb4850edc04ed6b184fa59c51e1978d60cd1269
2015-08-14 13:22:47 +06:00
Pavel Astakhov 491f186e14 fix matching hr ---- (v 3.1.13)
Change-Id: I7ea6fa891d2c53da4ac9bd62319dad702a11b8d7
2015-08-14 12:03:41 +06:00
Pavel Astakhov e681dc6ce2 Add setContents to textSelection and JS hook for #wpTextbox1 (v 3.1.12)
Bug: T108711
Change-Id: I65f25108863339fdcfc55c030a1158c2cd789b91
2015-08-14 11:49:12 +06:00
Translation updater bot a186103b96 Localisation updates from https://translatewiki.net.
Change-Id: Ic535a3872f41f06e0be74f68621328f450016dc8
2015-08-12 21:31:23 +02:00
Translation updater bot ecbda264b2 Localisation updates from https://translatewiki.net.
Change-Id: I32c382a71459cee40b31a3c7ef6f0f68569f82b9
2015-08-11 22:07:25 +02:00
Pavel Astakhov c6f14176ca Convert to ExtensionRegistration (v 3.1.11)
Remove group ext.CodeMirror, too. There is no need to load CodeMirror
in it's own request, it can be loaded with all other modules.

Change-Id: I16958866847b66c523e2edfe841ca20694ec7ccc
2015-08-11 13:12:51 +06:00