chore: lint

This commit is contained in:
coderaiser 2023-07-09 12:43:24 +03:00
parent f1279666b5
commit 4717e035ee
173 changed files with 1388 additions and 1627 deletions

101
HELP.md
View file

@ -374,50 +374,50 @@ Here's a description of all options:
```json
{
"name" : "", // set tab name in web browser
"auth" : false, // enable http authentication
"username" : "root", // username for authentication
"password" : "toor", // password hash for authentication
"algo" : "sha512WithRSAEncryption", // cryptographic algorithm
"editor" : "edward", // default, could be "dword" or "edward"
"packer" : "tar", // default, could be "tar" or "zip"
"diff" : true, // when save - send patch, not whole file
"zip" : true, // zip text before send / unzip before save
"buffer" : true, // buffer for copying files
"dirStorage" : true, // store directory listing
"online" : false, // do not load js files from cdn
"open" : true, // open web browser when server started
"oneFilePanel" : false, // show one file panel
"keysPanel" : true, // show classic panel with buttons of keys
"port" : 8000, // http port
"ip" : null, // ip or null(default)
"root" : "/", // root directory
"prefix" : "", // url prefix
"prefixSocket" : "", // prefix for socket connection
"confirmCopy" : true, // confirm copy
"confirmMove" : true, // confirm move
"showConfig" : false, // show config at startup
"showFileName" : false, // do not show file name in view and edit
"contact" : true, // enable contact
"configDialog" : true, // enable config dialog
"configAuth" : true, // enable auth change in config dialog
"console" : true, // enable console
"syncConsolePath" : false, // do not sync console path
"terminal" : false, // disable terminal
"terminalPath" : "", // path of a terminal
"terminalCommand" : "", // set command to run in terminal
"terminalAutoRestart" : true, // restart command on exit
"vim" : false, // disable vim hot keys
"columns" : "name-size-date-owner-mode", // set visible columns
"export" : false, // enable export of config through a server
"exportToken" : "root", // token used by export server
"import" : false, // enable import of config
"import-url" : "http://localhost:8000", // url of an export server
"importToken" : "root", // token used to connect to export server
"importListen" : false, // listen on config updates
"dropbox" : false, // disable dropbox integration
"dropboxToken" : "", // unset dropbox token
"log" : true // logging
"name": "", // set tab name in web browser
"auth": false, // enable http authentication
"username": "root", // username for authentication
"password": "toor", // password hash for authentication
"algo": "sha512WithRSAEncryption", // cryptographic algorithm
"editor": "edward", // default, could be "dword" or "edward"
"packer": "tar", // default, could be "tar" or "zip"
"diff": true, // when save - send patch, not whole file
"zip": true, // zip text before send / unzip before save
"buffer": true, // buffer for copying files
"dirStorage": true, // store directory listing
"online": false, // do not load js files from cdn
"open": true, // open web browser when server started
"oneFilePanel": false, // show one file panel
"keysPanel": true, // show classic panel with buttons of keys
"port": 8000, // http port
"ip": null, // ip or null(default)
"root": "/", // root directory
"prefix": "", // url prefix
"prefixSocket": "", // prefix for socket connection
"confirmCopy": true, // confirm copy
"confirmMove": true, // confirm move
"showConfig": false, // show config at startup
"showFileName": false, // do not show file name in view and edit
"contact": true, // enable contact
"configDialog": true, // enable config dialog
"configAuth": true, // enable auth change in config dialog
"console": true, // enable console
"syncConsolePath": false, // do not sync console path
"terminal": false, // disable terminal
"terminalPath": "", // path of a terminal
"terminalCommand": "", // set command to run in terminal
"terminalAutoRestart": true, // restart command on exit
"vim": false, // disable vim hot keys
"columns": "name-size-date-owner-mode", // set visible columns
"export": false, // enable export of config through a server
"exportToken": "root", // token used by export server
"import": false, // enable import of config
"import-url": "http://localhost:8000", // url of an export server
"importToken": "root", // token used to connect to export server
"importListen": false, // listen on config updates
"dropbox": false, // disable dropbox integration
"dropboxToken": "", // unset dropbox token
"log": true // logging
}
```
@ -467,9 +467,7 @@ const RENAME_FILE = 'Rename file';
export default {
'__settings': {
select: [
RENAME_FILE,
],
select: [RENAME_FILE],
run: false,
},
[`F2 - ${RENAME_FILE}`]: async ({DOM}) => {
@ -499,7 +497,9 @@ export default {
const path = `${dirPath}.cloudcmd.menu.js`;
const {prefix} = CloudCmd;
const data = await readDefaultMenu({prefix});
const data = await readDefaultMenu({
prefix,
});
await createDefaultMenu({
path,
data,
@ -743,6 +743,7 @@ const socket2 = new Server(server, {
});
const configManager1 = createConfigManager();
configManager1('name', '1');
const configManager2 = createConfigManager();
@ -765,8 +766,10 @@ If you want to enable authorization, you can pass credentials to Cloud Commander
```js
import criton from 'criton';
const algo = 'sha512WithRSAEncryption'; // default
const algo = 'sha512WithRSAEncryption';
// default
// you can generate a hash dynamically
const password = criton('root', algo);