mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-23 10:45:47 +00:00
chore(cloudcmd) lint
This commit is contained in:
parent
46102d1a76
commit
3cf12de6c0
7 changed files with 9 additions and 0 deletions
|
|
@ -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';
|
||||
|
||||
|
|
|
|||
|
|
@ -29,6 +29,7 @@ module.exports = (name, options, callback = options) => {
|
|||
|
||||
let remoteTmpls;
|
||||
let local;
|
||||
|
||||
if (isArray) {
|
||||
remoteTmpls = module.remote;
|
||||
local = module.local;
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
|
|
@ -170,6 +170,7 @@ function fillTemplate(error, template) {
|
|||
const [inputFirst] = inputs;
|
||||
|
||||
let afterShow;
|
||||
|
||||
if (inputFirst) {
|
||||
onAuthChange(inputFirst.checked);
|
||||
afterShow = inputFirst.focus.bind(inputFirst);
|
||||
|
|
|
|||
|
|
@ -272,6 +272,7 @@ function promptDelete() {
|
|||
const n = names.length;
|
||||
|
||||
let msg;
|
||||
|
||||
if (n) {
|
||||
let name = '';
|
||||
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -146,6 +146,7 @@ function indexProcessing(options) {
|
|||
});
|
||||
|
||||
let right = '';
|
||||
|
||||
if (!oneFilePanel)
|
||||
right = rendy(Template.panel, {
|
||||
side : 'right',
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue