cloudcmd 15.9.5 → 15.9.9

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.
Files changed (58) hide show
  1. package/ChangeLog +38 -0
  2. package/HELP.md +9 -3
  3. package/README.md +2 -4
  4. package/bin/cloudcmd.mjs +20 -20
  5. package/common/callbackify.js +6 -8
  6. package/dist/cloudcmd.common.js +3 -3
  7. package/dist/cloudcmd.common.js.map +1 -1
  8. package/dist/cloudcmd.js +1 -1
  9. package/dist/cloudcmd.js.map +1 -1
  10. package/dist/modules/cloud.js +1 -1
  11. package/dist/modules/cloud.js.map +1 -1
  12. package/dist/modules/config.js +1 -1
  13. package/dist/modules/config.js.map +1 -1
  14. package/dist/modules/contact.js +1 -1
  15. package/dist/modules/contact.js.map +1 -1
  16. package/dist/modules/edit.js +1 -1
  17. package/dist/modules/edit.js.map +1 -1
  18. package/dist/modules/konsole.js.map +1 -1
  19. package/dist/modules/markdown.js +1 -1
  20. package/dist/modules/markdown.js.map +1 -1
  21. package/dist/modules/menu.js +1 -1
  22. package/dist/modules/menu.js.map +1 -1
  23. package/dist/modules/operation.js +1 -1
  24. package/dist/modules/operation.js.map +1 -1
  25. package/dist/modules/terminal-run.js +1 -1
  26. package/dist/modules/terminal-run.js.map +1 -1
  27. package/dist/modules/terminal.js +1 -1
  28. package/dist/modules/terminal.js.map +1 -1
  29. package/dist/modules/upload.js +1 -1
  30. package/dist/modules/upload.js.map +1 -1
  31. package/dist/modules/user-menu.js +1 -1
  32. package/dist/modules/user-menu.js.map +1 -1
  33. package/dist/modules/view.js +1 -1
  34. package/dist/modules/view.js.map +1 -1
  35. package/dist/sw.js +1 -1
  36. package/dist/sw.js.map +1 -1
  37. package/dist-dev/cloudcmd.common.js +28 -28
  38. package/dist-dev/cloudcmd.js +6 -6
  39. package/dist-dev/modules/cloud.js +1 -1
  40. package/dist-dev/modules/config.js +2 -2
  41. package/dist-dev/modules/contact.js +1 -1
  42. package/dist-dev/modules/edit.js +1 -1
  43. package/dist-dev/modules/konsole.js +1 -1
  44. package/dist-dev/modules/markdown.js +1 -1
  45. package/dist-dev/modules/menu.js +1 -1
  46. package/dist-dev/modules/operation.js +2 -2
  47. package/dist-dev/modules/terminal-run.js +1 -1
  48. package/dist-dev/modules/terminal.js +1 -1
  49. package/dist-dev/modules/upload.js +1 -1
  50. package/dist-dev/modules/user-menu.js +2 -2
  51. package/dist-dev/modules/view.js +1 -1
  52. package/dist-dev/sw.js +1 -1
  53. package/package.json +10 -10
  54. package/server/config.js +1 -2
  55. package/server/distribute/log.js +1 -3
  56. package/server/show-config.js +1 -3
  57. package/server/user-menu.js +1 -1
  58. package/tmpl/config.hbs +20 -20
package/ChangeLog CHANGED
@@ -1,3 +1,41 @@
1
+ 2021.11.22, v15.9.9
2
+
3
+ feature:
4
+ - (package) putout v22.0.2
5
+ - (package) yargs-parser v21.0.0
6
+ - (package) yaspeller v8.0.0
7
+ - (package) eslint-plugin-putout v11.1.0
8
+ - (package) putout v21.1.2
9
+ - (package) eslint v8.0.1
10
+ - (package) eslint-plugin-putout v10.3.0
11
+ - (package) find-up v6.1.0
12
+ - (package) putout v20.5.1
13
+ - (package) supertape v6.9.1
14
+ - (package) eslint-plugin-putout v9.0.1
15
+
16
+ 2021.08.09, v15.9.8
17
+
18
+ fix:
19
+ - (cloudcmd) args: snake case -> camelCase: yargs strip dashed
20
+
21
+
22
+ 2021.06.27, v15.9.7
23
+
24
+ fix:
25
+ - (config) rm broadcast: cannot change config
26
+ - (view) close modals using ESC
27
+
28
+ feature:
29
+ - (package) package-json v7.0.0
30
+ - (config) add more descriptive titles
31
+
32
+
33
+ 2021.06.13, v15.9.6
34
+
35
+ feature:
36
+ - (package) @cloudcmd/move-files v5.0.0
37
+
38
+
1
39
  2021.06.08, v15.9.5
