mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-24 14:33:59 +00:00
Cleanup unused dialogs
Objectives: * Remove unused dialogs Changes: *.js * Remove unused stuff *.php * Cleanup links to files and messages Change-Id: Ie670afa3aef1757151e385bf922464b85f662a7d
This commit is contained in:
parent
2bccb3da85
commit
8f9d2a607e
|
@ -26,9 +26,8 @@ $messages['en'] = array(
|
|||
'visualeditor-ca-ve-edit' => 'VisualEditor',
|
||||
'visualeditor-ca-ve-create' => 'VisualEditor',
|
||||
'visualeditor-dialog-meta-title' => 'Page settings',
|
||||
'visualeditor-dialog-content-title' => 'Content settings',
|
||||
'visualeditor-dialog-media-title' => 'Media settings',
|
||||
'visualeditor-dialog-reference-title' => 'Reference',
|
||||
'visualeditor-dialog-media-title' => 'Media settings',
|
||||
'visualeditor-dialog-template-title' => 'Template',
|
||||
'visualeditor-dialog-media-insert-title' => 'Insert media',
|
||||
'visualeditor-dialog-media-insert-button' => 'Insert media',
|
||||
|
|
|
@ -427,8 +427,6 @@ $wgResourceModules += array(
|
|||
've/ui/layouts/ve.ui.PanelLayout.js',
|
||||
've/ui/layouts/ve.ui.StackPanelLayout.js',
|
||||
|
||||
've/ui/dialogs/ve.ui.ContentDialog.js',
|
||||
've/ui/dialogs/ve.ui.MediaDialog.js',
|
||||
've/ui/dialogs/ve.ui.PagedDialog.js',
|
||||
've/ui/dialogs/ve.ui.MWMetaDialog.js',
|
||||
|
||||
|
@ -443,7 +441,6 @@ $wgResourceModules += array(
|
|||
've/ui/tools/buttons/ve.ui.BoldButtonTool.js',
|
||||
've/ui/tools/buttons/ve.ui.ItalicButtonTool.js',
|
||||
've/ui/tools/buttons/ve.ui.ClearButtonTool.js',
|
||||
've/ui/tools/buttons/ve.ui.MediaButtonTool.js',
|
||||
've/ui/tools/buttons/ve.ui.LinkButtonTool.js',
|
||||
've/ui/tools/buttons/ve.ui.MWLinkButtonTool.js',
|
||||
've/ui/tools/buttons/ve.ui.BulletButtonTool.js',
|
||||
|
@ -521,11 +518,10 @@ $wgResourceModules += array(
|
|||
'visualeditor-saveerror',
|
||||
'visualeditor-editconflict',
|
||||
'visualeditor-aliennode-tooltip',
|
||||
'visualeditor-dialog-media-title',
|
||||
'visualeditor-dialog-content-title',
|
||||
'visualeditor-dialog-action-apply',
|
||||
'visualeditor-dialog-action-cancel',
|
||||
'visualeditor-dialog-action-close',
|
||||
'visualeditor-dialog-media-title',
|
||||
'visualeditor-dialog-meta-title',
|
||||
'visualeditor-dialog-meta-categories-section',
|
||||
'visualeditor-dialog-meta-categories-data-label',
|
||||
|
|
|
@ -277,8 +277,6 @@ $html = file_get_contents( $page );
|
|||
<script src="../../modules/ve/ui/layouts/ve.ui.GridLayout.js"></script>
|
||||
<script src="../../modules/ve/ui/layouts/ve.ui.PanelLayout.js"></script>
|
||||
<script src="../../modules/ve/ui/layouts/ve.ui.StackPanelLayout.js"></script>
|
||||
<script src="../../modules/ve/ui/dialogs/ve.ui.ContentDialog.js"></script>
|
||||
<script src="../../modules/ve/ui/dialogs/ve.ui.MediaDialog.js"></script>
|
||||
<script src="../../modules/ve/ui/dialogs/ve.ui.PagedDialog.js"></script>
|
||||
<script src="../../modules/ve/ui/dialogs/ve.ui.MWMetaDialog.js"></script>
|
||||
<script src="../../modules/ve/ui/tools/ve.ui.ButtonTool.js"></script>
|
||||
|
@ -291,7 +289,6 @@ $html = file_get_contents( $page );
|
|||
<script src="../../modules/ve/ui/tools/buttons/ve.ui.BoldButtonTool.js"></script>
|
||||
<script src="../../modules/ve/ui/tools/buttons/ve.ui.ItalicButtonTool.js"></script>
|
||||
<script src="../../modules/ve/ui/tools/buttons/ve.ui.ClearButtonTool.js"></script>
|
||||
<script src="../../modules/ve/ui/tools/buttons/ve.ui.MediaButtonTool.js"></script>
|
||||
<script src="../../modules/ve/ui/tools/buttons/ve.ui.LinkButtonTool.js"></script>
|
||||
<script src="../../modules/ve/ui/tools/buttons/ve.ui.MWLinkButtonTool.js"></script>
|
||||
<script src="../../modules/ve/ui/tools/buttons/ve.ui.BulletButtonTool.js"></script>
|
||||
|
|
|
@ -230,8 +230,6 @@
|
|||
<script src="../../ve/ui/layouts/ve.ui.GridLayout.js"></script>
|
||||
<script src="../../ve/ui/layouts/ve.ui.PanelLayout.js"></script>
|
||||
<script src="../../ve/ui/layouts/ve.ui.StackPanelLayout.js"></script>
|
||||
<script src="../../ve/ui/dialogs/ve.ui.ContentDialog.js"></script>
|
||||
<script src="../../ve/ui/dialogs/ve.ui.MediaDialog.js"></script>
|
||||
<script src="../../ve/ui/dialogs/ve.ui.PagedDialog.js"></script>
|
||||
<script src="../../ve/ui/dialogs/ve.ui.MWMetaDialog.js"></script>
|
||||
<script src="../../ve/ui/tools/ve.ui.ButtonTool.js"></script>
|
||||
|
@ -244,7 +242,6 @@
|
|||
<script src="../../ve/ui/tools/buttons/ve.ui.BoldButtonTool.js"></script>
|
||||
<script src="../../ve/ui/tools/buttons/ve.ui.ItalicButtonTool.js"></script>
|
||||
<script src="../../ve/ui/tools/buttons/ve.ui.ClearButtonTool.js"></script>
|
||||
<script src="../../ve/ui/tools/buttons/ve.ui.MediaButtonTool.js"></script>
|
||||
<script src="../../ve/ui/tools/buttons/ve.ui.LinkButtonTool.js"></script>
|
||||
<script src="../../ve/ui/tools/buttons/ve.ui.MWLinkButtonTool.js"></script>
|
||||
<script src="../../ve/ui/tools/buttons/ve.ui.BulletButtonTool.js"></script>
|
||||
|
|
|
@ -1,34 +0,0 @@
|
|||
/*!
|
||||
* VisualEditor user interface ContentDialog class.
|
||||
*
|
||||
* @copyright 2011-2013 VisualEditor Team and others; see AUTHORS.txt
|
||||
* @license The MIT License (MIT); see LICENSE.txt
|
||||
*/
|
||||
|
||||
/**
|
||||
* Document dialog.
|
||||
*
|
||||
* @class
|
||||
* @abstract
|
||||
* @extends ve.ui.Dialog
|
||||
*
|
||||
* @constructor
|
||||
* @param {ve.ui.Surface} surface
|
||||
* @param {Object} [config] Config options
|
||||
*/
|
||||
ve.ui.ContentDialog = function VeUiContentDialog( surface, config ) {
|
||||
// Parent constructor
|
||||
ve.ui.Dialog.call( this, surface, config );
|
||||
};
|
||||
|
||||
/* Inheritance */
|
||||
|
||||
ve.inheritClass( ve.ui.ContentDialog, ve.ui.Dialog );
|
||||
|
||||
/* Static Properties */
|
||||
|
||||
ve.ui.ContentDialog.static.titleMessage = 'visualeditor-dialog-content-title';
|
||||
|
||||
/* Registration */
|
||||
|
||||
ve.ui.dialogFactory.register( 'content', ve.ui.ContentDialog );
|
|
@ -1,42 +0,0 @@
|
|||
/*!
|
||||
* VisualEditor user interface MediaDialog class.
|
||||
*
|
||||
* @copyright 2011-2013 VisualEditor Team and others; see AUTHORS.txt
|
||||
* @license The MIT License (MIT); see LICENSE.txt
|
||||
*/
|
||||
|
||||
/**
|
||||
* Document dialog.
|
||||
*
|
||||
* @class
|
||||
* @abstract
|
||||
* @extends ve.ui.Dialog
|
||||
*
|
||||
* @constructor
|
||||
* @param {ve.ui.Surface} surface
|
||||
* @param {Object} [config] Config options
|
||||
*/
|
||||
ve.ui.MediaDialog = function VeUiMediaDialog( surface, config ) {
|
||||
// Parent constructor
|
||||
ve.ui.Dialog.call( this, surface, config );
|
||||
};
|
||||
|
||||
/* Inheritance */
|
||||
|
||||
ve.inheritClass( ve.ui.MediaDialog, ve.ui.Dialog );
|
||||
|
||||
/* Static Properties */
|
||||
|
||||
ve.ui.MediaDialog.static.titleMessage = 'visualeditor-dialog-media-title';
|
||||
|
||||
ve.ui.MediaDialog.static.icon = 'picture';
|
||||
|
||||
ve.ui.MediaDialog.static.modelClasses = [ ve.dm.ImageNode ];
|
||||
|
||||
/* Methods */
|
||||
|
||||
/* Registration */
|
||||
|
||||
ve.ui.dialogFactory.register( 'media', ve.ui.MediaDialog );
|
||||
|
||||
ve.ui.viewRegistry.register( 'media', ve.ui.MediaDialog );
|
|
@ -1,38 +0,0 @@
|
|||
/*!
|
||||
* VisualEditor UserInterface MediaButtonTool class.
|
||||
*
|
||||
* @copyright 2011-2013 VisualEditor Team and others; see AUTHORS.txt
|
||||
* @license The MIT License (MIT); see LICENSE.txt
|
||||
*/
|
||||
|
||||
/**
|
||||
* Media button tool.
|
||||
*
|
||||
* @class
|
||||
* @extends ve.ui.DialogButtonTool
|
||||
* @constructor
|
||||
* @param {ve.ui.Toolbar} toolbar
|
||||
* @param {Object} [config] Config options
|
||||
*/
|
||||
ve.ui.MediaButtonTool = function VeUiMediaButtonTool( toolbar, config ) {
|
||||
// Parent constructor
|
||||
ve.ui.DialogButtonTool.call( this, toolbar, config );
|
||||
};
|
||||
|
||||
/* Inheritance */
|
||||
|
||||
ve.inheritClass( ve.ui.MediaButtonTool, ve.ui.DialogButtonTool );
|
||||
|
||||
/* Static Properties */
|
||||
|
||||
ve.ui.MediaButtonTool.static.name = 'media';
|
||||
|
||||
ve.ui.MediaButtonTool.static.icon = 'picture';
|
||||
|
||||
ve.ui.MediaButtonTool.static.titleMessage = 'visualeditor-dialogbutton-media-tooltip';
|
||||
|
||||
ve.ui.MediaButtonTool.static.dialog = 'media';
|
||||
|
||||
/* Registration */
|
||||
|
||||
ve.ui.toolFactory.register( 'media', ve.ui.MediaButtonTool );
|
Loading…
Reference in a new issue