feature(cloudcmd) --one-panel-mode -> --one-file-panel

This commit is contained in:
coderaiser 2018-04-10 11:45:52 +03:00
parent 0cb953af85
commit 7e14d61a34
11 changed files with 8 additions and 75 deletions

View file

@ -47,10 +47,6 @@ const notEmpty = (a) => a;
const clean = (a) => a.filter(notEmpty);
const noop = () => {};
const deprecateOnePanelMode = (value) => {
util.deprecate(noop, 'onePanelMode is deprecated, use oneFilePanel instead', 'DP0001')();
config('oneFilePanel', value);
};
module.exports = (params) => {
const p = params || {};
@ -65,11 +61,7 @@ module.exports = (params) => {
keys.forEach((name) => {
const value = options[name];
if (name === 'onePanelMode')
deprecateOnePanelMode();
else if (name === 'oneFilePanel')
config('onePanelMode', value);
else if (/root|editor|packer|columns/.test(name))
if (/root|editor|packer|columns/.test(name))
validate[name](value);
config(name, value);

View file

@ -82,7 +82,7 @@ module.exports = currify((options, request, response, callback) => {
* additional processing of index file
*/
function indexProcessing(options) {
const oneFilePanel = config('onePanelMode');
const oneFilePanel = config('oneFilePanel');
const noContact = !config('contact');
const noConfig = !config('configDialog');
const noConsole = !config('console');