Skip to content

Commit f7379c0

Browse files
committed
chore: lint
1 parent 51f51b5 commit f7379c0

File tree

8 files changed

+15
-20
lines changed

8 files changed

+15
-20
lines changed

client/client.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,7 @@ function CloudCmdProto(DOM) {
9494
imgPosition = 'top';
9595

9696
Images.show.load(imgPosition, panel);
97+
9798
/* загружаем содержимое каталога */
9899
await ajaxLoad(addSlashToEnd(path), {
99100
refresh,
@@ -237,7 +238,7 @@ function CloudCmdProto(DOM) {
237238

238239
const dirPath = DOM.getCurrentDirPath();
239240

240-
Listeners = CloudCmd.Listeners;
241+
({Listeners} = CloudCmd);
241242
Listeners.init();
242243

243244
const panels = getPanels();

client/dom/load-remote.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ module.exports = (name, options, callback = options) => {
2929

3030
if (isArray) {
3131
remoteTmpls = module.remote;
32-
local = module.local;
32+
({local} = module);
3333
} else {
3434
remoteTmpls = [module.remote];
3535
local = [module.local];

client/dom/load.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ module.exports.ajax = (params) => {
6363
if (!isArrayBuf && isObject || isArray)
6464
data = jonny.stringify(p.data);
6565
else
66-
data = p.data;
66+
({data} = p);
6767

6868
xhr.onreadystatechange = (event) => {
6969
const xhr = event.target;

client/listeners/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ async function onPathElementClick(panel, event) {
216216
function copyPath(el) {
217217
clipboard
218218
.writeText(el
219-
.parentElement.title)
219+
.parentElement.title)
220220
.then(CloudCmd.log)
221221
.catch(CloudCmd.log);
222222
}

client/modules/menu.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -276,6 +276,7 @@ function download(type) {
276276
const path = DOM.getCurrentPath(file);
277277

278278
CloudCmd.log(`downloading file ${path}...`);
279+
279280
/*
280281
* if we send ajax request -
281282
* no need in hash so we escape #

client/modules/operation/index.js

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -343,10 +343,13 @@ async function _processFiles(options, data) {
343343
let names = [];
344344

345345
if (data) {
346-
from = data.from;
347-
to = data.to;
348-
names = data.names;
349-
panel = Info.panel;
346+
({
347+
from,
348+
to,
349+
names,
350+
} = data);
351+
352+
({panel} = Info);
350353
} else {
351354
from = Info.dirPath;
352355
to = DOM.getNotCurrentDirPath();

client/modules/user-menu/navigate.js

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,7 @@
22

33
const fullstore = require('fullstore');
44

5-
const {
6-
J,
7-
K,
8-
UP,
9-
DOWN,
10-
} = require('../../key/key.js');
5+
const {J, K, UP, DOWN} = require('../../key/key.js');
116

127
const store = fullstore(1);
138
const isDigit = (a) => /^\d+$/.test(a);

client/modules/user-menu/navigate.spec.js

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,7 @@
33
const test = require('supertape');
44
const navigate = require('./navigate');
55

6-
const {
7-
UP,
8-
DOWN,
9-
J,
10-
K,
11-
} = require('../../key/key.js');
6+
const {UP, DOWN, J, K} = require('../../key/key.js');
127

138
test('cloudcmd: user-menu: navigate: DOWN', (t) => {
149
const el = {

0 commit comments

Comments
 (0)