cloudcmd 19.19.1 → 19.20.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.
Files changed (143) hide show
  1. package/ChangeLog +18 -0
  2. package/HELP.md +3 -1
  3. package/README.md +1 -1
  4. package/dist/cloudcmd.common.css +1 -1
  5. package/dist/cloudcmd.common.css.map +1 -1
  6. package/dist/cloudcmd.common.js +7964 -9362
  7. package/dist/cloudcmd.common.js.map +1 -1
  8. package/dist/cloudcmd.js +164 -175
  9. package/dist/cloudcmd.js.map +1 -1
  10. package/dist/columns/name-size-date-time.css +1 -1
  11. package/dist/columns/name-size-date-time.css.map +1 -1
  12. package/dist/columns/name-size-date-time.js +4 -4
  13. package/dist/columns/name-size-date-time.js.map +1 -1
  14. package/dist/columns/name-size-date.css +1 -1
  15. package/dist/columns/name-size-date.css.map +1 -1
  16. package/dist/columns/name-size-date.js +4 -4
  17. package/dist/columns/name-size-date.js.map +1 -1
  18. package/dist/columns/name-size.css +1 -1
  19. package/dist/columns/name-size.css.map +1 -1
  20. package/dist/columns/name-size.js +4 -4
  21. package/dist/columns/name-size.js.map +1 -1
  22. package/dist/config.css +1 -1
  23. package/dist/config.css.map +1 -1
  24. package/dist/config.js +4 -4
  25. package/dist/config.js.map +1 -1
  26. package/dist/help.css +1 -1
  27. package/dist/help.css.map +1 -1
  28. package/dist/help.js +4 -4
  29. package/dist/help.js.map +1 -1
  30. package/dist/modules/cloud.js +164 -175
  31. package/dist/modules/cloud.js.map +1 -1
  32. package/dist/modules/command-line.js +164 -175
  33. package/dist/modules/command-line.js.map +1 -1
  34. package/dist/modules/config.js +164 -175
  35. package/dist/modules/config.js.map +1 -1
  36. package/dist/modules/contact.js +164 -175
  37. package/dist/modules/contact.js.map +1 -1
  38. package/dist/modules/edit-file-vim.js +164 -175
  39. package/dist/modules/edit-file-vim.js.map +1 -1
  40. package/dist/modules/edit-file.js +164 -175
  41. package/dist/modules/edit-file.js.map +1 -1
  42. package/dist/modules/edit-names-vim.js +164 -175
  43. package/dist/modules/edit-names-vim.js.map +1 -1
  44. package/dist/modules/edit-names.js +164 -175
  45. package/dist/modules/edit-names.js.map +1 -1
  46. package/dist/modules/edit.js +164 -175
  47. package/dist/modules/edit.js.map +1 -1
  48. package/dist/modules/help.js +164 -175
  49. package/dist/modules/help.js.map +1 -1
  50. package/dist/modules/konsole.js +164 -175
  51. package/dist/modules/konsole.js.map +1 -1
  52. package/dist/modules/markdown.js +164 -175
  53. package/dist/modules/markdown.js.map +1 -1
  54. package/dist/modules/menu.js +164 -175
  55. package/dist/modules/menu.js.map +1 -1
  56. package/dist/modules/operation.js +164 -175
  57. package/dist/modules/operation.js.map +1 -1
  58. package/dist/modules/polyfill.js +164 -175
  59. package/dist/modules/polyfill.js.map +1 -1
  60. package/dist/modules/terminal-run.js +164 -175
  61. package/dist/modules/terminal-run.js.map +1 -1
  62. package/dist/modules/terminal.js +164 -175
  63. package/dist/modules/terminal.js.map +1 -1
  64. package/dist/modules/upload.js +164 -175
  65. package/dist/modules/upload.js.map +1 -1
  66. package/dist/modules/user-menu.js +164 -175
  67. package/dist/modules/user-menu.js.map +1 -1
  68. package/dist/modules/view.js +164 -175
  69. package/dist/modules/view.js.map +1 -1
  70. package/dist/nojs.css +1 -1
  71. package/dist/nojs.css.map +1 -1
  72. package/dist/nojs.js +4 -4
  73. package/dist/nojs.js.map +1 -1
  74. package/dist/sw.js +37 -46
  75. package/dist/sw.js.map +1 -1
  76. package/dist/terminal.css.map +1 -1
  77. package/dist/terminal.js +4 -4
  78. package/dist/terminal.js.map +1 -1
  79. package/dist/themes/dark.css +1 -1
  80. package/dist/themes/dark.css.map +1 -1
  81. package/dist/themes/dark.js +4 -4
  82. package/dist/themes/dark.js.map +1 -1
  83. package/dist/themes/light.css +1 -1
  84. package/dist/themes/light.css.map +1 -1
  85. package/dist/themes/light.js +4 -4
  86. package/dist/themes/light.js.map +1 -1
  87. package/dist/user-menu.css +1 -1
  88. package/dist/user-menu.css.map +1 -1
  89. package/dist/user-menu.js +4 -4
  90. package/dist/user-menu.js.map +1 -1
  91. package/dist/view.css +1 -1
  92. package/dist/view.css.map +1 -1
  93. package/dist/view.js +4 -4
  94. package/dist/view.js.map +1 -1
  95. package/dist-dev/cloudcmd.common.css +17 -17
  96. package/dist-dev/cloudcmd.common.js +759 -1198
  97. package/dist-dev/cloudcmd.js +160 -184
  98. package/dist-dev/columns/name-size-date-time.css +1 -1
  99. package/dist-dev/columns/name-size-date-time.js +26 -42
  100. package/dist-dev/columns/name-size-date.css +1 -1
  101. package/dist-dev/columns/name-size-date.js +26 -42
  102. package/dist-dev/columns/name-size.css +1 -1
  103. package/dist-dev/columns/name-size.js +26 -42
  104. package/dist-dev/config.css +1 -1
  105. package/dist-dev/config.js +26 -42
  106. package/dist-dev/help.css +1 -1
  107. package/dist-dev/help.js +26 -42
  108. package/dist-dev/modules/cloud.js +160 -184
  109. package/dist-dev/modules/command-line.js +160 -184
  110. package/dist-dev/modules/config.js +160 -184
  111. package/dist-dev/modules/contact.js +160 -184
  112. package/dist-dev/modules/edit-file-vim.js +160 -184
  113. package/dist-dev/modules/edit-file.js +160 -184
  114. package/dist-dev/modules/edit-names-vim.js +160 -184
  115. package/dist-dev/modules/edit-names.js +160 -184
  116. package/dist-dev/modules/edit.js +160 -184
  117. package/dist-dev/modules/help.js +160 -184
  118. package/dist-dev/modules/konsole.js +160 -184
  119. package/dist-dev/modules/markdown.js +160 -184
  120. package/dist-dev/modules/menu.js +160 -184
  121. package/dist-dev/modules/operation.js +160 -184
  122. package/dist-dev/modules/polyfill.js +160 -184
  123. package/dist-dev/modules/terminal-run.js +160 -184
  124. package/dist-dev/modules/terminal.js +160 -184
  125. package/dist-dev/modules/upload.js +160 -184
  126. package/dist-dev/modules/user-menu.js +160 -184
  127. package/dist-dev/modules/view.js +160 -184
  128. package/dist-dev/nojs.css +1 -1
  129. package/dist-dev/nojs.js +26 -42
  130. package/dist-dev/sw.js +71 -99
  131. package/dist-dev/terminal.css +1 -1
  132. package/dist-dev/terminal.js +26 -42
  133. package/dist-dev/themes/dark.css +1 -1
  134. package/dist-dev/themes/dark.js +26 -42
  135. package/dist-dev/themes/light.css +1 -1
  136. package/dist-dev/themes/light.js +26 -42
  137. package/dist-dev/user-menu.css +1 -1
  138. package/dist-dev/user-menu.js +26 -42
  139. package/dist-dev/view.css +1 -1
  140. package/dist-dev/view.js +26 -42
  141. package/package.json +12 -15
  142. package/server/markdown/index.js +2 -4
  143. package/server/rest/index.js +19 -5
