mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-23 02:35:49 +00:00
chore: cloudcmd: actions: lint ☘️
This commit is contained in:
parent
08b5c6b2b5
commit
faa2f9c765
4 changed files with 10 additions and 4 deletions
|
|
@ -67,4 +67,3 @@ async function register(config) {
|
||||||
|
|
||||||
listenSW(sw, 'updatefound', onUpdateFound(config));
|
listenSW(sw, 'updatefound', onUpdateFound(config));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -116,6 +116,7 @@ module.exports.initKeysPanel = () => {
|
||||||
|
|
||||||
const {target} = event;
|
const {target} = event;
|
||||||
const {id} = target;
|
const {id} = target;
|
||||||
|
|
||||||
const operation = (name) => {
|
const operation = (name) => {
|
||||||
const {Operation} = CloudCmd;
|
const {Operation} = CloudCmd;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -23,4 +23,3 @@ async function loadMenu() {
|
||||||
|
|
||||||
return supermenu;
|
return supermenu;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -46,6 +46,7 @@ module.exports.init = async () => {
|
||||||
});
|
});
|
||||||
|
|
||||||
const {createCloudMenu} = await import('./cloudmenu.mjs');
|
const {createCloudMenu} = await import('./cloudmenu.mjs');
|
||||||
|
|
||||||
MenuContext = await createCloudMenu(fm, options, menuData);
|
MenuContext = await createCloudMenu(fm, options, menuData);
|
||||||
MenuContextFile = await createCloudMenu(fm, optionsFile, menuDataFile);
|
MenuContextFile = await createCloudMenu(fm, optionsFile, menuDataFile);
|
||||||
|
|
||||||
|
|
@ -205,8 +206,15 @@ function isPath(x, y) {
|
||||||
function beforeShow(callback, params) {
|
function beforeShow(callback, params) {
|
||||||
Key.unsetBind();
|
Key.unsetBind();
|
||||||
|
|
||||||
const {name, position = {x: params.x, y: params.y}} = params;
|
const {
|
||||||
|
name,
|
||||||
|
position = {
|
||||||
|
x: params.x,
|
||||||
|
y: params.y,
|
||||||
|
},
|
||||||
|
} = params;
|
||||||
const {x, y} = position;
|
const {x, y} = position;
|
||||||
|
|
||||||
const el = DOM.getCurrentByPosition({
|
const el = DOM.getCurrentByPosition({
|
||||||
x,
|
x,
|
||||||
y,
|
y,
|
||||||
|
|
@ -343,4 +351,3 @@ function listener(event) {
|
||||||
event.preventDefault();
|
event.preventDefault();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue