mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-23 10:45:47 +00:00
chore: cloudcmd: actions: lint ☘️
This commit is contained in:
parent
0d61a972fb
commit
baaf47e62f
5 changed files with 7 additions and 14 deletions
|
|
@ -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();
|
||||
},
|
||||
|
|
|
|||
|
|
@ -21,8 +21,7 @@ module.exports.init = async () => {
|
|||
module.exports.show = () => {
|
||||
Events.addKey(listener);
|
||||
|
||||
CloudCmd
|
||||
.EditNames
|
||||
CloudCmd.EditNames
|
||||
.show(ConfigView)
|
||||
.getEditor()
|
||||
.setKeyMap('vim');
|
||||
|
|
|
|||
|
|
@ -44,8 +44,7 @@ module.exports.show = (options) => {
|
|||
|
||||
DOM.Events.addKey(keyListener);
|
||||
|
||||
CloudCmd
|
||||
.Edit
|
||||
CloudCmd.Edit
|
||||
.getEditor()
|
||||
.setValueFirst('edit-names', names)
|
||||
.setMode()
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue