cloudcmd 17.2.1 → 17.3.1
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 +11 -0
- package/HELP.md +9 -5
- package/README.md +1 -1
- package/bin/cloudcmd.mjs +13 -6
- package/dist/cloudcmd.common.js +3 -3
- 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/index.html +1 -1
- package/dist/modules/cloud.js +1 -1
- package/dist/modules/cloud.js.map +1 -1
- package/dist/modules/command-line.js +1 -1
- package/dist/modules/command-line.js.map +1 -1
- package/dist/modules/config.js +1 -1
- package/dist/modules/config.js.map +1 -1
- package/dist/modules/contact.js +1 -1
- package/dist/modules/contact.js.map +1 -1
- package/dist/modules/edit-file-vim.js +1 -1
- package/dist/modules/edit-file-vim.js.map +1 -1
- package/dist/modules/edit-file.js +1 -1
- package/dist/modules/edit-file.js.map +1 -1
- package/dist/modules/edit-names-vim.js +1 -1
- package/dist/modules/edit-names-vim.js.map +1 -1
- package/dist/modules/edit-names.js +1 -1
- package/dist/modules/edit-names.js.map +1 -1
- package/dist/modules/edit.js +1 -1
- package/dist/modules/edit.js.map +1 -1
- package/dist/modules/help.js +1 -1
- package/dist/modules/help.js.map +1 -1
- package/dist/modules/konsole.js +1 -1
- package/dist/modules/konsole.js.map +1 -1
- package/dist/modules/markdown.js +1 -1
- package/dist/modules/markdown.js.map +1 -1
- package/dist/modules/menu.js +1 -1
- package/dist/modules/menu.js.map +1 -1
- package/dist/modules/operation.js +1 -1
- package/dist/modules/operation.js.map +1 -1
- package/dist/modules/polyfill.js +1 -1
- package/dist/modules/polyfill.js.map +1 -1
- package/dist/modules/terminal-run.js +1 -1
- package/dist/modules/terminal-run.js.map +1 -1
- package/dist/modules/terminal.js +1 -1
- package/dist/modules/terminal.js.map +1 -1
- package/dist/modules/upload.js +1 -1
- package/dist/modules/upload.js.map +1 -1
- package/dist/modules/user-menu.js +1 -1
- package/dist/modules/user-menu.js.map +1 -1
- package/dist/modules/view.js +1 -1
- package/dist/modules/view.js.map +1 -1
- package/dist/sw.js +4 -2
- package/dist/themes/dark.css +1 -0
- package/dist/themes/light.css +1 -0
- package/dist-dev/cloudcmd.css +2 -10
- package/dist-dev/cloudcmd.js +35 -1
- package/dist-dev/index.html +3 -0
- package/dist-dev/modules/config.js +1 -1
- package/dist-dev/sw.js +4 -2
- package/dist-dev/themes/dark.css +49 -0
- package/dist-dev/themes/light.css +9 -0
- package/json/config.json +1 -0
- package/json/help.json +1 -0
- package/man/cloudcmd.1 +1 -0
- package/package.json +1 -1
- package/server/cloudcmd.mjs +5 -5
- package/server/{columns.js → columns.mjs} +13 -12
- package/server/columns.spec.mjs +40 -0
- package/server/distribute/{export.js → export.mjs} +7 -12
- package/server/distribute/{import.js → import.mjs} +10 -12
- package/server/distribute/import.spec.mjs +2 -4
- package/server/distribute/log.mjs +52 -0
- package/server/distribute/log.spec.mjs +34 -0
- package/server/{route.js → route.mjs} +24 -23
- package/server/route.spec.mjs +1 -1
- package/server/theme.mjs +33 -0
- package/server/themes.spec.mjs +31 -0
- package/server/{validate.js → validate.mjs} +24 -10
- package/server/validate.spec.mjs +30 -1
- package/tmpl/config.hbs +7 -1
- package/server/distribute/index.js +0 -4
- package/server/distribute/log.js +0 -41
package/ChangeLog
CHANGED
package/HELP.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# Cloud Commander v17.
|
|
1
|
+
# Cloud Commander v17.3.1
|
|
2
2
|
|
|
3
3
|
### [Main][MainURL] [Blog][BlogURL] [Support][SupportURL] [Demo][DemoURL]
|
|
4
4
|
|
|
@@ -94,6 +94,7 @@ Cloud Commander supports the following command-line parameters:
|
|
|
94
94
|
| `--terminal-auto-restart` | restart command on exit
|
|
95
95
|
| `--vim` | enable vim hot keys
|
|
96
96
|
| `--columns` | set visible columns
|
|
97
|
+
| `--theme` | set theme 'light' or 'dark'"
|
|
97
98
|
| `--export` | enable export of config through a server
|
|
98
99
|
| `--export-token` | authorization token used by export server
|
|
99
100
|
| `--import` | enable import of config
|
|
@@ -122,7 +123,7 @@ Cloud Commander supports the following command-line parameters:
|
|
|
122
123
|
| `--no-terminal-command` | set default shell to run in terminal
|
|
123
124
|
| `--no-terminal-auto-restart` | do not restart command on exit
|
|
124
125
|
| `--no-vim` | disable vim hot keys
|
|
125
|
-
| `--no-
|
|
126
|
+
| `--no-themes` | set default visible themes
|
|
126
127
|
| `--no-export` | disable export config through a server
|
|
127
128
|
| `--no-import` | disable import of config
|
|
128
129
|
| `--no-import-listen` | disable listen on config updates from import server
|
|
@@ -408,7 +409,7 @@ Here's a description of all options:
|
|
|
408
409
|
"terminalCommand": "", // set command to run in terminal
|
|
409
410
|
"terminalAutoRestart": true, // restart command on exit
|
|
410
411
|
"vim": false, // disable vim hot keys
|
|
411
|
-
"
|
|
412
|
+
"themes": "name-size-date-owner-mode", // set visible themes
|
|
412
413
|
"export": false, // enable export of config through a server
|
|
413
414
|
"exportToken": "root", // token used by export server
|
|
414
415
|
"import": false, // enable import of config
|
|
@@ -428,7 +429,8 @@ Some config options can be overridden with environment variables, such as:
|
|
|
428
429
|
- `CLOUDCMD_NAME` - set tab name in web browser
|
|
429
430
|
- `CLOUDCMD_OPEN` - open web browser when server started
|
|
430
431
|
- `CLOUDCMD_EDITOR` - set editor
|
|
431
|
-
- `CLOUDCMD_COLUMNS` - set visible
|
|
432
|
+
- `CLOUDCMD_COLUMNS` - set visible themes
|
|
433
|
+
- `CLOUDCMD_THEME` - set themes "light" or "dark"
|
|
432
434
|
- `CLOUDCMD_CONTACT` - enable contact
|
|
433
435
|
- `CLOUDCMD_CONFIG_DIALOG` - enable config dialog
|
|
434
436
|
- `CLOUDCMD_CONFIG_AUTH` - enable auth change in config dialog
|
|
@@ -1093,6 +1095,8 @@ There are a lot of ways to be involved in `Cloud Commander` development:
|
|
|
1093
1095
|
|
|
1094
1096
|
## Version history
|
|
1095
1097
|
|
|
1098
|
+
- *2024.03.29*, **[v17.3.1](//github.com/coderaiser/cloudcmd/releases/tag/v17.3.1)**
|
|
1099
|
+
- *2024.03.29*, **[v17.3.0](//github.com/coderaiser/cloudcmd/releases/tag/v17.3.0)**
|
|
1096
1100
|
- *2024.03.29*, **[v17.2.1](//github.com/coderaiser/cloudcmd/releases/tag/v17.2.1)**
|
|
1097
1101
|
- *2024.03.22*, **[v17.2.0](//github.com/coderaiser/cloudcmd/releases/tag/v17.2.0)**
|
|
1098
1102
|
- *2024.03.21*, **[v17.1.6](//github.com/coderaiser/cloudcmd/releases/tag/v17.1.6)**
|
|
@@ -1545,7 +1549,7 @@ There are a lot of ways to be involved in `Cloud Commander` development:
|
|
|
1545
1549
|
|
|
1546
1550
|
## Special Thanks
|
|
1547
1551
|
|
|
1548
|
-
- [Olena Zalitok](
|
|
1552
|
+
- [Olena Zalitok](https://www.linkedin.com/in/ozalitok-ux-ui/ "Olena Zalitok") for **logo** and **favicon**.
|
|
1549
1553
|
- [TarZak](https://github.com/tarzak "TarZak")
|
|
1550
1554
|
- Russian and Ukrainian translations;
|
|
1551
1555
|
- config template and style;
|
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# Cloud Commander v17.
|
|
1
|
+
# Cloud Commander v17.3.1 [![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
|
@@ -1,15 +1,16 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
|
|
3
|
+
import process from 'node:process';
|
|
3
4
|
import {createRequire} from 'node:module';
|
|
4
5
|
import {promisify} from 'node:util';
|
|
5
6
|
import tryToCatch from 'try-to-catch';
|
|
6
7
|
import {createSimport} from 'simport';
|
|
7
8
|
import parse from 'yargs-parser';
|
|
8
|
-
import process from 'node:process';
|
|
9
9
|
import exit from '../server/exit.js';
|
|
10
10
|
import {createConfig, configPath} from '../server/config.js';
|
|
11
11
|
import env from '../server/env.js';
|
|
12
12
|
import prefixer from '../server/prefixer.js';
|
|
13
|
+
import * as validate from '../server/validate.mjs';
|
|
13
14
|
|
|
14
15
|
process.on('unhandledRejection', exit);
|
|
15
16
|
|
|
@@ -61,6 +62,7 @@ const yargsOptions = {
|
|
|
61
62
|
'terminal-path',
|
|
62
63
|
'terminal-command',
|
|
63
64
|
'columns',
|
|
65
|
+
'theme',
|
|
64
66
|
'import-url',
|
|
65
67
|
'import-token',
|
|
66
68
|
'export-token',
|
|
@@ -112,6 +114,7 @@ const yargsOptions = {
|
|
|
112
114
|
'contact': choose(env.bool('contact'), config('contact')),
|
|
113
115
|
'terminal': choose(env.bool('terminal'), config('terminal')),
|
|
114
116
|
'columns': env('columns') || config('columns') || '',
|
|
117
|
+
'theme': env('theme') || config('theme') || '',
|
|
115
118
|
'vim': choose(env.bool('vim'), config('vim')),
|
|
116
119
|
'log': config('log'),
|
|
117
120
|
|
|
@@ -174,6 +177,9 @@ async function main() {
|
|
|
174
177
|
if (args.repl)
|
|
175
178
|
repl();
|
|
176
179
|
|
|
180
|
+
validate.columns(args.columns);
|
|
181
|
+
validate.theme(args.theme);
|
|
182
|
+
|
|
177
183
|
port(args.port);
|
|
178
184
|
|
|
179
185
|
config('name', args.name);
|
|
@@ -194,6 +200,7 @@ async function main() {
|
|
|
194
200
|
config('prefixSocket', prefixer(args.prefixSocket));
|
|
195
201
|
config('root', args.root || '/');
|
|
196
202
|
config('vim', args.vim);
|
|
203
|
+
config('theme', args.theme);
|
|
197
204
|
config('columns', args.columns);
|
|
198
205
|
config('log', args.log);
|
|
199
206
|
config('confirmCopy', args.confirmCopy);
|
|
@@ -221,6 +228,7 @@ async function main() {
|
|
|
221
228
|
prefix: config('prefix'),
|
|
222
229
|
prefixSocket: config('prefixSocket'),
|
|
223
230
|
columns: config('columns'),
|
|
231
|
+
theme: config('theme'),
|
|
224
232
|
};
|
|
225
233
|
|
|
226
234
|
const password = env('password') || args.password;
|
|
@@ -228,13 +236,13 @@ async function main() {
|
|
|
228
236
|
if (password)
|
|
229
237
|
config('password', await getPassword(password));
|
|
230
238
|
|
|
231
|
-
|
|
239
|
+
validateRoot(options.root, config);
|
|
232
240
|
|
|
233
241
|
if (args.showConfig)
|
|
234
242
|
await showConfig();
|
|
235
243
|
|
|
236
|
-
const
|
|
237
|
-
const importConfig = promisify(
|
|
244
|
+
const {distributeImport} = await simport('../server/distribute/import.mjs');
|
|
245
|
+
const importConfig = promisify(distributeImport);
|
|
238
246
|
|
|
239
247
|
await start(options, config);
|
|
240
248
|
|
|
@@ -245,8 +253,7 @@ async function main() {
|
|
|
245
253
|
await importConfig(config);
|
|
246
254
|
}
|
|
247
255
|
|
|
248
|
-
|
|
249
|
-
const validate = await simport(`${DIR_SERVER}validate.js`);
|
|
256
|
+
function validateRoot(root, config) {
|
|
250
257
|
validate.root(root, config);
|
|
251
258
|
|
|
252
259
|
if (root === '/')
|