Commit graph

8614 commits

Author SHA1 Message Date
Cmcmahon bc76c6ea3e [BrowserTest] create simple test for Basic Citation
We can make this more sophisticated later, but right now it
accurately checks that upon clicking Basic citation, the user
sees a true VisualEditor UI

Change-Id: Icea910e2bc1bbd4277a7e8eee08f2b0e49661062
2014-10-21 12:10:19 -07:00
Roan Kattouw 9c84af04f6 Followup fbc7ecb: make mediawiki.mobile depend on core.mobile, not core
Because we also need MobileContext in order to be able to extend it.

I hate our disorganized set of modules. Yes, I said that yesterday too.

Bug: 72282
Change-Id: I7276fc6ee82805f39c47864101ce495a561caa66
2014-10-21 11:19:36 -07:00
Željko Filipin 32736ae679 [BrowserTest] Prepare repository for running RuboCop after every push to Gerrit
For now ignoring all problems.

Bug: 69245
Change-Id: I4f5db441725062c1ea1ad8ba0955f18f49973583
2014-10-21 17:35:04 +02:00
Roan Kattouw fbc7ecbb8d Followup e20b47f: make .mediawiki.mobile depend on .core
This is needed because ve.ui.js is in .core, not in .base.

At some point we should clean up this horrible mess of RL modules.

Bug: 72282
Change-Id: Ief534e1ef4a8154f00a336aa974c14fe91633e90
2014-10-20 15:05:22 -07:00
Translation updater bot 6cd473b761 Merge "Localisation updates from https://translatewiki.net." 2014-10-20 20:28:49 +00:00
Translation updater bot 1db77fffe0 Localisation updates from https://translatewiki.net.
Change-Id: Ia8d13da4a5ed0a8ed0f97b38f06b41b8a2456a81
2014-10-20 22:27:57 +02:00
James D. Forrester e20b47f84b Update VE core submodule to master (db78bdd)
New changes:
69ecc8e Remove MW-specific mobile hack from core
e556440 doc: Use wildcards for Desktop/Mobile …Context and …Surface for simplicity of extension

Local change:
Bring in MobileContext hack to filter out all tools except links and citations from core where
it didn't belong.

Change-Id: Ica837abd45f0ff02b49a44da617bc1fd8e9872d4
2014-10-20 12:43:39 -07:00
James D. Forrester 4fd4367d6a Update VE core submodule to master (f8a563a)
New changes:
e251898 [BREAKING CHANGE] Allow tools to specify which selection types they support

Local changes:
New requiresSelection api for tools

Change-Id: Idc3f62d60bfb5710f786734c342f71b1c73fd4c0
2014-10-20 12:15:29 -07:00
Roan Kattouw 90705118d9 Update VE core submodule to master (51a919d)
New changes:
618a773 Update OOjs UI to v0.1.0-pre (99ec31d9b9)
e651bd9 Update OOjs UI to v0.1.0-pre (0d358b167a)
0918a82 Use better unicorn image data
1eea699 Stage an empty comment node when inserting
e49a185 Fix height calculation in fragment inspector
26c8566 Stage a space when inserting a special character
480472c Localisation updates from https://translatewiki.net.
990e807 Update OOjs UI to v0.1.0-pre (db065e5a9f)
279031d Fix scroll jumping in Firefox when pasting at end of line
5519914 Handle paste events on the paste target

Change-Id: I760e0f31cbd20dc704a4131384d84d671520f339
2014-10-20 11:45:22 -07:00
Translation updater bot 442d498d49 Localisation updates from https://translatewiki.net.
Change-Id: Ibb4d696776239590fd6539ff5e4361d4fcd6b096
2014-10-19 22:11:09 +02:00
Bartosz Dziewoński 2c325fa4f2 ve.ui.MWFormatTool: Update heading size CSS for new OOUI version
* Use .oo-ui-tool-title-text selector rather than .oo-ui-tool-title
  to avoid styling accelerator keys.
