cloudcmd 18.6.1 → 18.7.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 (117) hide show
  1. package/ChangeLog +30 -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.js +5 -10
  6. package/dist/cloudcmd.common.js.map +1 -1
  7. package/dist/cloudcmd.js +1 -1
  8. package/dist/cloudcmd.js.map +1 -1
  9. package/dist/columns/name-size-date.js +0 -0
  10. package/dist/columns/name-size.js +0 -0
  11. package/dist/config.css +1 -1
  12. package/dist/config.js +0 -0
  13. package/dist/help.css +1 -0
  14. package/dist/help.js +0 -0
  15. package/dist/index.html +1 -1
  16. package/dist/modules/cloud.js +1 -1
  17. package/dist/modules/cloud.js.map +1 -1
  18. package/dist/modules/command-line.js +1 -1
  19. package/dist/modules/command-line.js.map +1 -1
  20. package/dist/modules/config.js +1 -1
  21. package/dist/modules/config.js.map +1 -1
  22. package/dist/modules/contact.js +1 -1
  23. package/dist/modules/contact.js.map +1 -1
  24. package/dist/modules/edit-file-vim.js +1 -1
  25. package/dist/modules/edit-file-vim.js.map +1 -1
  26. package/dist/modules/edit-file.js +1 -1
  27. package/dist/modules/edit-file.js.map +1 -1
  28. package/dist/modules/edit-names-vim.js +1 -1
  29. package/dist/modules/edit-names-vim.js.map +1 -1
  30. package/dist/modules/edit-names.js +1 -1
  31. package/dist/modules/edit-names.js.map +1 -1
  32. package/dist/modules/edit.js +1 -5
  33. package/dist/modules/edit.js.map +1 -1
  34. package/dist/modules/help.js +1 -1
  35. package/dist/modules/help.js.map +1 -1
  36. package/dist/modules/konsole.js +1 -1
  37. package/dist/modules/konsole.js.map +1 -1
  38. package/dist/modules/markdown.js +1 -1
  39. package/dist/modules/markdown.js.map +1 -1
  40. package/dist/modules/menu.js +1 -1
  41. package/dist/modules/menu.js.map +1 -1
  42. package/dist/modules/operation.js +1 -1
  43. package/dist/modules/operation.js.map +1 -1
  44. package/dist/modules/polyfill.js +1 -1
  45. package/dist/modules/polyfill.js.map +1 -1
  46. package/dist/modules/terminal-run.js +1 -1
  47. package/dist/modules/terminal-run.js.map +1 -1
  48. package/dist/modules/terminal.js +1 -1
  49. package/dist/modules/terminal.js.map +1 -1
  50. package/dist/modules/upload.js +1 -1
  51. package/dist/modules/upload.js.map +1 -1
  52. package/dist/modules/user-menu.js +1 -1
  53. package/dist/modules/user-menu.js.map +1 -1
  54. package/dist/modules/view.js +1 -1
  55. package/dist/modules/view.js.map +1 -1
  56. package/dist/nojs.js +0 -0
  57. package/dist/sw.js +1 -10
  58. package/dist/sw.js.map +1 -1
  59. package/dist/terminal.js +0 -0
  60. package/dist/themes/dark.css +1 -1
  61. package/dist/themes/dark.js +0 -0
  62. package/dist/themes/light.css +1 -1
  63. package/dist/themes/light.js +0 -0
  64. package/dist/user-menu.css +1 -1
  65. package/dist/user-menu.js +0 -0
  66. package/dist/view.css +1 -1
  67. package/dist/view.js +0 -0
  68. package/dist-dev/cloudcmd.common.css +1076 -104
  69. package/dist-dev/cloudcmd.common.js +690 -257
  70. package/dist-dev/cloudcmd.js +136 -413
  71. package/dist-dev/columns/name-size-date.css +4 -0
  72. package/dist-dev/columns/name-size-date.js +49 -0
  73. package/dist-dev/columns/name-size.css +4 -0
  74. package/dist-dev/columns/name-size.js +49 -0
  75. package/dist-dev/config.css +4 -0
  76. package/dist-dev/config.js +49 -0
  77. package/dist-dev/help.css +16 -0
  78. package/dist-dev/help.js +49 -0
  79. package/dist-dev/index.html +1 -1
  80. package/dist-dev/modules/cloud.js +136 -155
  81. package/dist-dev/modules/command-line.js +136 -155
  82. package/dist-dev/modules/config.js +136 -178
  83. package/dist-dev/modules/contact.js +136 -155
  84. package/dist-dev/modules/edit-file-vim.js +136 -155
  85. package/dist-dev/modules/edit-file.js +136 -155
  86. package/dist-dev/modules/edit-names-vim.js +136 -155
  87. package/dist-dev/modules/edit-names.js +136 -155
  88. package/dist-dev/modules/edit.js +136 -155
  89. package/dist-dev/modules/help.js +136 -155
  90. package/dist-dev/modules/konsole.js +136 -155
  91. package/dist-dev/modules/markdown.js +136 -155
  92. package/dist-dev/modules/menu.js +136 -155
  93. package/dist-dev/modules/operation.js +136 -203
  94. package/dist-dev/modules/polyfill.js +136 -155
  95. package/dist-dev/modules/terminal-run.js +136 -155
  96. package/dist-dev/modules/terminal.js +136 -155
  97. package/dist-dev/modules/upload.js +136 -155
  98. package/dist-dev/modules/user-menu.js +136 -226
  99. package/dist-dev/modules/view.js +136 -178
  100. package/dist-dev/nojs.css +4 -0
  101. package/dist-dev/nojs.js +49 -0
  102. package/dist-dev/sw.js +50 -106
  103. package/dist-dev/terminal.css +4 -0
  104. package/dist-dev/terminal.js +49 -0
  105. package/dist-dev/themes/dark.css +4 -0
  106. package/dist-dev/themes/dark.js +49 -0
  107. package/dist-dev/themes/light.css +4 -0
  108. package/dist-dev/themes/light.js +49 -0
  109. package/dist-dev/user-menu.css +4 -0
  110. package/dist-dev/user-menu.js +49 -0
  111. package/dist-dev/view.css +4 -0
  112. package/dist-dev/view.js +49 -0
  113. package/package.json +14 -16
  114. package/server/columns.mjs +1 -1
  115. package/server/theme.mjs +1 -1
  116. package/dist/cloudcmd.css +0 -1
  117. package/dist-dev/cloudcmd.css +0 -776
