cloudcmd 18.0.1 → 18.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/ChangeLog +10 -0
- package/HELP.md +127 -122
- package/README.md +1 -1
- package/bin/cloudcmd.mjs +3 -0
- package/common/cloudfunc.js +9 -0
- package/dist/cloudcmd.common.js +1 -1
- package/dist/cloudcmd.common.js.map +1 -1
- package/dist/cloudcmd.css +1 -1
- package/dist/cloudcmd.js +1 -1
- package/dist/cloudcmd.js.map +1 -1
- package/dist/sw.js +1 -1
- package/dist-dev/cloudcmd.common.js +1 -1
- package/dist-dev/cloudcmd.css +14 -12
- package/dist-dev/cloudcmd.js +2 -2
- package/dist-dev/sw.js +1 -1
- package/font/fontello.eot +0 -0
- package/font/fontello.json +12 -0
- package/font/fontello.svg +5 -3
- package/font/fontello.ttf +0 -0
- package/font/fontello.woff +0 -0
- package/font/fontello.woff2 +0 -0
- package/json/config.json +1 -0
- package/json/help.json +2 -0
- package/man/cloudcmd.1 +2 -0
- package/package.json +1 -1
- package/server/route.mjs +1 -0
- package/tmpl/config.hbs +6 -0
package/ChangeLog
CHANGED
package/HELP.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# Cloud Commander v18.0
|
|
1
|
+
# Cloud Commander v18.1.0
|
|
2
2
|
|
|
3
3
|
### [Main][MainURL] [Blog][BlogURL] [Support][SupportURL] [Demo][DemoURL]
|
|
4
4
|
|
|
@@ -59,78 +59,79 @@ cloudcmd
|
|
|
59
59
|
|
|
60
60
|
Cloud Commander supports the following command-line parameters:
|
|
61
61
|
|
|
62
|
-
|Parameter
|
|
63
|
-
|
|
64
|
-
| `-h, --help`
|
|
65
|
-
| `-v, --version`
|
|
66
|
-
| `-s, --save`
|
|
67
|
-
| `-o, --online`
|
|
68
|
-
| `-a, --auth`
|
|
69
|
-
| `-u, --username`
|
|
70
|
-
| `-p, --password`
|
|
71
|
-
| `-c, --config`
|
|
72
|
-
| `--show-config`
|
|
73
|
-
| `--show-
|
|
74
|
-
| `--
|
|
75
|
-
| `--
|
|
76
|
-
| `--
|
|
77
|
-
| `--
|
|
78
|
-
| `--prefix
|
|
79
|
-
| `--
|
|
80
|
-
| `--
|
|
81
|
-
| `--confirm-
|
|
82
|
-
| `--
|
|
83
|
-
| `--
|
|
84
|
-
| `--
|
|
85
|
-
| `--
|
|
86
|
-
| `--
|
|
87
|
-
| `--
|
|
88
|
-
| `--config-
|
|
89
|
-
| `--
|
|
90
|
-
| `--
|
|
91
|
-
| `--
|
|
92
|
-
| `--terminal
|
|
93
|
-
| `--terminal-
|
|
94
|
-
| `--terminal-
|
|
95
|
-
| `--
|
|
96
|
-
| `--
|
|
97
|
-
| `--
|
|
98
|
-
| `--
|
|
99
|
-
| `--export
|
|
100
|
-
| `--
|
|
101
|
-
| `--import
|
|
102
|
-
| `--import-
|
|
103
|
-
| `--import-
|
|
104
|
-
| `--
|
|
105
|
-
| `--dropbox
|
|
106
|
-
| `--
|
|
107
|
-
| `--
|
|
108
|
-
| `--no-
|
|
109
|
-
| `--no-
|
|
110
|
-
| `--no-
|
|
111
|
-
| `--no-
|
|
112
|
-
| `--no-
|
|
113
|
-
| `--no-
|
|
114
|
-
| `--no-
|
|
115
|
-
| `--no-
|
|
116
|
-
| `--no-confirm-
|
|
117
|
-
| `--no-
|
|
118
|
-
| `--no-config-
|
|
119
|
-
| `--no-
|
|
120
|
-
| `--no-
|
|
121
|
-
| `--no-
|
|
122
|
-
| `--no-
|
|
123
|
-
| `--no-terminal
|
|
124
|
-
| `--no-terminal-
|
|
125
|
-
| `--no-
|
|
62
|
+
| Parameter |Operation
|
|
63
|
+
|:-----------------------------|:------------------------------
|
|
64
|
+
| `-h, --help` | display help and exit
|
|
65
|
+
| `-v, --version` | display version and exit
|
|
66
|
+
| `-s, --save` | save configuration
|
|
67
|
+
| `-o, --online` | load scripts from remote servers
|
|
68
|
+
| `-a, --auth` | enable authorization
|
|
69
|
+
| `-u, --username` | set username
|
|
70
|
+
| `-p, --password` | set password
|
|
71
|
+
| `-c, --config` | configuration file path
|
|
72
|
+
| `--show-config` | show config values
|
|
73
|
+
| `--show-dot-files` | show dot files
|
|
74
|
+
| `--show-file-name` | show file name in view and edit
|
|
75
|
+
| `--editor` | set editor: "dword", "edward" or "deepword"
|
|
76
|
+
| `--packer` | set packer: "tar" or "zip"
|
|
77
|
+
| `--root` | set root directory
|
|
78
|
+
| `--prefix` | set url prefix
|
|
79
|
+
| `--prefix-socket` | set prefix for url connection
|
|
80
|
+
| `--port` | set port number
|
|
81
|
+
| `--confirm-copy` | confirm copy
|
|
82
|
+
| `--confirm-move` | confirm move
|
|
83
|
+
| `--open` | open web browser when server starts
|
|
84
|
+
| `--name` | set tab name in web browser
|
|
85
|
+
| `--one-file-panel` | show one file panel
|
|
86
|
+
| `--keys-panel` | show keys panel
|
|
87
|
+
| `--contact` | enable contact
|
|
88
|
+
| `--config-dialog` | enable config dialog
|
|
89
|
+
| `--config-auth` | enable auth change in config dialog
|
|
90
|
+
| `--console` | enable console
|
|
91
|
+
| `--sync-console-path` | sync console path
|
|
92
|
+
| `--terminal` | enable terminal
|
|
93
|
+
| `--terminal-path` | set terminal path
|
|
94
|
+
| `--terminal-command` | set command to run in terminal (shell by default)
|
|
95
|
+
| `--terminal-auto-restart` | restart command on exit
|
|
96
|
+
| `--vim` | enable vim hot keys
|
|
97
|
+
| `--columns` | set visible columns
|
|
98
|
+
| `--theme` | set theme 'light' or 'dark'"
|
|
99
|
+
| `--export` | enable export of config through a server
|
|
100
|
+
| `--export-token` | authorization token used by export server
|
|
101
|
+
| `--import` | enable import of config
|
|
102
|
+
| `--import-token` | authorization token used to connect to export server
|
|
103
|
+
| `--import-url` | url of an import server
|
|
104
|
+
| `--import-listen` | enable listen on config updates from import server
|
|
105
|
+
| `--dropbox` | enable dropbox integration
|
|
106
|
+
| `--dropbox-token` | set dropbox token
|
|
107
|
+
| `--log` | enable logging
|
|
108
|
+
| `--no-show-config` | do not show config values
|
|
109
|
+
| `--no-server` | do not start server
|
|
110
|
+
| `--no-auth` | disable authorization
|
|
111
|
+
| `--no-online` | load scripts from local server
|
|
112
|
+
| `--no-open` | do not open web browser when server started
|
|
113
|
+
| `--no-name` | set default tab name in web browser
|
|
114
|
+
| `--no-keys-panel` | hide keys panel
|
|
115
|
+
| `--no-one-file-panel` | show two file panels
|
|
116
|
+
| `--no-confirm-copy` | do not confirm copy
|
|
117
|
+
| `--no-confirm-move` | do not confirm move
|
|
118
|
+
| `--no-config-dialog` | disable config dialog
|
|
119
|
+
| `--no-config-auth` | disable auth change in config dialog
|
|
120
|
+
| `--no-console` | disable console
|
|
121
|
+
| `--no-sync-console-path` | do not sync console path
|
|
122
|
+
| `--no-contact` | disable contact
|
|
123
|
+
| `--no-terminal` | disable terminal
|
|
124
|
+
| `--no-terminal-command` | set default shell to run in terminal
|
|
125
|
+
| `--no-terminal-auto-restart` | do not restart command on exit
|
|
126
|
+
| `--no-vim` | disable vim hot keys
|
|
126
127
|
| `--no-themes` | set default visible themes
|
|
127
|
-
| `--no-export`
|
|
128
|
-
| `--no-import`
|
|
129
|
-
| `--no-import-listen`
|
|
130
|
-
| `--no-show-file-name`
|
|
131
|
-
| `--no-dropbox`
|
|
132
|
-
| `--no-dropbox-token`
|
|
133
|
-
| `--no-log`
|
|
128
|
+
| `--no-export` | disable export config through a server
|
|
129
|
+
| `--no-import` | disable import of config
|
|
130
|
+
| `--no-import-listen` | disable listen on config updates from import server
|
|
131
|
+
| `--no-show-file-name` | do not show file name in view and edit
|
|
132
|
+
| `--no-dropbox` | disable dropbox integration
|
|
133
|
+
| `--no-dropbox-token` | unset dropbox token
|
|
134
|
+
| `--no-log` | disable logging
|
|
134
135
|
|
|
135
136
|
For options not specified by command-line parameters, Cloud Commander then reads configuration data from `~/.cloudcmd.json`. It uses port `8000` by default.
|
|
136
137
|
|
|
@@ -152,56 +153,57 @@ Then, start the server again with `cloudcmd` and reload the page.
|
|
|
152
153
|
|
|
153
154
|
## Hot keys
|
|
154
155
|
|
|
155
|
-
|Key
|
|
156
|
-
|
|
157
|
-
| `F1`
|
|
158
|
-
| `F2`
|
|
159
|
-
| `F3`
|
|
160
|
-
| `Shift + F3`
|
|
161
|
-
| `F4`
|
|
162
|
-
| `F5`
|
|
163
|
-
| `Alt` + `F5`
|
|
164
|
-
| `F6`
|
|
165
|
-
| `Shift` + `F6`
|
|
166
|
-
| `F7`
|
|
167
|
-
| `Shift + F7`
|
|
168
|
-
| `F8`, `Delete`
|
|
169
|
-
| `Shift + Delete`
|
|
170
|
-
| `F9`
|
|
171
|
-
| `Alt` + `F9`
|
|
172
|
-
| `F10`
|
|
173
|
-
| `*`
|
|
174
|
-
| `+`
|
|
175
|
-
| `-`
|
|
176
|
-
| `:`
|
|
177
|
-
| `Ctrl + X`
|
|
178
|
-
| `Ctrl + C`
|
|
179
|
-
| `Ctrl + V`
|
|
180
|
-
| `Ctrl + Z`
|
|
181
|
-
| `Ctrl + P`
|
|
182
|
-
| `Ctrl + R`
|
|
183
|
-
| `Ctrl + D`
|
|
184
|
-
| `Ctrl + A`
|
|
185
|
-
| `Ctrl + M`
|
|
186
|
-
| `Ctrl + U`
|
|
187
|
-
| `Ctrl + F3`
|
|
188
|
-
| `Ctrl + F5`
|
|
189
|
-
| `Ctrl + F6`
|
|
190
|
-
| `
|
|
191
|
-
| `
|
|
192
|
-
| `
|
|
193
|
-
| `Alt +
|
|
194
|
-
| `
|
|
195
|
-
| `
|
|
196
|
-
| `
|
|
197
|
-
| `Page
|
|
198
|
-
| `
|
|
199
|
-
| `
|
|
200
|
-
| `
|
|
201
|
-
| `
|
|
202
|
-
| `
|
|
203
|
-
|
|
|
204
|
-
|
|
|
156
|
+
| Key |Operation
|
|
157
|
+
|:---------------------|:--------------------------------------------
|
|
158
|
+
| `F1` | help
|
|
159
|
+
| `F2` | show `user menu`
|
|
160
|
+
| `F3` | view, change directory
|
|
161
|
+
| `Shift + F3` | view raw file, change directory
|
|
162
|
+
| `F4` | edit
|
|
163
|
+
| `F5` | copy
|
|
164
|
+
| `Alt` + `F5` | pack
|
|
165
|
+
| `F6` | rename/move
|
|
166
|
+
| `Shift` + `F6` | rename current file
|
|
167
|
+
| `F7` | new directory
|
|
168
|
+
| `Shift + F7` | new file
|
|
169
|
+
| `F8`, `Delete` | remove
|
|
170
|
+
| `Shift + Delete` | remove without prompt
|
|
171
|
+
| `F9` | menu
|
|
172
|
+
| `Alt` + `F9` | extract
|
|
173
|
+
| `F10` | config
|
|
174
|
+
| `*` | select/unselect all
|
|
175
|
+
| `+` | expand selection
|
|
176
|
+
| `-` | shrink selection
|
|
177
|
+
| `:` | open Command Line
|
|
178
|
+
| `Ctrl + X` | cut to buffer
|
|
179
|
+
| `Ctrl + C` | copy to buffer
|
|
180
|
+
| `Ctrl + V` | paste from buffer
|
|
181
|
+
| `Ctrl + Z` | clear buffer
|
|
182
|
+
| `Ctrl + P` | copy path
|
|
183
|
+
| `Ctrl + R` | refresh
|
|
184
|
+
| `Ctrl + D` | clear local storage
|
|
185
|
+
| `Ctrl + A` | select all files in a panel
|
|
186
|
+
| `Ctrl + M` | [rename selected files](https://github.com/coderaiser/cloudcmd/releases/tag/v12.1.0) in editor
|
|
187
|
+
| `Ctrl + U` | swap panels
|
|
188
|
+
| `Ctrl + F3` | sort by name
|
|
189
|
+
| `Ctrl + F5` | sort by date
|
|
190
|
+
| `Ctrl + F6` | sort by size
|
|
191
|
+
| `Ctrl + Command + .` | show/hide dot files
|
|
192
|
+
| `Up`, `Down` | file system navigation
|
|
193
|
+
| `Enter` | change directory/view file
|
|
194
|
+
| `Alt + Left/Right` | show content of directory under cursor in target panel
|
|
195
|
+
| `Alt + G` | go to directory
|
|
196
|
+
| `Ctrl + \` | go to the root directory
|
|
197
|
+
| `Tab` | move via panels
|
|
198
|
+
| `Page Up` | up on one page
|
|
199
|
+
| `Page Down` | down on one page
|
|
200
|
+
| `Home` | to begin of list
|
|
201
|
+
| `End` | to end of list
|
|
202
|
+
| `Space` | select current file (and get size of directory)
|
|
203
|
+
| `Insert` | select current file (and move to next)
|
|
204
|
+
| `F9` | context menu
|
|
205
|
+
| `~` | console
|
|
206
|
+
| `Esc` | toggle vim hotkeys (`file manager`, `editor`)
|
|
205
207
|
|
|
206
208
|
### Vim
|
|
207
209
|
|
|
@@ -398,6 +400,7 @@ Here's a description of all options:
|
|
|
398
400
|
"confirmCopy": true, // confirm copy
|
|
399
401
|
"confirmMove": true, // confirm move
|
|
400
402
|
"showConfig": false, // show config at startup
|
|
403
|
+
"showDotFiles": true, // show dot files
|
|
401
404
|
"showFileName": false, // do not show file name in view and edit
|
|
402
405
|
"contact": true, // enable contact
|
|
403
406
|
"configDialog": true, // enable config dialog
|
|
@@ -1095,6 +1098,8 @@ There are a lot of ways to be involved in `Cloud Commander` development:
|
|
|
1095
1098
|
|
|
1096
1099
|
## Version history
|
|
1097
1100
|
|
|
1101
|
+
- *2024.08.17*, **[v18.1.0](//github.com/coderaiser/cloudcmd/releases/tag/v18.1.0)**
|
|
1102
|
+
- *2024.08.16*, **[v18.0.2](//github.com/coderaiser/cloudcmd/releases/tag/v18.0.2)**
|
|
1098
1103
|
- *2024.08.16*, **[v18.0.1](//github.com/coderaiser/cloudcmd/releases/tag/v18.0.1)**
|
|
1099
1104
|
- *2024.08.16*, **[v18.0.0](//github.com/coderaiser/cloudcmd/releases/tag/v18.0.0)**
|
|
1100
1105
|
- *2024.08.16*, **[v17.4.4](//github.com/coderaiser/cloudcmd/releases/tag/v17.4.4)**
|
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# Cloud Commander v18.0
|
|
1
|
+
# Cloud Commander v18.1.0 [![Build Status][BuildStatusIMGURL]][BuildStatusURL] [![Codacy][CodacyIMG]][CodacyURL] [![Gitter][GitterIMGURL]][GitterURL]
|
|
2
2
|
|
|
3
3
|
### [Main][MainURL] [Blog][BlogURL] [Support][SupportURL] [Demo][DemoURL]
|
|
4
4
|
|
package/bin/cloudcmd.mjs
CHANGED
|
@@ -86,6 +86,7 @@ const yargsOptions = {
|
|
|
86
86
|
'confirm-copy',
|
|
87
87
|
'confirm-move',
|
|
88
88
|
'show-config',
|
|
89
|
+
'show-dot-files',
|
|
89
90
|
'show-file-name',
|
|
90
91
|
'vim',
|
|
91
92
|
'keys-panel',
|
|
@@ -124,6 +125,7 @@ const yargsOptions = {
|
|
|
124
125
|
'export': choose(env.bool('export'), config('export')),
|
|
125
126
|
|
|
126
127
|
'prefix-socket': config('prefixSocket'),
|
|
128
|
+
'show-dot-files': choose(env.bool('show_dot_files'), config('showDotFiles')),
|
|
127
129
|
'show-file-name': choose(env.bool('show_file_name'), config('showFileName')),
|
|
128
130
|
'sync-console-path': choose(env.bool('sync_console_path'), config('syncConsolePath')),
|
|
129
131
|
'config-dialog': choose(env.bool('config_dialog'), config('configDialog')),
|
|
@@ -189,6 +191,7 @@ async function main() {
|
|
|
189
191
|
config('username', args.username);
|
|
190
192
|
config('console', args.console);
|
|
191
193
|
config('syncConsolePath', args.syncConsolePath);
|
|
194
|
+
config('showDotFiles', args.showDotFiles);
|
|
192
195
|
config('showFileName', args.showFileName);
|
|
193
196
|
config('contact', args.contact);
|
|
194
197
|
config('terminal', args.terminal);
|
package/common/cloudfunc.js
CHANGED
|
@@ -16,6 +16,13 @@ const Path = store();
|
|
|
16
16
|
|
|
17
17
|
Path('/');
|
|
18
18
|
|
|
19
|
+
const filterOutDotFiles = ({showDotFiles}) => ({name}) => {
|
|
20
|
+
if (showDotFiles)
|
|
21
|
+
return true;
|
|
22
|
+
|
|
23
|
+
return !name.startsWith('.');
|
|
24
|
+
};
|
|
25
|
+
|
|
19
26
|
module.exports.FS = FS;
|
|
20
27
|
module.exports.apiURL = '/api/v1';
|
|
21
28
|
module.exports.MAX_FILE_SIZE = 500 * 1024;
|
|
@@ -118,6 +125,7 @@ module.exports.buildFromJSON = (params) => {
|
|
|
118
125
|
template,
|
|
119
126
|
sort = 'name',
|
|
120
127
|
order = 'asc',
|
|
128
|
+
showDotFiles,
|
|
121
129
|
} = params;
|
|
122
130
|
|
|
123
131
|
const templateFile = template.file;
|
|
@@ -195,6 +203,7 @@ module.exports.buildFromJSON = (params) => {
|
|
|
195
203
|
}
|
|
196
204
|
|
|
197
205
|
fileTable += files
|
|
206
|
+
.filter(filterOutDotFiles({showDotFiles}))
|
|
198
207
|
.map(updateField)
|
|
199
208
|
.map((file) => {
|
|
200
209
|
const name = encode(file.name);
|