* Divide all sizes by 0.8, as we no longer need to match the font-size
  rule on .oo-ui-tool-title.
* Add CSS for heading1 (which differs between Vector and core VE)
  and heading2 (because it looks silly if it's missing).

Change-Id: I12226f0a674037f904149cc10893f5c154767bfc
2014-10-19 21:13:21 +02:00
jenkins-bot 6a12cac9a2 Merge "Use relative positioning for category popups, move out of overlay" 2014-10-17 22:57:35 +00:00
jenkins-bot 8fceff493a Merge "Only validate required template params after blur" 2014-10-17 21:28:20 +00:00
Roan Kattouw d0cc8074c2 Update VE core submodule to master (0190744)
New changes:
a7e4b2f Update OOjs UI to v0.1.0-pre (98cecf304d)
fa38ad1 Update OOjs UI to v0.1.0-pre (1829141230)
0190d46 Prevent observeration during copy and paste
8e300bf Factor out selection of entire pasteTarget
0bdd637 Fix clipboardData API path on copy
0654b4c Localisation updates from https://translatewiki.net.
9a22fe6 Replace calls to ve.bind( fn, ... ) with fn.bind( ... )
447e8de Use local var instead of bind() for inline functions
13f7c0b Get rid of toHashObject from ranges/selection
74fc34a Fix contextChange events from annotations
c750849 Fix broken node change detection
fdbda64 Close inspector on model select
dd8d23f Fix shift-click select on links in Chrome

Change-Id: I163bd8f04cf945bbec41b06b0a631e0a1e1e5eeb
2014-10-17 12:42:38 -07:00
jenkins-bot a0754e25eb Merge "[BrowserTest] Fix class name for ve-ui-contextMenuWidget" 2014-10-17 19:38:18 +00:00
Translation updater bot 22095c45e3 Localisation updates from https://translatewiki.net.
Change-Id: Idda9bd559f794a0e9c5d5e3e11a07b22224d9262
2014-10-17 21:18:43 +02:00
Ed Sanders ecdfeb3892 [BrowserTest] Fix class name for ve-ui-contextMenuWidget
Change-Id: Ia189ee285b5614ada69844b06545847caf21fd77
2014-10-17 19:12:42 +00:00
Alex Monk 55164d4027 Don't try to check page existence of external links in transclusion nodes
Only internal links

See bug 71900 comment 1

Change-Id: I35c9bea4c3735bdcdf8e4eda4f2a24567596e639
2014-10-17 19:49:32 +01:00
Alex Monk d087052ada Only validate required template params after blur
Bug: 72096
Change-Id: Ib699f8d89af02c9109a5711bd2c3ab4ef664d8ea
2014-10-17 17:59:13 +01:00
Translation updater bot af84e6c35b Localisation updates from https://translatewiki.net.
Change-Id: I481f44162954c26600a98c5fce0ff1c35fb5362d
2014-10-16 23:06:50 +02:00
jenkins-bot 38718a9f3e Merge "[BrowserTest] update for autopopulated fields" 2014-10-16 17:48:07 +00:00
jenkins-bot 1a68f45682 Merge "Replacing push.apply in VE-MW with ve.batchPush from VE core" 2014-10-16 17:44:51 +00:00
suchetag e3d185dd90 Replacing push.apply in VE-MW with ve.batchPush from VE core
Bug: 66206
Change-Id: Ifabfd0f28b8133e40ce822ed768442ab6a4d39ad
2014-10-16 23:12:22 +05:30
Cmcmahon ceab7f8f76 [BrowserTest] update for autopopulated fields
Website citation now auto-populates

accessdate = {{CURRENTMONTHNAME}} {{CURRENTYEAR}}

along with whatever the user puts in that field

Change-Id: Id72558f972be1ecc490fb196c941961871c21cf2
2014-10-16 10:09:04 -07:00
Roan Kattouw 7157488e20 Use relative positioning for category popups, move out of overlay
Instead of putting these popups in an overlay, put them
in the category widget. This makes scrolling work more
nicely, and makes things easier to deal with in general.

This requires that the popup position itself using
getRelativePosition(), because it's no longer in an
overlay. This also means these popups should now position
themselves correctly no matter where they are.

Change-Id: I09a1e5891a897d634c41d386a2307fe3df2a9157
2014-10-15 22:58:05 -07:00
Trevor Parscal 77eae16b88 Apply mw-body-content styles to SurfaceWidget
Changes:
* Override ve.ui.SurfaceWidget for use in MW
* Add mw-body-content class to surface view container
* Assert 1em sizing for surface view container to prevent
  mw-body-content from applying its own sizing
* Add new scripts and styles to RL config

Bug: 71652
Change-Id: Iac86facdc0c7a0e48c0f3617e2f6c2e7f001525e
2014-10-15 23:58:46 +00:00
James D. Forrester e83118a90e Update VE core submodule to master (660ac11)
New changes:
af8f17d Add CollapseToFrom/To to Selection API
90d2085 Don't force focus after history action
56f2864 More flexible selection reporting in the debug bar
f01b696 Add content-heavy table to demo HTML
4b9857d Fix typo in getSelectionBoundingRect
781e24c Update OOjs UI to v0.1.0-pre (d74a46ca6a)
93b2dc5 Fix paste by never polling while pasting
b214e89 Fix theme on mobile-dist
aaccabe Replacing push.apply with newly created ve.batchPush in VE core
a00e846 Followup 2432cbf: add recursion guard to updateSlug

Change-Id: I75881c6d6de63589eba1be85e2ee0d0242cc4478
2014-10-15 15:03:28 -07:00
Translation updater bot e4a3b90190 Localisation updates from https://translatewiki.net.
Change-Id: I53ef5ec22f1da3561daeac04af07754553767ce7
2014-10-15 22:09:26 +02:00
jenkins-bot 1b6a234d09 Merge "Put category popups in the inner overlay for now" 2014-10-15 00:17:47 +00:00
Roan Kattouw 267212c531 Put category popups in the inner overlay for now
We really shouldn't need the inner overlay for this,
we should be able to deal with popups being in
oo-ui-window-overlay. But for now, we're not, and
this fixes the current problems.

Depends on If16d16d2b in oojs-ui.

Bug: 72052
Change-Id: Ie06056b96db19ac4caf1f9c0e3a1c49cfddc6682
2014-10-14 17:02:51 -07:00
jenkins-bot 0436c01489 Merge "Correctly place CategoryPopupWidget in RTL" 2014-10-14 23:52:31 +00:00
Moriel Schottlender 64604f8415 Correctly place CategoryPopupWidget in RTL
The previous check for RTL did not properly recognize
when the UI was in RTL, since the element in question has no explicit
'dir' attribute. The test now uses $element.css( 'direction' ) which
is inherited, and produces a correct result.

Change-Id: Ie30c2038428b10709dc30cb8320bdc94d76a5a18
2014-10-14 23:50:50 +00:00
Translation updater bot 7686be00c4 Localisation updates from https://translatewiki.net.
Change-Id: Id8c5811289e434946d4cbd7384940c831607b62c
2014-10-14 23:03:00 +02:00
Roan Kattouw ed33c2583c Followup 1fc13cc: fix JS errors caused by incorrect context binding
Bug: 71997
Change-Id: Idb84a1c9dad91ef69554acb73398c0a0e30fece2
2014-10-14 12:27:46 -07:00
James D. Forrester 24e4bc5013 Update VE core submodule to master (25b398c)
New changes:
2432cbf Also make transitions when leaving slugs work again
af2072a Remove unicorn debug styling
18845bf Remove unused wrongly named class from ve.ui.Context

Change-Id: I97984a448c6ad7751a9024081e98d18685b4b930
2014-10-14 11:57:39 -07:00
jenkins-bot 6fc5ea0cab Merge "Style required but currently-invalid parameters on the template dialog" 2014-10-14 18:43:05 +00:00
jenkins-bot f870ed46cb Merge "[BrowserTest] suggest list is no longer in the iframe" 2014-10-14 18:16:17 +00:00
Cmcmahon 08e7f55a51 [BrowserTest] suggest list is no longer in the iframe
Change-Id: I20e58b4de436b09f08cbea01b05c5fa578e5721d
2014-10-14 11:13:29 -07:00
James D. Forrester 33d43066f4 Update VE core submodule to master (0dd43dc)
New changes:
93e42f0 Fix documentation
b4574e4 MobileContext fixes
312cf30 Switch mobile demo from deprecated Minerva to MediaWiki
8656c51 Localisation updates from https://translatewiki.net.
3c51598 Stage slugs
ed9a456 Get rid of trigger-happy slugChange event
1074bab Replace pawns with unicorns for pre-annotations
de5cb90 Make slug animations work again
54c711d Localisation updates from https://translatewiki.net.
c05bf65 build: Update karma and switch from PhantomJS to Chrome
d172dcc Update OOjs UI to v0.1.0-pre (837b2f733e)
d8bffa0 Fix icon opacity
22a25bc Localisation updates from https://translatewiki.net.

Local changes:
* Disable most IME tests in VE-MW because they fail

Change-Id: I475a83eac76d9c20b206113bbd0e2a4c352fdb66
2014-10-14 10:57:53 -07:00
jenkins-bot ed29d2a9d2 Merge "Fix icon opacity" 2014-10-14 16:12:32 +00:00
James D. Forrester dc99a82eac Mark action=visualeditor as an internal API
This will reduce the level to which the VisualEditor API looks like a
tempting target for third parties, given it is undocumented and isn't
supported.

Bug: 62452
Change-Id: Ib34e526fcee46ea4ffe76261012c706233461dad
2014-10-14 00:26:27 +00:00
Translation updater bot 6523aa2e7f Localisation updates from https://translatewiki.net.
Change-Id: I2d0a85e176314434dde63be479f7bc7682dbd465
2014-10-13 21:55:56 +02:00
Translation updater bot 17898d0ba9 Localisation updates from https://translatewiki.net.
Change-Id: I95899d75bd8136774b75175171527d1d4d18bb0f
2014-10-12 22:20:13 +02:00
Ed Sanders 58ecea8d0a Fix icon opacity
As of Ieb27c3fd1 apex uses solid black icons with opacity
set in CSS, so make VE icons consistent.

Change-Id: I4c38c497875686503d46a2376a7842f50bf7f2fd
2014-10-12 18:27:04 +01:00
Alex Monk 8bc150f901 Sort out some odd file permissions
Bug: 71933
Change-Id: I520ee83a9b4d6adec4b430238640cfd58b49aeb4
2014-10-12 03:01:31 +01:00
Translation updater bot 37185507ce Localisation updates from https://translatewiki.net.
Change-Id: Ifa8659d80a76b74bf7b0d6ecb7df4a9e66be7e49
2014-10-11 22:46:00 +02:00
Timo Tijhof 279db02d7f build: Remove stray '*' before '/**' in csslint file pattern
'**' is already recursive, and besides, with the extra '*' it
would actually miss files present in modules/ itself ('**' means
in the directory and recursively in all members).

Change-Id: I20011e0d4512200765030f38a2583be5aaf7c2d9
2014-10-11 03:21:21 +02:00
Timo Tijhof 8ddf622891 build: Remove 'repository' and 'licenses' key from package.json
This isn't a node.js package, but simply the packages for the
workflow in developing the extension.

This repo already has other entry points and outings for this
information.

Change-Id: Ide13e863546e6efda61086e3daf9cdfe4ed5f1ac
2014-10-11 02:59:33 +02:00
jenkins-bot 36caeb442c Merge "MWCategoryWidget: Use TextInputWidget#event-enter instead of keypress" 2014-10-10 23:44:37 +00:00
jenkins-bot 8005868566 Merge "Make MWTransclusionModel and MWTemplateDialog extensible" 2014-10-10 20:40:19 +00:00