mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-23 02:35:49 +00:00
feature(cloudcmd) --one-panel-mode -> --one-file-panel
This commit is contained in:
parent
0cb953af85
commit
7e14d61a34
11 changed files with 8 additions and 75 deletions
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -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');
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue