mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-23 02:35:49 +00:00
chore: lint
This commit is contained in:
parent
8e25a02568
commit
88da092fdb
38 changed files with 125 additions and 124 deletions
|
|
@ -29,9 +29,9 @@ module.exports.formatMsg = (msg, name, status) => {
|
|||
name = name || '';
|
||||
|
||||
if (name)
|
||||
name = '("' + name + '")';
|
||||
name = `("${name}")`;
|
||||
|
||||
return msg + ': ' + status + name;
|
||||
return `${msg}: ${status}${name}`;
|
||||
};
|
||||
|
||||
/**
|
||||
|
|
@ -82,10 +82,10 @@ function getPathLink(url, prefix, template) {
|
|||
const isLast = i === n - 1;
|
||||
|
||||
if (i)
|
||||
path += name + '/';
|
||||
path += `${name}/`;
|
||||
|
||||
if (i && isLast) {
|
||||
lines.push(name + '/');
|
||||
lines.push(`${name}/`);
|
||||
continue;
|
||||
}
|
||||
|
||||
|
|
@ -164,7 +164,7 @@ module.exports.buildFromJSON = (params) => {
|
|||
/* сохраняем путь */
|
||||
Path(path);
|
||||
|
||||
fileTable += header + '<ul data-name="js-files" class="files">';
|
||||
fileTable += `${header}<ul data-name="js-files" class="files">`;
|
||||
|
||||
/* Если мы не в корне */
|
||||
if (path !== '/') {
|
||||
|
|
@ -178,7 +178,7 @@ module.exports.buildFromJSON = (params) => {
|
|||
});
|
||||
|
||||
const dataName = getDataName('..');
|
||||
const attribute = 'draggable="true" ' + dataName;
|
||||
const attribute = `draggable="true" ${dataName}`;
|
||||
|
||||
/* Сохраняем путь к каталогу верхнего уровня*/
|
||||
fileTable += rendy(template.file, {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue