cloudcmd 19.12.5 → 19.13.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 +20 -0
- package/HELP.md +4 -1
- package/README.md +1 -1
- package/dist/cloudcmd.common.css +1 -1
- package/dist/cloudcmd.common.css.map +1 -1
- package/dist/cloudcmd.common.js +122 -90
- package/dist/cloudcmd.common.js.map +1 -1
- package/dist/cloudcmd.js +1 -17
- package/dist/cloudcmd.js.map +1 -1
- package/dist/modules/edit.js +1 -1
- package/dist/modules/edit.js.map +1 -1
- package/dist/sw.js +1 -1
- package/dist-dev/cloudcmd.common.js +45 -23
- package/dist-dev/cloudcmd.js +1 -23
- package/dist-dev/sw.js +1 -1
- package/package.json +2 -2
- package/server/user-menu.js +1 -1
package/dist/cloudcmd.js
CHANGED
|
@@ -1,22 +1,6 @@
|
|
|
1
1
|
/******/ (() => { // webpackBootstrap
|
|
2
2
|
/******/ "use strict";
|
|
3
|
-
/******/ var __webpack_modules__ = ({
|
|
4
|
-
|
|
5
|
-
/***/ 3398
|
|
6
|
-
(module) {
|
|
7
|
-
|
|
8
|
-
module.exports = import("https://esm.sh/@putout/bundle");;
|
|
9
|
-
|
|
10
|
-
/***/ },
|
|
11
|
-
|
|
12
|
-
/***/ 1736
|
|
13
|
-
(module) {
|
|
14
|
-
|
|
15
|
-
module.exports = import("https://esm.sh/@putout/processor-html");;
|
|
16
|
-
|
|
17
|
-
/***/ }
|
|
18
|
-
|
|
19
|
-
/******/ });
|
|
3
|
+
/******/ var __webpack_modules__ = ({});
|
|
20
4
|
/************************************************************************/
|
|
21
5
|
/******/ // The module cache
|
|
22
6
|
/******/ var __webpack_module_cache__ = {};
|
package/dist/cloudcmd.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cloudcmd.js","mappings":"
|
|
1
|
+
{"version":3,"file":"cloudcmd.js","mappings":";;;;UAAA;UACA;;UAEA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;;UAEA;UACA;;UAEA;UACA;UACA;;UAEA;UACA;;;;;WCzBA;WACA;WACA;WACA;WACA,+BAA+B,wCAAwC;WACvE;WACA;WACA;WACA;WACA,iBAAiB,qBAAqB;WACtC;WACA;WACA,kBAAkB,qBAAqB;WACvC;WACA;WACA,KAAK;WACL;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA,E;;;;;WC3BA;WACA;WACA;WACA;WACA,yCAAyC,wCAAwC;WACjF;WACA;WACA,E;;;;;WCPA;WACA;WACA;WACA,kD;;;;;WCHA,wF;;;;;WCAA;WACA;WACA;WACA,uDAAuD,iBAAiB;WACxE;WACA,gDAAgD,aAAa;WAC7D,E;;;;;WCNA,4B;;;;;WCAA;;WAEA;WACA;WACA;WACA;WACA;WACA;;WAEA;;WAEA;;WAEA;;WAEA;;WAEA;;WAEA;;WAEA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA,MAAM,qBAAqB;WAC3B;WACA;WACA;WACA;WACA;WACA;WACA;WACA;;WAEA;WACA;WACA,4G;;;;;UEhDA;UACA;UACA;UACA;UACA","sources":["file://cloudcmd/webpack/bootstrap","file://cloudcmd/webpack/runtime/chunk loaded","file://cloudcmd/webpack/runtime/define property getters","file://cloudcmd/webpack/runtime/ensure chunk","file://cloudcmd/webpack/runtime/hasOwnProperty shorthand","file://cloudcmd/webpack/runtime/make namespace object","file://cloudcmd/webpack/runtime/runtimeId","file://cloudcmd/webpack/runtime/jsonp chunk loading","file://cloudcmd/webpack/before-startup","file://cloudcmd/webpack/startup","file://cloudcmd/webpack/after-startup"],"sourcesContent":["// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\t// no module.id needed\n\t\t// no module.loaded needed\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n// expose the modules object (__webpack_modules__)\n__webpack_require__.m = __webpack_modules__;\n\n","var deferred = [];\n__webpack_require__.O = (result, chunkIds, fn, priority) => {\n\tif(chunkIds) {\n\t\tpriority = priority || 0;\n\t\tfor(var i = deferred.length; i > 0 && deferred[i - 1][2] > priority; i--) deferred[i] = deferred[i - 1];\n\t\tdeferred[i] = [chunkIds, fn, priority];\n\t\treturn;\n\t}\n\tvar notFulfilled = Infinity;\n\tfor (var i = 0; i < deferred.length; i++) {\n\t\tvar [chunkIds, fn, priority] = deferred[i];\n\t\tvar fulfilled = true;\n\t\tfor (var j = 0; j < chunkIds.length; j++) {\n\t\t\tif ((priority & 1 === 0 || notFulfilled >= priority) && Object.keys(__webpack_require__.O).every((key) => (__webpack_require__.O[key](chunkIds[j])))) {\n\t\t\t\tchunkIds.splice(j--, 1);\n\t\t\t} else {\n\t\t\t\tfulfilled = false;\n\t\t\t\tif(priority < notFulfilled) notFulfilled = priority;\n\t\t\t}\n\t\t}\n\t\tif(fulfilled) {\n\t\t\tdeferred.splice(i--, 1)\n\t\t\tvar r = fn();\n\t\t\tif (r !== undefined) result = r;\n\t\t}\n\t}\n\treturn result;\n};","// define getter functions for harmony exports\n__webpack_require__.d = (exports, definition) => {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","// The chunk loading function for additional chunks\n// Since all referenced chunks are already included\n// in this file, this function is empty here.\n__webpack_require__.e = () => (Promise.resolve());","__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","// define __esModule on exports\n__webpack_require__.r = (exports) => {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","__webpack_require__.j = 858;","// no baseURI\n\n// object to store loaded and loading chunks\n// undefined = chunk not loaded, null = chunk preloaded/prefetched\n// [resolve, reject, Promise] = chunk loading, 0 = chunk loaded\nvar installedChunks = {\n\t858: 0\n};\n\n// no chunk on demand loading\n\n// no prefetching\n\n// no preloaded\n\n// no HMR\n\n// no HMR manifest\n\n__webpack_require__.O.j = (chunkId) => (installedChunks[chunkId] === 0);\n\n// install a JSONP callback for chunk loading\nvar webpackJsonpCallback = (parentChunkLoadingFunction, data) => {\n\tvar [chunkIds, moreModules, runtime] = data;\n\t// add \"moreModules\" to the modules object,\n\t// then flag all \"chunkIds\" as loaded and fire callback\n\tvar moduleId, chunkId, i = 0;\n\tif(chunkIds.some((id) => (installedChunks[id] !== 0))) {\n\t\tfor(moduleId in moreModules) {\n\t\t\tif(__webpack_require__.o(moreModules, moduleId)) {\n\t\t\t\t__webpack_require__.m[moduleId] = moreModules[moduleId];\n\t\t\t}\n\t\t}\n\t\tif(runtime) var result = runtime(__webpack_require__);\n\t}\n\tif(parentChunkLoadingFunction) parentChunkLoadingFunction(data);\n\tfor(;i < chunkIds.length; i++) {\n\t\tchunkId = chunkIds[i];\n\t\tif(__webpack_require__.o(installedChunks, chunkId) && installedChunks[chunkId]) {\n\t\t\tinstalledChunks[chunkId][0]();\n\t\t}\n\t\tinstalledChunks[chunkId] = 0;\n\t}\n\treturn __webpack_require__.O(result);\n}\n\nvar chunkLoadingGlobal = globalThis[\"webpackChunkcloudcmd\"] = globalThis[\"webpackChunkcloudcmd\"] || [];\nchunkLoadingGlobal.forEach(webpackJsonpCallback.bind(null, 0));\nchunkLoadingGlobal.push = webpackJsonpCallback.bind(null, chunkLoadingGlobal.push.bind(chunkLoadingGlobal));","","// startup\n// Load entry module and return exports\n// This entry module depends on other loaded chunks and execution need to be delayed\nvar __webpack_exports__ = __webpack_require__.O(undefined, [267], () => (__webpack_require__(4478)))\n__webpack_exports__ = __webpack_require__.O(__webpack_exports__);\n",""],"names":[],"sourceRoot":""}
|
package/dist/modules/edit.js
CHANGED
|
@@ -161,7 +161,7 @@
|
|
|
161
161
|
/******/ // startup
|
|
162
162
|
/******/ // Load entry module and return exports
|
|
163
163
|
/******/ // This entry module depends on other loaded chunks and execution need to be delayed
|
|
164
|
-
/******/ var __webpack_exports__ = __webpack_require__.O(undefined, [267], () => (__webpack_require__(
|
|
164
|
+
/******/ var __webpack_exports__ = __webpack_require__.O(undefined, [267], () => (__webpack_require__(3601)))
|
|
165
165
|
/******/ __webpack_exports__ = __webpack_require__.O(__webpack_exports__);
|
|
166
166
|
/******/
|
|
167
167
|
/******/ })()
|
package/dist/modules/edit.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"./modules/edit.js","mappings":";;;;UAAA;UACA;;UAEA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;;UAEA;UACA;;UAEA;UACA;UACA;;UAEA;UACA;;;;;WCzBA;WACA;WACA;WACA;WACA,+BAA+B,wCAAwC;WACvE;WACA;WACA;WACA;WACA,iBAAiB,qBAAqB;WACtC;WACA;WACA,kBAAkB,qBAAqB;WACvC;WACA;WACA,KAAK;WACL;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA,E;;;;;WC3BA;WACA;WACA;WACA;WACA,yCAAyC,wCAAwC;WACjF;WACA;WACA,E;;;;;WCPA;WACA;WACA;WACA,kD;;;;;WCHA,wF;;;;;WCAA;WACA;WACA;WACA,uDAAuD,iBAAiB;WACxE;WACA,gDAAgD,aAAa;WAC7D,E;;;;;WCNA,4B;;;;;WCAA;;WAEA;WACA;WACA;WACA;WACA;WACA;;WAEA;;WAEA;;WAEA;;WAEA;;WAEA;;WAEA;;WAEA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA,MAAM,qBAAqB;WAC3B;WACA;WACA;WACA;WACA;WACA;WACA;WACA;;WAEA;WACA;WACA,4G;;;;;UEhDA;UACA;UACA;UACA;UACA","sources":["file://cloudcmd/webpack/bootstrap","file://cloudcmd/webpack/runtime/chunk loaded","file://cloudcmd/webpack/runtime/define property getters","file://cloudcmd/webpack/runtime/ensure chunk","file://cloudcmd/webpack/runtime/hasOwnProperty shorthand","file://cloudcmd/webpack/runtime/make namespace object","file://cloudcmd/webpack/runtime/runtimeId","file://cloudcmd/webpack/runtime/jsonp chunk loading","file://cloudcmd/webpack/before-startup","file://cloudcmd/webpack/startup","file://cloudcmd/webpack/after-startup"],"sourcesContent":["// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\t// no module.id needed\n\t\t// no module.loaded needed\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n// expose the modules object (__webpack_modules__)\n__webpack_require__.m = __webpack_modules__;\n\n","var deferred = [];\n__webpack_require__.O = (result, chunkIds, fn, priority) => {\n\tif(chunkIds) {\n\t\tpriority = priority || 0;\n\t\tfor(var i = deferred.length; i > 0 && deferred[i - 1][2] > priority; i--) deferred[i] = deferred[i - 1];\n\t\tdeferred[i] = [chunkIds, fn, priority];\n\t\treturn;\n\t}\n\tvar notFulfilled = Infinity;\n\tfor (var i = 0; i < deferred.length; i++) {\n\t\tvar [chunkIds, fn, priority] = deferred[i];\n\t\tvar fulfilled = true;\n\t\tfor (var j = 0; j < chunkIds.length; j++) {\n\t\t\tif ((priority & 1 === 0 || notFulfilled >= priority) && Object.keys(__webpack_require__.O).every((key) => (__webpack_require__.O[key](chunkIds[j])))) {\n\t\t\t\tchunkIds.splice(j--, 1);\n\t\t\t} else {\n\t\t\t\tfulfilled = false;\n\t\t\t\tif(priority < notFulfilled) notFulfilled = priority;\n\t\t\t}\n\t\t}\n\t\tif(fulfilled) {\n\t\t\tdeferred.splice(i--, 1)\n\t\t\tvar r = fn();\n\t\t\tif (r !== undefined) result = r;\n\t\t}\n\t}\n\treturn result;\n};","// define getter functions for harmony exports\n__webpack_require__.d = (exports, definition) => {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","// The chunk loading function for additional chunks\n// Since all referenced chunks are already included\n// in this file, this function is empty here.\n__webpack_require__.e = () => (Promise.resolve());","__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","// define __esModule on exports\n__webpack_require__.r = (exports) => {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","__webpack_require__.j = 900;","// no baseURI\n\n// object to store loaded and loading chunks\n// undefined = chunk not loaded, null = chunk preloaded/prefetched\n// [resolve, reject, Promise] = chunk loading, 0 = chunk loaded\nvar installedChunks = {\n\t900: 0\n};\n\n// no chunk on demand loading\n\n// no prefetching\n\n// no preloaded\n\n// no HMR\n\n// no HMR manifest\n\n__webpack_require__.O.j = (chunkId) => (installedChunks[chunkId] === 0);\n\n// install a JSONP callback for chunk loading\nvar webpackJsonpCallback = (parentChunkLoadingFunction, data) => {\n\tvar [chunkIds, moreModules, runtime] = data;\n\t// add \"moreModules\" to the modules object,\n\t// then flag all \"chunkIds\" as loaded and fire callback\n\tvar moduleId, chunkId, i = 0;\n\tif(chunkIds.some((id) => (installedChunks[id] !== 0))) {\n\t\tfor(moduleId in moreModules) {\n\t\t\tif(__webpack_require__.o(moreModules, moduleId)) {\n\t\t\t\t__webpack_require__.m[moduleId] = moreModules[moduleId];\n\t\t\t}\n\t\t}\n\t\tif(runtime) var result = runtime(__webpack_require__);\n\t}\n\tif(parentChunkLoadingFunction) parentChunkLoadingFunction(data);\n\tfor(;i < chunkIds.length; i++) {\n\t\tchunkId = chunkIds[i];\n\t\tif(__webpack_require__.o(installedChunks, chunkId) && installedChunks[chunkId]) {\n\t\t\tinstalledChunks[chunkId][0]();\n\t\t}\n\t\tinstalledChunks[chunkId] = 0;\n\t}\n\treturn __webpack_require__.O(result);\n}\n\nvar chunkLoadingGlobal = globalThis[\"webpackChunkcloudcmd\"] = globalThis[\"webpackChunkcloudcmd\"] || [];\nchunkLoadingGlobal.forEach(webpackJsonpCallback.bind(null, 0));\nchunkLoadingGlobal.push = webpackJsonpCallback.bind(null, chunkLoadingGlobal.push.bind(chunkLoadingGlobal));","","// startup\n// Load entry module and return exports\n// This entry module depends on other loaded chunks and execution need to be delayed\nvar __webpack_exports__ = __webpack_require__.O(undefined, [267], () => (__webpack_require__(
|
|
1
|
+
{"version":3,"file":"./modules/edit.js","mappings":";;;;UAAA;UACA;;UAEA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;;UAEA;UACA;;UAEA;UACA;UACA;;UAEA;UACA;;;;;WCzBA;WACA;WACA;WACA;WACA,+BAA+B,wCAAwC;WACvE;WACA;WACA;WACA;WACA,iBAAiB,qBAAqB;WACtC;WACA;WACA,kBAAkB,qBAAqB;WACvC;WACA;WACA,KAAK;WACL;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA,E;;;;;WC3BA;WACA;WACA;WACA;WACA,yCAAyC,wCAAwC;WACjF;WACA;WACA,E;;;;;WCPA;WACA;WACA;WACA,kD;;;;;WCHA,wF;;;;;WCAA;WACA;WACA;WACA,uDAAuD,iBAAiB;WACxE;WACA,gDAAgD,aAAa;WAC7D,E;;;;;WCNA,4B;;;;;WCAA;;WAEA;WACA;WACA;WACA;WACA;WACA;;WAEA;;WAEA;;WAEA;;WAEA;;WAEA;;WAEA;;WAEA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA,MAAM,qBAAqB;WAC3B;WACA;WACA;WACA;WACA;WACA;WACA;WACA;;WAEA;WACA;WACA,4G;;;;;UEhDA;UACA;UACA;UACA;UACA","sources":["file://cloudcmd/webpack/bootstrap","file://cloudcmd/webpack/runtime/chunk loaded","file://cloudcmd/webpack/runtime/define property getters","file://cloudcmd/webpack/runtime/ensure chunk","file://cloudcmd/webpack/runtime/hasOwnProperty shorthand","file://cloudcmd/webpack/runtime/make namespace object","file://cloudcmd/webpack/runtime/runtimeId","file://cloudcmd/webpack/runtime/jsonp chunk loading","file://cloudcmd/webpack/before-startup","file://cloudcmd/webpack/startup","file://cloudcmd/webpack/after-startup"],"sourcesContent":["// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\t// no module.id needed\n\t\t// no module.loaded needed\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n// expose the modules object (__webpack_modules__)\n__webpack_require__.m = __webpack_modules__;\n\n","var deferred = [];\n__webpack_require__.O = (result, chunkIds, fn, priority) => {\n\tif(chunkIds) {\n\t\tpriority = priority || 0;\n\t\tfor(var i = deferred.length; i > 0 && deferred[i - 1][2] > priority; i--) deferred[i] = deferred[i - 1];\n\t\tdeferred[i] = [chunkIds, fn, priority];\n\t\treturn;\n\t}\n\tvar notFulfilled = Infinity;\n\tfor (var i = 0; i < deferred.length; i++) {\n\t\tvar [chunkIds, fn, priority] = deferred[i];\n\t\tvar fulfilled = true;\n\t\tfor (var j = 0; j < chunkIds.length; j++) {\n\t\t\tif ((priority & 1 === 0 || notFulfilled >= priority) && Object.keys(__webpack_require__.O).every((key) => (__webpack_require__.O[key](chunkIds[j])))) {\n\t\t\t\tchunkIds.splice(j--, 1);\n\t\t\t} else {\n\t\t\t\tfulfilled = false;\n\t\t\t\tif(priority < notFulfilled) notFulfilled = priority;\n\t\t\t}\n\t\t}\n\t\tif(fulfilled) {\n\t\t\tdeferred.splice(i--, 1)\n\t\t\tvar r = fn();\n\t\t\tif (r !== undefined) result = r;\n\t\t}\n\t}\n\treturn result;\n};","// define getter functions for harmony exports\n__webpack_require__.d = (exports, definition) => {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","// The chunk loading function for additional chunks\n// Since all referenced chunks are already included\n// in this file, this function is empty here.\n__webpack_require__.e = () => (Promise.resolve());","__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","// define __esModule on exports\n__webpack_require__.r = (exports) => {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","__webpack_require__.j = 900;","// no baseURI\n\n// object to store loaded and loading chunks\n// undefined = chunk not loaded, null = chunk preloaded/prefetched\n// [resolve, reject, Promise] = chunk loading, 0 = chunk loaded\nvar installedChunks = {\n\t900: 0\n};\n\n// no chunk on demand loading\n\n// no prefetching\n\n// no preloaded\n\n// no HMR\n\n// no HMR manifest\n\n__webpack_require__.O.j = (chunkId) => (installedChunks[chunkId] === 0);\n\n// install a JSONP callback for chunk loading\nvar webpackJsonpCallback = (parentChunkLoadingFunction, data) => {\n\tvar [chunkIds, moreModules, runtime] = data;\n\t// add \"moreModules\" to the modules object,\n\t// then flag all \"chunkIds\" as loaded and fire callback\n\tvar moduleId, chunkId, i = 0;\n\tif(chunkIds.some((id) => (installedChunks[id] !== 0))) {\n\t\tfor(moduleId in moreModules) {\n\t\t\tif(__webpack_require__.o(moreModules, moduleId)) {\n\t\t\t\t__webpack_require__.m[moduleId] = moreModules[moduleId];\n\t\t\t}\n\t\t}\n\t\tif(runtime) var result = runtime(__webpack_require__);\n\t}\n\tif(parentChunkLoadingFunction) parentChunkLoadingFunction(data);\n\tfor(;i < chunkIds.length; i++) {\n\t\tchunkId = chunkIds[i];\n\t\tif(__webpack_require__.o(installedChunks, chunkId) && installedChunks[chunkId]) {\n\t\t\tinstalledChunks[chunkId][0]();\n\t\t}\n\t\tinstalledChunks[chunkId] = 0;\n\t}\n\treturn __webpack_require__.O(result);\n}\n\nvar chunkLoadingGlobal = globalThis[\"webpackChunkcloudcmd\"] = globalThis[\"webpackChunkcloudcmd\"] || [];\nchunkLoadingGlobal.forEach(webpackJsonpCallback.bind(null, 0));\nchunkLoadingGlobal.push = webpackJsonpCallback.bind(null, chunkLoadingGlobal.push.bind(chunkLoadingGlobal));","","// startup\n// Load entry module and return exports\n// This entry module depends on other loaded chunks and execution need to be delayed\nvar __webpack_exports__ = __webpack_require__.O(undefined, [267], () => (__webpack_require__(3601)))\n__webpack_exports__ = __webpack_require__.O(__webpack_exports__);\n",""],"names":[],"sourceRoot":""}
|
package/dist/sw.js
CHANGED
|
@@ -311,7 +311,7 @@ const respondWith = currify((f, e) => {
|
|
|
311
311
|
e.respondWith(f(e));
|
|
312
312
|
});
|
|
313
313
|
const getPathName = url => new URL(url).pathname;
|
|
314
|
-
const date = "
|
|
314
|
+
const date = "Tue Apr 21 2026 23:31:12 GMT+0300 (Eastern European Summer Time)";
|
|
315
315
|
const NAME = `cloudcmd: ${date}`;
|
|
316
316
|
const createRequest = a => new Request(a, {
|
|
317
317
|
credentials: 'same-origin'
|
|
@@ -125,7 +125,7 @@ eval("{\n\n/** @type {import('./reflectApply')} */\nmodule.exports = typeof Refl
|
|
|
125
125
|
(module, __unused_webpack_exports, __webpack_require__) {
|
|
126
126
|
|
|
127
127
|
"use strict";
|
|
128
|
-
eval("{\n\nvar setFunctionLength = __webpack_require__(/*! set-function-length */ \"./node_modules/set-function-length/index.js\");\n\nvar $defineProperty = __webpack_require__(/*! es-define-property */ \"./node_modules/es-define-property/index.js\");\n\nvar callBindBasic = __webpack_require__(/*! call-bind-apply-helpers */ \"./node_modules/call-bind-apply-helpers/index.js\");\nvar applyBind = __webpack_require__(/*! call-bind-apply-helpers/applyBind */ \"./node_modules/call-bind-apply-helpers/applyBind.js\");\n\nmodule.exports = function callBind(originalFunction) {\n\tvar func = callBindBasic(arguments);\n\tvar adjustedLength = originalFunction.length - (arguments.length - 1);\n\treturn setFunctionLength(\n\t\tfunc,\n\t\
|
|
128
|
+
eval("{\n\nvar setFunctionLength = __webpack_require__(/*! set-function-length */ \"./node_modules/set-function-length/index.js\");\n\nvar $defineProperty = __webpack_require__(/*! es-define-property */ \"./node_modules/es-define-property/index.js\");\n\nvar callBindBasic = __webpack_require__(/*! call-bind-apply-helpers */ \"./node_modules/call-bind-apply-helpers/index.js\");\nvar applyBind = __webpack_require__(/*! call-bind-apply-helpers/applyBind */ \"./node_modules/call-bind-apply-helpers/applyBind.js\");\n\nmodule.exports = function callBind(originalFunction) {\n\tvar func = callBindBasic(arguments);\n\tvar adjustedLength = 1 + originalFunction.length - (arguments.length - 1);\n\treturn setFunctionLength(\n\t\tfunc,\n\t\tadjustedLength > 0 ? adjustedLength : 0,\n\t\ttrue\n\t);\n};\n\nif ($defineProperty) {\n\t$defineProperty(module.exports, 'apply', { value: applyBind });\n} else {\n\tmodule.exports.apply = applyBind;\n}\n\n\n//# sourceURL=file://cloudcmd//Users/coderaiser/cloudcmd/node_modules/call-bind/index.js\n}");
|
|
129
129
|
|
|
130
130
|
/***/ },
|
|
131
131
|
|
|
@@ -840,17 +840,6 @@ eval("{__webpack_require__.r(__webpack_exports__);\n// extracted by mini-css-ext
|
|
|
840
840
|
|
|
841
841
|
/***/ },
|
|
842
842
|
|
|
843
|
-
/***/ "./node_modules/montag/lib/montag.js"
|
|
844
|
-
/*!*******************************************!*\
|
|
845
|
-
!*** ./node_modules/montag/lib/montag.js ***!
|
|
846
|
-
\*******************************************/
|
|
847
|
-
(module) {
|
|
848
|
-
|
|
849
|
-
"use strict";
|
|
850
|
-
eval("{\n\nconst START = 1;\nconst END = -1;\n\nmodule.exports = (strs, ...args) => {\n const str = build(strs, args);\n const lines = str\n .split('\\n')\n .slice(START, END);\n \n if (!lines.length)\n return '';\n \n const [first] = lines;\n \n const count = getSpaceCount(first);\n \n const result = [];\n \n for (const line of lines) {\n const currentCount = getSpaceCount(line);\n \n if (currentCount < count) {\n result.push(line.slice(currentCount));\n continue;\n }\n \n result.push(line.slice(count));\n }\n \n return result.join('\\n');\n};\n\nfunction getSpaceCount(a) {\n let i = 0;\n const {length} = a;\n \n while (i < length && a[i] === ' ') {\n ++i;\n }\n \n return i;\n}\n\nfunction build(strs, args) {\n const result = [];\n const n = strs.length + args.length;\n \n let j = 0;\n for (let i = 0; i < n; i++) {\n const current = i % 2 ? args.shift() : strs[j++];\n result.push(current);\n }\n \n return result.join('');\n}\n\n\n\n//# sourceURL=file://cloudcmd//Users/coderaiser/cloudcmd/node_modules/montag/lib/montag.js\n}");
|
|
851
|
-
|
|
852
|
-
/***/ },
|
|
853
|
-
|
|
854
843
|
/***/ "./node_modules/path-browserify/index.js"
|
|
855
844
|
/*!***********************************************!*\
|
|
856
845
|
!*** ./node_modules/path-browserify/index.js ***!
|
|
@@ -1001,6 +990,28 @@ eval("{\n\nconst wrap = (fn) => (...a) => (...b) => fn(...a, ...b);\n\nmodule.ex
|
|
|
1001
990
|
|
|
1002
991
|
/***/ },
|
|
1003
992
|
|
|
993
|
+
/***/ "https://esm.sh/@putout/bundle"
|
|
994
|
+
/*!************************************************!*\
|
|
995
|
+
!*** external "https://esm.sh/@putout/bundle" ***!
|
|
996
|
+
\************************************************/
|
|
997
|
+
(module) {
|
|
998
|
+
|
|
999
|
+
"use strict";
|
|
1000
|
+
module.exports = import("https://esm.sh/@putout/bundle");;
|
|
1001
|
+
|
|
1002
|
+
/***/ },
|
|
1003
|
+
|
|
1004
|
+
/***/ "https://esm.sh/@putout/processor-html"
|
|
1005
|
+
/*!********************************************************!*\
|
|
1006
|
+
!*** external "https://esm.sh/@putout/processor-html" ***!
|
|
1007
|
+
\********************************************************/
|
|
1008
|
+
(module) {
|
|
1009
|
+
|
|
1010
|
+
"use strict";
|
|
1011
|
+
module.exports = import("https://esm.sh/@putout/processor-html");;
|
|
1012
|
+
|
|
1013
|
+
/***/ },
|
|
1014
|
+
|
|
1004
1015
|
/***/ "./node_modules/@babel/code-frame/lib/index.js"
|
|
1005
1016
|
/*!*****************************************************!*\
|
|
1006
1017
|
!*** ./node_modules/@babel/code-frame/lib/index.js ***!
|
|
@@ -1085,7 +1096,7 @@ eval("{\n\nconst findit = __webpack_require__(/*! domfs-findit */ \"./node_modul
|
|
|
1085
1096
|
(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
1086
1097
|
|
|
1087
1098
|
"use strict";
|
|
1088
|
-
eval("{__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (__WEBPACK_DEFAULT_EXPORT__)\n/* harmony export */ });\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (({autoSize, isTitle}) => {\n const classNames = ['modal-main'];\n \n if (autoSize)\n classNames.push('modal-autosize');\n \n if (isTitle)\n classNames.push('modal-is-title');\n \n return classNames.join(' ');\n});\n\n\n//# sourceURL=file://cloudcmd//Users/coderaiser/cloudcmd/node_modules/@cloudcmd/modal/lib/get-class-name.js\n}");
|
|
1099
|
+
eval("{__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (__WEBPACK_DEFAULT_EXPORT__)\n/* harmony export */ });\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (({autoSize, isTitle}) => {\n const classNames = ['modal-main'];\n \n if (autoSize)\n classNames.push('modal-autosize');\n \n if (isTitle)\n classNames.push('modal-is-title');\n \n return classNames.join(' ');\n});\n(Object.getOwnPropertyDescriptor(__WEBPACK_DEFAULT_EXPORT__, \"name\") || {}).writable || Object.defineProperty(__WEBPACK_DEFAULT_EXPORT__, \"name\", { value: \"default\", configurable: true });\n\n\n//# sourceURL=file://cloudcmd//Users/coderaiser/cloudcmd/node_modules/@cloudcmd/modal/lib/get-class-name.js\n}");
|
|
1089
1100
|
|
|
1090
1101
|
/***/ },
|
|
1091
1102
|
|
|
@@ -1118,7 +1129,7 @@ eval("{__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpa
|
|
|
1118
1129
|
(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
1119
1130
|
|
|
1120
1131
|
"use strict";
|
|
1121
|
-
eval("{__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (__WEBPACK_DEFAULT_EXPORT__)\n/* harmony export */ });\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ((a) => document.querySelector(`[data-name=\"modal-${a}\"]`));\n\n\n//# sourceURL=file://cloudcmd//Users/coderaiser/cloudcmd/node_modules/@cloudcmd/modal/lib/query.js\n}");
|
|
1132
|
+
eval("{__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (__WEBPACK_DEFAULT_EXPORT__)\n/* harmony export */ });\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ((a) => document.querySelector(`[data-name=\"modal-${a}\"]`));\n(Object.getOwnPropertyDescriptor(__WEBPACK_DEFAULT_EXPORT__, \"name\") || {}).writable || Object.defineProperty(__WEBPACK_DEFAULT_EXPORT__, \"name\", { value: \"default\", configurable: true });\n\n\n//# sourceURL=file://cloudcmd//Users/coderaiser/cloudcmd/node_modules/@cloudcmd/modal/lib/query.js\n}");
|
|
1122
1133
|
|
|
1123
1134
|
/***/ },
|
|
1124
1135
|
|
|
@@ -1129,7 +1140,7 @@ eval("{__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpa
|
|
|
1129
1140
|
(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
1130
1141
|
|
|
1131
1142
|
"use strict";
|
|
1132
|
-
eval("{__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (__WEBPACK_DEFAULT_EXPORT__)\n/* harmony export */ });\n/* harmony import */ var _cloudcmd_create_element__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @cloudcmd/create-element */ \"./node_modules/@cloudcmd/create-element/lib/create-element.js\");\n/* harmony import */ var _query_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./query.js */ \"./node_modules/@cloudcmd/modal/lib/query.js\");\n\n\n\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ((title, parent, overrides = {}) => {\n const {\n query = _query_js__WEBPACK_IMPORTED_MODULE_1__[\"default\"],\n createElement = _cloudcmd_create_element__WEBPACK_IMPORTED_MODULE_0__,\n } = overrides;\n \n const titleEl = query('title');\n \n if (titleEl) {\n query('title-text').textContent = title;\n return;\n }\n \n const el = createElement('div', {\n className: 'modal-title',\n dataName: 'modal-title',\n parent,\n });\n \n createElement('span', {\n parent: el,\n textContent: title,\n className: 'modal-title-text',\n dataName: 'modal-title-text',\n });\n});\n\n\n//# sourceURL=file://cloudcmd//Users/coderaiser/cloudcmd/node_modules/@cloudcmd/modal/lib/show-title.js\n}");
|
|
1143
|
+
eval("{__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (__WEBPACK_DEFAULT_EXPORT__)\n/* harmony export */ });\n/* harmony import */ var _cloudcmd_create_element__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @cloudcmd/create-element */ \"./node_modules/@cloudcmd/create-element/lib/create-element.js\");\n/* harmony import */ var _query_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./query.js */ \"./node_modules/@cloudcmd/modal/lib/query.js\");\n\n\n\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ((title, parent, overrides = {}) => {\n const {\n query = _query_js__WEBPACK_IMPORTED_MODULE_1__[\"default\"],\n createElement = _cloudcmd_create_element__WEBPACK_IMPORTED_MODULE_0__,\n } = overrides;\n \n const titleEl = query('title');\n \n if (titleEl) {\n query('title-text').textContent = title;\n return;\n }\n \n const el = createElement('div', {\n className: 'modal-title',\n dataName: 'modal-title',\n parent,\n });\n \n createElement('span', {\n parent: el,\n textContent: title,\n className: 'modal-title-text',\n dataName: 'modal-title-text',\n });\n});\n(Object.getOwnPropertyDescriptor(__WEBPACK_DEFAULT_EXPORT__, \"name\") || {}).writable || Object.defineProperty(__WEBPACK_DEFAULT_EXPORT__, \"name\", { value: \"default\", configurable: true });\n\n\n//# sourceURL=file://cloudcmd//Users/coderaiser/cloudcmd/node_modules/@cloudcmd/modal/lib/show-title.js\n}");
|
|
1133
1144
|
|
|
1134
1145
|
/***/ },
|
|
1135
1146
|
|
|
@@ -1151,7 +1162,7 @@ eval("{__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpa
|
|
|
1151
1162
|
(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
1152
1163
|
|
|
1153
1164
|
"use strict";
|
|
1154
|
-
eval("{__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (__WEBPACK_DEFAULT_EXPORT__)\n/* harmony export */ });\n/* harmony import */ var _css_main_css__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../css/main.css */ \"./css/main.css\");\n/* harmony import */ var node_process__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! node:process */ \"./node_modules/process/browser.js\");\n/* harmony import */ var wraptile__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! wraptile */ \"./node_modules/wraptile/lib/wraptile.js\");\n/* harmony import */ var load_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! load.js */ \"./node_modules/load.js/lib/load.js\");\n/* harmony import */ var _common_util__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! #common/util */ \"./common/util.js\");\n/* harmony import */ var _common_cloudfunc__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! #common/cloudfunc */ \"./common/cloudfunc.js\");\n/* harmony import */ var _dom__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! #dom */ \"./client/dom/index.js\");\n/* harmony import */ var _sw_register_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./sw/register.js */ \"./client/sw/register.js\");\n/* harmony import */ var _sort_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./sort.js */ \"./client/sort.js\");\n/* harmony import */ var _client_js__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./client.js */ \"./client/client.js\");\n/* harmony import */ var _listeners_index_js__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./listeners/index.js */ \"./client/listeners/index.js\");\n\n\n\n\n\n\n\n\n\n\n\nconst isDev = \"development\" === 'development';\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (init);\nglobalThis.CloudCmd = init;\nasync function init(config) {\n globalThis.CloudCmd = (0,_client_js__WEBPACK_IMPORTED_MODULE_9__.createCloudCmd)({\n DOM: _dom__WEBPACK_IMPORTED_MODULE_6__[\"default\"],\n Listeners: _listeners_index_js__WEBPACK_IMPORTED_MODULE_10__\n });\n globalThis.DOM = _dom__WEBPACK_IMPORTED_MODULE_6__[\"default\"];\n globalThis.Util = _common_util__WEBPACK_IMPORTED_MODULE_4__;\n globalThis.CloudFunc = _common_cloudfunc__WEBPACK_IMPORTED_MODULE_5__;\n await register(config);\n (0,_sort_js__WEBPACK_IMPORTED_MODULE_8__.initSortPanel)();\n globalThis.CloudCmd.sortPanel = _sort_js__WEBPACK_IMPORTED_MODULE_8__.sortPanel;\n const prefix = getPrefix(config.prefix);\n globalThis.CloudCmd.init(prefix, config);\n if (globalThis.CloudCmd.config('menu') === 'aleman') setTimeout(() => {\n
|
|
1165
|
+
eval("{__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (__WEBPACK_DEFAULT_EXPORT__)\n/* harmony export */ });\n/* harmony import */ var _css_main_css__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../css/main.css */ \"./css/main.css\");\n/* harmony import */ var node_process__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! node:process */ \"./node_modules/process/browser.js\");\n/* harmony import */ var wraptile__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! wraptile */ \"./node_modules/wraptile/lib/wraptile.js\");\n/* harmony import */ var load_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! load.js */ \"./node_modules/load.js/lib/load.js\");\n/* harmony import */ var _common_util__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! #common/util */ \"./common/util.js\");\n/* harmony import */ var _common_cloudfunc__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! #common/cloudfunc */ \"./common/cloudfunc.js\");\n/* harmony import */ var _dom__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! #dom */ \"./client/dom/index.js\");\n/* harmony import */ var _sw_register_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./sw/register.js */ \"./client/sw/register.js\");\n/* harmony import */ var _sort_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./sort.js */ \"./client/sort.js\");\n/* harmony import */ var _client_js__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./client.js */ \"./client/client.js\");\n/* harmony import */ var _listeners_index_js__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./listeners/index.js */ \"./client/listeners/index.js\");\n\n\n\n\n\n\n\n\n\n\n\nconst isDev = \"development\" === 'development';\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (init);\nglobalThis.CloudCmd = init;\nasync function init(config) {\n globalThis.CloudCmd = (0,_client_js__WEBPACK_IMPORTED_MODULE_9__.createCloudCmd)({\n DOM: _dom__WEBPACK_IMPORTED_MODULE_6__[\"default\"],\n Listeners: _listeners_index_js__WEBPACK_IMPORTED_MODULE_10__\n });\n globalThis.DOM = _dom__WEBPACK_IMPORTED_MODULE_6__[\"default\"];\n globalThis.Util = _common_util__WEBPACK_IMPORTED_MODULE_4__;\n globalThis.CloudFunc = _common_cloudfunc__WEBPACK_IMPORTED_MODULE_5__;\n await register(config);\n (0,_sort_js__WEBPACK_IMPORTED_MODULE_8__.initSortPanel)();\n globalThis.CloudCmd.sortPanel = _sort_js__WEBPACK_IMPORTED_MODULE_8__.sortPanel;\n const prefix = getPrefix(config.prefix);\n globalThis.CloudCmd.init(prefix, config);\n if (globalThis.CloudCmd.config('menu') === 'aleman') setTimeout(() => {\n __webpack_require__.e(/*! import() */ \"cloudcmd.common\").then(__webpack_require__.bind(__webpack_require__, /*! https://esm.sh/@putout/processor-html */ \"https://esm.sh/@putout/processor-html\"));\n __webpack_require__.e(/*! import() */ \"cloudcmd.common\").then(__webpack_require__.bind(__webpack_require__, /*! https://esm.sh/@putout/bundle */ \"https://esm.sh/@putout/bundle\"));\n }, 100);\n}\nfunction getPrefix(prefix) {\n if (!prefix) return '';\n if (!prefix.indexOf('/')) return prefix;\n return `/${prefix}`;\n}\nconst onUpdateFound = wraptile__WEBPACK_IMPORTED_MODULE_2__(async config => {\n if (isDev) return;\n const {\n DOM\n } = globalThis;\n const prefix = getPrefix(config.prefix);\n await load_js__WEBPACK_IMPORTED_MODULE_3__.js(`${prefix}/dist/cloudcmd.common.js`);\n await load_js__WEBPACK_IMPORTED_MODULE_3__.js(`${prefix}/dist/cloudcmd.js`);\n console.log('cloudcmd: sw: updated');\n DOM.Events.removeAll();\n globalThis.CloudCmd(config);\n});\nasync function register(config) {\n const {\n prefix\n } = config;\n const sw = await (0,_sw_register_js__WEBPACK_IMPORTED_MODULE_7__.registerSW)(prefix);\n (0,_sw_register_js__WEBPACK_IMPORTED_MODULE_7__.listenSW)(sw, 'updatefound', onUpdateFound(config));\n}\n\n//# sourceURL=file://cloudcmd//Users/coderaiser/cloudcmd/client/cloudcmd.js\n}");
|
|
1155
1166
|
|
|
1156
1167
|
/***/ },
|
|
1157
1168
|
|
|
@@ -1327,7 +1338,7 @@ eval("{__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpa
|
|
|
1327
1338
|
(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
1328
1339
|
|
|
1329
1340
|
"use strict";
|
|
1330
|
-
eval("{__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (__WEBPACK_DEFAULT_EXPORT__)\n/* harmony export */ });\n/* harmony import */ var just_capitalize__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! just-capitalize */ \"./node_modules/just-capitalize/index.mjs\");\n/* harmony import */ var _dom_dialog__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! #dom/dialog */ \"./client/dom/dialog.js\");\n/* harmony import */ var _dom_storage__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! #dom/storage */ \"./client/dom/storage.js\");\n/* harmony import */ var _dom_rest__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! #dom/rest */ \"./client/dom/rest.js\");\n/* harmony import */ var _current_file_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../current-file.js */ \"./client/dom/current-file.js\");\n/* global CloudCmd */\n\n\n\n\n\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (async (current, overrides = {}) => {\n const {\n refresh = CloudCmd.refresh,\n Dialog = _dom_dialog__WEBPACK_IMPORTED_MODULE_1__,\n currentFile = _current_file_js__WEBPACK_IMPORTED_MODULE_4__\n } = overrides;\n const {\n isCurrentFile,\n getCurrentName,\n getCurrentFile,\n getCurrentByName,\n getCurrentType,\n getCurrentDirPath,\n setCurrentName\n } = currentFile;\n if (!isCurrentFile(current)) current = getCurrentFile();\n const from = getCurrentName(current);\n if (from === '..') return Dialog.alert.noFiles();\n const [cancel, to] = await Dialog.prompt('Rename', from);\n if (cancel) return;\n const nextFile = getCurrentByName(to);\n if (nextFile) {\n const type = getCurrentType(nextFile);\n const msg = `${(0,just_capitalize__WEBPACK_IMPORTED_MODULE_0__[\"default\"])(type)} \"${to}\" already exists. Proceed?`;\n const [cancel] = await Dialog.confirm(msg);\n if (cancel) return;\n }\n if (from === to) return;\n const dirPath = getCurrentDirPath();\n const fromFull = `${dirPath}${from}`;\n const toFull = `${dirPath}${to}`;\n const [e] = await _dom_rest__WEBPACK_IMPORTED_MODULE_3__.rename(fromFull, toFull);\n if (e) return;\n setCurrentName(to, current);\n _dom_storage__WEBPACK_IMPORTED_MODULE_2__.remove(dirPath);\n refresh();\n});\n\n//# sourceURL=file://cloudcmd//Users/coderaiser/cloudcmd/client/dom/operations/rename-current.js\n}");
|
|
1341
|
+
eval("{__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (__WEBPACK_DEFAULT_EXPORT__)\n/* harmony export */ });\n/* harmony import */ var just_capitalize__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! just-capitalize */ \"./node_modules/just-capitalize/index.mjs\");\n/* harmony import */ var _dom_dialog__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! #dom/dialog */ \"./client/dom/dialog.js\");\n/* harmony import */ var _dom_storage__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! #dom/storage */ \"./client/dom/storage.js\");\n/* harmony import */ var _dom_rest__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! #dom/rest */ \"./client/dom/rest.js\");\n/* harmony import */ var _current_file_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../current-file.js */ \"./client/dom/current-file.js\");\n/* global CloudCmd */\n\n\n\n\n\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (async (current, overrides = {}) => {\n const {\n refresh = CloudCmd.refresh,\n Dialog = _dom_dialog__WEBPACK_IMPORTED_MODULE_1__,\n currentFile = _current_file_js__WEBPACK_IMPORTED_MODULE_4__\n } = overrides;\n const {\n isCurrentFile,\n getCurrentName,\n getCurrentFile,\n getCurrentByName,\n getCurrentType,\n getCurrentDirPath,\n setCurrentName\n } = currentFile;\n if (!isCurrentFile(current)) current = getCurrentFile();\n const from = getCurrentName(current);\n if (from === '..') return Dialog.alert.noFiles();\n const [cancel, to] = await Dialog.prompt('Rename', from);\n if (cancel) return;\n const nextFile = getCurrentByName(to);\n if (nextFile) {\n const type = getCurrentType(nextFile);\n const msg = `${(0,just_capitalize__WEBPACK_IMPORTED_MODULE_0__[\"default\"])(type)} \"${to}\" already exists. Proceed?`;\n const [cancel] = await Dialog.confirm(msg);\n if (cancel) return;\n }\n if (from === to) return;\n const dirPath = getCurrentDirPath();\n const fromFull = `${dirPath}${from}`;\n const toFull = `${dirPath}${to}`;\n const [e] = await _dom_rest__WEBPACK_IMPORTED_MODULE_3__.rename(fromFull, toFull);\n if (e) return;\n setCurrentName(to, current);\n _dom_storage__WEBPACK_IMPORTED_MODULE_2__.remove(dirPath);\n refresh();\n});\n(Object.getOwnPropertyDescriptor(__WEBPACK_DEFAULT_EXPORT__, \"name\") || {}).writable || Object.defineProperty(__WEBPACK_DEFAULT_EXPORT__, \"name\", { value: \"default\", configurable: true });\n\n//# sourceURL=file://cloudcmd//Users/coderaiser/cloudcmd/client/dom/operations/rename-current.js\n}");
|
|
1331
1342
|
|
|
1332
1343
|
/***/ },
|
|
1333
1344
|
|
|
@@ -1404,7 +1415,7 @@ eval("{__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpa
|
|
|
1404
1415
|
(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
1405
1416
|
|
|
1406
1417
|
"use strict";
|
|
1407
|
-
eval("{__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ Key: () => (/* binding */ Key),\n/* harmony export */ _listener: () => (/* binding */ _listener)\n/* harmony export */ });\n/* harmony import */ var _cloudcmd_clipboard__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @cloudcmd/clipboard */ \"./node_modules/@cloudcmd/clipboard/lib/clipboard.js\");\n/* harmony import */ var fullstore__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! fullstore */ \"./node_modules/fullstore/lib/fullstore.js\");\n/* harmony import */ var _dom_events__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! #dom/events */ \"./client/dom/events/index.js\");\n/* harmony import */ var _dom_buffer_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../dom/buffer.js */ \"./client/dom/buffer.js\");\n/* harmony import */ var _key_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./key.js */ \"./client/key/key.js\");\n/* harmony import */ var _vim_index_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./vim/index.js */ \"./client/key/vim/index.js\");\n/* harmony import */ var _set_current_by_char_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./set-current-by-char.js */ \"./client/key/set-current-by-char.js\");\n/* harmony import */ var _binder_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./binder.js */ \"./client/key/binder.js\");\n/* global CloudCmd, DOM */\n\n\n\n\n\n\n\n\nconst Chars = (0,fullstore__WEBPACK_IMPORTED_MODULE_1__.fullstore)();\nconst toggleVim = (keyCode, overrides = {}) => {\n const {\n _config,\n config\n } = overrides;\n if (!config('vim') && keyCode === _key_js__WEBPACK_IMPORTED_MODULE_4__.ESC) _config('vim', true);\n};\nconst isUndefined = a => typeof a === 'undefined';\nChars([]);\nconst {\n assign\n} = Object;\nconst binder = (0,_binder_js__WEBPACK_IMPORTED_MODULE_7__.createBinder)();\nconst bind = () => {\n _dom_events__WEBPACK_IMPORTED_MODULE_2__.addKey(listener, true);\n binder.setBind();\n};\nconst Key = assign(binder, _key_js__WEBPACK_IMPORTED_MODULE_4__, {\n bind\n});\nconst _listener = listener;\nfunction getChar(event) {\n /*\n * event.keyIdentifier deprecated in chrome v51\n * but event.key is absent in chrome <= v51\n */\n const {\n key,\n shift,\n keyCode,\n keyIdentifier\n } = event;\n const char = key || fromCharCode(keyIdentifier);\n const symbol = getSymbol(shift, keyCode);\n return [symbol, char];\n}\nasync function listener(event, overrides = {}) {\n const {\n config = CloudCmd.config,\n _config = CloudCmd._config,\n switchKey = _switchKey,\n vim = _vim_index_js__WEBPACK_IMPORTED_MODULE_5__[\"default\"]\n } = overrides;\n const {\n keyCode\n } = event;\n\n // strange chrome bug calls listener twice\n // in second time event misses a lot fields\n if (isUndefined(event.altKey)) return;\n const alt = event.altKey;\n const ctrl = event.ctrlKey;\n const meta = event.metaKey;\n const isBetween = keyCode >= _key_js__WEBPACK_IMPORTED_MODULE_4__.ZERO && keyCode <= _key_js__WEBPACK_IMPORTED_MODULE_4__.Z;\n const isNumpad = /Numpad/.test(event.code);\n const [symbol, char] = getChar(event);\n if (!binder.isBind()) return;\n toggleVim(keyCode, {\n config,\n _config\n });\n const isVim = config('vim');\n if (!isVim && !isNumpad && !alt && !ctrl && !meta && (isBetween || symbol)) return (0,_set_current_by_char_js__WEBPACK_IMPORTED_MODULE_6__[\"default\"])(char, Chars);\n Chars([]);\n await switchKey(event);\n if (keyCode >= _key_js__WEBPACK_IMPORTED_MODULE_4__.F1 && keyCode <= _key_js__WEBPACK_IMPORTED_MODULE_4__.F10) return;\n if (isVim) vim(char, event);\n}\nfunction getSymbol(shift, keyCode) {\n switch (keyCode) {\n case _key_js__WEBPACK_IMPORTED_MODULE_4__.DOT:\n return '.';\n case _key_js__WEBPACK_IMPORTED_MODULE_4__.HYPHEN:\n return shift ? '_' : '-';\n case _key_js__WEBPACK_IMPORTED_MODULE_4__.EQUAL:\n return shift ? '+' : '=';\n }\n return '';\n}\nfunction fromCharCode(keyIdentifier) {\n const code = keyIdentifier.substring(2);\n const hex = parseInt(code, 16);\n return String.fromCharCode(hex);\n}\nasync function _switchKey(event) {\n const Info = DOM.CurrentInfo;\n let i;\n let isSelected;\n let prev;\n let next;\n let current = Info.element;\n let dataName;\n const {\n name,\n panel,\n path,\n isDir\n } = Info;\n const {\n Operation,\n changeDir,\n config\n } = CloudCmd;\n const {\n keyCode\n } = event;\n const alt = event.altKey;\n const shift = event.shiftKey;\n const ctrl = event.ctrlKey;\n const meta = event.metaKey;\n const ctrlMeta = ctrl || meta;\n if (current) {\n prev = current.previousSibling;\n next = current.nextSibling;\n }\n switch (keyCode) {\n case _key_js__WEBPACK_IMPORTED_MODULE_4__.TAB:\n DOM.changePanel();\n event.preventDefault();\n break;\n case _key_js__WEBPACK_IMPORTED_MODULE_4__.INSERT:\n DOM.toggleSelectedFile(current).setCurrentFile(next);\n break;\n case _key_js__WEBPACK_IMPORTED_MODULE_4__.INSERT_MAC:\n DOM.toggleSelectedFile(current).setCurrentFile(next);\n break;\n case _key_js__WEBPACK_IMPORTED_MODULE_4__.DELETE:\n if (shift) Operation.show('delete:silent');else Operation.show('delete');\n break;\n case _key_js__WEBPACK_IMPORTED_MODULE_4__.ASTERISK:\n DOM.toggleAllSelectedFiles(current);\n break;\n case _key_js__WEBPACK_IMPORTED_MODULE_4__.PLUS:\n DOM.expandSelection();\n event.preventDefault();\n break;\n case _key_js__WEBPACK_IMPORTED_MODULE_4__.MINUS:\n DOM.shrinkSelection();\n event.preventDefault();\n break;\n case _key_js__WEBPACK_IMPORTED_MODULE_4__.F1:\n CloudCmd.Help.show();\n event.preventDefault();\n break;\n case _key_js__WEBPACK_IMPORTED_MODULE_4__.F2:\n CloudCmd.UserMenu.show();\n break;\n case _key_js__WEBPACK_IMPORTED_MODULE_4__.F3:\n event.preventDefault();\n if (Info.isDir) await changeDir(path);else if (shift) CloudCmd.View.show(null, {\n raw: true\n });else if (ctrlMeta) CloudCmd.sortPanel('name');else CloudCmd.View.show();\n break;\n case _key_js__WEBPACK_IMPORTED_MODULE_4__.F4:\n if (config('vim')) CloudCmd.EditFileVim.show();else CloudCmd.EditFile.show();\n event.preventDefault();\n break;\n case _key_js__WEBPACK_IMPORTED_MODULE_4__.F5:\n if (ctrlMeta) CloudCmd.sortPanel('date');else if (alt) Operation.show('pack');else Operation.show('copy');\n event.preventDefault();\n break;\n case _key_js__WEBPACK_IMPORTED_MODULE_4__.F6:\n if (ctrlMeta) CloudCmd.sortPanel('size');else if (shift) DOM.renameCurrent(current);else Operation.show('move');\n event.preventDefault();\n break;\n case _key_js__WEBPACK_IMPORTED_MODULE_4__.F7:\n if (shift) DOM.promptNewFile();else DOM.promptNewDir();\n event.preventDefault();\n break;\n case _key_js__WEBPACK_IMPORTED_MODULE_4__.F8:\n Operation.show('delete');\n event.preventDefault();\n break;\n case _key_js__WEBPACK_IMPORTED_MODULE_4__.F9:\n if (alt) Operation.show('extract');else CloudCmd.Menu.show();\n event.preventDefault();\n break;\n case _key_js__WEBPACK_IMPORTED_MODULE_4__.F10:\n CloudCmd.Config.show();\n event.preventDefault();\n break;\n case _key_js__WEBPACK_IMPORTED_MODULE_4__.TRA:\n event.preventDefault();\n if (shift) return CloudCmd.Terminal.show();\n CloudCmd.Konsole.show();\n break;\n case _key_js__WEBPACK_IMPORTED_MODULE_4__.BRACKET_CLOSE:\n CloudCmd.Konsole.show();\n event.preventDefault();\n break;\n case _key_js__WEBPACK_IMPORTED_MODULE_4__.SPACE:\n event.preventDefault();\n if (!isDir || name === '..') isSelected = true;else isSelected = DOM.isSelected(current);\n if (!isSelected) await DOM.loadCurrentSize(current);\n DOM.toggleSelectedFile(current);\n break;\n case _key_js__WEBPACK_IMPORTED_MODULE_4__.U:\n if (ctrlMeta) {\n DOM.swapPanels();\n event.preventDefault();\n }\n break;\n\n /* navigation on file table: *\n * in case of pressing button 'up', *\n * select previous row */\n case _key_js__WEBPACK_IMPORTED_MODULE_4__.UP:\n if (shift) DOM.toggleSelectedFile(current);\n DOM.setCurrentFile(prev);\n event.preventDefault();\n break;\n\n /* in case of pressing button 'down', *\n * select next row */\n case _key_js__WEBPACK_IMPORTED_MODULE_4__.DOWN:\n if (shift) DOM.toggleSelectedFile(current);\n DOM.setCurrentFile(next);\n event.preventDefault();\n break;\n case _key_js__WEBPACK_IMPORTED_MODULE_4__.LEFT:\n if (!alt) return;\n event.preventDefault();\n dataName = Info.panel.getAttribute('data-name');\n if (dataName === 'js-right') DOM.duplicatePanel();\n break;\n case _key_js__WEBPACK_IMPORTED_MODULE_4__.RIGHT:\n if (!alt) return;\n event.preventDefault();\n dataName = Info.panel.getAttribute('data-name');\n if (dataName === 'js-left') DOM.duplicatePanel();\n break;\n\n /* in case of pressing button 'Home', *\n * go to top element */\n case _key_js__WEBPACK_IMPORTED_MODULE_4__.HOME:\n DOM.setCurrentFile(Info.first);\n event.preventDefault();\n break;\n\n /* in case of pressing button 'End', select last element */\n case _key_js__WEBPACK_IMPORTED_MODULE_4__.END:\n DOM.setCurrentFile(Info.last);\n event.preventDefault();\n break;\n\n /* если нажали клавишу page down проматываем экран */\n case _key_js__WEBPACK_IMPORTED_MODULE_4__.PAGE_DOWN:\n DOM.scrollByPages(panel, 1);\n for (i = 0; i < 30; i++) {\n if (!current.nextSibling) break;\n current = current.nextSibling;\n }\n DOM.setCurrentFile(current);\n event.preventDefault();\n break;\n\n /* если нажали клавишу page up проматываем экран */\n case _key_js__WEBPACK_IMPORTED_MODULE_4__.PAGE_UP:\n DOM.scrollByPages(panel, -1);\n for (i = 0; i < 30; i++) {\n if (!current.previousSibling) break;\n current = current.previousSibling;\n }\n DOM.setCurrentFile(current);\n event.preventDefault();\n break;\n case _key_js__WEBPACK_IMPORTED_MODULE_4__.ENTER:\n if (Info.isDir) await changeDir(path);else CloudCmd.View.show();\n break;\n case _key_js__WEBPACK_IMPORTED_MODULE_4__.BACKSPACE:\n CloudCmd.goToParentDir();\n event.preventDefault();\n break;\n case _key_js__WEBPACK_IMPORTED_MODULE_4__.BACKSLASH:\n if (ctrlMeta) await changeDir('/');\n break;\n case _key_js__WEBPACK_IMPORTED_MODULE_4__.A:\n if (ctrlMeta) {\n DOM.selectAllFiles();\n event.preventDefault();\n }\n break;\n case _key_js__WEBPACK_IMPORTED_MODULE_4__.G:\n if (alt) {\n DOM.goToDirectory();\n event.preventDefault();\n }\n break;\n case _key_js__WEBPACK_IMPORTED_MODULE_4__.M:\n if (ctrlMeta) {\n if (config('vim')) CloudCmd.EditNamesVim.show();else CloudCmd.EditNames.show();\n event.preventDefault();\n }\n break;\n case _key_js__WEBPACK_IMPORTED_MODULE_4__.P:\n if (!ctrlMeta) return;\n event.preventDefault();\n _cloudcmd_clipboard__WEBPACK_IMPORTED_MODULE_0__.writeText(Info.dirPath).catch(CloudCmd.log);\n break;\n\n /**\n * обновляем страницу,\n * загружаем содержимое каталога\n * при этом данные берём всегда с\n * сервера, а не из кэша\n * (обновляем кэш)\n */\n case _key_js__WEBPACK_IMPORTED_MODULE_4__.R:\n if (ctrlMeta) {\n CloudCmd.log('reloading page...\\n');\n CloudCmd.refresh();\n event.preventDefault();\n }\n break;\n case _key_js__WEBPACK_IMPORTED_MODULE_4__.C:\n if (ctrlMeta) _dom_buffer_js__WEBPACK_IMPORTED_MODULE_3__.copy();\n break;\n case _key_js__WEBPACK_IMPORTED_MODULE_4__.X:\n if (ctrlMeta) _dom_buffer_js__WEBPACK_IMPORTED_MODULE_3__.cut();\n break;\n case _key_js__WEBPACK_IMPORTED_MODULE_4__.V:\n if (ctrlMeta) _dom_buffer_js__WEBPACK_IMPORTED_MODULE_3__.paste();\n break;\n case _key_js__WEBPACK_IMPORTED_MODULE_4__.Z:\n if (ctrlMeta) _dom_buffer_js__WEBPACK_IMPORTED_MODULE_3__.clear();\n break;\n case _key_js__WEBPACK_IMPORTED_MODULE_4__.COLON:\n CloudCmd.CommandLine.show();\n event.preventDefault();\n break;\n\n /* чистим хранилище */\n case _key_js__WEBPACK_IMPORTED_MODULE_4__.D:\n if (ctrlMeta) {\n CloudCmd.log('clearing storage...');\n await DOM.Storage.clear();\n CloudCmd.log('storage cleared');\n event.preventDefault();\n }\n break;\n case _key_js__WEBPACK_IMPORTED_MODULE_4__.DOT:\n if (meta && shift) {\n const showDotFiles = !CloudCmd.config('showDotFiles');\n CloudCmd._config('showDotFiles', showDotFiles);\n CloudCmd.refresh();\n await DOM.RESTful.Config.write({\n showDotFiles\n });\n }\n break;\n }\n}\n\n//# sourceURL=file://cloudcmd//Users/coderaiser/cloudcmd/client/key/index.js\n}");
|
|
1418
|
+
eval("{__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ Key: () => (/* binding */ Key),\n/* harmony export */ _listener: () => (/* binding */ _listener)\n/* harmony export */ });\n/* harmony import */ var _cloudcmd_clipboard__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @cloudcmd/clipboard */ \"./node_modules/@cloudcmd/clipboard/lib/clipboard.js\");\n/* harmony import */ var fullstore__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! fullstore */ \"./node_modules/fullstore/lib/fullstore.js\");\n/* harmony import */ var _dom_events__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! #dom/events */ \"./client/dom/events/index.js\");\n/* harmony import */ var _dom_buffer_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../dom/buffer.js */ \"./client/dom/buffer.js\");\n/* harmony import */ var _key_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./key.js */ \"./client/key/key.js\");\n/* harmony import */ var _vim_index_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./vim/index.js */ \"./client/key/vim/index.js\");\n/* harmony import */ var _set_current_by_char_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./set-current-by-char.js */ \"./client/key/set-current-by-char.js\");\n/* harmony import */ var _binder_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./binder.js */ \"./client/key/binder.js\");\n/* global CloudCmd, DOM */\n\n\n\n\n\n\n\n\nconst Chars = (0,fullstore__WEBPACK_IMPORTED_MODULE_1__.fullstore)();\nconst toggleVim = (keyCode, overrides = {}) => {\n const {\n _config,\n config\n } = overrides;\n if (!config('vim') && keyCode === _key_js__WEBPACK_IMPORTED_MODULE_4__.ESC) _config('vim', true);\n};\nconst isUndefined = a => typeof a === 'undefined';\nChars([]);\nconst {\n assign\n} = Object;\nconst binder = (0,_binder_js__WEBPACK_IMPORTED_MODULE_7__.createBinder)();\nconst bind = () => {\n _dom_events__WEBPACK_IMPORTED_MODULE_2__.addKey(listener, true);\n binder.setBind();\n};\nconst Key = assign(binder, _key_js__WEBPACK_IMPORTED_MODULE_4__, {\n bind\n});\nconst _listener = listener;\nfunction getChar(event) {\n /*\n * event.keyIdentifier deprecated in chrome v51\n * but event.key is absent in chrome <= v51\n */\n const {\n key,\n shift,\n keyCode,\n keyIdentifier\n } = event;\n const char = key || fromCharCode(keyIdentifier);\n const symbol = getSymbol(shift, keyCode);\n return [symbol, char];\n}\nasync function listener(event, overrides = {}) {\n const {\n config = CloudCmd.config,\n _config = CloudCmd._config,\n switchKey = _switchKey,\n vim = _vim_index_js__WEBPACK_IMPORTED_MODULE_5__[\"default\"]\n } = overrides;\n const {\n keyCode\n } = event;\n\n // strange chrome bug calls listener twice\n // in second time event misses a lot fields\n if (isUndefined(event.altKey)) return;\n const alt = event.altKey;\n const ctrl = event.ctrlKey;\n const meta = event.metaKey;\n const isBetween = keyCode >= _key_js__WEBPACK_IMPORTED_MODULE_4__.ZERO && keyCode <= _key_js__WEBPACK_IMPORTED_MODULE_4__.Z;\n const isNumpad = /Numpad/.test(event.code);\n const [symbol, char] = getChar(event);\n if (!binder.isBind()) return;\n toggleVim(keyCode, {\n config,\n _config\n });\n const isVim = config('vim');\n if (!isVim && !isNumpad && !alt && !ctrl && !meta && (isBetween || symbol)) return (0,_set_current_by_char_js__WEBPACK_IMPORTED_MODULE_6__[\"default\"])(char, Chars);\n Chars([]);\n await switchKey(event);\n if (keyCode >= _key_js__WEBPACK_IMPORTED_MODULE_4__.F1 && keyCode <= _key_js__WEBPACK_IMPORTED_MODULE_4__.F10) return;\n if (isVim) vim(char, event);\n}\nfunction getSymbol(shift, keyCode) {\n switch (keyCode) {\n case _key_js__WEBPACK_IMPORTED_MODULE_4__.DOT:\n return '.';\n case _key_js__WEBPACK_IMPORTED_MODULE_4__.HYPHEN:\n return shift ? '_' : '-';\n case _key_js__WEBPACK_IMPORTED_MODULE_4__.EQUAL:\n return shift ? '+' : '=';\n }\n return '';\n}\nfunction fromCharCode(keyIdentifier) {\n const code = keyIdentifier.substring(2);\n const hex = parseInt(code, 16);\n return String.fromCharCode(hex);\n}\nasync function _switchKey(event) {\n const Info = DOM.CurrentInfo;\n let i;\n let isSelected;\n let prev;\n let next;\n let current = Info.element;\n let dataName;\n const {\n name,\n panel,\n path,\n isDir\n } = Info;\n const {\n Operation,\n changeDir,\n config\n } = CloudCmd;\n const {\n keyCode\n } = event;\n const alt = event.altKey;\n const shift = event.shiftKey;\n const ctrl = event.ctrlKey;\n const meta = event.metaKey;\n const ctrlMeta = ctrl || meta;\n if (current) {\n prev = current.previousSibling;\n next = current.nextSibling;\n }\n switch (keyCode) {\n case _key_js__WEBPACK_IMPORTED_MODULE_4__.TAB:\n DOM.changePanel();\n event.preventDefault();\n break;\n case _key_js__WEBPACK_IMPORTED_MODULE_4__.INSERT:\n DOM.toggleSelectedFile(current).setCurrentFile(next);\n break;\n case _key_js__WEBPACK_IMPORTED_MODULE_4__.INSERT_MAC:\n DOM.toggleSelectedFile(current).setCurrentFile(next);\n break;\n case _key_js__WEBPACK_IMPORTED_MODULE_4__.DELETE:\n if (shift) Operation.show('delete:silent');else Operation.show('delete');\n break;\n case _key_js__WEBPACK_IMPORTED_MODULE_4__.ASTERISK:\n DOM.toggleAllSelectedFiles(current);\n break;\n case _key_js__WEBPACK_IMPORTED_MODULE_4__.PLUS:\n DOM.expandSelection();\n event.preventDefault();\n break;\n case _key_js__WEBPACK_IMPORTED_MODULE_4__.MINUS:\n DOM.shrinkSelection();\n event.preventDefault();\n break;\n case _key_js__WEBPACK_IMPORTED_MODULE_4__.F1:\n CloudCmd.Help.show();\n event.preventDefault();\n break;\n case _key_js__WEBPACK_IMPORTED_MODULE_4__.F2:\n CloudCmd.UserMenu.show();\n break;\n case _key_js__WEBPACK_IMPORTED_MODULE_4__.F3:\n event.preventDefault();\n if (Info.isDir) await changeDir(path);else if (shift) CloudCmd.View.show(null, {\n raw: true\n });else if (ctrlMeta) CloudCmd.sortPanel('name');else CloudCmd.View.show();\n break;\n case _key_js__WEBPACK_IMPORTED_MODULE_4__.F4:\n if (config('vim')) CloudCmd.EditFileVim.show();else CloudCmd.EditFile.show();\n event.preventDefault();\n break;\n case _key_js__WEBPACK_IMPORTED_MODULE_4__.F5:\n if (ctrlMeta) CloudCmd.sortPanel('date');else if (alt) Operation.show('pack');else Operation.show('copy');\n event.preventDefault();\n break;\n case _key_js__WEBPACK_IMPORTED_MODULE_4__.F6:\n if (ctrlMeta) CloudCmd.sortPanel('size');else if (shift) DOM.renameCurrent(current);else Operation.show('move');\n event.preventDefault();\n break;\n case _key_js__WEBPACK_IMPORTED_MODULE_4__.F7:\n if (shift) DOM.promptNewFile();else DOM.promptNewDir();\n event.preventDefault();\n break;\n case _key_js__WEBPACK_IMPORTED_MODULE_4__.F8:\n Operation.show('delete');\n event.preventDefault();\n break;\n case _key_js__WEBPACK_IMPORTED_MODULE_4__.F9:\n if (alt) Operation.show('extract');else CloudCmd.Menu.show();\n event.preventDefault();\n break;\n case _key_js__WEBPACK_IMPORTED_MODULE_4__.F10:\n CloudCmd.Config.show();\n event.preventDefault();\n break;\n case _key_js__WEBPACK_IMPORTED_MODULE_4__.TRA:\n event.preventDefault();\n if (shift) return CloudCmd.Terminal.show();\n CloudCmd.Konsole.show();\n break;\n case _key_js__WEBPACK_IMPORTED_MODULE_4__.BRACKET_CLOSE:\n CloudCmd.Konsole.show();\n event.preventDefault();\n break;\n case _key_js__WEBPACK_IMPORTED_MODULE_4__.SPACE:\n event.preventDefault();\n if (!isDir || name === '..') isSelected = true;else isSelected = DOM.isSelected(current);\n if (!isSelected) await DOM.loadCurrentSize(current);\n DOM.toggleSelectedFile(current);\n break;\n case _key_js__WEBPACK_IMPORTED_MODULE_4__.U:\n if (ctrlMeta) {\n DOM.swapPanels();\n event.preventDefault();\n }\n break;\n\n /* navigation on file table: *\n * in case of pressing button 'up', *\n * select previous row */\n case _key_js__WEBPACK_IMPORTED_MODULE_4__.UP:\n if (shift) DOM.toggleSelectedFile(current);\n DOM.setCurrentFile(prev);\n event.preventDefault();\n break;\n\n /* in case of pressing button 'down', *\n * select next row */\n case _key_js__WEBPACK_IMPORTED_MODULE_4__.DOWN:\n if (shift) DOM.toggleSelectedFile(current);\n DOM.setCurrentFile(next);\n event.preventDefault();\n break;\n case _key_js__WEBPACK_IMPORTED_MODULE_4__.LEFT:\n if (!alt) return;\n event.preventDefault();\n dataName = Info.panel.getAttribute('data-name');\n if (dataName === 'js-right') DOM.duplicatePanel();\n break;\n case _key_js__WEBPACK_IMPORTED_MODULE_4__.RIGHT:\n if (!alt) return;\n event.preventDefault();\n dataName = Info.panel.getAttribute('data-name');\n if (dataName === 'js-left') DOM.duplicatePanel();\n break;\n\n /* in case of pressing button 'Home', *\n * go to top element */\n case _key_js__WEBPACK_IMPORTED_MODULE_4__.HOME:\n DOM.setCurrentFile(Info.first);\n event.preventDefault();\n break;\n\n /* in case of pressing button 'End', select last element */\n case _key_js__WEBPACK_IMPORTED_MODULE_4__.END:\n DOM.setCurrentFile(Info.last);\n event.preventDefault();\n break;\n\n /* если нажали клавишу page down проматываем экран */\n case _key_js__WEBPACK_IMPORTED_MODULE_4__.PAGE_DOWN:\n DOM.scrollByPages(panel, 1);\n for (i = 0; i < 30; i++) {\n if (!current.nextSibling) break;\n current = current.nextSibling;\n }\n DOM.setCurrentFile(current);\n event.preventDefault();\n break;\n\n /* если нажали клавишу page up проматываем экран */\n case _key_js__WEBPACK_IMPORTED_MODULE_4__.PAGE_UP:\n DOM.scrollByPages(panel, -1);\n for (i = 0; i < 30; i++) {\n if (!current.previousSibling) break;\n current = current.previousSibling;\n }\n DOM.setCurrentFile(current);\n event.preventDefault();\n break;\n case _key_js__WEBPACK_IMPORTED_MODULE_4__.ENTER:\n if (Info.isDir) await changeDir(path);else CloudCmd.View.show();\n break;\n case _key_js__WEBPACK_IMPORTED_MODULE_4__.BACKSPACE:\n CloudCmd.goToParentDir();\n event.preventDefault();\n break;\n case _key_js__WEBPACK_IMPORTED_MODULE_4__.BACKSLASH:\n if (ctrlMeta) await changeDir('/');\n break;\n case _key_js__WEBPACK_IMPORTED_MODULE_4__.A:\n if (ctrlMeta) {\n DOM.selectAllFiles();\n event.preventDefault();\n }\n break;\n case _key_js__WEBPACK_IMPORTED_MODULE_4__.G:\n if (alt) {\n DOM.goToDirectory();\n event.preventDefault();\n }\n break;\n case _key_js__WEBPACK_IMPORTED_MODULE_4__.L:\n if (ctrlMeta) {\n CloudCmd.logOut();\n event.preventDefault();\n }\n break;\n case _key_js__WEBPACK_IMPORTED_MODULE_4__.M:\n if (ctrlMeta) {\n if (config('vim')) CloudCmd.EditNamesVim.show();else CloudCmd.EditNames.show();\n event.preventDefault();\n }\n break;\n case _key_js__WEBPACK_IMPORTED_MODULE_4__.P:\n if (!ctrlMeta) return;\n event.preventDefault();\n _cloudcmd_clipboard__WEBPACK_IMPORTED_MODULE_0__.writeText(Info.dirPath).catch(CloudCmd.log);\n break;\n\n /**\n * обновляем страницу,\n * загружаем содержимое каталога\n * при этом данные берём всегда с\n * сервера, а не из кэша\n * (обновляем кэш)\n */\n case _key_js__WEBPACK_IMPORTED_MODULE_4__.R:\n if (ctrlMeta) {\n CloudCmd.log('reloading page...\\n');\n CloudCmd.refresh();\n event.preventDefault();\n }\n break;\n case _key_js__WEBPACK_IMPORTED_MODULE_4__.C:\n if (ctrlMeta) _dom_buffer_js__WEBPACK_IMPORTED_MODULE_3__.copy();\n break;\n case _key_js__WEBPACK_IMPORTED_MODULE_4__.X:\n if (ctrlMeta) _dom_buffer_js__WEBPACK_IMPORTED_MODULE_3__.cut();\n break;\n case _key_js__WEBPACK_IMPORTED_MODULE_4__.V:\n if (ctrlMeta) _dom_buffer_js__WEBPACK_IMPORTED_MODULE_3__.paste();\n break;\n case _key_js__WEBPACK_IMPORTED_MODULE_4__.Z:\n if (ctrlMeta) _dom_buffer_js__WEBPACK_IMPORTED_MODULE_3__.clear();\n break;\n case _key_js__WEBPACK_IMPORTED_MODULE_4__.COLON:\n CloudCmd.CommandLine.show();\n event.preventDefault();\n break;\n\n /* чистим хранилище */\n case _key_js__WEBPACK_IMPORTED_MODULE_4__.D:\n if (ctrlMeta) {\n CloudCmd.log('clearing storage...');\n await DOM.Storage.clear();\n CloudCmd.log('storage cleared');\n event.preventDefault();\n }\n break;\n case _key_js__WEBPACK_IMPORTED_MODULE_4__.DOT:\n if (meta && shift) {\n const showDotFiles = !CloudCmd.config('showDotFiles');\n CloudCmd._config('showDotFiles', showDotFiles);\n CloudCmd.refresh();\n await DOM.RESTful.Config.write({\n showDotFiles\n });\n }\n break;\n }\n}\n\n//# sourceURL=file://cloudcmd//Users/coderaiser/cloudcmd/client/key/index.js\n}");
|
|
1408
1419
|
|
|
1409
1420
|
/***/ },
|
|
1410
1421
|
|
|
@@ -1415,7 +1426,7 @@ eval("{__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpa
|
|
|
1415
1426
|
(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
1416
1427
|
|
|
1417
1428
|
"use strict";
|
|
1418
|
-
eval("{__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ A: () => (/* binding */ A),\n/* harmony export */ ASTERISK: () => (/* binding */ ASTERISK),\n/* harmony export */ BACKSLASH: () => (/* binding */ BACKSLASH),\n/* harmony export */ BACKSPACE: () => (/* binding */ BACKSPACE),\n/* harmony export */ BRACKET_CLOSE: () => (/* binding */ BRACKET_CLOSE),\n/* harmony export */ C: () => (/* binding */ C),\n/* harmony export */ CAPSLOCK: () => (/* binding */ CAPSLOCK),\n/* harmony export */ COLON: () => (/* binding */ COLON),\n/* harmony export */ D: () => (/* binding */ D),\n/* harmony export */ DELETE: () => (/* binding */ DELETE),\n/* harmony export */ DOT: () => (/* binding */ DOT),\n/* harmony export */ DOWN: () => (/* binding */ DOWN),\n/* harmony export */ END: () => (/* binding */ END),\n/* harmony export */ ENTER: () => (/* binding */ ENTER),\n/* harmony export */ EQUAL: () => (/* binding */ EQUAL),\n/* harmony export */ ESC: () => (/* binding */ ESC),\n/* harmony export */ F1: () => (/* binding */ F1),\n/* harmony export */ F10: () => (/* binding */ F10),\n/* harmony export */ F2: () => (/* binding */ F2),\n/* harmony export */ F3: () => (/* binding */ F3),\n/* harmony export */ F4: () => (/* binding */ F4),\n/* harmony export */ F5: () => (/* binding */ F5),\n/* harmony export */ F6: () => (/* binding */ F6),\n/* harmony export */ F7: () => (/* binding */ F7),\n/* harmony export */ F8: () => (/* binding */ F8),\n/* harmony export */ F9: () => (/* binding */ F9),\n/* harmony export */ G: () => (/* binding */ G),\n/* harmony export */ HOME: () => (/* binding */ HOME),\n/* harmony export */ HYPHEN: () => (/* binding */ HYPHEN),\n/* harmony export */ INSERT: () => (/* binding */ INSERT),\n/* harmony export */ INSERT_MAC: () => (/* binding */ INSERT_MAC),\n/* harmony export */ J: () => (/* binding */ J),\n/* harmony export */ K: () => (/* binding */ K),\n/* harmony export */ LEFT: () => (/* binding */ LEFT),\n/* harmony export */ M: () => (/* binding */ M),\n/* harmony export */ MINUS: () => (/* binding */ MINUS),\n/* harmony export */ O: () => (/* binding */ O),\n/* harmony export */ P: () => (/* binding */ P),\n/* harmony export */ PAGE_DOWN: () => (/* binding */ PAGE_DOWN),\n/* harmony export */ PAGE_UP: () => (/* binding */ PAGE_UP),\n/* harmony export */ PLUS: () => (/* binding */ PLUS),\n/* harmony export */ Q: () => (/* binding */ Q),\n/* harmony export */ R: () => (/* binding */ R),\n/* harmony export */ RIGHT: () => (/* binding */ RIGHT),\n/* harmony export */ S: () => (/* binding */ S),\n/* harmony export */ SEMICOLON: () => (/* binding */ SEMICOLON),\n/* harmony export */ SLASH: () => (/* binding */ SLASH),\n/* harmony export */ SPACE: () => (/* binding */ SPACE),\n/* harmony export */ T: () => (/* binding */ T),\n/* harmony export */ TAB: () => (/* binding */ TAB),\n/* harmony export */ TRA: () => (/* binding */ TRA),\n/* harmony export */ U: () => (/* binding */ U),\n/* harmony export */ UP: () => (/* binding */ UP),\n/* harmony export */ V: () => (/* binding */ V),\n/* harmony export */ X: () => (/* binding */ X),\n/* harmony export */ Z: () => (/* binding */ Z),\n/* harmony export */ ZERO: () => (/* binding */ ZERO)\n/* harmony export */ });\nconst BACKSPACE = 8;\nconst TAB = 9;\nconst ENTER = 13;\nconst CAPSLOCK = 20;\nconst ESC = 27;\nconst SPACE = 32;\nconst PAGE_UP = 33;\nconst PAGE_DOWN = 34;\nconst END = 35;\nconst HOME = 36;\nconst LEFT = 37;\nconst UP = 38;\nconst RIGHT = 39;\nconst DOWN = 40;\nconst INSERT = 45;\nconst DELETE = 46;\nconst ZERO = 48;\nconst SEMICOLON = 52;\nconst A = 65;\nconst C = 67;\nconst D = 68;\nconst G = 71;\nconst J = 74;\nconst K = 75;\nconst M = 77;\nconst O = 79;\nconst P = 80;\nconst Q = 81;\nconst R = 82;\nconst S = 83;\nconst T = 84;\nconst U = 85;\nconst V = 86;\nconst X = 88;\nconst Z = 90;\nconst INSERT_MAC = 96;\nconst ASTERISK = 106;\nconst PLUS = 107;\nconst MINUS = 109;\nconst F1 = 112;\nconst F2 = 113;\nconst F3 = 114;\nconst F4 = 115;\nconst F5 = 116;\nconst F6 = 117;\nconst F7 = 118;\nconst F8 = 119;\nconst F9 = 120;\nconst F10 = 121;\nconst COLON = 186;\nconst EQUAL = 187;\nconst HYPHEN = 189;\nconst DOT = 190;\nconst SLASH = 191;\nconst TRA = 192;\nconst BACKSLASH = 220;\nconst BRACKET_CLOSE = 221;\n\n//# sourceURL=file://cloudcmd//Users/coderaiser/cloudcmd/client/key/key.js\n}");
|
|
1429
|
+
eval("{__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ A: () => (/* binding */ A),\n/* harmony export */ ASTERISK: () => (/* binding */ ASTERISK),\n/* harmony export */ BACKSLASH: () => (/* binding */ BACKSLASH),\n/* harmony export */ BACKSPACE: () => (/* binding */ BACKSPACE),\n/* harmony export */ BRACKET_CLOSE: () => (/* binding */ BRACKET_CLOSE),\n/* harmony export */ C: () => (/* binding */ C),\n/* harmony export */ CAPSLOCK: () => (/* binding */ CAPSLOCK),\n/* harmony export */ COLON: () => (/* binding */ COLON),\n/* harmony export */ D: () => (/* binding */ D),\n/* harmony export */ DELETE: () => (/* binding */ DELETE),\n/* harmony export */ DOT: () => (/* binding */ DOT),\n/* harmony export */ DOWN: () => (/* binding */ DOWN),\n/* harmony export */ END: () => (/* binding */ END),\n/* harmony export */ ENTER: () => (/* binding */ ENTER),\n/* harmony export */ EQUAL: () => (/* binding */ EQUAL),\n/* harmony export */ ESC: () => (/* binding */ ESC),\n/* harmony export */ F1: () => (/* binding */ F1),\n/* harmony export */ F10: () => (/* binding */ F10),\n/* harmony export */ F2: () => (/* binding */ F2),\n/* harmony export */ F3: () => (/* binding */ F3),\n/* harmony export */ F4: () => (/* binding */ F4),\n/* harmony export */ F5: () => (/* binding */ F5),\n/* harmony export */ F6: () => (/* binding */ F6),\n/* harmony export */ F7: () => (/* binding */ F7),\n/* harmony export */ F8: () => (/* binding */ F8),\n/* harmony export */ F9: () => (/* binding */ F9),\n/* harmony export */ G: () => (/* binding */ G),\n/* harmony export */ HOME: () => (/* binding */ HOME),\n/* harmony export */ HYPHEN: () => (/* binding */ HYPHEN),\n/* harmony export */ INSERT: () => (/* binding */ INSERT),\n/* harmony export */ INSERT_MAC: () => (/* binding */ INSERT_MAC),\n/* harmony export */ J: () => (/* binding */ J),\n/* harmony export */ K: () => (/* binding */ K),\n/* harmony export */ L: () => (/* binding */ L),\n/* harmony export */ LEFT: () => (/* binding */ LEFT),\n/* harmony export */ M: () => (/* binding */ M),\n/* harmony export */ MINUS: () => (/* binding */ MINUS),\n/* harmony export */ O: () => (/* binding */ O),\n/* harmony export */ P: () => (/* binding */ P),\n/* harmony export */ PAGE_DOWN: () => (/* binding */ PAGE_DOWN),\n/* harmony export */ PAGE_UP: () => (/* binding */ PAGE_UP),\n/* harmony export */ PLUS: () => (/* binding */ PLUS),\n/* harmony export */ Q: () => (/* binding */ Q),\n/* harmony export */ R: () => (/* binding */ R),\n/* harmony export */ RIGHT: () => (/* binding */ RIGHT),\n/* harmony export */ S: () => (/* binding */ S),\n/* harmony export */ SEMICOLON: () => (/* binding */ SEMICOLON),\n/* harmony export */ SLASH: () => (/* binding */ SLASH),\n/* harmony export */ SPACE: () => (/* binding */ SPACE),\n/* harmony export */ T: () => (/* binding */ T),\n/* harmony export */ TAB: () => (/* binding */ TAB),\n/* harmony export */ TRA: () => (/* binding */ TRA),\n/* harmony export */ U: () => (/* binding */ U),\n/* harmony export */ UP: () => (/* binding */ UP),\n/* harmony export */ V: () => (/* binding */ V),\n/* harmony export */ X: () => (/* binding */ X),\n/* harmony export */ Z: () => (/* binding */ Z),\n/* harmony export */ ZERO: () => (/* binding */ ZERO)\n/* harmony export */ });\nconst BACKSPACE = 8;\nconst TAB = 9;\nconst ENTER = 13;\nconst CAPSLOCK = 20;\nconst ESC = 27;\nconst SPACE = 32;\nconst PAGE_UP = 33;\nconst PAGE_DOWN = 34;\nconst END = 35;\nconst HOME = 36;\nconst LEFT = 37;\nconst UP = 38;\nconst RIGHT = 39;\nconst DOWN = 40;\nconst INSERT = 45;\nconst DELETE = 46;\nconst ZERO = 48;\nconst SEMICOLON = 52;\nconst A = 65;\nconst C = 67;\nconst D = 68;\nconst G = 71;\nconst J = 74;\nconst K = 75;\nconst L = 76;\nconst M = 77;\nconst O = 79;\nconst P = 80;\nconst Q = 81;\nconst R = 82;\nconst S = 83;\nconst T = 84;\nconst U = 85;\nconst V = 86;\nconst X = 88;\nconst Z = 90;\nconst INSERT_MAC = 96;\nconst ASTERISK = 106;\nconst PLUS = 107;\nconst MINUS = 109;\nconst F1 = 112;\nconst F2 = 113;\nconst F3 = 114;\nconst F4 = 115;\nconst F5 = 116;\nconst F6 = 117;\nconst F7 = 118;\nconst F8 = 119;\nconst F9 = 120;\nconst F10 = 121;\nconst COLON = 186;\nconst EQUAL = 187;\nconst HYPHEN = 189;\nconst DOT = 190;\nconst SLASH = 191;\nconst TRA = 192;\nconst BACKSLASH = 220;\nconst BRACKET_CLOSE = 221;\n\n//# sourceURL=file://cloudcmd//Users/coderaiser/cloudcmd/client/key/key.js\n}");
|
|
1419
1430
|
|
|
1420
1431
|
/***/ },
|
|
1421
1432
|
|
|
@@ -1448,7 +1459,7 @@ eval("{__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpa
|
|
|
1448
1459
|
(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
1449
1460
|
|
|
1450
1461
|
"use strict";
|
|
1451
|
-
eval("{__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (__WEBPACK_DEFAULT_EXPORT__),\n/* harmony export */ selectFile: () => (/* binding */ selectFile)\n/* harmony export */ });\n/* harmony import */ var _vim_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./vim.js */ \"./client/key/vim/vim.js\");\n/* harmony import */ var _find_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./find.js */ \"./client/key/vim/find.js\");\n/* harmony import */ var _set_current_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./set-current.js */ \"./client/key/vim/set-current.js\");\n/* global CloudCmd */\n/* global DOM */\n\n\n\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ((key, event, overrides = {}) => {\n const defaults = {\n ...globalThis.DOM,\n ...globalThis.CloudCmd\n };\n const deps = {\n ...defaults,\n ...overrides\n };\n const operations = getOperations(event, deps);\n (0,_vim_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"])(key, operations, deps);\n});\nconst getOperations = (event, deps) => {\n var _event$preventDefault, _event$preventDefault2;\n const {\n Info = globalThis.DOM.CurrentInfo,\n CloudCmd = globalThis.CloudCmd,\n Operation,\n unselectFiles,\n setCurrentFile,\n setCurrentByName,\n getCurrentName,\n prompt = globalThis.DOM.Dialog.prompt,\n preventDefault = event === null || event === void 0 || (_event$preventDefault = event.preventDefault) === null || _event$preventDefault === void 0 ? void 0 : _event$preventDefault.bind(event),\n stopImmediatePropagation = event === null || event === void 0 || (_event$preventDefault2 = event.preventDefault) === null || _event$preventDefault2 === void 0 ? void 0 : _event$preventDefault2.bind(event),\n promptNewFile = DOM.promptNewFile,\n toggleSelectedFile,\n Buffer = {},\n createFindNext = _createFindNext,\n createFindPrevious = _createFindPrevious,\n createMakeFile = _createMakeFile\n } = deps;\n return {\n makeFile: createMakeFile({\n promptNewFile,\n preventDefault,\n stopImmediatePropagation\n }),\n findNext: createFindNext({\n setCurrentByName\n }),\n findPrevious: createFindPrevious({\n setCurrentByName\n }),\n escape: unselectFiles,\n remove: () => {\n Operation.show('delete');\n },\n makeDirectory: () => {\n event.stopImmediatePropagation();\n event.preventDefault();\n DOM.promptNewDir();\n },\n terminal: () => {\n CloudCmd.Terminal.show();\n },\n edit: () => {\n CloudCmd.EditFileVim.show();\n },\n copy: () => {\n Buffer.copy();\n unselectFiles();\n },\n select: () => {\n const current = Info.element;\n toggleSelectedFile(current);\n },\n paste: Buffer.paste,\n moveNext: ({\n count,\n isVisual,\n isDelete\n }) => {\n (0,_set_current_js__WEBPACK_IMPORTED_MODULE_2__.setCurrent)('next', {\n count,\n isVisual,\n isDelete\n }, {\n Info,\n setCurrentFile,\n unselectFiles,\n Operation\n });\n },\n movePrevious: ({\n count,\n isVisual,\n isDelete\n }) => {\n (0,_set_current_js__WEBPACK_IMPORTED_MODULE_2__.setCurrent)('previous', {\n count,\n isVisual,\n isDelete\n }, {\n Info,\n setCurrentFile,\n unselectFiles,\n Operation\n });\n },\n find: async () => {\n preventDefault();\n const [, value] = await prompt('Find', '');\n if (!value) return;\n const names = Info.files.map(getCurrentName);\n const [result] = _find_js__WEBPACK_IMPORTED_MODULE_1__.find(value, names);\n setCurrentByName(result);\n }\n };\n};\nconst selectFile = _set_current_js__WEBPACK_IMPORTED_MODULE_2__.selectFileNotParent;\nconst _createFindPrevious = (overrides = {}) => () => {\n const {\n setCurrentByName\n } = overrides;\n const name = _find_js__WEBPACK_IMPORTED_MODULE_1__.findPrevious();\n setCurrentByName(name);\n};\nconst _createFindNext = (overrides = {}) => () => {\n const {\n setCurrentByName\n } = overrides;\n const name = _find_js__WEBPACK_IMPORTED_MODULE_1__.findNext();\n setCurrentByName(name);\n};\nconst _createMakeFile = (overrides = {}) => () => {\n const {\n promptNewFile,\n stopImmediatePropagation,\n preventDefault\n } = overrides;\n stopImmediatePropagation();\n preventDefault();\n promptNewFile();\n};\n\n//# sourceURL=file://cloudcmd//Users/coderaiser/cloudcmd/client/key/vim/index.js\n}");
|
|
1462
|
+
eval("{__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (__WEBPACK_DEFAULT_EXPORT__),\n/* harmony export */ selectFile: () => (/* binding */ selectFile)\n/* harmony export */ });\n/* harmony import */ var _vim_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./vim.js */ \"./client/key/vim/vim.js\");\n/* harmony import */ var _find_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./find.js */ \"./client/key/vim/find.js\");\n/* harmony import */ var _set_current_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./set-current.js */ \"./client/key/vim/set-current.js\");\n/* global CloudCmd */\n/* global DOM */\n\n\n\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ((key, event, overrides = {}) => {\n const defaults = {\n ...globalThis.DOM,\n ...globalThis.CloudCmd\n };\n const deps = {\n ...defaults,\n ...overrides\n };\n const operations = getOperations(event, deps);\n (0,_vim_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"])(key, operations, deps);\n});\n(Object.getOwnPropertyDescriptor(__WEBPACK_DEFAULT_EXPORT__, \"name\") || {}).writable || Object.defineProperty(__WEBPACK_DEFAULT_EXPORT__, \"name\", { value: \"default\", configurable: true });\nconst getOperations = (event, deps) => {\n var _event$preventDefault, _event$preventDefault2;\n const {\n Info = globalThis.DOM.CurrentInfo,\n CloudCmd = globalThis.CloudCmd,\n Operation,\n unselectFiles,\n setCurrentFile,\n setCurrentByName,\n getCurrentName,\n prompt = globalThis.DOM.Dialog.prompt,\n preventDefault = event === null || event === void 0 || (_event$preventDefault = event.preventDefault) === null || _event$preventDefault === void 0 ? void 0 : _event$preventDefault.bind(event),\n stopImmediatePropagation = event === null || event === void 0 || (_event$preventDefault2 = event.preventDefault) === null || _event$preventDefault2 === void 0 ? void 0 : _event$preventDefault2.bind(event),\n promptNewFile = DOM.promptNewFile,\n toggleSelectedFile,\n Buffer = {},\n createFindNext = _createFindNext,\n createFindPrevious = _createFindPrevious,\n createMakeFile = _createMakeFile\n } = deps;\n return {\n makeFile: createMakeFile({\n promptNewFile,\n preventDefault,\n stopImmediatePropagation\n }),\n findNext: createFindNext({\n setCurrentByName\n }),\n findPrevious: createFindPrevious({\n setCurrentByName\n }),\n escape: unselectFiles,\n remove: () => {\n Operation.show('delete');\n },\n makeDirectory: () => {\n event.stopImmediatePropagation();\n event.preventDefault();\n DOM.promptNewDir();\n },\n terminal: () => {\n CloudCmd.Terminal.show();\n },\n edit: () => {\n CloudCmd.EditFileVim.show();\n },\n copy: () => {\n Buffer.copy();\n unselectFiles();\n },\n select: () => {\n const current = Info.element;\n toggleSelectedFile(current);\n },\n paste: Buffer.paste,\n moveNext: ({\n count,\n isVisual,\n isDelete\n }) => {\n (0,_set_current_js__WEBPACK_IMPORTED_MODULE_2__.setCurrent)('next', {\n count,\n isVisual,\n isDelete\n }, {\n Info,\n setCurrentFile,\n unselectFiles,\n Operation\n });\n },\n movePrevious: ({\n count,\n isVisual,\n isDelete\n }) => {\n (0,_set_current_js__WEBPACK_IMPORTED_MODULE_2__.setCurrent)('previous', {\n count,\n isVisual,\n isDelete\n }, {\n Info,\n setCurrentFile,\n unselectFiles,\n Operation\n });\n },\n find: async () => {\n preventDefault();\n const [, value] = await prompt('Find', '');\n if (!value) return;\n const names = Info.files.map(getCurrentName);\n const [result] = _find_js__WEBPACK_IMPORTED_MODULE_1__.find(value, names);\n setCurrentByName(result);\n }\n };\n};\nconst selectFile = _set_current_js__WEBPACK_IMPORTED_MODULE_2__.selectFileNotParent;\nconst _createFindPrevious = (overrides = {}) => () => {\n const {\n setCurrentByName\n } = overrides;\n const name = _find_js__WEBPACK_IMPORTED_MODULE_1__.findPrevious();\n setCurrentByName(name);\n};\nconst _createFindNext = (overrides = {}) => () => {\n const {\n setCurrentByName\n } = overrides;\n const name = _find_js__WEBPACK_IMPORTED_MODULE_1__.findNext();\n setCurrentByName(name);\n};\nconst _createMakeFile = (overrides = {}) => () => {\n const {\n promptNewFile,\n stopImmediatePropagation,\n preventDefault\n } = overrides;\n stopImmediatePropagation();\n preventDefault();\n promptNewFile();\n};\n\n//# sourceURL=file://cloudcmd//Users/coderaiser/cloudcmd/client/key/vim/index.js\n}");
|
|
1452
1463
|
|
|
1453
1464
|
/***/ },
|
|
1454
1465
|
|
|
@@ -1470,7 +1481,7 @@ eval("{__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpa
|
|
|
1470
1481
|
(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
1471
1482
|
|
|
1472
1483
|
"use strict";
|
|
1473
|
-
eval("{__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (__WEBPACK_DEFAULT_EXPORT__)\n/* harmony export */ });\n/* harmony import */ var fullstore__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! fullstore */ \"./node_modules/fullstore/lib/fullstore.js\");\n\nconst store = (0,fullstore__WEBPACK_IMPORTED_MODULE_0__.fullstore)('');\nconst visual = (0,fullstore__WEBPACK_IMPORTED_MODULE_0__.fullstore)(false);\nconst stopVisual = () => {\n visual(false);\n};\nconst end = () => {\n store('');\n};\nconst rmFirst = a => {\n return a.split('').slice(1).join('');\n};\nconst noop = () => {};\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ((key, operations = {}) => {\n const prevStore = store();\n const isVisual = visual();\n const value = store(prevStore.concat(key));\n const {\n escape = noop,\n moveNext = noop,\n movePrevious = noop,\n remove = noop,\n copy = noop,\n paste = noop,\n select = noop,\n find = noop,\n findNext = noop,\n findPrevious = noop,\n makeFile = noop,\n makeDirectory = noop,\n terminal = noop,\n edit = noop\n } = operations;\n if (key === 'Enter') return end();\n if (key === 'Escape') {\n visual(false);\n escape();\n return end();\n }\n if (key === 'j' || key === 'w') {\n const {\n count,\n isDelete,\n isVisual\n } = handleDelete(prevStore);\n !isNaN(count) && moveNext({\n count,\n isVisual,\n isDelete\n });\n return end();\n }\n if (key === 'k' || key === 'b') {\n const {\n count,\n isDelete,\n isVisual\n } = handleDelete(prevStore);\n !isNaN(count) && movePrevious({\n count,\n isVisual,\n isDelete\n });\n return end();\n }\n if (value === 'gg' || key === '^') {\n const {\n isDelete,\n isVisual\n } = handleDelete(prevStore);\n movePrevious({\n count: Infinity,\n isVisual,\n isDelete\n });\n return end();\n }\n if (value === 'md') {\n makeDirectory();\n return end();\n }\n if (value === 'tt') {\n terminal();\n return end();\n }\n if (value === 'e') {\n edit();\n return end();\n }\n if (value === 'mf') {\n makeFile();\n return end();\n }\n if (key === 'd' && (visual() || prevStore === 'd')) {\n stopVisual();\n remove();\n return end();\n }\n if (key === 'G' || key === '$') {\n moveNext({\n count: Infinity,\n isVisual\n });\n return end();\n }\n if (key === 'y') {\n if (!visual()) return end();\n stopVisual();\n copy();\n return end();\n }\n if (/^p$/i.test(key)) {\n paste();\n return end();\n }\n if (/^v$/i.test(key)) {\n visual(!visual());\n select();\n return end();\n }\n if (key === '/') {\n find();\n return end();\n }\n if (key === 'n') {\n findNext();\n return end();\n }\n if (key === 'N') {\n findPrevious();\n return end();\n }\n if (key === ' ') return end();\n});\nfunction handleDelete(prevStore) {\n const isDelete = prevStore[0] === 'd';\n if (isDelete) {\n visual(true);\n prevStore = rmFirst(prevStore);\n }\n const count = getNumber(prevStore);\n const isVisual = visual();\n return {\n count,\n isDelete,\n isVisual\n };\n}\nfunction getNumber(value) {\n if (!value) return 1;\n if (value === 'g') return 1;\n return parseInt(value);\n}\n\n//# sourceURL=file://cloudcmd//Users/coderaiser/cloudcmd/client/key/vim/vim.js\n}");
|
|
1484
|
+
eval("{__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (__WEBPACK_DEFAULT_EXPORT__)\n/* harmony export */ });\n/* harmony import */ var fullstore__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! fullstore */ \"./node_modules/fullstore/lib/fullstore.js\");\n\nconst store = (0,fullstore__WEBPACK_IMPORTED_MODULE_0__.fullstore)('');\nconst visual = (0,fullstore__WEBPACK_IMPORTED_MODULE_0__.fullstore)(false);\nconst stopVisual = () => {\n visual(false);\n};\nconst end = () => {\n store('');\n};\nconst rmFirst = a => {\n return a.split('').slice(1).join('');\n};\nconst noop = () => {};\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ((key, operations = {}) => {\n const prevStore = store();\n const isVisual = visual();\n const value = store(prevStore.concat(key));\n const {\n escape = noop,\n moveNext = noop,\n movePrevious = noop,\n remove = noop,\n copy = noop,\n paste = noop,\n select = noop,\n find = noop,\n findNext = noop,\n findPrevious = noop,\n makeFile = noop,\n makeDirectory = noop,\n terminal = noop,\n edit = noop\n } = operations;\n if (key === 'Enter') return end();\n if (key === 'Escape') {\n visual(false);\n escape();\n return end();\n }\n if (key === 'j' || key === 'w') {\n const {\n count,\n isDelete,\n isVisual\n } = handleDelete(prevStore);\n !isNaN(count) && moveNext({\n count,\n isVisual,\n isDelete\n });\n return end();\n }\n if (key === 'k' || key === 'b') {\n const {\n count,\n isDelete,\n isVisual\n } = handleDelete(prevStore);\n !isNaN(count) && movePrevious({\n count,\n isVisual,\n isDelete\n });\n return end();\n }\n if (value === 'gg' || key === '^') {\n const {\n isDelete,\n isVisual\n } = handleDelete(prevStore);\n movePrevious({\n count: Infinity,\n isVisual,\n isDelete\n });\n return end();\n }\n if (value === 'md') {\n makeDirectory();\n return end();\n }\n if (value === 'tt') {\n terminal();\n return end();\n }\n if (value === 'e') {\n edit();\n return end();\n }\n if (value === 'mf') {\n makeFile();\n return end();\n }\n if (key === 'd' && (visual() || prevStore === 'd')) {\n stopVisual();\n remove();\n return end();\n }\n if (key === 'G' || key === '$') {\n moveNext({\n count: Infinity,\n isVisual\n });\n return end();\n }\n if (key === 'y') {\n if (!visual()) return end();\n stopVisual();\n copy();\n return end();\n }\n if (/^p$/i.test(key)) {\n paste();\n return end();\n }\n if (/^v$/i.test(key)) {\n visual(!visual());\n select();\n return end();\n }\n if (key === '/') {\n find();\n return end();\n }\n if (key === 'n') {\n findNext();\n return end();\n }\n if (key === 'N') {\n findPrevious();\n return end();\n }\n if (key === ' ') return end();\n});\n(Object.getOwnPropertyDescriptor(__WEBPACK_DEFAULT_EXPORT__, \"name\") || {}).writable || Object.defineProperty(__WEBPACK_DEFAULT_EXPORT__, \"name\", { value: \"default\", configurable: true });\nfunction handleDelete(prevStore) {\n const isDelete = prevStore[0] === 'd';\n if (isDelete) {\n visual(true);\n prevStore = rmFirst(prevStore);\n }\n const count = getNumber(prevStore);\n const isVisual = visual();\n return {\n count,\n isDelete,\n isVisual\n };\n}\nfunction getNumber(value) {\n if (!value) return 1;\n if (value === 'g') return 1;\n return parseInt(value);\n}\n\n//# sourceURL=file://cloudcmd//Users/coderaiser/cloudcmd/client/key/vim/vim.js\n}");
|
|
1474
1485
|
|
|
1475
1486
|
/***/ },
|
|
1476
1487
|
|
|
@@ -1624,7 +1635,7 @@ eval("{__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpa
|
|
|
1624
1635
|
(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
1625
1636
|
|
|
1626
1637
|
"use strict";
|
|
1627
|
-
eval("{__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ getEditor: () => (/* binding */ getEditor),\n/* harmony export */ getElement: () => (/* binding */ getElement),\n/* harmony export */ hide: () => (/* binding */ hide),\n/* harmony export */ init: () => (/* binding */ init),\n/* harmony export */ show: () => (/* binding */ show)\n/* harmony export */ });\n/* harmony import */ var montag__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! montag */ \"./node_modules/montag/lib/montag.js\");\n/* harmony import */ var es6_promisify__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! es6-promisify */ \"./node_modules/es6-promisify/dist/promisify.mjs\");\n/* harmony import */ var try_to_catch__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! try-to-catch */ \"./node_modules/try-to-catch/lib/try-to-catch.js\");\n/* harmony import */ var _cloudcmd_create_element__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @cloudcmd/create-element */ \"./node_modules/@cloudcmd/create-element/lib/create-element.js\");\n/* harmony import */ var load_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! load.js */ \"./node_modules/load.js/lib/load.js\");\n/* harmony import */ var _common_cloudfunc__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! #common/cloudfunc */ \"./common/cloudfunc.js\");\n/* harmony import */ var _common_util__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! #common/util */ \"./common/util.js\");\n/* global CloudCmd */\n\n\n\n\n\n\n\nfunction getEditor() {\n return editor;\n}\nconst isFn = a => typeof a === 'function';\nconst loadJS = load_js__WEBPACK_IMPORTED_MODULE_4__.js;\nconst Name = 'Edit';\nCloudCmd[Name] = {\n init,\n show,\n hide,\n getEditor,\n getElement\n};\nconst EditorName = CloudCmd.config('editor');\nlet Loading = true;\nlet Element;\nlet editor;\nconst ConfigView = {\n afterShow: () => {\n editor.moveCursorTo(0, 0).focus();\n }\n};\nasync function init() {\n const element = create();\n await CloudCmd.View();\n await loadFiles(element);\n}\nfunction create() {\n const element = _cloudcmd_create_element__WEBPACK_IMPORTED_MODULE_3__('div', {\n style: montag__WEBPACK_IMPORTED_MODULE_0__`\n width: 100%;\n height: 100%;\n font-family: \"Droid Sans Mono\";\n `,\n notAppend: true\n });\n Element = element;\n return element;\n}\nfunction checkFn(name, fn) {\n if (!isFn(fn)) throw Error(`${name} should be a function!`);\n}\nfunction initConfig(options = {}) {\n const config = {\n ...options,\n ...ConfigView\n };\n if (!options.afterShow) return config;\n checkFn('options.afterShow', options.afterShow);\n config.afterShow = () => {\n ConfigView.afterShow();\n options.afterShow();\n };\n return config;\n}\nfunction show(options) {\n if (Loading) return;\n CloudCmd.View.show(Element, initConfig(options));\n getEditor().setOptions({\n fontSize: 16\n });\n}\nfunction getElement() {\n return Element;\n}\nfunction hide() {\n CloudCmd.View.hide();\n}\nconst loadFiles = async element => {\n const prefix = `${CloudCmd.prefix}/${EditorName}`;\n const socketPath = CloudCmd.prefix;\n const prefixSocket = `${CloudCmd.prefixSocket}/${EditorName}`;\n const url = `${prefix}/${EditorName}.js`;\n (0,_common_util__WEBPACK_IMPORTED_MODULE_6__.time)(`${Name} load`);\n await loadJS(url);\n const word = (0,es6_promisify__WEBPACK_IMPORTED_MODULE_1__.promisify)(window[EditorName]);\n const [ed] = await (0,try_to_catch__WEBPACK_IMPORTED_MODULE_2__.tryToCatch)(word, element, {\n maxSize: _common_cloudfunc__WEBPACK_IMPORTED_MODULE_5__.MAX_FILE_SIZE,\n prefix,\n prefixSocket,\n socketPath\n });\n (0,_common_util__WEBPACK_IMPORTED_MODULE_6__.timeEnd)(`${Name} load`);\n editor = ed;\n Loading = false;\n};\n\n//# sourceURL=file://cloudcmd//Users/coderaiser/cloudcmd/client/modules/edit.js\n}");
|
|
1638
|
+
eval("{__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ getEditor: () => (/* binding */ getEditor),\n/* harmony export */ getElement: () => (/* binding */ getElement),\n/* harmony export */ hide: () => (/* binding */ hide),\n/* harmony export */ init: () => (/* binding */ init),\n/* harmony export */ show: () => (/* binding */ show)\n/* harmony export */ });\n/* harmony import */ var montag__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! montag */ \"./node_modules/montag/lib/montag.js\");\n/* harmony import */ var es6_promisify__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! es6-promisify */ \"./node_modules/es6-promisify/dist/promisify.mjs\");\n/* harmony import */ var try_to_catch__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! try-to-catch */ \"./node_modules/try-to-catch/lib/try-to-catch.js\");\n/* harmony import */ var _cloudcmd_create_element__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @cloudcmd/create-element */ \"./node_modules/@cloudcmd/create-element/lib/create-element.js\");\n/* harmony import */ var load_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! load.js */ \"./node_modules/load.js/lib/load.js\");\n/* harmony import */ var _common_cloudfunc__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! #common/cloudfunc */ \"./common/cloudfunc.js\");\n/* harmony import */ var _common_util__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! #common/util */ \"./common/util.js\");\n/* global CloudCmd */\n\n\n\n\n\n\n\nfunction getEditor() {\n return editor;\n}\nconst isFn = a => typeof a === 'function';\nconst loadJS = load_js__WEBPACK_IMPORTED_MODULE_4__.js;\nconst Name = 'Edit';\nCloudCmd[Name] = {\n init,\n show,\n hide,\n getEditor,\n getElement\n};\nconst EditorName = CloudCmd.config('editor');\nlet Loading = true;\nlet Element;\nlet editor;\nconst ConfigView = {\n afterShow: () => {\n editor.moveCursorTo(0, 0).focus();\n }\n};\nasync function init() {\n const element = create();\n await CloudCmd.View();\n await loadFiles(element);\n}\nfunction create() {\n const element = _cloudcmd_create_element__WEBPACK_IMPORTED_MODULE_3__('div', {\n style: (0,montag__WEBPACK_IMPORTED_MODULE_0__.montag)`\n width: 100%;\n height: 100%;\n font-family: \"Droid Sans Mono\";\n `,\n notAppend: true\n });\n Element = element;\n return element;\n}\nfunction checkFn(name, fn) {\n if (!isFn(fn)) throw Error(`${name} should be a function!`);\n}\nfunction initConfig(options = {}) {\n const config = {\n ...options,\n ...ConfigView\n };\n if (!options.afterShow) return config;\n checkFn('options.afterShow', options.afterShow);\n config.afterShow = () => {\n ConfigView.afterShow();\n options.afterShow();\n };\n return config;\n}\nfunction show(options) {\n if (Loading) return;\n CloudCmd.View.show(Element, initConfig(options));\n getEditor().setOptions({\n fontSize: 16\n });\n}\nfunction getElement() {\n return Element;\n}\nfunction hide() {\n CloudCmd.View.hide();\n}\nconst loadFiles = async element => {\n const prefix = `${CloudCmd.prefix}/${EditorName}`;\n const socketPath = CloudCmd.prefix;\n const prefixSocket = `${CloudCmd.prefixSocket}/${EditorName}`;\n const url = `${prefix}/${EditorName}.js`;\n (0,_common_util__WEBPACK_IMPORTED_MODULE_6__.time)(`${Name} load`);\n await loadJS(url);\n const word = (0,es6_promisify__WEBPACK_IMPORTED_MODULE_1__.promisify)(window[EditorName]);\n const [ed] = await (0,try_to_catch__WEBPACK_IMPORTED_MODULE_2__.tryToCatch)(word, element, {\n maxSize: _common_cloudfunc__WEBPACK_IMPORTED_MODULE_5__.MAX_FILE_SIZE,\n prefix,\n prefixSocket,\n socketPath\n });\n (0,_common_util__WEBPACK_IMPORTED_MODULE_6__.timeEnd)(`${Name} load`);\n editor = ed;\n Loading = false;\n};\n\n//# sourceURL=file://cloudcmd//Users/coderaiser/cloudcmd/client/modules/edit.js\n}");
|
|
1628
1639
|
|
|
1629
1640
|
/***/ },
|
|
1630
1641
|
|
|
@@ -1921,7 +1932,7 @@ eval("{__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpa
|
|
|
1921
1932
|
(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
1922
1933
|
|
|
1923
1934
|
"use strict";
|
|
1924
|
-
eval("{__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (__WEBPACK_DEFAULT_EXPORT__)\n/* harmony export */ });\n/* harmony import */ var try_to_catch__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! try-to-catch */ \"./node_modules/try-to-catch/lib/try-to-catch.js\");\n\nconst all = Promise.all.bind(Promise);\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (async a => {\n const [e, result = []] = await (0,try_to_catch__WEBPACK_IMPORTED_MODULE_0__.tryToCatch)(all, a);\n return [e, ...result];\n});\n\n//# sourceURL=file://cloudcmd//Users/coderaiser/cloudcmd/common/try-to-promise-all.js\n}");
|
|
1935
|
+
eval("{__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (__WEBPACK_DEFAULT_EXPORT__)\n/* harmony export */ });\n/* harmony import */ var try_to_catch__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! try-to-catch */ \"./node_modules/try-to-catch/lib/try-to-catch.js\");\n\nconst all = Promise.all.bind(Promise);\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (async a => {\n const [e, result = []] = await (0,try_to_catch__WEBPACK_IMPORTED_MODULE_0__.tryToCatch)(all, a);\n return [e, ...result];\n});\n(Object.getOwnPropertyDescriptor(__WEBPACK_DEFAULT_EXPORT__, \"name\") || {}).writable || Object.defineProperty(__WEBPACK_DEFAULT_EXPORT__, \"name\", { value: \"default\", configurable: true });\n\n//# sourceURL=file://cloudcmd//Users/coderaiser/cloudcmd/common/try-to-promise-all.js\n}");
|
|
1925
1936
|
|
|
1926
1937
|
/***/ },
|
|
1927
1938
|
|
|
@@ -1991,6 +2002,17 @@ eval("{__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpa
|
|
|
1991
2002
|
|
|
1992
2003
|
/***/ },
|
|
1993
2004
|
|
|
2005
|
+
/***/ "./node_modules/montag/lib/montag.js"
|
|
2006
|
+
/*!*******************************************!*\
|
|
2007
|
+
!*** ./node_modules/montag/lib/montag.js ***!
|
|
2008
|
+
\*******************************************/
|
|
2009
|
+
(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
2010
|
+
|
|
2011
|
+
"use strict";
|
|
2012
|
+
eval("{__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ montag: () => (/* binding */ montag)\n/* harmony export */ });\nconst START = 1;\nconst END = -1;\n\nconst montag = (strs, ...args) => {\n const str = build(strs, args);\n const lines = str\n .split('\\n')\n .slice(START, END);\n \n if (!lines.length)\n return '';\n \n const [first] = lines;\n \n const count = getSpaceCount(first);\n \n const result = [];\n \n for (const line of lines) {\n const currentCount = getSpaceCount(line);\n \n if (currentCount < count) {\n result.push(line.slice(currentCount));\n continue;\n }\n \n result.push(line.slice(count));\n }\n \n return result.join('\\n');\n};\n\nfunction getSpaceCount(a) {\n let i = 0;\n const {length} = a;\n \n while (i < length && a[i] === ' ') {\n ++i;\n }\n \n return i;\n}\n\nfunction build(strs, args) {\n const result = [];\n const n = strs.length + args.length;\n \n let j = 0;\n \n for (let i = 0; i < n; i++) {\n const current = i % 2 ? args.shift() : strs[j++];\n result.push(current);\n }\n \n return result.join('');\n}\n\n\n//# sourceURL=file://cloudcmd//Users/coderaiser/cloudcmd/node_modules/montag/lib/montag.js\n}");
|
|
2013
|
+
|
|
2014
|
+
/***/ },
|
|
2015
|
+
|
|
1994
2016
|
/***/ "./node_modules/multi-rename/lib/multi-rename.js"
|
|
1995
2017
|
/*!*******************************************************!*\
|
|
1996
2018
|
!*** ./node_modules/multi-rename/lib/multi-rename.js ***!
|
package/dist-dev/cloudcmd.js
CHANGED
|
@@ -8,29 +8,7 @@
|
|
|
8
8
|
*/
|
|
9
9
|
/******/ (() => { // webpackBootstrap
|
|
10
10
|
/******/ "use strict";
|
|
11
|
-
/******/ var __webpack_modules__ = ({
|
|
12
|
-
|
|
13
|
-
/***/ "https://esm.sh/@putout/bundle"
|
|
14
|
-
/*!************************************************!*\
|
|
15
|
-
!*** external "https://esm.sh/@putout/bundle" ***!
|
|
16
|
-
\************************************************/
|
|
17
|
-
(module) {
|
|
18
|
-
|
|
19
|
-
module.exports = import("https://esm.sh/@putout/bundle");;
|
|
20
|
-
|
|
21
|
-
/***/ },
|
|
22
|
-
|
|
23
|
-
/***/ "https://esm.sh/@putout/processor-html"
|
|
24
|
-
/*!********************************************************!*\
|
|
25
|
-
!*** external "https://esm.sh/@putout/processor-html" ***!
|
|
26
|
-
\********************************************************/
|
|
27
|
-
(module) {
|
|
28
|
-
|
|
29
|
-
module.exports = import("https://esm.sh/@putout/processor-html");;
|
|
30
|
-
|
|
31
|
-
/***/ }
|
|
32
|
-
|
|
33
|
-
/******/ });
|
|
11
|
+
/******/ var __webpack_modules__ = ({});
|
|
34
12
|
/************************************************************************/
|
|
35
13
|
/******/ // The module cache
|
|
36
14
|
/******/ var __webpack_module_cache__ = {};
|
package/dist-dev/sw.js
CHANGED
|
@@ -37,7 +37,7 @@ eval("{// shim for using process in browser\nvar process = module.exports = {};\
|
|
|
37
37
|
(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
38
38
|
|
|
39
39
|
"use strict";
|
|
40
|
-
eval("{__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var node_process__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! node:process */ \"./node_modules/process/browser.js\");\n/* harmony import */ var try_to_catch__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! try-to-catch */ \"./node_modules/try-to-catch/lib/try-to-catch.js\");\n/* harmony import */ var currify__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! currify */ \"./node_modules/currify/lib/currify.js\");\n\n\n\nconst isDev = \"development\" === 'development';\nconst isGet = a => a.method === 'GET';\nconst isBasic = a => a.type === 'basic';\nconst wait = currify__WEBPACK_IMPORTED_MODULE_2__((f, e) => e.waitUntil(f()));\nconst respondWith = currify__WEBPACK_IMPORTED_MODULE_2__((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 = \"
|
|
40
|
+
eval("{__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var node_process__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! node:process */ \"./node_modules/process/browser.js\");\n/* harmony import */ var try_to_catch__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! try-to-catch */ \"./node_modules/try-to-catch/lib/try-to-catch.js\");\n/* harmony import */ var currify__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! currify */ \"./node_modules/currify/lib/currify.js\");\n\n\n\nconst isDev = \"development\" === 'development';\nconst isGet = a => a.method === 'GET';\nconst isBasic = a => a.type === 'basic';\nconst wait = currify__WEBPACK_IMPORTED_MODULE_2__((f, e) => e.waitUntil(f()));\nconst respondWith = currify__WEBPACK_IMPORTED_MODULE_2__((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 = \"Tue Apr 21 2026 23:31:15 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};\nglobalThis.addEventListener('install', wait(onInstall));\nglobalThis.addEventListener('fetch', respondWith(onFetch));\nglobalThis.addEventListener('activate', wait(onActivate));\nasync function onActivate() {\n console.info(`cloudcmd: sw: activate: ${NAME}`);\n await globalThis.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 globalThis.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 (0,try_to_catch__WEBPACK_IMPORTED_MODULE_1__.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//Users/coderaiser/cloudcmd/client/sw/sw.js\n}");
|
|
41
41
|
|
|
42
42
|
/***/ },
|
|
43
43
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "cloudcmd",
|
|
3
|
-
"version": "19.
|
|
3
|
+
"version": "19.13.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",
|
|
@@ -119,7 +119,7 @@
|
|
|
119
119
|
"markdown-it": "^14.0.0",
|
|
120
120
|
"mellow": "^3.0.0",
|
|
121
121
|
"mime-types": "^3.0.1",
|
|
122
|
-
"montag": "^
|
|
122
|
+
"montag": "^2.0.1",
|
|
123
123
|
"nano-memoize": "^3.0.16",
|
|
124
124
|
"nomine": "^4.0.0",
|
|
125
125
|
"once": "^1.4.0",
|
package/server/user-menu.js
CHANGED
|
@@ -2,7 +2,7 @@ import {homedir} from 'node:os';
|
|
|
2
2
|
import {readFile as _readFile} from 'node:fs/promises';
|
|
3
3
|
import {join} from 'node:path';
|
|
4
4
|
// warm up worker cache
|
|
5
|
-
import montag from 'montag';
|
|
5
|
+
import {montag} from 'montag';
|
|
6
6
|
import {tryToCatch} from 'try-to-catch';
|
|
7
7
|
import currify from 'currify';
|
|
8
8
|
import {putout, codeframe} from 'putout';
|