package/dist-dev/view.js CHANGED
@@ -1,49 +1,33 @@
1
- /*
2
- * ATTENTION: The "eval" devtool has been used (maybe by default in mode: "development").
3
- * This devtool is neither made for production nor for readable output files.
4
- * It uses "eval()" calls to create a separate source file in the browser devtools.
5
- * If you are trying to read the output file, select a different devtool (https://webpack.js.org/configuration/devtool/)
6
- * or disable the default devtool with "devtool: false".
7
- * If you are looking for production-ready output files, see mode: "production" (https://webpack.js.org/configuration/mode/).
8
- */
9
- /******/ (() => { // webpackBootstrap
10
- /******/ "use strict";
11
- /******/ var __webpack_modules__ = ({
12
-
13
- /***/ "./css/view.css"
1
+ (() => {
2
+ "use strict";
3
+ var __webpack_modules__ = ({
4
+ "./css/view.css"
14
5
  /*!**********************!*\
15
6
  !*** ./css/view.css ***!
16
7
  \**********************/
17
- (__unused_webpack_module, __webpack_exports__, __webpack_require__) {
8
+ (__unused_rspack_module, __webpack_exports__, __webpack_require__) {
9
+ eval("{__webpack_require__.r(__webpack_exports__);\n// extracted by css-extract-rspack-plugin\n\n\n//# sourceURL=file://cloudcmd//Users/coderaiser/cloudcmd/css/view.css\n}");
18
10
 
19
- eval("{__webpack_require__.r(__webpack_exports__);\n// extracted by mini-css-extract-plugin\n\n\n//# sourceURL=file://cloudcmd//Users/coderaiser/cloudcmd/css/view.css\n}");
11
+ },
20
12
 
21
- /***/ }
13
+ });
14
+ // The require scope
15
+ var __webpack_require__ = {};
22
16
 
23
- /******/ });
24
- /************************************************************************/
25
- /******/ // The require scope
26
- /******/ var __webpack_require__ = {};
27
- /******/
28
- /************************************************************************/
29
- /******/ /* webpack/runtime/make namespace object */
30
- /******/ (() => {
31
- /******/ // define __esModule on exports
32
- /******/ __webpack_require__.r = (exports) => {
33
- /******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
34
- /******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
35
- /******/ }
36
- /******/ Object.defineProperty(exports, '__esModule', { value: true });
37
- /******/ };
38
- /******/ })();
39
- /******/
40
- /************************************************************************/
41
- /******/
42
- /******/ // startup
43
- /******/ // Load entry module and return exports
44
- /******/ // This entry module can't be inlined because the eval devtool is used.
45
- /******/ var __webpack_exports__ = {};
46
- /******/ __webpack_modules__["./css/view.css"](0,__webpack_exports__,__webpack_require__);
47
- /******/
48
- /******/ })()
17
+ // webpack/runtime/make_namespace_object
18
+ (() => {
19
+ // define __esModule on exports
20
+ __webpack_require__.r = (exports) => {
21
+ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
22
+ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
23
+ }
24
+ Object.defineProperty(exports, '__esModule', { value: true });
25
+ };
26
+ })();
27
+ // startup
28
+ // Load entry module and return exports
29
+ // This entry module can't be inlined because the eval devtool is used.
30
+ var __webpack_exports__ = {}
31
+ __webpack_modules__["./css/view.css"](0, __webpack_exports__, __webpack_require__);
32
+ })()
49
33
  ;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cloudcmd",
3
- "version": "19.19.1",
3
+ "version": "19.20.1",
4
4
  "type": "module",
5
5
  "author": "coderaiser <mnemonic.enemy@gmail.com> (https://github.com/coderaiser)",
6
6
  "description": "File manager for the web with console and editor",
@@ -87,13 +87,13 @@
87
87
  "dependencies": {
88
88
  "@cloudcmd/dropbox": "^5.0.1",
89
89
  "@cloudcmd/fileop": "^9.0.7",
90
- "@cloudcmd/move-files": "^8.0.0",
90
+ "@cloudcmd/move-files": "^9.0.0",
91
91
  "@cloudcmd/read-files-sync": "^2.0.0",
92
92
  "@putout/cli-validate-args": "^2.0.0",
93
93
  "@putout/plugin-cloudcmd": "^5.2.0",
94
94
  "aleman": "^2.0.1",
95
95
  "apart": "^2.0.0",
96
- "chalk": "^5.3.0",
96
+ "chalk": "^6.0.0",
97
97
  "compression": "^1.7.4",
98
98
  "console-io": "^15.0.1",
99
99
  "copymitter": "^10.3.0",
@@ -118,7 +118,7 @@
118
118
  "jju": "^1.3.0",
119
119
  "jonny": "^3.0.0",
120
120
  "just-snake-case": "^3.2.0",
121
- "markdown-it": "^14.0.0",
121
+ "markdown-it": "^15.0.0",
122
122
  "mellow": "^3.0.0",
123
123
  "mime-types": "^3.0.1",
124
124
  "montag": "^2.0.1",
@@ -151,10 +151,10 @@
151
151
  "yargs-parser": "^22.0.0"
152
152
  },