2
40
 
3
41
  fix:
package/HELP.md CHANGED
@@ -1,4 +1,4 @@
1
- # Cloud Commander v15.9.5
1
+ # Cloud Commander v15.9.9
2
2
 
3
3
  ### [Main][MainURL] [Blog][BlogURL] Live(![Heroku][Heroku_LIVE_IMG] [Heroku][HerokuURL])
4
4
 
@@ -948,18 +948,20 @@ While using Dropbox remember that there is no remote support for the console/ter
948
948
  - view
949
949
  - edit
950
950
 
951
- ## Automatically start cloudcmd on boot (for systemd users)
951
+ ## Automatically start cloudcmd on boot for `systemd`
952
952
 
953
953
  First, locate the command to run cloudcmd
954
954
 
955
955
  ```sh
956
956
  which cloudcmd
957
957
  ```
958
+
958
959
  take note of the result and create a systemd entry by executing
959
960
 
960
961
  ```sh
961
962
  sudo nano /etc/systemd/system/cloudcmd.service
962
963
  ```
964
+
963
965
  and use this template
964
966
 
965
967
  ```
@@ -975,6 +977,7 @@ User = YOUR_USER
975
977
  [Install]
976
978
  WantedBy = multi-user.target
977
979
  ```
980
+
978
981
  Don't forget to change the line for `ExecStart` and `User`
979
982
 
980
983
  Save the changes and exit editor.
@@ -985,7 +988,7 @@ You may now enable cloudcmd and set it to autostart on boot by running:
985
988
  sudo systemctl enable --now cloudcmd
986
989
  ```
987
990
 
988
- ## Automatically start cloudcmd on (for FreeBSD users)
991
+ ## Automatically start cloudcmd on boot for `FreeBSD`
989
992
 
990
993
  First, locate the command to run cloudcmd
991
994
 
@@ -998,6 +1001,7 @@ take note of the result and create a rc script
998
1001
  ```
999
1002
  vi /usr/local/etc/rc.d/cloudcmd
1000
1003
  ```
1004
+
1001
1005
  and use this template
1002
1006
 
1003
1007
  ```
@@ -1079,6 +1083,8 @@ There are a lot of ways to be involved in `Cloud Commander` development:
1079
1083
  - if you know a language not currently translated, or would like to improve an existing translation, you can help with [site translations](https://github.com/coderaiser/cloudcmd/wiki "Cloud Commander community wiki");
1080
1084
 
1081
1085
  ## Version history
1086
+
1087
+ - *2021.11.22*, **[v15.9.9](//github.com/coderaiser/cloudcmd/releases/tag/v15.9.9)**
1082
1088
  - *2021.02.03*, **[v15.6.0](//github.com/coderaiser/cloudcmd/releases/tag/v15.6.0)**
1083
1089
  - *2021.02.02*, **[v15.5.2](//github.com/coderaiser/cloudcmd/releases/tag/v15.5.2)**
1084
1090
  - *2021.01.31*, **[v15.5.1](//github.com/coderaiser/cloudcmd/releases/tag/v15.5.1)**
package/README.md CHANGED
@@ -1,11 +1,10 @@
1
- # Cloud Commander v15.9.5 [![Build Status][BuildStatusIMGURL]][BuildStatusURL] [![Codacy][CodacyIMG]][CodacyURL] [![Gitter][GitterIMGURL]][GitterURL]
1
+ # Cloud Commander v15.9.9 [![Build Status][BuildStatusIMGURL]][BuildStatusURL] [![Codacy][CodacyIMG]][CodacyURL] [![Gitter][GitterIMGURL]][GitterURL]
2
2
 
3
- ### [Main][MainURL] [Blog][BlogURL] Live([Heroku][HerokuURL])
3
+ ### [Main][MainURL] [Blog][BlogURL]
4
4
 
5
5
  [NPM_INFO_IMG]: https://nodei.co/npm/cloudcmd.png
6
6
  [MainURL]: http://cloudcmd.io "Main"
7
7
  [BlogURL]: http://blog.cloudcmd.io "Blog"
8
- [HerokuURL]: https://cloudcmd.herokuapp.com/ "Heroku"
9
8
  [BuildStatusURL]: https://travis-ci.org/coderaiser/cloudcmd "Build Status"
10
9
  [BuildStatusIMGURL]: https://img.shields.io/travis/coderaiser/cloudcmd.svg?style=flat-squere&longCache=true
11
10
  [BuildAppveyorURL]: https://ci.appveyor.com/project/coderaiser/cloudcmd
@@ -166,7 +165,6 @@ docker-compose up
166
165
 
167
166
  More documentation you can find on https://cloudcmd.io/.
168
167
 
169
-
170
168
  ## Get involved
171
169
 
172
170
  There is a lot ways to be involved in `Cloud Commander` development:
package/bin/cloudcmd.mjs CHANGED
@@ -139,7 +139,7 @@ const yargsOptions = {
139
139
  'export-token': env('export_token') || config('exportToken'),
140
140
 
141
141
  'dropbox': config('dropbox'),
142
- 'dropbox-token': config('dropboxToken'),
142
+ 'dropbox-token': config('dropboxToken') || '',
143
143
  },
144
144
  alias: {
145
145
  version: 'v',
@@ -185,35 +185,35 @@ async function main() {
185
185
  config('open', args.open);
186
186
  config('username', args.username);
187
187
  config('console', args.console);
188
- config('syncConsolePath', args['sync-console-path']);
189
- config('showFileName', args['show-file-name']);
188
+ config('syncConsolePath', args.syncConsolePath);
189
+ config('showFileName', args.showFileName);
190
190
  config('contact', args.contact);
191
191
  config('terminal', args.terminal);
192
- config('terminalPath', args['terminal-path']);
193
- config('terminalCommand', args['terminal-command']);
194
- config('terminalAutoRestart', args['terminal-auto-restart']);
192
+ config('terminalPath', args.terminalPath);
193
+ config('terminalCommand', args.terminalCommand);
194
+ config('terminalAutoRestart', args.terminalAutoRestart);
195
195
  config('editor', args.editor);
196
196
  config('prefix', prefixer(args.prefix));
197
- config('prefixSocket', prefixer(args['prefix-socket']));
197
+ config('prefixSocket', prefixer(args.prefixSocket));
198
198
  config('root', args.root || '/');
199
199
  config('vim', args.vim);
200
200
  config('columns', args.columns);
201
201
  config('log', args.log);
202
- config('confirmCopy', args['confirm-copy']);
203
- config('confirmMove', args['confirm-move']);
204
- config('oneFilePanel', args['one-file-panel']);
205
- config('configDialog', args['config-dialog']);
206
- config('configAuth', args['config-auth']);
207
- config('keysPanel', args['keys-panel']);
202
+ config('confirmCopy', args.confirmCopy);
203
+ config('confirmMove', args.confirmMove);
204
+ config('oneFilePanel', args.oneFilePanel);
205
+ config('configDialog', args.configDialog);
206
+ config('configAuth', args.configAuth);
207
+ config('keysPanel', args.keysPanel);
208
208
  config('export', args.export);
209
- config('exportToken', args['export-token']);
209
+ config('exportToken', args.exportToken);
210
210
  config('import', args.import);
211
- config('importToken', args['import-token']);
212
- config('importListen', args['import-listen']);
213
- config('importUrl', args['import-url']);
211
+ config('importToken', args.importToken);
212
+ config('importListen', args.importListen);
213
+ config('importUrl', args.importUrl);
214
214
 
215
- config('dropbox', args['dropbox']);
216
- config('dropboxToken', args['dropbox-token'] || '');
215
+ config('dropbox', args.dropbox);
216
+ config('dropboxToken', args.dropboxToken);
217
217
 
218
218
  await readConfig(args.config);
219
219
 
@@ -233,7 +233,7 @@ async function main() {
233
233
 
234
234
  await validateRoot(options.root, config);
235
235
 
236
- if (args['show-config'])
236
+ if (args.showConfig)
237
237
  await showConfig();
238
238
 
239
239
  const distribute = await simport('../server/distribute/index.js');
@@ -2,13 +2,11 @@
2
2
 
3
3
  const success = (f) => (data) => f(null, data);
4
4
 
5
- module.exports = (promise) => {
6
- return (...a) => {
7
- const fn = a.pop();
8
-
9
- promise(...a)
10
- .then(success(fn))
11
- .catch(fn);
12
- };
5
+ module.exports = (promise) => (...a) => {
6
+ const fn = a.pop();
7
+
8
+ promise(...a)
9
+ .then(success(fn))
10
+ .catch(fn);
13
11
  };
14
12