chore: cloudcmd: actions: lint ☘️

This commit is contained in:
coderaiser 2025-07-04 10:34:29 +00:00
parent 0d61a972fb
commit baaf47e62f
5 changed files with 7 additions and 14 deletions

View file

@ -305,8 +305,7 @@ module.exports.isCurrentIsDir = (currentFile) => {
module.exports.getCurrentType = (currentFile) => {
const current = currentFile || DOM.getCurrentFile();
const el = DOM.getByDataName('js-type', current);
const type = el
.className
const type = el.className
.split(' ')
.pop();

View file

@ -61,8 +61,7 @@ module.exports.show = async (options) => {
Images.show.load();
CloudCmd
.Edit
CloudCmd.Edit
.getEditor()
.setOption('keyMap', 'default');
@ -78,8 +77,7 @@ module.exports.show = async (options) => {
setMsgChanged(name);
CloudCmd
.Edit
CloudCmd.Edit
.getEditor()
.setValueFirst(path, data)
.setModeForPath(name)
@ -131,8 +129,7 @@ function setMenu(event) {
},
afterClick: () => {
CloudCmd
.Edit
CloudCmd.Edit
.getEditor()
.focus();
},

View file

@ -21,8 +21,7 @@ module.exports.init = async () => {
module.exports.show = () => {
Events.addKey(listener);
CloudCmd
.EditNames
CloudCmd.EditNames
.show(ConfigView)
.getEditor()
.setKeyMap('vim');

View file

@ -44,8 +44,7 @@ module.exports.show = (options) => {
DOM.Events.addKey(keyListener);
CloudCmd
.Edit
CloudCmd.Edit
.getEditor()
.setValueFirst('edit-names', names)
.setMode()

View file

@ -263,8 +263,7 @@ function viewImage(path, prefixURL) {
title: encode(basename(path)),
});
const names = Info
.files
const names = Info.files
.map(DOM.getCurrentPath)
.filter(isSupportedImage);