Commit graph

9792 commits

Author SHA1 Message Date
Ed Sanders 702fc724d7 Follow redirects in the link inspector API
Show redirect targets first, then any redirects to it
immediately after.

Change-Id: Ifde579410b4fbf42e0598e4b069963162333da55
2015-04-29 11:53:40 +01:00
Ed Sanders df6a570f82 Only pull description from wikibase
Filters out 'alias' and other terms not being used yet.

Change-Id: I5d155c76b85de1e5d1d5fb234f565fd6f1658766
2015-04-29 11:17:24 +01:00
Ed Sanders 377f6e4eea Separate inputting of internal and external links
* If the user switches to external links, clear the input
* If the user types something with a protocol, automatically switch
  them to external links. If they manually switch back to internal,
  remember that and don't auto switch them again.
* If the user inputs something without a protocol into the external
  link box, prepend 'http://'

Bug: T93699
Bug: T93700
Change-Id: Ia0e3a04f34077e7bd56254112dafd86ad865cbe2
2015-04-29 11:17:24 +01:00
suchetag 00745cda87 Replacing current order of link suggestions
Replace current, sectioned, order of link inspector suggestions
(existing, redirect, disambig) with order from API.

Reduce number of matches to 5, and show new page suggestion last.

Bug: T93698
Change-Id: Ida887d889730d7749041942636d24e181c335697
2015-04-29 11:17:11 +01:00
James D. Forrester a4d42193f5 Update VE core submodule to master (170bc6b)
New changes:
a739a43 Move setDocument call from ve.dm.Document up to ve.Document
170bc6b bin: Enable 'set -e' and 'set -u' in bash scripts

Change-Id: I5b8767f9ff311e1ffca41839e17c88b72dc888bb
2015-04-28 19:03:49 -07:00
jenkins-bot 3152dc104f Merge "Follow-up a4bbe98cd: Kill emptiness hack check in bin/updateSubmodule.sh too" 2015-04-29 00:58:51 +00:00
James D. Forrester 1972afe27e Follow-up a4bbe98cd: Kill emptiness hack check in bin/updateSubmodule.sh too
Change-Id: Ia6e530512413268aeafa09918fa1edf4342dd7e1
2015-04-28 17:53:22 -07:00
jenkins-bot 478f24bf73 Merge "bin: Remove buildi18n-*.sh, unused since 2013" 2015-04-29 00:14:32 +00:00
James D. Forrester c4767d5b5e bin: Remove buildi18n-*.sh, unused since 2013
Change-Id: Iaab453082a4f0364cb6def5d50cd6f0d2c1c12e4
2015-04-28 17:10:33 -07:00
jenkins-bot 368f7a29a8 Merge "bin: Enable 'set -e' and 'set -u' in bash scripts" 2015-04-29 00:00:52 +00:00
jenkins-bot c8fd9f36ce Merge "Remove obsolete bin/generateDocs.sh script" 2015-04-29 00:00:49 +00:00
Timo Tijhof 6030043e31 Remove obsolete bin/generateDocs.sh script
No longer used by Jenkins. Entry point is now `npm run doc`.

Change-Id: Ie8ddb1657f6e5c7703b8ca611fd04506cf7c2a04
2015-04-28 23:57:03 +00:00
Timo Tijhof a4bbe98cd3 bin: Enable 'set -e' and 'set -u' in bash scripts
* set -e: Abort on error.
* set -u: Emit error for undefined variables.

There was one case of unconditional access of a possibly
undefined variable in listRecentCommits.sh. Fixed by replacing
the old "x$x"="x" hack with an explicit emptiness check. The hack
is needed when supporting ancient non-bash shells, but this script
explicitly invokes a bash environment which 'test -z'.

Change-Id: I41a1c0d1bd57b5e241b83224096d32876fd913af
2015-04-29 00:48:24 +01:00
Ed Sanders 59a638491d Fix height when descriptions not present
Change-Id: I9ae9043ebcc99c99d1226635ff408ae1d4015925
2015-04-28 23:26:15 +00:00
jenkins-bot ec62f4a4b8 Merge "Update for Id369ecaec704 in MW core" 2015-04-28 20:21:16 +00:00
jenkins-bot 76aa7c8ad6 Merge "Port ve.init.mw.Target to ve.fixBase()" 2015-04-28 20:21:12 +00:00
Roan Kattouw 9b6a3bb823 Update VE core submodule to master (d1d06fc)
New changes:
d057ec9 ve.ce.TextNode: Do "meaningful whitespace characters" first
49bf45f Fix typo
a1ae2e3 dm.Surface: Fix invalid documentation syntax
cc273a4 Don't skip inline slug contents in getNodeAndOffset()
17bc336 Follow-up I3b9804b00: Fix names of table context icons
8de238e ve.utils: Add ve.fixBase() utility
0993892 Localisation updates from https://translatewiki.net.

