Commit graph

15227 commits

Author SHA1 Message Date
jenkins-bot 526d1ba71e Merge "Enable edit tab setup on appropriate Special pages" 2017-05-18 16:18:49 +00:00
James D. Forrester 0eecaf42e1 Update VE core submodule to master (de3447ce5)
New changes:
de3447ce5 Update OOjs UI to v0.21.4

Change-Id: Ibb13bce32090a8aab01bc5d82d87dfa2a98ac16e
2017-05-17 19:52:24 +01:00
Bartosz Dziewoński d687e01208 Do not check for visual editor availability when loading source editor
Follow-up to fefb76eebc. Prior to that
change, the condition for this looked like this:

  // … if on a ?veaction=edit/editsource page
  (
    isViewPage &&
    uri.query.veaction in editModes &&
    (
      uri.query.veaction === 'editsource' ||
      init.isVisualAvailable
    )
  )

In the refactor, the `uri.query.veaction === 'editsource'` check was
lost.

Since that code is pretty messy (probably predating the source editor
and hastily adjusted), instead change the check for `isVisualAvailable`
to just `isAvailable`. If the requested mode turns out to not be
available later, the editor will not load.

Bug: T165146
Change-Id: Idfaf9115dd20cec8f8e044a704b93b07984cdcee
2017-05-16 18:57:56 +02:00
jenkins-bot cde2110722 Merge "Update VE core submodule to master (45aa796b3)" 2017-05-16 16:19:14 +00:00
jenkins-bot 4249e7898e Merge "Rename deprecated Card to current TabPanel" 2017-05-16 09:50:42 +00:00
jenkins-bot cfa8de994e Merge "MWTransclusionNode: Implement MWTransclusionTableCell" 2017-05-15 18:05:01 +00:00
David Lynch 0eb6b94b4c MWTransclusionNode: Implement MWTransclusionTableCell
Back in de98382a55, references to MWTransclusionTableCell were introduced,
but weren't followed through on. So, actually add it. Have cellable
Transclusions use it as their type.

Bug: T144122
Depends-On: I054f12f4218102a12d7a9ea843f9c61e8825c52c
Change-Id: I367f878bfd1c58e20b62368cb78120604b48d791
2017-05-15 12:09:11 -05:00
James D. Forrester 6e77dfe7cb Update VE core submodule to master (45aa796b3)
New changes:
c54d06474 Add class to TableCellableNode and move some styles there
fd9e1059d Remove 'cellable' attribute

Change-Id: I186e7b0b61ac920c309f9aa0c40db7244849c0ec
2017-05-15 17:41:15 +01:00
jenkins-bot b22333040f Merge "Update VE core submodule to master (8e29310db)" 2017-05-15 16:38:15 +00:00
Ed Sanders 63c36c87da Always prefer wikitext for action=edit on non-SET wikis
Ideally we could use the preferred editor, but this breaks
tab switching to the old editor.

Bug: T165238
Change-Id: I5f5ee5566cdd2080ba7c89d43cf127b457537768
2017-05-15 12:48:30 +01:00
jenkins-bot 5e11f1669a Merge "Fix action=edit links for NWE" 2017-05-15 11:06:49 +00:00
Ed Sanders 9342e45f7b Fix action=edit links for NWE
We added support loading NWE from action=edit in I35208cce069
but missed this check in the front-end.

Bug: T165238
Change-Id: I2732eaa81a3f968b34c4e878b2ad36de981dd567
2017-05-15 11:52:06 +01:00
James D. Forrester 57aad56a7b Enable edit tab setup on appropriate Special pages
Using the forthcoming wgRelevantPageIsProbablyEditable.

Bug: T165010
Depends-On: I6c6ca1cfd93e7be917952980f1e1d57aec3a1292
Change-Id: I6c6ca1cfd93e7be917952980f1e1d57aec3a1229
2017-05-15 11:14:29 +01:00
James D. Forrester 20e9740714 Update VE core submodule to master (8e29310db)
New changes:
e7e9e0ba3 TableAction: Handle non-TableCell cells better
9537931cb ve.ui.TableAction: Don't pre-build sequences of transactions
c5f0d7ce1 Process transaction before selecting nodes for annotation events