153
153
  "devDependencies": {
154
- "@babel/code-frame": "^7.22.5",
155
- "@babel/core": "^7.22.5",
156
- "@babel/plugin-transform-optional-chaining": "^7.21.0",
157
- "@babel/preset-env": "^7.0.0",
154
+ "@babel/code-frame": "^8.0.0",
155
+ "@babel/core": "^8.0.1",
156
+ "@babel/plugin-transform-optional-chaining": "^8.0.1",
157
+ "@babel/preset-env": "^8.0.2",
158
158
  "@cloudcmd/clipboard": "^2.0.0",
159
159
  "@cloudcmd/create-element": "^2.0.0",
160
160
  "@cloudcmd/modal": "^4.0.0",
@@ -162,6 +162,8 @@
162
162
  "@cloudcmd/stub": "^5.0.0",
163
163
  "@iocmd/wait": "^2.1.0",
164
164
  "@putout/eslint-flat": "^4.0.0",
165
+ "@rspack/cli": "^2.1.4",
166
+ "@rspack/core": "^2.1.4",
165
167
  "@supertape/loader-css": "^1.0.0",
166
168
  "@types/node-fetch": "^2.6.11",
167
169
  "auto-globals": "^4.0.0",
@@ -171,7 +173,6 @@
171
173
  "clean-css-loader": "^4.2.1",
172
174
  "codegen.macro": "^4.0.0",
173
175
  "css-loader": "^7.1.2",
174
- "css-minimizer-webpack-plugin": "^8.0.0",
175
176
  "css-modules-require-hook": "^4.2.3",
176
177
  "cssnano-preset-default": "^8.0.1",
177
178
  "domtokenlist-shim": "^1.2.0",
@@ -190,7 +191,6 @@
190
191
  "load.js": "^3.0.0",
191
192
  "madrun": "^13.0.0",
192
193
  "memfs": "^4.2.0",
193
- "mini-css-extract-plugin": "^2.9.2",
194
194
  "minor": "^1.2.2",
195
195
  "morgan": "^1.6.1",
196
196
  "multi-rename": "^3.0.0",
@@ -205,7 +205,7 @@
205
205
  "request": "^2.76.0",
206
206
  "rimraf": "^6.0.1",
207
207
  "scroll-into-view-if-needed": "^3.0.4",
208
- "serve-once": "^3.0.1",
208
+ "serve-once": "^4.0.1",
209
209
  "smalltalk": "^5.0.0",
210
210
  "style-loader": "^4.0.0",
211
211
  "superc8": "^12.6.0",
@@ -215,10 +215,7 @@
215
215
  "unionfs": "^4.0.0",
216
216
  "url-loader": "^4.0.0",
217
217
  "util": "^0.12.5",
218
- "webpack": "^5.99.9",
219
- "webpack-cli": "^7.0.2",
220
- "webpack-merge": "^6.0.1",
221
- "webpackbar": "^7.0.0"
218
+ "webpack-merge": "^6.0.1"
222
219
  },
223
220
  "imports": {
224
221
  "#css/": "./css/",
@@ -21,13 +21,11 @@ export default callbackify(async (name, rootDir, request) => {
21
21
 
22
22
  const {method} = request;
23
23
 
24
- switch(method) {
25
- case 'GET':
24
+ if (method === 'GET')
26
25
  return await onGET(request, name, rootDir);
27
26
 
28
- case 'PUT':
27
+ if (method === 'PUT')
29
28
  return await onPUT(request);
30
- }
31
29
  });
32
30
 
33
31
  function parseName(query, name, rootDir) {
@@ -10,7 +10,7 @@ import pullout from 'pullout';
10
10
  import json from 'jonny';
11
11
  import * as ponse from 'ponse';
12
12
  import {copymitter} from 'copymitter';
13
- import _moveFiles from '@cloudcmd/move-files';
13
+ import {moveFiles as _moveFiles} from '@cloudcmd/move-files';
14
14
  import * as CloudFunc from '#common/cloudfunc';
15
15
  import root from '../root.js';
16
16
  import markdown from '../markdown/index.js';
@@ -32,6 +32,8 @@ const UserError = (msg) => {
32
32
  return error;
33
33
  };
34
34
 
35
+ export const _UserError = UserError;
36
+
35
37
  export default currify(({config, fs = _fs, moveFiles = _moveFiles}, request, response, next) => {
36
38
  const name = ponse.getPathName(request);
37
39
  const regExp = RegExp(`^${apiURL}`);
@@ -95,11 +97,10 @@ function sendData(params, {fs, config, moveFiles}, callback) {
95
97
 
96
98
  const {method} = p.request;
97
99
 
98
- switch(method) {
99
- case 'GET':
100
+ if (method === 'GET')
100
101
  return onGET(params, config, callback);
101
102
 
102
- case 'PUT':
103
+ if (method === 'PUT')
103
104
  return pullout(p.request)
104
105
  .then((body) => {
105
106
  onPUT({
@@ -111,7 +112,6 @@ function sendData(params, {fs, config, moveFiles}, callback) {
111
112
  }, callback);
112
113
  })
113
114
  .catch(callback);
114
- }
115
115
  }
116
116
 
117
117
  function onGET(params, config, callback) {
@@ -153,6 +153,8 @@ function getPackReg(packer) {
153
153
  return /\.tar\.gz$/;
154
154
  }
155
155
 
156
+ export const _getPackReg = getPackReg;
157
+
156
158
  function streamPack(cmd, response, packer) {
157
159
  const noop = () => {};
158
160
  const filename = cmd.replace(getPackReg(packer), '');
@@ -172,6 +174,8 @@ function getCMD(cmd) {
172
174
  return cmd;
173
175
  }
174
176
 
177
+ export const _getCMD = getCMD;
178
+
175
179
  const getMoveMsg = (names) => formatMsg('move', names);
176
180
 
177
181
  const getRenameMsg = (from, to) => {
@@ -276,6 +280,8 @@ function rename(rootDir, from, to, fs, callback) {
276
280
  return fs.rename(fromRooted, toRooted, fn);
277
281
  }
278
282
 
283
+ export const _rename = rename;
284
+
279
285
  function pack(from, to, names, config, fn) {
280
286
  const rootDir = config('root');
281
287
  const packer = config('packer');
@@ -294,6 +300,8 @@ function pack(from, to, names, config, fn) {
294
300
  operation('pack', packer, from, to, names, fn);
295
301
  }
296
302
 
303
+ export const _pack = pack;
304
+
297
305
  function extract(from, to, config, fn) {
298
306
  const rootDir = config('root');
299
307
 
@@ -307,6 +315,8 @@ function extract(from, to, config, fn) {
307
315
  operation('extract', config('packer'), from, to, fn);
308
316
  }
309
317
 
318
+ export const _extract = extract;
319
+
310
320
  function getPacker(operation, packer) {
311
321
  if (operation === 'extract')
312
322
  return inly;
@@ -317,6 +327,8 @@ function getPacker(operation, packer) {
317
327
  return jaguar.pack;
318
328
  }
319
329
 
330
+ export const _getPacker = getPacker;
331
+
320
332
  function operation(op, packer, from, to, names, fn) {
321
333
  if (!fn) {
322
334
  fn = names;
@@ -345,6 +357,8 @@ function operation(op, packer, from, to, names, fn) {
345
357
  });
346
358
  }
347
359
 
360
+ export const _operation = operation;
361
+
348
362
  function copy(from, to, names, fn) {
349
363
  copymitter(from, to, names)
350
364
  .on('error', fn)