mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-07-18 00:47:01 +00:00
chore: cloudcmd: actions: lint ☘️
This commit is contained in:
parent
7aacf203a0
commit
6b9d43e9ab
16 changed files with 28 additions and 9 deletions
|
|
@ -327,6 +327,7 @@ function CloudCmdProto(DOM) {
|
|||
if (!newObj)
|
||||
// that's OK, error handled by RESTful
|
||||
return;
|
||||
|
||||
options.sort = sort;
|
||||
options.order = order;
|
||||
|
||||
|
|
|
|||
|
|
@ -142,6 +142,7 @@ module.exports.getNotCurrentDirPath = () => {
|
|||
const panel = DOM.getPanel({
|
||||
active: false,
|
||||
});
|
||||
|
||||
const path = DOM.getCurrentDirPath(panel);
|
||||
|
||||
return path;
|
||||
|
|
|
|||
|
|
@ -216,10 +216,8 @@ async function onPathElementClick(panel, event) {
|
|||
function copyPath(el) {
|
||||
clipboard
|
||||
.writeText(el
|
||||
.parentElement
|
||||
.title)
|
||||
.then(CloudCmd
|
||||
.log)
|
||||
.parentElement.title)
|
||||
.then(CloudCmd.log)
|
||||
.catch(CloudCmd.log);
|
||||
}
|
||||
|
||||
|
|
@ -402,6 +400,7 @@ function dragndrop() {
|
|||
return uploadFiles(files);
|
||||
|
||||
const isFile = (item) => item.kind === 'file';
|
||||
|
||||
const dirFiles = Array
|
||||
.from(items)
|
||||
.filter(isFile);
|
||||
|
|
|
|||
|
|
@ -37,9 +37,11 @@ module.exports.init = () => {
|
|||
|
||||
const fm = DOM.getFM();
|
||||
const menuData = getMenuData(isAuth);
|
||||
|
||||
const options = getOptions({
|
||||
type: 'context',
|
||||
});
|
||||
|
||||
const optionsFile = getOptions({
|
||||
type: 'file',
|
||||
});
|
||||
|
|
|
|||
|
|
@ -96,6 +96,7 @@ async function initOperations(prefix, socketPrefix, fn) {
|
|||
prefix,
|
||||
socketPrefix,
|
||||
});
|
||||
|
||||
operator.on('connect', authCheck(operator, onConnect(fn)));
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -27,6 +27,7 @@ test('user-menu: parse-error: stack', (t) => {
|
|||
const result = parseError({
|
||||
stack,
|
||||
});
|
||||
|
||||
const expected = [1, 2];
|
||||
|
||||
t.deepEqual(result, expected);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue