mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-23 02:35:49 +00:00
chore(cloudcmd) lint
This commit is contained in:
parent
551fc98498
commit
a6c7d443ae
7 changed files with 10 additions and 15 deletions
|
|
@ -243,8 +243,8 @@ function CloudCmdProto(DOM) {
|
|||
const showLoad = Images.show.load;
|
||||
|
||||
const doBefore = {
|
||||
'edit': showLoad,
|
||||
'menu': showLoad,
|
||||
edit: showLoad,
|
||||
menu: showLoad,
|
||||
};
|
||||
|
||||
const load = (name, path, dobefore) => {
|
||||
|
|
|
|||
|
|
@ -18,9 +18,7 @@ module.exports = function loadModule(params) {
|
|||
if (!params)
|
||||
return;
|
||||
|
||||
const {
|
||||
path,
|
||||
} = params;
|
||||
const {path} = params;
|
||||
|
||||
const name = path && noJS(pascalCase(path));
|
||||
const doBefore = params.dobefore;
|
||||
|
|
|
|||
|
|
@ -105,7 +105,7 @@ const create = async () => {
|
|||
CloudCmd.on('active-dir', config.if('syncConsolePath', cd(konsole.handler)));
|
||||
|
||||
konsole.addShortCuts({
|
||||
'P': () => {
|
||||
P: () => {
|
||||
const command = konsole.getPromptText();
|
||||
const path = DOM.getCurrentDirPath();
|
||||
|
||||
|
|
|
|||
|
|
@ -117,8 +117,8 @@ function getMenuData(isAuth) {
|
|||
const menu = {
|
||||
'Paste': Buffer.paste,
|
||||
'New': {
|
||||
'File': DOM.promptNewFile,
|
||||
'Directory': DOM.promptNewDir,
|
||||
File: DOM.promptNewFile,
|
||||
Directory: DOM.promptNewDir,
|
||||
},
|
||||
'Upload': () => {
|
||||
CloudCmd.Upload.show();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue