Commit graph

323 commits

Author SHA1 Message Date
jenkins-bot b67019e0c2 Merge "Implement new browser compatibility checks" 2013-06-05 12:32:56 +00:00
Ed Sanders aaa5ad254b Implement new browser compatibility checks
We now have three stages:
1. Browser feature tests. Dies silently if any fail.
2. Browser blacklist. Dies silently if match found.
3. Browser whitelist. Shows warning if no match found.

Previously we were treating the remotely generated
edit notices as if they were in an object when
in fact they were in an array - the code has been
fixed to reflect that fact.

As locally generated notices will typically require
parsed messages, we've also moved the notice rendering
to after onReady is fired.

Updated jquery.client to latest master from MediaWiki core
(needed for proper detection of Iceweasel, Android and Safari)

Bug: 38128
Change-Id: Idc5f4a23a2709264d869a91d00873c4e187bc470
2013-06-05 14:29:36 +02:00
Translation updater bot 3f1dc8059c Localisation updates from http://translatewiki.net.
Change-Id: I32f8aafbb6093f321ca46d2b759b95fa5fea9504
2013-06-04 09:33:18 +00:00
Translation updater bot 065b8c7ff9 Localisation updates from http://translatewiki.net.
Change-Id: I5f4e2e9a04316fd9a30961c367af2424304bbe52
2013-06-03 19:11:48 +00:00
Translation updater bot 43c6e88bbf Localisation updates from http://translatewiki.net.
Change-Id: Id809fd2303ffd336dfc812da4ae418ba92e111c1
2013-06-03 11:58:27 +00:00
Translation updater bot 42fc8ecf4c Localisation updates from http://translatewiki.net.
Change-Id: I541c827aed5fbdc6d5308007378f6714f6b80821
2013-05-29 08:42:18 +00:00
jenkins-bot 6ddf7f3695 Merge "Rename 'langlinks' to 'languages'" 2013-05-26 09:19:45 +00:00
Translation updater bot 21769c8730 Localisation updates from http://translatewiki.net.
Change-Id: Id0be8b082f241ba0be50b477173db525d32e394b
2013-05-26 08:45:12 +00:00
Ed Sanders dd0086468e Rename 'langlinks' to 'languages'
For internal naming consistency (e.g. with MWLanguageMetaItem).

Change-Id: Ifb53fa10da52e1ea87389b024b7c581b8dd730e6
2013-05-25 18:07:46 +02:00
James D. Forrester 5819375022 Internationalisation for the metadata dialog
Change-Id: Iefb6d5c90583f0684cb9548d38b83048b43d3c81
2013-05-25 10:11:35 +00:00
Translation updater bot 331d74ca60 Localisation updates from http://translatewiki.net.
Change-Id: I7dc7ab1b79f2a8807ec4cbb849e01e07143f54b1
2013-05-25 08:29:47 +00:00
Ed Sanders ce86aa77c8 Add MW meta button to toolbar
Bug: 48561
Change-Id: Ibf63329a53bcd8043d46315239c19be4e681a18a
2013-05-24 15:54:50 +00:00
Translation updater bot 936a7fa3ac Localisation updates from http://translatewiki.net.
Change-Id: I46da13c29a2f21fd36da068df338276d8f2ace2e
2013-05-24 08:39:15 +00:00
Translation updater bot be912c464c Localisation updates from http://translatewiki.net.
Change-Id: I2797cd857bfe1ebb301c617ac0a806cede2c5a50
2013-05-23 05:44:55 +00:00
Translation updater bot d5ecd18bb2 Localisation updates from http://translatewiki.net.
Change-Id: I02bdae14ac66abf865cc9fbaeca41367dbc7cadb
2013-05-21 06:01:09 +00:00
jenkins-bot 8ba06a89b8 Merge "Refetch the token when we get a badtoken error" 2013-05-20 20:04:36 +00:00
jenkins-bot f31e8d19d9 Merge changes Icbab46af,Ied54d2b7
* changes:
  Move toolbar cancel message to VE specific message
  Remove parsedMessages from messages array
2013-05-18 16:48:36 +00:00
jenkins-bot bbfdb30f87 Merge "Change 'Edit source' to 'Create source' for new pages" 2013-05-18 10:19:01 +00:00
Catrope 6f0c739d42 Refetch the token when we get a badtoken error
Intercept badtoken errors, refetch the edit token from the
action=tokens API, and retry the request again. If this fails too,
show the error to the user.

Right now this just shows the good old confirm() dialog if the token
refetch fails; we should probaby give the user a clearer error message
telling them to refresh the page or something.

Bug: 42984
Change-Id: Ib43d1938ffa24bc8d1dc76a300e16e486dabd928
2013-05-17 19:15:21 -07:00
Translation updater bot d8051f4006 Localisation updates from http://translatewiki.net.
Change-Id: I3f4502145e220843975bf2c3b6342a90b6774299
2013-05-17 20:51:58 +00:00
Ed Sanders e968fc717f Change 'Edit source' to 'Create source' for new pages
Bug: 47421
Change-Id: Iafba040cb8eb53017f38f2099a473e0e43e2ec46
2013-05-17 18:43:41 +01:00
Ed Sanders f56bdf70fd Move toolbar cancel message to VE specific message
Be consistent with all other button messages.

Change-Id: Icbab46aff210b79db59de688d539b8e69a13ec0d
2013-05-17 15:21:46 +01:00
Translation updater bot 83bdceb64c Localisation updates from http://translatewiki.net.
Change-Id: I14e7d7bac0117b405066166a6bbd47bd8a3748c6
2013-05-16 20:23:42 +00:00
Catrope c52c18441c Revert "Localisation updates from http://translatewiki.net."
This reverts commit b91469867d

Change-Id: I2e48e70597f13ffb6b59c3d780442288b5087046
2013-05-15 21:16:12 +00:00
Translation updater bot b91469867d Localisation updates from http://translatewiki.net.
Change-Id: I405c871bce7014222ee24ed1b995ca29408bff82
2013-05-15 21:11:48 +00:00
Trevor Parscal 231a50f2b6 Implement ve.ui.MWTemplateDialog
Objective:

* Add button to launch template dialog
* Add template dialog

Changes;

*.php
* Add messages and links to files

ve.ce.Node.css
* Make inline templates display as inline-block to contain their
  contents (allowing shields to work properly)

ve.ui.MWTemplateDialog.js
* New empty dialog for templates

ve.ui.MWTemplateButtonTool.js
* New template button, appears in context and launches dialog

Change-Id: I9174ed7c9012522246a6defc859276bf36763f5b
2013-05-15 19:36:18 +00:00
Ed Sanders f675d73204 Move no changes message to separate save dialog slide
Previously it was just being returned as the diff html, which
looked weird becacuse 1: it was the wrong width and 2: the
save buttons were still there.

Bug: 43754
Change-Id: I537bcae91f51a3f30ca4736c41f7a5619bbf321d
2013-05-14 16:40:14 -07:00
Ed Sanders ea6e1b26ed Move edit conflict notice to a save dialog slide
Previously used a confirm() dialog which is a bit ugly.

Bug: 42522
Change-Id: I709d936d998b130515b62de880c6e7aa7978786b
2013-05-14 16:31:58 -07:00
Translation updater bot a3927850e5 Localisation updates from http://translatewiki.net.
Change-Id: I7a5e28780b95155519e2fb9d0d0e09125719bc8b
2013-05-14 21:32:50 +00:00
Trevor Parscal 67a2613a12 Reference dialog
Objective:

Add a basic (empty) dialog for mediawiki references. Editor to follow.

Changes:

*.php
* Added file links and messages

ve.ui.MWMetaDialog.js
* Moved initialize method to the top (for consistent ordering)

ve.ui.MWReferenceDialog.js
* New class, basic empty dialog for references

ve.ui.LinkInspector.js, ve.ui.MWLinkInspector.js, ve.ui.MediaButtonTool.js
* Cleanup documentation
* Whitespace

icons.ai, reference.png, reference.svg
* Switch to reference icon being 3 books on a shelf

ve.ui.MWReferenceButtonTool.js
* New class, basic dialog button for references

Change-Id: Ia4e30e9239fa1e3b28c0a1ef1ca0a6515a8103ef
2013-05-13 13:10:59 -07:00
Translation updater bot f94d5cccc1 Localisation updates from http://translatewiki.net.
Change-Id: I9185e045a20582b04962a03392f67c73aee8fe0f
2013-05-13 19:55:10 +00:00
Translation updater bot da4ddbc4d9 Localisation updates from http://translatewiki.net.
Change-Id: Ifd9a13e5f4236c55b2313c1df5ec189baca08ec6
2013-05-11 19:43:28 +00:00
Ed Sanders 375a7fceff Access keys for edit and edit source
Set up 'v' for edit, and 'e' for edit source as access keys.

Bug: 48107
Change-Id: I598177bc75ed84dea35952a3b2b1b2111aac89b2
2013-05-10 17:10:26 -07:00
Catrope 3f9f764949 Output a nice message when the diff is empty
Bug: 43754
Change-Id: I8daae124b060ccf54ce5ca7c1e1a6d18b7265ade
2013-05-10 15:34:18 -07:00
Translation updater bot 5c40ba89c0 Localisation updates from http://translatewiki.net.
Change-Id: I263431ad6d92d3d62497bffcc0abd930f675c9aa
2013-05-10 19:57:31 +00:00
Trevor Parscal e888d7b985 Category UI improvements
Objectives:
* Ensure items don't get moved to the end when their sort-key is edited
* Add placeholder text and pending styling to input
* Auto-expand input to the end of the line
* Make the minimum input width smaller

Changes:

ve.ui.MWMetaDialog.js
* Added calls to fitInput on initialize
* Fixed sort key update and insert handlers to maintain item position when updating

ve.ui.GroupElement.js
* Added index argument to addItems, allowing items to be inserted at a specific location

ve.ui.PagePanelLayout.js
* Fixed CSS class name

ve.ui.StackPanelLayout.js, ve.ui.MenuWidget.js, ve.ui.SelectWidget.js
* Passed index argument through to group element

ve.ui.PanelLayout.js
* Fixed overflow direction for scrolling option

ve.ui.Inspector.css
* Moved border-box properties to text input widget class
* Set input widget within inspectors to be 100% by default

ve.ui.Layout.css
* Updated CSS class name
* Whitespace fixes

ve.ui.Widget.css
* Made text input widgets's wrapper default to 20em wide and the input inside it be 100%, using border-box to ensure proper sizing
* Adjusted category list item and input styles to make input appear more like a category item
* Whitespace fixes

ve.ui.MWCategoryInputWidget.js
* Made category input widget inherit text input widget, rather than just input widget

ve.ui.MWCategoryWidget.js
* Replaced group functionality by mixing in group element
* Added fitInput, which automatically make the input fill the rest of the line or take up the entire next line depending on how much space is left

VisualEditor.i18n.php
* Adjusted placeholder text for category input

Change-Id: I79a18a7b849804027473084a42c36133fdacad57
2013-05-10 00:19:46 +00:00
Translation updater bot d30378013e Localisation updates from http://translatewiki.net.
Change-Id: I333bb2869366ae69ab210bf21f2b7ca78209e7d5
2013-05-09 20:33:25 +00:00
Translation updater bot 9c37181788 Localisation updates from http://translatewiki.net.
Change-Id: Ia26c0c0675a018f487524dc5b6d3ffc757c99f9f
2013-05-08 20:22:53 +00:00
Translation updater bot b706295f81 Localisation updates from http://translatewiki.net.
Change-Id: I8f74b7bce92ba91fce39387edc0307c6a753b929
2013-05-07 20:20:03 +00:00
Translation updater bot 8e1eb317b5 Localisation updates from http://translatewiki.net.
Change-Id: I2f5b38067c995de61c249abdfa64d394314afcce
2013-05-06 20:22:13 +00:00
Translation updater bot 2f6c0409e8 Localisation updates from http://translatewiki.net.
Change-Id: I7db778949f1e4dff4d780808c8c24601bf7ac74a
2013-05-05 21:11:45 +00:00
Translation updater bot b8c95dace1 Localisation updates from http://translatewiki.net.
Change-Id: I5bb2e690191dea436e6659ae7511f851a2e76f38
2013-05-04 20:26:23 +00:00
Translation updater bot def5c20269 Localisation updates from http://translatewiki.net.
Change-Id: If66dac65058527d3a1b7299b6b28348f2af85d29
2013-05-02 20:50:31 +00:00
Translation updater bot 7c02b6052b Localisation updates from http://translatewiki.net.
Change-Id: I19074dc7b902b2870438bb2e542d7c76e688e6b4
2013-05-01 20:39:50 +00:00
Translation updater bot f8d81c66b6 Localisation updates from http://translatewiki.net.
Change-Id: I8fbb953b557967f568c33bcf62b4cfd1ea122461
2013-04-30 21:19:16 +00:00
Trevor Parscal 718db58fd5 Category editing
Modifications:

VisualEditor.php
* Added links to new widgets

VisualEditor.i18n.php
* Added placeholder text for category input

ve.ui.Widget.css
* Added styles for new widgets

New:

ve.ui.MWMetaDialog.js
* Create category widget with categories from dm.
* Listen to metaList for insert and remove events
** insert / remove bound methods to be improved upon additional meta groups
* Add listeners to mwCategoryWidget for new categories and updates

ve.ui.MWCategoryWidget.js
* Top-level category editing widget

ve.ui.MWCategoryItemWidget.js
* Items within a category widget

ve.ui.MWCategoryInputWidget.js
* Input for new categories, handles menu and API requests

ve.ui.MWCategoryPopupWidget.js
* Mini-inspector for a category item

Bug: 39597
Change-Id: I5eafaa484a1924a566d3a1ee1d869293089d0ecf
2013-04-30 17:50:31 +00:00
Translation updater bot 3e6f36d27f Localisation updates from http://translatewiki.net.
Change-Id: I5355846543cacf41656e05c3bdc45ad458dd4d49
2013-04-29 20:03:41 +00:00
Translation updater bot 50e86936be Localisation updates from http://translatewiki.net.
Change-Id: I6338609aefffbbe2bbc6c7d317069e59d2a9a6f1
2013-04-28 23:58:38 +00:00
Translation updater bot 9dcc627a1a Localisation updates from http://translatewiki.net.
Change-Id: I323d7b9d6f326ce1f99853a51a9e248d6828703c
2013-04-27 20:30:00 +00:00
Translation updater bot 50810533bd Localisation updates from http://translatewiki.net.
Change-Id: I31dd15bacdd46bd0be299e99af6163dec72734d5
2013-04-26 22:15:48 +00:00