Change-Id: Icc68a0168b2243cea98197081eab8daaff7b5b74
2015-04-28 13:10:44 -07:00
jenkins-bot 588ff84dfa Merge "Update VE core submodule to master (345f2be)" 2015-04-28 20:10:17 +00:00
Roan Kattouw 3f38380723 Update for Id369ecaec704 in MW core
We need to load the new indicators and textures modules.

Change-Id: I2653fdf50e46599db4345f9b8dc0e72e815b15e9
2015-04-28 13:01:29 -07:00
jenkins-bot 4d01e4b97e Merge "Follow-up 85381a6b75: update another instance of 'language' to 'textLanguage'" 2015-04-28 20:01:06 +00:00
Roan Kattouw cd7cb6190d Follow-up 85381a6b75: update another instance of 'language' to 'textLanguage'
Change-Id: Id4e636c25fb50448659d24f5432c9ac12ca6f2c6
2015-04-28 12:55:58 -07:00
Translation updater bot 6ac83248a0 Localisation updates from https://translatewiki.net.
Change-Id: Ib078989d4d71b8718ed0a65ca3ea8ed94ba27d9e
2015-04-28 21:32:06 +02:00
jenkins-bot 116e8ca84b Merge "Add images and descriptions to link context items" 2015-04-28 17:23:00 +00:00
jenkins-bot 32491bf54c Merge "Explicitly define module position" 2015-04-28 14:32:40 +00:00
Gilles Dubuc 0149c3dbb5 Explicitly define module position
Style modules currently added through addModuleStyles default
to being in the head ("top" position). This is an unhealthy default,
since only critical styles that are needed at pageload should be
in the head. In order to be able to switch the default to "bottom",
existing module positions have to be defined explicitly.

Bug: T97410
Change-Id: I20cc23390f02b5d39b379fc985a7a6b601f3323e
2015-04-28 07:29:47 -07:00
jenkins-bot d8c0f9e8b3 Merge "Link inspector images and descriptions" 2015-04-27 23:51:38 +00:00
Ed Sanders f83f9ddc1e Add images and descriptions to link context items
Bug: T93695
Change-Id: Ieaa3ced06887f561085f892c6fb34de75a20ff88
2015-04-28 00:23:40 +01:00
suchetag 3963b1daf2 Link inspector images and descriptions
Fetches images from PageImages extension and descriptions
from Wikibase.

Bug: T93693
Bug: T93694 (partial)
Change-Id: I1bea6b7b57ab951e79468cfa00e9eecddc113d18
2015-04-28 00:23:40 +01:00
Translation updater bot 994aace05b Localisation updates from https://translatewiki.net.
Change-Id: Ibc99f9a3382c07a93bc020212e8b7124671e123e
2015-04-27 22:18:33 +02:00
James D. Forrester beb277f7cf Update VE core submodule to master (345f2be)
New changes:
d58157f Localisation updates from https://translatewiki.net.
a0029a2 Localisation updates from https://translatewiki.net.
d834fa4 ve.utils: Rename supportSplice to supportsSplice
15f48c3 Test language annotation
4d903b1 Add tests of other textStyle annotations
550b0db Add missing close tag to tests
167e998 Add unit tests for CE HTML
e02c9c7 Add test for annotation without nodeName
749a2c5 Test direction- and language-only annotations
584a5d2 Create unit tests for createDocumentFromHtml
7a9bec2 Add unit tests for preservation of <html> tag attributes
345f2be Update OOjs UI to v0.10.1

Change-Id: I5d93ccad7c19d16eeecf313ea53815356ba9c36b
2015-04-27 10:36:43 -07:00
Translation updater bot f09d3da451 Localisation updates from https://translatewiki.net.
Change-Id: I14c8d34febbea8d657df8f39d31eb5ec5f024bdb
2015-04-26 22:35:41 +02:00
Translation updater bot 349426e5ed Localisation updates from https://translatewiki.net.
Change-Id: Ic3207f8d10493e91663e2cc02fa5d089b3b6a199
2015-04-25 23:08:37 +02:00
jenkins-bot a615e8e1d2 Merge "Update VE core submodule to master (40ff4c2)" 2015-04-24 22:17:33 +00:00
Roan Kattouw a332ea210a Port ve.init.mw.Target to ve.fixBase()
The old code in ve.init.mw.Target.static.fixBase was mostly
moved to ve.fixBase(), and the new ve.init.mw.Target.static.fixBase
contains MW-specific logic on top of that. This allows us to get
rid of the base fixing logic in onLoad().

Depends on I607fa579733 in VE core.

Change-Id: I42dfd4b90e86eb67d0111fffafc18e1152249610
2015-04-24 14:41:22 -07:00
jenkins-bot 1b4fecb61b Merge "Keep the parameter list expanded after it was expanded once" 2015-04-24 16:52:29 +00:00
Moriel Schottlender 3a7b99f6a6 Keep the parameter list expanded after it was expanded once
In the template dialog, keep the parameter search widget expanded
with all parameters showing if it was already expanded once.

Also keep the parameter list available after inserting each parameter
instead of asking the user to click the add details repeatedly.

Bug: T95696
Change-Id: I14a47dbea5c69532238e7e67290e613121fdc40e
2015-04-24 17:45:04 +01:00
jenkins-bot b16a24e04f Merge "Don't give up immediately for revid mismatches on second load" 2015-04-23 20:57:12 +00:00
Roan Kattouw 7a29cf3dbf Don't give up immediately for revid mismatches on second load
If a load failed due to a revid mismatch, and a new attempt then
succeeded, we would keep remembering that it initially failed.
Then when we loaded the editor a second time, encountering
a revid mismatch would cause us to give up immediately.

To fix this, forget about any previous failures once
a load succeeds.

Bug: T97069
Change-Id: Ie10a7532759095cbb5fb8d23af602aa7b9611a06
2015-04-23 13:48:00 -07:00
James D. Forrester bdc0bd69f5 Update VE core submodule to master (40ff4c2)
New changes:
70a8233 Update OOjs UI to v0.10.0
bea6139 Tests for getNodeAndOffset (matching current quirky behaviour)
4c364f3 Fix old dates

Change-Id: Ic13abd43659e059198a186f44fedc9d7b19d4942
2015-04-23 09:03:42 -07:00
Ed Sanders d7ac742fbe Fix old dates
Change-Id: Ib98878221eb26c6582c304247122fa420bccb029
2015-04-23 16:01:33 +01:00
Bartosz Dziewoński 2e96c8c1f3 Allow special characters with tooltip or that encapsulate text
Depends on Idd5e163090c9cf1c103d8b40e8ba19d332671cde and
Ifba178d8099b797a0ca33ca990540c8cb9cd3637 in VE core.

Bug: T65227
Bug: T70425
Bug: T95819
Change-Id: I6f08e3c1c3e4134520dac1e2d32d828cdefea23f
2015-04-22 17:46:00 -07:00
James D. Forrester dd6ea0fce8 Update VE core submodule to master (7f8fae5)
New changes:
c758f6d build: Commit sync-gh-pages script
62ef89d ve.ui.SpecialCharacterDialog: Allow encapsulation of selected content
9dd8ad5 Fix getNodeAndOffset for block slugs
fa4fdb3 Localisation updates from https://translatewiki.net.
7f8fae5 ve.ui.SpecialCharacterPage: Allow providing a tooltip for characters

Change-Id: I5cbd8f6a32d325711f4e8a523d6d0096891ea3fb
2015-04-22 17:44:25 -07:00
jenkins-bot 68208c5c19 Merge "ve.ce.MWEntityNode: Show whitespace characters, like in ve.ce.TextNode" 2015-04-22 14:27:51 +00:00
jenkins-bot 8340df15ad Merge "Update VE core submodule to master (54819a1)" 2015-04-22 01:14:52 +00:00
jenkins-bot 3375b2fcb9 Merge "Rearrange images when the media search window resizes" 2015-04-22 01:14:18 +00:00
James D. Forrester 25b67eec15 Update VE core submodule to master (54819a1)
New changes:
a7789f5 ve.ui.WhitespacePreservingTextInputWidget: Trim whitespace in input
a420c83 Filibuster: fix stringification errors
7ebcd63 ce.Document#getNodeAndOffset: Document better ahead of cleanup
29344e7 Localisation updates from https://translatewiki.net.

Change-Id: I66607501135c7046e026130feadeae9d0962d2b9
2015-04-21 18:12:16 -07:00
Moriel Schottlender 1d1079e7fc Rearrange images when the media search window resizes
This is a quickfix to make the masonry fit recalculate itself after
the window is resized. It is most significant for orientation changes
in mobile devices, as those lead to a resizing of the window and a
complete reorganization of the masonry fit rows.

Bug: T95017
Change-Id: Ibf3c74ea21d42f4a159d0b855be5672c8455639f
2015-04-21 17:57:17 -07:00
jenkins-bot 76b1839e30 Merge "Remove ancient bad copy-paste documentation" 2015-04-22 00:37:09 +00:00
jenkins-bot bd58d3c473 Merge "Revert "[TEMPORARY] Re-point A/B testing preference for test"" 2015-04-22 00:34:39 +00:00
jenkins-bot 3b592bf4bc Merge "Strip language annotations on external import" 2015-04-22 00:33:17 +00:00