chore(cloudcmd) lint

This commit is contained in:
coderaiser 2019-04-04 11:46:31 +03:00
parent 46102d1a76
commit 3cf12de6c0
7 changed files with 9 additions and 0 deletions

View file

@ -107,6 +107,7 @@ function CloudCmdProto(DOM) {
} = p;
let panelChanged;
if (!noCurrent)
if (panel && panel !== Info.panel) {
DOM.changePanel();
@ -114,6 +115,7 @@ function CloudCmdProto(DOM) {
}
let imgPosition;
if (panelChanged || refresh || !history)
imgPosition = 'top';

View file

@ -29,6 +29,7 @@ module.exports = (name, options, callback = options) => {
let remoteTmpls;
let local;
if (isArray) {
remoteTmpls = module.remote;
local = module.local;

View file

@ -57,6 +57,7 @@ module.exports.ajax = (params) => {
xhr.responseType = p.responseType;
let data;
if (!isArrayBuf && isObject || isArray)
data = jonny.stringify(p.data);
else
@ -81,6 +82,7 @@ module.exports.ajax = (params) => {
const isContain = ~type.indexOf(TYPE_JSON);
let data = xhr.response;
if (type && isContain && notText)
data = jonny.parse(xhr.response) || xhr.response;

View file

@ -170,6 +170,7 @@ function fillTemplate(error, template) {
const [inputFirst] = inputs;
let afterShow;
if (inputFirst) {
onAuthChange(inputFirst.checked);
afterShow = inputFirst.focus.bind(inputFirst);

View file

@ -272,6 +272,7 @@ function promptDelete() {
const n = names.length;
let msg;
if (n) {
let name = '';

View file

@ -160,6 +160,7 @@ module.exports.buildFromJSON = (params) => {
Path(path);
fileTable += header + '<ul data-name="js-files" class="files">';
/* Если мы не в корне */
if (path !== '/') {
const dotDot = getDotDot(path);

View file

@ -146,6 +146,7 @@ function indexProcessing(options) {
});
let right = '';
if (!oneFilePanel)
right = rendy(Template.panel, {
side : 'right',