@@ -1,193 +1,151 @@
1
- /******/ (function(modules) { // webpackBootstrap
2
- /******/ // install a JSONP callback for chunk loading
3
- /******/ function webpackJsonpCallback(data) {
4
- /******/ var chunkIds = data[0];
5
- /******/ var moreModules = data[1];
6
- /******/ var executeModules = data[2];
7
- /******/
8
- /******/ // add "moreModules" to the modules object,
9
- /******/ // then flag all "chunkIds" as loaded and fire callback
10
- /******/ var moduleId, chunkId, i = 0, resolves = [];
11
- /******/ for(;i < chunkIds.length; i++) {
12
- /******/ chunkId = chunkIds[i];
13
- /******/ if(Object.prototype.hasOwnProperty.call(installedChunks, chunkId) && installedChunks[chunkId]) {
14
- /******/ resolves.push(installedChunks[chunkId][0]);
15
- /******/ }
16
- /******/ installedChunks[chunkId] = 0;
17
- /******/ }
18
- /******/ for(moduleId in moreModules) {
19
- /******/ if(Object.prototype.hasOwnProperty.call(moreModules, moduleId)) {
20
- /******/ modules[moduleId] = moreModules[moduleId];
21
- /******/ }
22
- /******/ }
23
- /******/ if(parentJsonpFunction) parentJsonpFunction(data);
24
- /******/
25
- /******/ while(resolves.length) {
26
- /******/ resolves.shift()();
27
- /******/ }
28
- /******/
29
- /******/ // add entry modules from loaded chunk to deferred list
30
- /******/ deferredModules.push.apply(deferredModules, executeModules || []);
31
- /******/
32
- /******/ // run deferred modules when all chunks ready
33
- /******/ return checkDeferredModules();
34
- /******/ };
35
- /******/ function checkDeferredModules() {
36
- /******/ var result;
37
- /******/ for(var i = 0; i < deferredModules.length; i++) {
38
- /******/ var deferredModule = deferredModules[i];
39
- /******/ var fulfilled = true;
40
- /******/ for(var j = 1; j < deferredModule.length; j++) {
41
- /******/ var depId = deferredModule[j];
42
- /******/ if(installedChunks[depId] !== 0) fulfilled = false;
43
- /******/ }
44
- /******/ if(fulfilled) {
45
- /******/ deferredModules.splice(i--, 1);
46
- /******/ result = __webpack_require__(__webpack_require__.s = deferredModule[0]);
47
- /******/ }
48
- /******/ }
49
- /******/
50
- /******/ return result;
51
- /******/ }
52
- /******/
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
+ /************************************************************************/
53
13
  /******/ // The module cache
54
- /******/ var installedModules = {};
55
- /******/
56
- /******/ // object to store loaded and loading chunks
57
- /******/ // undefined = chunk not loaded, null = chunk preloaded/prefetched
58
- /******/ // Promise = chunk loading, 0 = chunk loaded
59
- /******/ var installedChunks = {
60
- /******/ "./modules/view": 0
61
- /******/ };
62
- /******/
63
- /******/ var deferredModules = [];
64
- /******/
14
+ /******/ var __webpack_module_cache__ = {};
15
+ /******/
65
16
  /******/ // The require function
66
17
  /******/ function __webpack_require__(moduleId) {
67
- /******/
68
18
  /******/ // Check if module is in cache
69
- /******/ if(installedModules[moduleId]) {
70
- /******/ return installedModules[moduleId].exports;
19
+ /******/ var cachedModule = __webpack_module_cache__[moduleId];
20
+ /******/ if (cachedModule !== undefined) {
21
+ /******/ return cachedModule.exports;
71
22
  /******/ }
72
23
  /******/ // Create a new module (and put it into the cache)
73
- /******/ var module = installedModules[moduleId] = {
74
- /******/ i: moduleId,
75
- /******/ l: false,
24
+ /******/ var module = __webpack_module_cache__[moduleId] = {
25
+ /******/ // no module.id needed
26
+ /******/ // no module.loaded needed
76
27
  /******/ exports: {}
77
28
  /******/ };
78
- /******/
29
+ /******/
79
30
  /******/ // Execute the module function
80
- /******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
81
- /******/
82
- /******/ // Flag the module as loaded
83
- /******/ module.l = true;
84
- /******/
31
+ /******/ __webpack_modules__[moduleId].call(module.exports, module, module.exports, __webpack_require__);
32
+ /******/
85
33
  /******/ // Return the exports of the module
86
34
  /******/ return module.exports;
87
35
  /******/ }
88
- /******/
89
- /******/
36
+ /******/
90
37
  /******/ // expose the modules object (__webpack_modules__)
91
- /******/ __webpack_require__.m = modules;
92
- /******/
93
- /******/ // expose the module cache
94
- /******/ __webpack_require__.c = installedModules;
95
- /******/
96
- /******/ // define getter function for harmony exports
97
- /******/ __webpack_require__.d = function(exports, name, getter) {
98
- /******/ if(!__webpack_require__.o(exports, name)) {
99
- /******/ Object.defineProperty(exports, name, { enumerable: true, get: getter });
100
- /******/ }
101
- /******/ };
102
- /******/
103
- /******/ // define __esModule on exports
104
- /******/ __webpack_require__.r = function(exports) {
105
- /******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
106
- /******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
38
+ /******/ __webpack_require__.m = __webpack_modules__;
39
+ /******/
40
+ /************************************************************************/
41
+ /******/ /* webpack/runtime/chunk loaded */
42
+ /******/ (() => {
43
+ /******/ var deferred = [];
44
+ /******/ __webpack_require__.O = (result, chunkIds, fn, priority) => {
45
+ /******/ if(chunkIds) {
46
+ /******/ priority = priority || 0;
47
+ /******/ for(var i = deferred.length; i > 0 && deferred[i - 1][2] > priority; i--) deferred[i] = deferred[i - 1];
48
+ /******/ deferred[i] = [chunkIds, fn, priority];
49
+ /******/ return;
50
+ /******/ }
51
+ /******/ var notFulfilled = Infinity;
52
+ /******/ for (var i = 0; i < deferred.length; i++) {
53
+ /******/ var [chunkIds, fn, priority] = deferred[i];
54
+ /******/ var fulfilled = true;
55
+ /******/ for (var j = 0; j < chunkIds.length; j++) {
56
+ /******/ if ((priority & 1 === 0 || notFulfilled >= priority) && Object.keys(__webpack_require__.O).every((key) => (__webpack_require__.O[key](chunkIds[j])))) {
57
+ /******/ chunkIds.splice(j--, 1);
58
+ /******/ } else {
59
+ /******/ fulfilled = false;
60
+ /******/ if(priority < notFulfilled) notFulfilled = priority;
61
+ /******/ }
62
+ /******/ }
63
+ /******/ if(fulfilled) {
64
+ /******/ deferred.splice(i--, 1)
65
+ /******/ var r = fn();
66
+ /******/ if (r !== undefined) result = r;
67
+ /******/ }
68
+ /******/ }
69
+ /******/ return result;
70
+ /******/ };
71
+ /******/ })();
72
+ /******/
73
+ /******/ /* webpack/runtime/hasOwnProperty shorthand */
74
+ /******/ (() => {
75
+ /******/ __webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))
76
+ /******/ })();
77
+ /******/
78
+ /******/ /* webpack/runtime/make namespace object */
79
+ /******/ (() => {
80
+ /******/ // define __esModule on exports
81
+ /******/ __webpack_require__.r = (exports) => {
82
+ /******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
83
+ /******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
84
+ /******/ }
85
+ /******/ Object.defineProperty(exports, '__esModule', { value: true });
86
+ /******/ };
87
+ /******/ })();
88
+ /******/
89
+ /******/ /* webpack/runtime/jsonp chunk loading */
90
+ /******/ (() => {
91
+ /******/ // no baseURI
92
+ /******/
93
+ /******/ // object to store loaded and loading chunks
94
+ /******/ // undefined = chunk not loaded, null = chunk preloaded/prefetched
95
+ /******/ // [resolve, reject, Promise] = chunk loading, 0 = chunk loaded
96
+ /******/ var installedChunks = {
97
+ /******/ "./modules/view": 0
98
+ /******/ };
99
+ /******/
100
+ /******/ // no chunk on demand loading
101
+ /******/
102
+ /******/ // no prefetching
103
+ /******/
104
+ /******/ // no preloaded
105
+ /******/
106
+ /******/ // no HMR
107
+ /******/
108
+ /******/ // no HMR manifest
109
+ /******/
110
+ /******/ __webpack_require__.O.j = (chunkId) => (installedChunks[chunkId] === 0);
111
+ /******/
112
+ /******/ // install a JSONP callback for chunk loading
113
+ /******/ var webpackJsonpCallback = (parentChunkLoadingFunction, data) => {
114
+ /******/ var [chunkIds, moreModules, runtime] = data;
115
+ /******/ // add "moreModules" to the modules object,
116
+ /******/ // then flag all "chunkIds" as loaded and fire callback
117
+ /******/ var moduleId, chunkId, i = 0;
118
+ /******/ if(chunkIds.some((id) => (installedChunks[id] !== 0))) {
119
+ /******/ for(moduleId in moreModules) {
120
+ /******/ if(__webpack_require__.o(moreModules, moduleId)) {
121
+ /******/ __webpack_require__.m[moduleId] = moreModules[moduleId];
122
+ /******/ }
123
+ /******/ }
124
+ /******/ if(runtime) var result = runtime(__webpack_require__);
125
+ /******/ }
126
+ /******/ if(parentChunkLoadingFunction) parentChunkLoadingFunction(data);
127
+ /******/ for(;i < chunkIds.length; i++) {
128
+ /******/ chunkId = chunkIds[i];
129
+ /******/ if(__webpack_require__.o(installedChunks, chunkId) && installedChunks[chunkId]) {
130
+ /******/ installedChunks[chunkId][0]();
131
+ /******/ }
132
+ /******/ installedChunks[chunkId] = 0;
133
+ /******/ }
134
+ /******/ return __webpack_require__.O(result);
107
135
  /******/ }
108
- /******/ Object.defineProperty(exports, '__esModule', { value: true });
109
- /******/ };
110
- /******/
111
- /******/ // create a fake namespace object
112
- /******/ // mode & 1: value is a module id, require it
113
- /******/ // mode & 2: merge all properties of value into the ns
114
- /******/ // mode & 4: return value when already ns object
115
- /******/ // mode & 8|1: behave like require
116
- /******/ __webpack_require__.t = function(value, mode) {
117
- /******/ if(mode & 1) value = __webpack_require__(value);
118
- /******/ if(mode & 8) return value;
119
- /******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;
120
- /******/ var ns = Object.create(null);
121
- /******/ __webpack_require__.r(ns);
122
- /******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value });
123
- /******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));
124
- /******/ return ns;
125
- /******/ };
126
- /******/
127
- /******/ // getDefaultExport function for compatibility with non-harmony modules
128
- /******/ __webpack_require__.n = function(module) {
129
- /******/ var getter = module && module.__esModule ?
130
- /******/ function getDefault() { return module['default']; } :
131
- /******/ function getModuleExports() { return module; };
132
- /******/ __webpack_require__.d(getter, 'a', getter);
133
- /******/ return getter;
134
- /******/ };
135
- /******/
136
- /******/ // Object.prototype.hasOwnProperty.call
137
- /******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
138
- /******/
139
- /******/ // __webpack_public_path__
140
- /******/ __webpack_require__.p = "/dist/";
141
- /******/
142
- /******/ var jsonpArray = window["webpackJsonp"] = window["webpackJsonp"] || [];
143
- /******/ var oldJsonpFunction = jsonpArray.push.bind(jsonpArray);
144
- /******/ jsonpArray.push = webpackJsonpCallback;
145
- /******/ jsonpArray = jsonpArray.slice();
146
- /******/ for(var i = 0; i < jsonpArray.length; i++) webpackJsonpCallback(jsonpArray[i]);
147
- /******/ var parentJsonpFunction = oldJsonpFunction;
148
- /******/
149
- /******/
150
- /******/ // add entry module to deferred list
151
- /******/ deferredModules.push(["./client/modules/view/index.js","cloudcmd.common"]);
152
- /******/ // run deferred modules when ready
153
- /******/ return checkDeferredModules();
154
- /******/ })
136
+ /******/
137
+ /******/ var chunkLoadingGlobal = globalThis["webpackChunkcloudcmd"] = globalThis["webpackChunkcloudcmd"] || [];
138
+ /******/ chunkLoadingGlobal.forEach(webpackJsonpCallback.bind(null, 0));
139
+ /******/ chunkLoadingGlobal.push = webpackJsonpCallback.bind(null, chunkLoadingGlobal.push.bind(chunkLoadingGlobal));
140
+ /******/ })();
141
+ /******/
155
142
  /************************************************************************/
156
- /******/ ({
157
-
158
- /***/ "./client/modules/view/index.js":
159
- /*!**************************************!*\
160
- !*** ./client/modules/view/index.js ***!
161
- \**************************************/
162
- /*! no static exports found */
163
- /***/ (function(module, exports, __webpack_require__) {
164
-
165
- "use strict";
166
- eval("/* global CloudCmd, DOM */\n\n\n\n__webpack_require__(/*! ../../../css/view.css */ \"./css/view.css\");\nconst rendy = __webpack_require__(/*! rendy */ \"./node_modules/rendy/lib/rendy.js\");\nconst currify = __webpack_require__(/*! currify */ \"./node_modules/currify/lib/currify.js\");\nconst wraptile = __webpack_require__(/*! wraptile */ \"./node_modules/wraptile/lib/wraptile.js\");\nconst tryToCatch = __webpack_require__(/*! try-to-catch */ \"./node_modules/try-to-catch/lib/try-to-catch.js\");\nconst load = __webpack_require__(/*! load.js */ \"./node_modules/load.js/lib/load.js\");\nconst modal = __webpack_require__(/*! @cloudcmd/modal */ \"./node_modules/@cloudcmd/modal/lib/modal.js\");\nconst createElement = __webpack_require__(/*! @cloudcmd/create-element */ \"./node_modules/@cloudcmd/create-element/lib/create-element.js\");\nconst {\n time\n} = __webpack_require__(/*! ../../../common/util */ \"./common/util.js\");\nconst {\n FS\n} = __webpack_require__(/*! ../../../common/cloudfunc */ \"./common/cloudfunc.js\");\nconst {\n isImage,\n isAudio,\n getType\n} = __webpack_require__(/*! ./types */ \"./client/modules/view/types.js\");\nconst Files = __webpack_require__(/*! ../../dom/files */ \"./client/dom/files.js\");\nconst Events = __webpack_require__(/*! ../../dom/events */ \"./client/dom/events/index.js\");\nconst Images = __webpack_require__(/*! ../../dom/images */ \"./client/dom/images.js\");\nconst {\n encode\n} = __webpack_require__(/*! ../../../common/entity */ \"./common/entity.js\");\nconst isString = a => typeof a === 'string';\nconst {\n assign\n} = Object;\nconst {\n isArray\n} = Array;\nconst lifo = currify((fn, el, cb, name) => fn(name, el, cb));\nconst series = wraptile((...a) => {\n for (const f of a) f();\n});\nconst isFn = a => typeof a === 'function';\nconst noop = () => {};\nconst addEvent = lifo(Events.add);\nconst loadCSS = load.css;\nmodule.exports.show = show;\nmodule.exports.hide = hide;\nlet Loading = false;\nconst Name = 'View';\nCloudCmd[Name] = module.exports;\nconst Info = DOM.CurrentInfo;\nconst {\n Key\n} = CloudCmd;\nconst basename = a => a.split('/').pop();\nlet El;\nlet TemplateAudio;\nlet Overlay;\nconst Config = {\n beforeShow: () => {\n Images.hide();\n Key.unsetBind();\n },\n beforeClose: () => {\n Events.rmKey(listener);\n Key.setBind();\n },\n afterShow: () => {\n El.focus();\n },\n onOverlayClick,\n afterClose: noop,\n autoSize: false,\n helpers: {\n title: {}\n }\n};\nmodule.exports._Config = Config;\nmodule.exports.init = async () => {\n await loadAll();\n const events = ['click', 'contextmenu'];\n events.forEach(addEvent(Overlay, onOverlayClick));\n};\nasync function show(data, options = {}) {\n const prefixURL = CloudCmd.prefixURL + FS;\n if (Loading) return;\n if (!options || options.bindKeys !== false) Events.addKey(listener);\n El = createElement('div', {\n className: 'view',\n notAppend: true\n });\n El.tabIndex = 0;\n if (data) {\n if (isArray(data)) El.append(...data);else El.append(data);\n modal.open(El, initConfig(options));\n return;\n }\n Images.show.load();\n const path = prefixURL + Info.path;\n const type = options.raw ? '' : await getType(path);\n switch (type) {\n default:\n return await viewFile();\n case 'markdown':\n return await CloudCmd.Markdown.show(Info.path);\n case 'html':\n return viewHtml(path);\n case 'image':\n return viewImage(Info.path, prefixURL);\n case 'media':\n return await viewMedia(path);\n case 'pdf':\n return viewPDF(path);\n }\n}\nmodule.exports._createIframe = createIframe;\nfunction createIframe(src) {\n const element = createElement('iframe', {\n src,\n width: '100%',\n height: '100%'\n });\n element.addEventListener('load', () => {\n element.contentWindow.addEventListener('keydown', listener);\n });\n return element;\n}\nmodule.exports._viewHtml = viewHtml;\nfunction viewHtml(src) {\n modal.open(createIframe(src), Config);\n}\nfunction viewPDF(src) {\n const element = createIframe(src);\n const options = assign({}, Config);\n if (CloudCmd.config('showFileName')) options.title = Info.name;\n modal.open(element, options);\n}\nasync function viewMedia(path) {\n const [e, element] = await getMediaElement(path);\n if (e) return alert(e);\n const allConfig = {\n ...Config,\n ...{\n autoSize: true,\n afterShow: () => {\n element.querySelector('audio, video').focus();\n }\n }\n };\n modal.open(element, allConfig);\n}\nasync function viewFile() {\n const [error, data] = await Info.getData();\n if (error) return Images.hide();\n const element = document.createTextNode(data);\n const options = Config;\n if (CloudCmd.config('showFileName')) options.title = Info.name;\n El.append(element);\n modal.open(El, options);\n}\nconst copy = a => assign({}, a);\nmodule.exports._initConfig = initConfig;\nfunction initConfig(options) {\n const config = copy(Config);\n if (!options) return config;\n const names = Object.keys(options);\n for (const name of names) {\n const isConfig = Boolean(config[name]);\n const item = options[name];\n if (!isFn(item) || !isConfig) {\n config[name] = options[name];\n continue;\n }\n const fn = config[name];\n config[name] = series(fn, item);\n }\n return config;\n}\nfunction hide() {\n modal.close();\n}\nfunction viewImage(path, prefixURL) {\n const isSupportedImage = a => isImage(a) || a === path;\n const makeTitle = path => ({\n href: `${prefixURL}${path}`,\n title: encode(basename(path))\n });\n const names = Info.files.map(DOM.getCurrentPath).filter(isSupportedImage);\n const titles = names.map(makeTitle);\n const index = names.indexOf(Info.path);\n const imageConfig = {\n index,\n autoSize: true,\n arrows: true,\n keys: true,\n helpers: {\n title: {}\n }\n };\n const config = {\n ...Config,\n ...imageConfig\n };\n modal.open(titles, config);\n}\nasync function getMediaElement(src) {\n check(src);\n const [error, template] = await tryToCatch(Files.get, 'view/media-tmpl');\n if (error) return [error];\n const {\n name\n } = Info;\n if (!TemplateAudio) TemplateAudio = template;\n const is = isAudio(name);\n const type = is ? 'audio' : 'video';\n const innerHTML = rendy(TemplateAudio, {\n src,\n type,\n name\n });\n const element = createElement('div', {\n innerHTML\n });\n return [null, element];\n}\nfunction check(src) {\n if (!isString(src)) throw Error('src should be a string!');\n}\n\n/**\n * function loads css and js of FancyBox\n * @callback - executes, when everything loaded\n */\nasync function loadAll() {\n const {\n DIR_DIST\n } = CloudCmd;\n time(`${Name} load`);\n Loading = true;\n await loadCSS(`${DIR_DIST}/view.css`);\n Loading = false;\n}\nfunction onOverlayClick(event) {\n const position = {\n x: event.clientX,\n y: event.clientY\n };\n setCurrentByPosition(position);\n}\nfunction setCurrentByPosition(position) {\n const element = DOM.getCurrentByPosition(position);\n if (!element) return;\n const {\n files,\n filesPassive\n } = Info;\n const isFiles = files.includes(element);\n const isFilesPassive = filesPassive.includes(element);\n if (!isFiles && !isFilesPassive) return;\n const isCurrent = DOM.isCurrentFile(element);\n if (isCurrent) return;\n DOM.setCurrentFile(element);\n}\nfunction listener({\n keyCode\n}) {\n if (keyCode === Key.ESC) hide();\n}\n\n//# sourceURL=file://cloudcmd/client/modules/view/index.js");
167
-
168
- /***/ }),
169
-
170
- /***/ "./client/modules/view/types.js":
171
- /*!**************************************!*\
172
- !*** ./client/modules/view/types.js ***!
173
- \**************************************/
174
- /*! no static exports found */
175
- /***/ (function(module, exports, __webpack_require__) {
176
-
177
- "use strict";
178
- eval("\n\nconst {\n extname\n} = __webpack_require__(/*! node:path */ \"./node_modules/path-browserify/index.js\");\nconst currify = __webpack_require__(/*! currify */ \"./node_modules/currify/lib/currify.js\");\nconst isAudio = name => /\\.(mp3|ogg|m4a)$/i.test(name);\nconst testRegExp = currify((name, reg) => reg.test(name));\nconst getRegExp = ext => RegExp(`\\\\.${ext}$`, 'i');\nconst isPDF = a => /\\.pdf$/i.test(a);\nconst isHTML = a => /\\.html$/.test(a);\nconst isMarkdown = a => /.\\.md$/.test(a);\nmodule.exports.getType = async path => {\n const ext = extname(path);\n if (!ext) path = await detectType(path);\n if (isPDF(path)) return 'pdf';\n if (isImage(path)) return 'image';\n if (isMedia(path)) return 'media';\n if (isHTML(path)) return 'html';\n if (isMarkdown(path)) return 'markdown';\n};\nmodule.exports.isImage = isImage;\nfunction isImage(name) {\n const images = ['jp(e|g|eg)', 'gif', 'png', 'bmp', 'webp', 'svg', 'ico'];\n return images.map(getRegExp).some(testRegExp(name));\n}\nfunction isMedia(name) {\n return isAudio(name) || isVideo(name);\n}\nmodule.exports.isAudio = isAudio;\nfunction isVideo(name) {\n return /\\.(mp4|avi|webm)$/i.test(name);\n}\nmodule.exports._detectType = detectType;\nasync function detectType(path) {\n const {\n headers\n } = await fetch(path, {\n method: 'HEAD'\n });\n for (const [name, value] of headers) {\n if (name === 'content-type') return `.${value.split('/').pop()}`;\n }\n return '';\n}\n\n//# sourceURL=file://cloudcmd/client/modules/view/types.js");
179
-
180
- /***/ }),
181
-
182
- /***/ "./css/view.css":
183
- /*!**********************!*\
184
- !*** ./css/view.css ***!
185
- \**********************/
186
- /*! no static exports found */
187
- /***/ (function(module, exports) {
188
-
189
- eval("// removed by extract-text-webpack-plugin\n\n//# sourceURL=file://cloudcmd/css/view.css");
190
-
191
- /***/ })
192
-
193
- /******/ });
143
+ /******/
144
+ /******/ // startup
145
+ /******/ // Load entry module and return exports
146
+ /******/ // This entry module depends on other loaded chunks and execution need to be delayed
147
+ /******/ var __webpack_exports__ = __webpack_require__.O(undefined, ["cloudcmd.common"], () => (__webpack_require__("./client/modules/view/index.js")))
148
+ /******/ __webpack_exports__ = __webpack_require__.O(__webpack_exports__);
149
+ /******/
150
+ /******/ })()
151
+ ;
package/dist-dev/nojs.css CHANGED
@@ -1,3 +1,6 @@
1
+ /*!********************************************************************************************!*\
2
+ !*** css ./node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[1].use[1]!./css/nojs.css ***!
3
+ \********************************************************************************************/
1
4
  .path-icon,