Bug: T144122
Change-Id: I97ec7e8a4ca92ab74783622c610595e415238e96
2017-05-15 09:56:01 +01:00
Translation updater bot dd9a7ad9f9 Localisation updates from https://translatewiki.net.
Change-Id: I3becfe7c241e510b558e65a54060d3e93cc907b5
2017-05-14 22:48:41 +02:00
James D. Forrester 89e043452d [BREAKING CHANGE] Drop support for contacting Parsoid without VirtualRestConfig
Change-Id: I3f7c3f8326c6fa76bd49e53c9fd2a24de9568f13
2017-05-14 07:18:19 +01:00
Translation updater bot db24f81138 Localisation updates from https://translatewiki.net.
Change-Id: Ic7ce8924f898681caafe37761384f0f30919fc8c
2017-05-12 23:19:04 +02:00
jenkins-bot 55ea205623 Merge "Update VE core submodule to master (347765f82)" 2017-05-12 18:42:11 +00:00
jenkins-bot 849dae5e4a Merge "build: Enable MediaWiki.Commenting.FunctionComment.MissingParamComment" 2017-05-12 02:06:42 +00:00
jenkins-bot d569544fb9 Merge "build: Enable MediaWiki.Commenting.FunctionComment.MissingParamTag" 2017-05-12 02:06:41 +00:00
jenkins-bot 51549e2440 Merge "build: Enable MediaWiki.Commenting.FunctionComment.MissingParamName" 2017-05-12 02:03:33 +00:00
jenkins-bot 4f36b20f2b Merge "build: Enable MediaWiki.WhiteSpace.SpaceBeforeSingleLineComment.NewLineComment" 2017-05-12 02:03:32 +00:00
jenkins-bot adbd05be82 Merge "build: Enable MediaWiki.NamingConventions.LowerCamelFunctionsName.FunctionName" 2017-05-12 02:02:36 +00:00
jenkins-bot f0ac2b6758 Merge "build: Enable MediaWiki.Commenting.FunctionComment.MissingReturn" 2017-05-12 02:01:29 +00:00
jenkins-bot 71e174ddb1 Merge "build: Enable MediaWiki.Commenting.FunctionComment.ParamNameNoMatch" 2017-05-12 01:58:28 +00:00
jenkins-bot ec3c318a32 Merge "build: Bump mediawiki-codesniffer to 0.8.0 and make pass" 2017-05-12 01:58:26 +00:00
Translation updater bot 898091bfed Localisation updates from https://translatewiki.net.
Change-Id: Ifa7703be93365df355b7de8db47e878a10b33256
2017-05-11 23:37:50 +02:00
James D. Forrester 7819eda622 build: Enable MediaWiki.Commenting.FunctionComment.MissingParamComment
Change-Id: I29bd2c3dcc3a90a52036ab7e6bf2227af61703d7
2017-05-11 21:20:37 +00:00
James D. Forrester 79d15b18b8 Update VE core submodule to master (347765f82)
New changes:
8155f98fd Upgrade tree differ to support timeouts, and handle them
f36fcb6c9 Update OOjs UI to v0.21.3
2496f0521 Localisation updates from https://translatewiki.net.
7212fc4ab MobileContext: Fix alignment of label and description
865b2fcc7 VisualDiff: Bring in close dialog fix from downstream
822855b50 Expose arguments in DummyPlatform.getMessage for more thorough tests
cda556554 VisualDiff: Show attribute changes for inline objects

Bug: T164724
Change-Id: Id51a927b540ea55abc1187f3556ad3052afe2453
2017-05-11 12:43:17 -07:00
James D. Forrester 2a81a95782 build: Enable MediaWiki.Commenting.FunctionComment.MissingParamTag
Change-Id: Ia6d758bebd45d31143a3dfd3357cc4687449a1cb
2017-05-11 08:19:44 -07:00
James D. Forrester 59715b66c2 build: Enable MediaWiki.Commenting.FunctionComment.MissingParamName
Change-Id: Id0b92c026690799db84f53402ce29913754bba0b
2017-05-11 08:19:44 -07:00
James D. Forrester 307a8f0ed7 build: Enable MediaWiki.WhiteSpace.SpaceBeforeSingleLineComment.NewLineComment
Change-Id: Id11360a266b5a5269856a9adbf3cd27cda52f178
2017-05-11 08:19:44 -07:00
James D. Forrester 945719f43e build: Enable MediaWiki.NamingConventions.LowerCamelFunctionsName.FunctionName
Change-Id: Ib1e607addcb13c8fced2058ef5a80a96c95ff31e
2017-05-11 08:19:44 -07:00
James D. Forrester 9a27f80b3e build: Enable MediaWiki.Commenting.FunctionComment.MissingReturn
Change-Id: I714220880e91583a6e3cc575810fe02e3e822538
2017-05-11 08:19:44 -07:00
James D. Forrester e12651b1c2 build: Enable MediaWiki.Commenting.FunctionComment.ParamNameNoMatch
Change-Id: Ie1c745c4ea6ddaad6d41285ad444e7a91dc48cc9
2017-05-11 08:19:44 -07:00
James D. Forrester 56bfb7828c build: Bump mediawiki-codesniffer to 0.8.0 and make pass
Change-Id: If509e5ba639bcda497fe7898f6eb79265967139d
2017-05-11 08:19:44 -07:00
Volker E f695877de7 Rename deprecated Card to current TabPanel
Renaming CardLayout to TabPanelLayout and all connected code instances.
Follow-up to Icfe1652cc038dc131b6b855ce9b45040b8ee5178

Bug: T164903
Change-Id: I9ce4e31e390522d469e126fb3a4b05787cef7fef
2017-05-10 11:46:49 -07:00
David Lynch 2f40972807 MWWikitextDataTransferHandlerFactory: Don't reimplement getText
I forgot about getText in 41ca528705, apparently.

Bug: T163237
Change-Id: Ibb646fc03a0293845c4449cbbe6c822ba63751f8
2017-05-10 10:58:42 -05:00
jenkins-bot 862c3ca22e Merge "MWWikitextDataTransferHandlerFactory: skip getWikitextFragment if possible" 2017-05-10 15:51:16 +00:00
jenkins-bot 24e4cb7d8b Merge "Update VE core submodule to master (fbeb0db2c)" 2017-05-10 15:36:39 +00:00
James D. Forrester 229d6cdf3b Update VE core submodule to master (fbeb0db2c)
New changes:
d61440346 Add logging to the rebase server and client
d1d2539ae rebaser: Add script to convert a log file to a test case
0896d5f05 lib: Update README files for OOjs and OOjs UI
045ae87fb Localisation updates from https://translatewiki.net.
04b276e16 VisualDiff: Make annotation whitespace trimming configurable
dd04912e5 Localisation updates from https://translatewiki.net.
11fc30709 MobileContext: fix button spacing
7898acd0b Fix typos and minor lint issues
4e3e2deb9 Avoid using the global namespace in test files
1ed81efa1 build: Update eslint to 0.4.0 and make a pass

Bug: T163473
Bug: T164166
Change-Id: I4bab4260d6b05ff0277cacd167186336acc02080
2017-05-10 10:02:54 -05:00
Translation updater bot 31bea72f3a Localisation updates from https://translatewiki.net.
Change-Id: I1acf037adbf8456802f4321377b7209cb7268462
2017-05-09 23:10:18 +02:00
Umherirrender d4a5ca1d65 Add php-console-highlighter
Change-Id: I7fa246877e01a9c1131671935d1488c779b0b6b0
2017-05-09 17:41:02 +02:00
David Lynch 41ca528705 MWWikitextDataTransferHandlerFactory: skip getWikitextFragment if possible
This lets us avoid a fraction of a second lag when someone pastes a plain URL
into source mode.

Bug: T163237
Change-Id: I0e673856dec5f273fb92731b27494762299d2d6c
2017-05-09 10:19:15 -05:00
jenkins-bot 0f903b09d1 Merge "Generate visual diff only after switching to visual diff tab" 2017-05-09 13:31:36 +00:00
Ed Sanders debcd678b5 Generate visual diff only after switching to visual diff tab
Bug: T164724
Change-Id: I48e49d4b68cc769b3e9d061983de4c78b5ad5c34
2017-05-09 10:09:39 +00:00
James D. Forrester 40d115c806 Follow-up fa2efb9e5 part II: Don't try to call a private function
Change-Id: Icd7c15830c524b4492d0acc0528694cbc9a4f424
2017-05-08 16:42:20 -07:00
James D. Forrester a7f56f02e6 Follow-up fa2efb9e5: Also mount the service in ApiVisualEditorEdit
Whoops.

Change-Id: If1eac7fc745e8b21b47fbc6a8d40c3e45f4f52df
2017-05-08 14:42:21 -07:00
jenkins-bot d4c9638508 Merge "ApiVisualEditor: Move RESTbase initiation from construct() to execute()" 2017-05-08 21:20:42 +00:00
Translation updater bot 4296814235 Localisation updates from https://translatewiki.net.
Change-Id: I24e0b7ee282f937c0e7b1c44798a78439d723b63
2017-05-08 23:01:19 +02:00