chore: lint

This commit is contained in:
coderiaser 2025-07-04 12:51:42 +03:00
parent e99d084728
commit af77eeed8d
14 changed files with 143 additions and 91 deletions

View file

@ -31,7 +31,7 @@ const getOperations = (event, deps) => {
getCurrentName,
toggleSelectedFile,
Buffer = {},
Buffer = {},
} = deps;
return {

View file

@ -215,8 +215,7 @@ async function onPathElementClick(panel, event) {
function copyPath(el) {
clipboard
.writeText(el
.parentElement.title)
.writeText(el.parentElement.title)
.then(CloudCmd.log)
.catch(CloudCmd.log);
}
@ -422,7 +421,7 @@ function dragndrop() {
};
/**
* In Mac OS Chrome dropEffect = 'none'
* In macOS Chrome dropEffect = 'none'
* so drop do not firing up when try
* to upload file from download bar
*/

View file

@ -59,19 +59,19 @@ module.exports.init = promisify((callback) => {
exec.series([
DOM.loadSocket,
async (callback) => {
if (config('dropbox'))
return callback();
const {prefix, prefixSocket} = CloudCmd;
await loadAll();
await initOperations(prefix, prefixSocket, callback);
},
if (config('dropbox'))
return callback();
const {prefix, prefixSocket} = CloudCmd;
await loadAll();
await initOperations(prefix, prefixSocket, callback);
},
(callback) => {
Loaded = true;
Images.hide();
callback();
},
Loaded = true;
Images.hide();
callback();
},
], callback);
});

View file

@ -2,7 +2,12 @@
const fullstore = require('fullstore');
const {J, K, UP, DOWN} = require('../../key/key.js');
const {
J,
K,
UP,
DOWN,
} = require('../../key/key.js');
const store = fullstore(1);
const isDigit = (a) => /^\d+$/.test(a);

View file

@ -3,7 +3,12 @@
const test = require('supertape');
const navigate = require('./navigate');
const {UP, DOWN, J, K} = require('../../key/key.js');
const {
UP,
DOWN,
J,
K,
} = require('../../key/key.js');
test('cloudcmd: user-menu: navigate: DOWN', (t) => {
const el = {