2
5
  .keyspanel {
3
6
  display: none;
@@ -22,3 +25,4 @@
22
25
  .name a:hover {
23
26
  cursor: pointer;
24
27
  }
28
+
@@ -0,0 +1,49 @@
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/nojs.css":
14
+ /*!**********************!*\
15
+ !*** ./css/nojs.css ***!
16
+ \**********************/
17
+ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
18
+
19
+ eval("__webpack_require__.r(__webpack_exports__);\n// extracted by mini-css-extract-plugin\n\n\n//# sourceURL=file://cloudcmd/css/nojs.css");
20
+
21
+ /***/ })
22
+
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/nojs.css"](0, __webpack_exports__, __webpack_require__);
47
+ /******/
48
+ /******/ })()
49
+ ;
package/dist-dev/sw.js CHANGED
@@ -1,109 +1,22 @@
1
- var serviceWorkerOption = {
2
- "assets": [
3
- "/columns/name-size-date.css",
4
- "/columns/name-size.css",
5
- "/themes/dark.css",
6
- "/themes/light.css"
7
- ]
8
- };
9
-
10
- /******/ (function(modules) { // webpackBootstrap
11
- /******/ // The module cache
12
- /******/ var installedModules = {};
13
- /******/
14
- /******/ // The require function
15
- /******/ function __webpack_require__(moduleId) {
16
- /******/
17
- /******/ // Check if module is in cache
18
- /******/ if(installedModules[moduleId]) {
19
- /******/ return installedModules[moduleId].exports;
20
- /******/ }
21
- /******/ // Create a new module (and put it into the cache)
22
- /******/ var module = installedModules[moduleId] = {
23
- /******/ i: moduleId,
24
- /******/ l: false,
25
- /******/ exports: {}
26
- /******/ };
27
- /******/
28
- /******/ // Execute the module function
29
- /******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
30
- /******/
31
- /******/ // Flag the module as loaded
32
- /******/ module.l = true;
33
- /******/
34
- /******/ // Return the exports of the module
35
- /******/ return module.exports;
36
- /******/ }
37
- /******/
38
- /******/
39
- /******/ // expose the modules object (__webpack_modules__)
40
- /******/ __webpack_require__.m = modules;
41
- /******/
42
- /******/ // expose the module cache
43
- /******/ __webpack_require__.c = installedModules;
44
- /******/
45
- /******/ // define getter function for harmony exports
46
- /******/ __webpack_require__.d = function(exports, name, getter) {
47
- /******/ if(!__webpack_require__.o(exports, name)) {
48
- /******/ Object.defineProperty(exports, name, { enumerable: true, get: getter });
49
- /******/ }
50
- /******/ };
51
- /******/
52
- /******/ // define __esModule on exports
53
- /******/ __webpack_require__.r = function(exports) {
54
- /******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
55
- /******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
56
- /******/ }
57
- /******/ Object.defineProperty(exports, '__esModule', { value: true });
58
- /******/ };
59
- /******/
60
- /******/ // create a fake namespace object
61
- /******/ // mode & 1: value is a module id, require it
62
- /******/ // mode & 2: merge all properties of value into the ns
63
- /******/ // mode & 4: return value when already ns object
64
- /******/ // mode & 8|1: behave like require
65
- /******/ __webpack_require__.t = function(value, mode) {
66
- /******/ if(mode & 1) value = __webpack_require__(value);
67
- /******/ if(mode & 8) return value;
68
- /******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;
69
- /******/ var ns = Object.create(null);
70
- /******/ __webpack_require__.r(ns);
71
- /******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value });
72
- /******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));
73
- /******/ return ns;
74
- /******/ };
75
- /******/
76
- /******/ // getDefaultExport function for compatibility with non-harmony modules
77
- /******/ __webpack_require__.n = function(module) {
78
- /******/ var getter = module && module.__esModule ?
79
- /******/ function getDefault() { return module['default']; } :
80
- /******/ function getModuleExports() { return module; };
81
- /******/ __webpack_require__.d(getter, 'a', getter);
82
- /******/ return getter;
83
- /******/ };
84
- /******/
85
- /******/ // Object.prototype.hasOwnProperty.call
86
- /******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
87
- /******/
88
- /******/ // __webpack_public_path__
89
- /******/ __webpack_require__.p = "/dist/";
90
- /******/
91
- /******/
92
- /******/ // Load entry module and return exports
93
- /******/ return __webpack_require__(__webpack_require__.s = "./client/sw/sw.js");
94
- /******/ })
95
- /************************************************************************/
96
- /******/ ({
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
+ /******/ var __webpack_modules__ = ({
97
11
 
98
12
  /***/ "./client/sw/sw.js":
99
13
  /*!*************************!*\
100
14
  !*** ./client/sw/sw.js ***!
101
15
  \*************************/
102
- /*! no static exports found */
103
- /***/ (function(module, exports, __webpack_require__) {
16
+ /***/ ((__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => {
104
17
 
105
18
  "use strict";
106
- eval("\n\nconst process = __webpack_require__(/*! node:process */ \"./node_modules/process/browser.js\");\nconst tryToCatch = __webpack_require__(/*! try-to-catch */ \"./node_modules/try-to-catch/lib/try-to-catch.js\");\nconst currify = __webpack_require__(/*! currify */ \"./node_modules/currify/lib/currify.js\");\nconst isDev = process.env.NODE_ENV === 'development';\nconst isGet = a => a.method === 'GET';\nconst isBasic = a => a.type === 'basic';\nconst wait = currify((f, e) => e.waitUntil(f()));\nconst respondWith = currify((f, e) => {\n const {\n request\n } = e;\n const {\n url\n } = request;\n const pathname = getPathName(url);\n if (url.endsWith('/') || /\\^\\/fs/.test(pathname)) return;\n if (!isGet(request)) return;\n if (!isBasic(request)) return;\n if (pathname.startsWith('/api')) return;\n if (/^socket.io/.test(pathname)) return;\n e.respondWith(f(e));\n});\nconst getPathName = url => new URL(url).pathname;\nconst date = \"Fri Jul 04 2025 13:41:50 GMT+0300 (Eastern European Summer Time)\";\nconst NAME = `cloudcmd: ${date}`;\nconst createRequest = a => new Request(a, {\n credentials: 'same-origin'\n});\nconst getRequest = (a, request) => {\n if (a !== '/') return request;\n return createRequest('/');\n};\nself.addEventListener('install', wait(onInstall));\nself.addEventListener('fetch', respondWith(onFetch));\nself.addEventListener('activate', wait(onActivate));\nasync function onActivate() {\n console.info(`cloudcmd: sw: activate: ${NAME}`);\n await self.clients.claim();\n const keys = await caches.keys();\n const deleteCache = caches.delete.bind(caches);\n await Promise.all(keys.map(deleteCache));\n}\nasync function onInstall() {\n console.info(`cloudcmd: sw: install: ${NAME}`);\n await self.skipWaiting();\n}\nasync function onFetch(event) {\n const {\n request\n } = event;\n const {\n url\n } = request;\n const pathname = getPathName(url);\n const newRequest = getRequest(pathname, event.request);\n const cache = await caches.open(NAME);\n const response = await cache.match(request);\n if (!isDev && response) return response;\n const [e, resp] = await tryToCatch(fetch, newRequest, {\n credentials: 'same-origin'\n });\n if (e) return new Response(e.message);\n await addToCache(request, resp.clone());\n return resp;\n}\nasync function addToCache(request, response) {\n const cache = await caches.open(NAME);\n return cache.put(request, response);\n}\n\n//# sourceURL=file://cloudcmd/client/sw/sw.js");
19
+ eval("\n\nconst process = __webpack_require__(/*! node:process */ \"./node_modules/process/browser.js\");\nconst tryToCatch = __webpack_require__(/*! try-to-catch */ \"./node_modules/try-to-catch/lib/try-to-catch.js\");\nconst currify = __webpack_require__(/*! currify */ \"./node_modules/currify/lib/currify.js\");\nconst isDev = process.env.NODE_ENV === 'development';\nconst isGet = a => a.method === 'GET';\nconst isBasic = a => a.type === 'basic';\nconst wait = currify((f, e) => e.waitUntil(f()));\nconst respondWith = currify((f, e) => {\n const {\n request\n } = e;\n const {\n url\n } = request;\n const pathname = getPathName(url);\n if (url.endsWith('/') || /\\^\\/fs/.test(pathname)) return;\n if (!isGet(request)) return;\n if (!isBasic(request)) return;\n if (pathname.startsWith('/api')) return;\n if (/^socket.io/.test(pathname)) return;\n e.respondWith(f(e));\n});\nconst getPathName = url => new URL(url).pathname;\nconst date = \"Sun Jul 06 2025 20:20:14 GMT+0300 (Eastern European Summer Time)\";\nconst NAME = `cloudcmd: ${date}`;\nconst createRequest = a => new Request(a, {\n credentials: 'same-origin'\n});\nconst getRequest = (a, request) => {\n if (a !== '/') return request;\n return createRequest('/');\n};\nself.addEventListener('install', wait(onInstall));\nself.addEventListener('fetch', respondWith(onFetch));\nself.addEventListener('activate', wait(onActivate));\nasync function onActivate() {\n console.info(`cloudcmd: sw: activate: ${NAME}`);\n await self.clients.claim();\n const keys = await caches.keys();\n const deleteCache = caches.delete.bind(caches);\n await Promise.all(keys.map(deleteCache));\n}\nasync function onInstall() {\n console.info(`cloudcmd: sw: install: ${NAME}`);\n await self.skipWaiting();\n}\nasync function onFetch(event) {\n const {\n request\n } = event;\n const {\n url\n } = request;\n const pathname = getPathName(url);\n const newRequest = getRequest(pathname, event.request);\n const cache = await caches.open(NAME);\n const response = await cache.match(request);\n if (!isDev && response) return response;\n const [e, resp] = await tryToCatch(fetch, newRequest, {\n credentials: 'same-origin'\n });\n if (e) return new Response(e.message);\n await addToCache(request, resp.clone());\n return resp;\n}\nasync function addToCache(request, response) {\n const cache = await caches.open(NAME);\n return cache.put(request, response);\n}\n\n//# sourceURL=file://cloudcmd/client/sw/sw.js");
107
20
 
108
21
  /***/ }),
109
22
 
@@ -111,8 +24,7 @@ eval("\n\nconst process = __webpack_require__(/*! node:process */ \"./node_modul
111
24
  /*!*********************************************!*\
112
25
  !*** ./node_modules/currify/lib/currify.js ***!
113
26
  \*********************************************/
114
- /*! no static exports found */
115
- /***/ (function(module, exports, __webpack_require__) {
27
+ /***/ ((module) => {
116
28
 
117
29
  "use strict";
118
30
  eval("\n\nconst f = (fn) => [\n /*eslint no-unused-vars: 0*/\n function (a) {return fn(...arguments);},\n function (a, b) {return fn(...arguments);},\n function (a, b, c) {return fn(...arguments);},\n function (a, b, c, d) {return fn(...arguments);},\n function (a, b, c, d, e) {return fn(...arguments);},\n];\n\nconst currify = (fn, ...args) => {\n check(fn);\n \n if (args.length >= fn.length)\n return fn(...args);\n \n const again = (...args2) => {\n return currify(fn, ...[...args, ...args2]);\n };\n \n const count = fn.length - args.length - 1;\n const func = f(again)[count];\n \n return func || again;\n};\n\nmodule.exports = currify;\n\nfunction check(fn) {\n if (typeof fn !== 'function')\n throw Error('fn should be function!');\n}\n\n\n\n//# sourceURL=file://cloudcmd/node_modules/currify/lib/currify.js");
@@ -123,8 +35,7 @@ eval("\n\nconst f = (fn) => [\n /*eslint no-unused-vars: 0*/\n function (a
123
35
  /*!*****************************************!*\
124
36
  !*** ./node_modules/process/browser.js ***!
125
37
  \*****************************************/
126
- /*! no static exports found */
127
- /***/ (function(module, exports) {
38
+ /***/ ((module) => {
128
39
 
129
40
  eval("// shim for using process in browser\nvar process = module.exports = {};\n\n// cached from whatever global is present so that test runners that stub it\n// don't break things. But we need to wrap it in a try catch in case it is\n// wrapped in strict mode code which doesn't define any globals. It's inside a\n// function because try/catches deoptimize in certain engines.\n\nvar cachedSetTimeout;\nvar cachedClearTimeout;\n\nfunction defaultSetTimout() {\n throw new Error('setTimeout has not been defined');\n}\nfunction defaultClearTimeout () {\n throw new Error('clearTimeout has not been defined');\n}\n(function () {\n try {\n if (typeof setTimeout === 'function') {\n cachedSetTimeout = setTimeout;\n } else {\n cachedSetTimeout = defaultSetTimout;\n }\n } catch (e) {\n cachedSetTimeout = defaultSetTimout;\n }\n try {\n if (typeof clearTimeout === 'function') {\n cachedClearTimeout = clearTimeout;\n } else {\n cachedClearTimeout = defaultClearTimeout;\n }\n } catch (e) {\n cachedClearTimeout = defaultClearTimeout;\n }\n} ())\nfunction runTimeout(fun) {\n if (cachedSetTimeout === setTimeout) {\n //normal enviroments in sane situations\n return setTimeout(fun, 0);\n }\n // if setTimeout wasn't available but was latter defined\n if ((cachedSetTimeout === defaultSetTimout || !cachedSetTimeout) && setTimeout) {\n cachedSetTimeout = setTimeout;\n return setTimeout(fun, 0);\n }\n try {\n // when when somebody has screwed with setTimeout but no I.E. maddness\n return cachedSetTimeout(fun, 0);\n } catch(e){\n try {\n // When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally\n return cachedSetTimeout.call(null, fun, 0);\n } catch(e){\n // same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error\n return cachedSetTimeout.call(this, fun, 0);\n }\n }\n\n\n}\nfunction runClearTimeout(marker) {\n if (cachedClearTimeout === clearTimeout) {\n //normal enviroments in sane situations\n return clearTimeout(marker);\n }\n // if clearTimeout wasn't available but was latter defined\n if ((cachedClearTimeout === defaultClearTimeout || !cachedClearTimeout) && clearTimeout) {\n cachedClearTimeout = clearTimeout;\n return clearTimeout(marker);\n }\n try {\n // when when somebody has screwed with setTimeout but no I.E. maddness\n return cachedClearTimeout(marker);\n } catch (e){\n try {\n // When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally\n return cachedClearTimeout.call(null, marker);\n } catch (e){\n // same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error.\n // Some versions of I.E. have different rules for clearTimeout vs setTimeout\n return cachedClearTimeout.call(this, marker);\n }\n }\n\n\n\n}\nvar queue = [];\nvar draining = false;\nvar currentQueue;\nvar queueIndex = -1;\n\nfunction cleanUpNextTick() {\n if (!draining || !currentQueue) {\n return;\n }\n draining = false;\n if (currentQueue.length) {\n queue = currentQueue.concat(queue);\n } else {\n queueIndex = -1;\n }\n if (queue.length) {\n drainQueue();\n }\n}\n\nfunction drainQueue() {\n if (draining) {\n return;\n }\n var timeout = runTimeout(cleanUpNextTick);\n draining = true;\n\n var len = queue.length;\n while(len) {\n currentQueue = queue;\n queue = [];\n while (++queueIndex < len) {\n if (currentQueue) {\n currentQueue[queueIndex].run();\n }\n }\n queueIndex = -1;\n len = queue.length;\n }\n currentQueue = null;\n draining = false;\n runClearTimeout(timeout);\n}\n\nprocess.nextTick = function (fun) {\n var args = new Array(arguments.length - 1);\n if (arguments.length > 1) {\n for (var i = 1; i < arguments.length; i++) {\n args[i - 1] = arguments[i];\n }\n }\n queue.push(new Item(fun, args));\n if (queue.length === 1 && !draining) {\n runTimeout(drainQueue);\n }\n};\n\n// v8 likes predictible objects\nfunction Item(fun, array) {\n this.fun = fun;\n this.array = array;\n}\nItem.prototype.run = function () {\n this.fun.apply(null, this.array);\n};\nprocess.title = 'browser';\nprocess.browser = true;\nprocess.env = {};\nprocess.argv = [];\nprocess.version = ''; // empty string to avoid regexp issues\nprocess.versions = {};\n\nfunction noop() {}\n\nprocess.on = noop;\nprocess.addListener = noop;\nprocess.once = noop;\nprocess.off = noop;\nprocess.removeListener = noop;\nprocess.removeAllListeners = noop;\nprocess.emit = noop;\nprocess.prependListener = noop;\nprocess.prependOnceListener = noop;\n\nprocess.listeners = function (name) { return [] }\n\nprocess.binding = function (name) {\n throw new Error('process.binding is not supported');\n};\n\nprocess.cwd = function () { return '/' };\nprocess.chdir = function (dir) {\n throw new Error('process.chdir is not supported');\n};\nprocess.umask = function() { return 0; };\n\n\n//# sourceURL=file://cloudcmd/node_modules/process/browser.js");
130
41
 
@@ -134,12 +45,45 @@ eval("// shim for using process in browser\nvar process = module.exports = {};\n
134
45
  /*!*******************************************************!*\
135
46
  !*** ./node_modules/try-to-catch/lib/try-to-catch.js ***!
136
47
  \*******************************************************/
137
- /*! no static exports found */
138
- /***/ (function(module, exports, __webpack_require__) {
48
+ /***/ ((module) => {
139
49
 
140
50
  "use strict";
141
51
  eval("\n\nmodule.exports = async (fn, ...args) => {\n check(fn);\n \n try {\n return [null, await fn(...args)];\n } catch(e) {\n return [e];\n }\n};\n\nfunction check(fn) {\n if (typeof fn !== 'function')\n throw Error('fn should be a function!');\n}\n\n\n\n//# sourceURL=file://cloudcmd/node_modules/try-to-catch/lib/try-to-catch.js");
142
52
 
143
53
  /***/ })
144
54
 
145
- /******/ });
55
+ /******/ });
56
+ /************************************************************************/
57
+ /******/ // The module cache
58
+ /******/ var __webpack_module_cache__ = {};
59
+ /******/
60
+ /******/ // The require function
61
+ /******/ function __webpack_require__(moduleId) {
62
+ /******/ // Check if module is in cache
63
+ /******/ var cachedModule = __webpack_module_cache__[moduleId];
64
+ /******/ if (cachedModule !== undefined) {
65
+ /******/ return cachedModule.exports;
66
+ /******/ }
67
+ /******/ // Create a new module (and put it into the cache)
68
+ /******/ var module = __webpack_module_cache__[moduleId] = {
69
+ /******/ // no module.id needed
70
+ /******/ // no module.loaded needed
71
+ /******/ exports: {}
72
+ /******/ };
73
+ /******/
74
+ /******/ // Execute the module function
75
+ /******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__);
76
+ /******/
77
+ /******/ // Return the exports of the module
78
+ /******/ return module.exports;
79
+ /******/ }
80
+ /******/
81
+ /************************************************************************/
82
+ /******/
83
+ /******/ // startup
84
+ /******/ // Load entry module and return exports
85
+ /******/ // This entry module can't be inlined because the eval devtool is used.
86
+ /******/ var __webpack_exports__ = __webpack_require__("./client/sw/sw.js");
87
+ /******/
88
+ /******/ })()
89
+ ;
@@ -1,3 +1,7 @@
1
+ /*!************************************************************************************************!*\
2
+ !*** css ./node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[1].use[1]!./css/terminal.css ***!
3
+ \************************************************************************************************/
1
4
  .terminal {
2
5
  height: 100%;
3
6
  }
7
+