Commit graph

12602 commits

Author SHA1 Message Date
James D. Forrester f2e23e87c7 Update VE core submodule to master (721f591)
New changes:
2a24fdd CommentInspector: Remove redundant surface enable call
45c3931 Allow ve.resolveAttributes() to take a single element
c5a5cef Give ui.Surface a focus method
721f591 Ensure content is selected after async source insert

Bug: T152645
Change-Id: I50f6c359818f8e40ac080eef4edd1d9698735064
2016-12-12 08:37:41 -08:00
jenkins-bot 495d87ffc0 Merge "Use Surface#setDisabled instead of deprecated #disable" 2016-12-10 21:39:59 +00:00
Ed Sanders ec56a700f1 Get content format from EditPage, instead of guessing 'text/x-wiki'
Change-Id: I45918fab0f3bbac07d86d79f9539c3041b6f119e
2016-12-10 20:03:07 +00:00
Ed Sanders 2d645d1631 Use Surface#setDisabled instead of deprecated #disable
Change-Id: Idf998ddc0b95efbf6befbcfa493c42b4c3ba1bfc
2016-12-10 20:03:07 +00:00
James D. Forrester fb17a05be4 Update VE core submodule to master (33012af)
New changes:
98e3ee8 Update OOjs UI to v0.18.2
7a7e576 Move socket.io-client into lib
9be803f ce.Surface showSelectionState: Avoid unnecessary refocusing
fa9570e ve.ui.TableAction.test.js: Make formmatting pass in eslint 3.12.0
65564a2 Follow-up Iaa41c49e: Don't assume source dialogs have a fragment
43acec4 ui.TableAction: don't try to add cells if none have been provided
33012af Update UnicodeJS to v0.1.6

Bug: T150450
Bug: T152387
Bug: T152659
Change-Id: Icb25c05fef4719fba464ba6b0f349de85f01f24d
2016-12-09 15:48:51 -08:00
Ed Sanders d555b5ba33 Cleanup handling of 'section' param
Provide a common function to parsing, and always pass
section to the target, instead of having the target
re-compute it itself.

Change-Id: If9fc24ffa51507cd969fa1b4dfc1519a0b50a572
2016-12-08 20:24:19 +00:00
jenkins-bot 397eb403cc Merge "Simplify #updateTabs" 2016-12-08 19:59:29 +00:00
Ed Sanders cd87e7483b Expand dummy surface to be at least valid
Change-Id: I3888dd2f72858bbe79c61fa4a6f7967f21c5cb7c
2016-12-08 19:36:57 +00:00
Ed Sanders 66e4a5cbe8 Simplify #updateTabs
Change-Id: I6eda4a7c27f0b7590aae5505b0459ced07d2cc48
2016-12-08 19:22:11 +00:00
Brad Jorsch 1bcdb0374a ApiVisualEditorEdit: ApiParse ignores 'page' when 'oldid' is supplied
And since Iae0e2ce3 supplying both is an error.

Bug: T152547
Change-Id: Ib1b35c886bbebfe8505c52a944a8252d8174c979
2016-12-07 18:53:54 -08:00
jenkins-bot bdfff4a3b1 Merge "DesktopArticleTarget: clear out originalCategories when they're updated" 2016-12-07 16:46:06 +00:00
David Lynch d720041fd7 DesktopArticleTarget: clear out originalCategories when they're updated
Bug: T152571
Change-Id: I41b5d5aeea0a01cf922924fa1320369d54fef8cf
2016-12-07 09:48:26 -06:00
jenkins-bot deca480b70 Merge "Update VE core submodule to master (327a277)" 2016-12-07 11:33:35 +00:00
Alex Monk c843824c97 Batch gallery imageinfo requests via ImageInfoCache subclass
Also get rid of .join( '|' ) for API request parameters per Bartosz

Bug: T147067
Change-Id: If4444cca300d65e28d6fb9003fcac5e076a5129a
2016-12-06 22:10:19 +00:00
jenkins-bot a04cef294e Merge "Update for API error i18n" 2016-12-06 20:04:24 +00:00
jenkins-bot 446a4e40c4 Merge "SaveDialog inherits from plain dialog, not FragmentDialog" 2016-12-06 19:37:41 +00:00
James D. Forrester 60b5c97c0a Update VE core submodule to master (327a277)
New changes:
220713c Basic unit tests for article/section nodes
42134b7 Bypass fragment parsing for non-fragment windows
8d1ec6b Fix #insertContent in source mode to maintain linebreaks
9bebc0f Surface synchronizer (sockets)
4324301 Localisation updates from https://translatewiki.net.
c8f4867 Simple document server
a1fe22d Run eslint on rebaser folder
c4c1809 Fix build modules for rebaser
606b4a8 Add landing page to rebaser demo
327a277 Rebaser: Focus document name input on load of landing page

Change-Id: I57975ea090e2e905e5a78b2a715141636dca4748
2016-12-06 11:24:55 -08:00
jenkins-bot 9382e0630a Merge "DesktopArticleTarget: Rebuild the category links when they're edited" 2016-12-06 18:31:43 +00:00
jenkins-bot bdd1a1b78c Merge "Scroll highlighted item into view in gallery dialog" 2016-12-06 18:30:22 +00:00
jenkins-bot 9b4bc7a3f2 Merge "Disable heights option in gallery dialog when mode is slideshow" 2016-12-06 18:28:51 +00:00
jenkins-bot a2e4d9fa82 Merge "Decrease height of gallery search results for better fit" 2016-12-06 18:23:38 +00:00
David Lynch af8aad0483 DesktopArticleTarget: Rebuild the category links when they're edited
This has to go to the API, because it's skinnable. Also, separates out a few
of the initial page setup functions so they can be re-applied to the new
content inserted.

Bug: T151651
Change-Id: I8d5a6504edc2e0486a0b4f016d8ee6d9a6228de9
2016-12-06 11:28:08 -06:00
Translation updater bot 2ab755aca9 Localisation updates from https://translatewiki.net.
Change-Id: Iab69a8d0ae63daccd64d3c40545e87897b6e6661
2016-12-05 22:52:43 +01:00
James D. Forrester 8a253c6405 Update VE core submodule to master (3dae2ca)
New changes:
8803030 Use faster batchPush in #insertContent
c011ae2 Don't wait for fragmentPromise before closing open windows
3dae2ca Follow-up Iaa41c49e: Ensure hack range is valid

Change-Id: Iaf7b623295eed23e46c12407fc7c0b6f371a92a5
2016-12-05 08:02:43 -08:00
Translation updater bot 19f580a9af Localisation updates from https://translatewiki.net.
Change-Id: I9c43a7a5a9449bf555985696cf57340a4931e11a
2016-12-04 22:41:24 +01:00
Ed Sanders aa7dba9bdb Follow-up Ifaf6a2607: Display correct message when switching
Use new mode, not old mode for choosing switch message.

Change-Id: I1ad0913b4a23fd6fbf5cdeb07d1a58ec72398d57
2016-12-04 15:51:57 +00:00
Ed Sanders 4f7bba4de9 SaveDialog inherits from plain dialog, not FragmentDialog
Change-Id: I934ab41567ea68e58cfa27451faf499febd68bd1
2016-12-04 11:09:56 +00:00
jenkins-bot 6e503cdb0b Merge "Bypass API call when wikitext is empty string" 2016-12-03 17:56:19 +00:00
jenkins-bot 75edb42236 Merge "Update VE core submodule to master (aa8ef3e)" 2016-12-03 17:50:18 +00:00
Ed Sanders f01d617c53 Bypass API call when wikitext is empty string
Change-Id: Ie0cedfaae286f73e73bcde7bfca3cb2ae6197924
2016-12-03 17:44:04 +00:00
Ed Sanders 1edc42e0ae Update VE core submodule to master (aa8ef3e)
New changes:
4321ccd SourceSurfaceFragment: Add #convertNodes
aa8ef3e Follow-up Iaa41c49e2f: Fix `this` context in window action

Change-Id: I82777e4dcd27de744bb3cb934f1c639167127303
2016-12-03 17:31:04 +00:00
Ed Sanders c97e0b58d4 NWE: Disable progress bar when pre-parsing for WindowAction's
The progress bar dialogs interfere with the life cycle
of the window you are trying to open. Just disable these
progress bars for now to avoid catastrophic behaviour.

Change-Id: I77c8ae67a2d502bbd189836deb320cd55c3cb11a
2016-12-03 17:20:24 +00:00
Thalia 2fd30fb7c5 Decrease height of gallery search results for better fit
Bug: T151509
Change-Id: I92c812952457df99251fc0b8f1a17d4e55fe52f7
2016-12-03 16:31:23 +00:00
Thalia 1b4d70324b Disable heights option in gallery dialog when mode is slideshow
Also disable relevant fields the first time the dialog is
opened, not just when the dropdown is changed.

Bug: T151482
Bug: T151512
Change-Id: Ic511e1832a9fcaaeaed71c1d495aecc65fdd1d3b
2016-12-03 16:00:32 +00:00
Thalia 0b9228a926 Scroll highlighted item into view in gallery dialog
Bug: T152053
Change-Id: I6b77f6c27d5629dc18e421f984cf31badfb2ff04
2016-12-03 15:46:58 +00:00
jenkins-bot e1e55aa730 Merge "Correct class/classes typo in gallery dialog" 2016-12-03 15:20:53 +00:00
Thalia 295dd380de Correct class/classes typo in gallery dialog
Bug: T152226
Change-Id: I569df87cf82359c13ad61a3ddffacd83f5f03bae
2016-12-03 13:03:02 +00:00
Ed Sanders 9ceb13ce60 Update VE core submodule to master (5be61ce)
New changes:
860954b [BREAKING CHANGE] Parse selection before applying source tools

Local changes:
Implement convertFromSource/convertToSource in WikitextSurfaceFragment

Depends-On: Iaa41c49e2f8e28af28a8a64cb6915f705fa35e8c
Change-Id: I746619d442fb565cd582cb09de3126526c73c333
2016-12-03 03:43:59 +00:00
jenkins-bot 5b6d5dd1dd Merge "Update VE core submodule to master (af7fb69)" 2016-12-02 23:04:58 +00:00
James D. Forrester f494067dea Follow-up ae8a2750: Stop passing long-dead second parameter
Change-Id: Ifc43d9009c2057b5a189d3cc161b62dc4ca83a2c
2016-12-02 14:31:26 -08:00
James D. Forrester 640c745bca Update VE core submodule to master (af7fb69)
New changes:
a27ccb4 Follow-up I3b0483a7d: Fix append loop in PreviewElement
75d6de7 PreviewElement: Use adoptNode when moving rendering to view

Bug: T151511
Change-Id: I6bf6df1873b8033914bc2235784012b66459e341
2016-12-02 22:05:49 +00:00
L10n-bot 95af1ba8c1 Merge "Localisation updates from https://translatewiki.net." 2016-12-02 21:24:28 +00:00
Translation updater bot a131668e46 Localisation updates from https://translatewiki.net.
Change-Id: Ie5e6281811ea14485f919a9efcea2f24b009838b
2016-12-02 22:21:13 +01:00
Ed Sanders 9b5adb8688 Remove WikitextWindowAction, inherits from core
Depends-On: I2b14cc93bf3c855e157f0b26567337f74992fb96
Change-Id: I3e479c1441f548f62ff8a2f6e7b2ad450262921f
2016-12-02 11:50:43 -08:00
James D. Forrester 976d2e935a Update VE core submodule to master (c9619a0)
New changes:
06ffd06 Rebase logic
56d8e13 Use DOMPurify to sanitize incoming HTML
abc3465 DOMPurify: Use pre-release & add fix, and fix IE9 return type issue
14700eb Bring in source mode WindowAction hacks from MW

Change-Id: Iaef73bab7c1010ec29826ff2025c767c9758e8e3
2016-12-02 11:49:12 -08:00
jenkins-bot 3064890a91 Merge "Clear preview when document is modified" 2016-12-02 02:45:29 +00:00
jenkins-bot 36d976c4c0 Merge "Save Dialog: add shortcut for opening to the review panel" 2016-12-02 00:36:40 +00:00
David Lynch 2bd34cebd4 Save Dialog: add shortcut for opening to the review panel
Create a new MWSaveDialogAction, which can be hooked up to triggers. Switch
the existing save dialog accesskey to just use the trigger system.
(Maintaining all the accesskey logic, so we don't change the shortcut on
people.)

Bug: T149914
Change-Id: I9b4ef8504148703556f802b266a517dd5098c06b
2016-12-01 18:16:18 -06:00
Ed Sanders 915bbec307 Clear preview when document is modified
Use same logic for 'Show preview' as for 'Show changes'

Change-Id: I69510b426548fca46dc9b0d113b77ad206502b21
2016-12-01 23:59:07 +00:00
jenkins-bot 4e05b86cf3 Merge "Use widget.getApi, not this.getApi" 2016-12-01 23:43:16 +00:00