mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-09-26 19:56:49 +00:00
Merge "Update VE core submodule to master (06f1ebb8e)"
This commit is contained in:
commit
0ce9cfcf90
|
@ -98,6 +98,7 @@
|
|||
"ve.init",
|
||||
"ve.init.Platform",
|
||||
"ve.init.Target",
|
||||
"ve.init.*Storage",
|
||||
"global",
|
||||
"ve.init.sa*"
|
||||
]
|
||||
|
|
|
@ -144,6 +144,8 @@
|
|||
|
||||
<!-- visualEditor.core.init -->
|
||||
<script src="lib/ve/src/init/ve.init.js"></script>
|
||||
<script src="lib/ve/src/init/ve.init.SafeStorage.js"></script>
|
||||
<script src="lib/ve/src/init/ve.init.ListStorage.js"></script>
|
||||
<script src="lib/ve/src/init/ve.init.Platform.js"></script>
|
||||
<script src="lib/ve/src/init/ve.init.Target.js"></script>
|
||||
|
||||
|
@ -502,6 +504,7 @@
|
|||
|
||||
<!-- visualEditor.standalone.build -->
|
||||
<script src="lib/ve/src/init/sa/ve.init.sa.js"></script>
|
||||
<script src="lib/ve/src/init/sa/ve.init.sa.SafeStorage.js"></script>
|
||||
<script src="lib/ve/src/init/sa/ve.init.sa.Platform.js"></script>
|
||||
<script src="lib/ve/src/init/sa/ve.init.sa.Target.js"></script>
|
||||
|
||||
|
|
|
@ -599,6 +599,8 @@
|
|||
"lib/ve/src/ve.utils.client.js",
|
||||
"lib/ve/src/ve.TriggerListener.js",
|
||||
"lib/ve/src/init/ve.init.js",
|
||||
"lib/ve/src/init/ve.init.SafeStorage.js",
|
||||
"lib/ve/src/init/ve.init.ListStorage.js",
|
||||
"lib/ve/src/init/ve.init.Platform.js",
|
||||
"lib/ve/src/init/ve.init.Target.js"
|
||||
],
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
"--processes": "0",
|
||||
"--warnings-exit-nonzero": true,
|
||||
"--builtin-classes": true,
|
||||
"--external": "HTMLDocument,Window,Node,Text,Set,Range,Selection,ClientRect,File,FileList,Blob,DataTransfer,DataTransferItem,KeyboardEvent,MouseEvent,Promise",
|
||||
"--external": "HTMLDocument,Window,Node,Text,Set,Range,Selection,ClientRect,File,FileList,Blob,DataTransfer,DataTransferItem,KeyboardEvent,MouseEvent,Promise,Storage",
|
||||
"--warnings": ["-nodoc(class,public)", "-global"],
|
||||
"--": [
|
||||
".jsduck/external.js",
|
||||
|
|
2
lib/ve
2
lib/ve
|
@ -1 +1 @@
|
|||
Subproject commit d9ece414a06bd4e4515337a745ea278aecc13e92
|
||||
Subproject commit 06f1ebb8ee11a0505b4a4193c29478b01257caa1
|
|
@ -503,7 +503,7 @@ ve.init.mw.DesktopArticleTarget.prototype.setupNewSection = function ( surface )
|
|||
} );
|
||||
if ( this.recovered ) {
|
||||
this.sectionTitle.setValue(
|
||||
ve.init.platform.getSession( 've-docsectiontitle' ) || ''
|
||||
ve.init.platform.sessionStorage.get( 've-docsectiontitle' ) || ''
|
||||
);
|
||||
}
|
||||
this.sectionTitle.connect( this, { change: 'onSectionTitleChange' } );
|
||||
|
@ -516,7 +516,7 @@ ve.init.mw.DesktopArticleTarget.prototype.setupNewSection = function ( surface )
|
|||
}
|
||||
surface.once( 'destroy', this.teardownNewSection.bind( this, surface ) );
|
||||
} else {
|
||||
ve.init.platform.removeSession( 've-docsectiontitle' );
|
||||
ve.init.platform.sessionStorage.remove( 've-docsectiontitle' );
|
||||
}
|
||||
};
|
||||
|
||||
|
@ -524,7 +524,7 @@ ve.init.mw.DesktopArticleTarget.prototype.setupNewSection = function ( surface )
|
|||
* Handle section title changes
|
||||
*/
|
||||
ve.init.mw.DesktopArticleTarget.prototype.onSectionTitleChange = function () {
|
||||
ve.init.platform.setSession( 've-docsectiontitle', this.sectionTitle.getValue() );
|
||||
ve.init.platform.sessionStorage.set( 've-docsectiontitle', this.sectionTitle.getValue() );
|
||||
this.updateToolbarSaveButtonState();
|
||||
};
|
||||
|
||||
|
|
|
@ -151,25 +151,12 @@ ve.init.mw.Platform.prototype.setUserConfig = function ( keyOrValueMap, value )
|
|||
}
|
||||
};
|
||||
|
||||
/**
|
||||
* @inheritdoc
|
||||
*/
|
||||
ve.init.mw.Platform.prototype.getSession = function ( key ) {
|
||||
return mw.storage.session.get( key );
|
||||
ve.init.mw.Platform.prototype.createLocalStorage = function () {
|
||||
return this.createListStorage( mw.storage );
|
||||
};
|
||||
|
||||
/**
|
||||
* @inheritdoc
|
||||
*/
|
||||
ve.init.mw.Platform.prototype.setSession = function ( key, value ) {
|
||||
return mw.storage.session.set( key, value );
|
||||
};
|
||||
|
||||
/**
|
||||
* @inheritdoc
|
||||
*/
|
||||
ve.init.mw.Platform.prototype.removeSession = function ( key ) {
|
||||
return mw.storage.session.remove( key );
|
||||
ve.init.mw.Platform.prototype.createSessionStorage = function () {
|
||||
return this.createListStorage( mw.storage.session );
|
||||
};
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue