From b5ac7b4a484bc545ec311b2465ad25fa251a873f Mon Sep 17 00:00:00 2001 From: kscript <1258@live.cn> Date: Thu, 4 Apr 2024 23:00:36 +0000 Subject: [PATCH] =?UTF-8?q?Deploying=20to=20gh-pages=20from=20@=20kscript/?= =?UTF-8?q?command-manager@d3877955baa200c22467fdd7d12dabbd3bf31089=20?= =?UTF-8?q?=F0=9F=9A=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 404.html | 2 +- css/managerAdd.bd56fc11.css | 1 + css/managerAdd.ff2bb101.css | 1 - css/managerList.0e68b8cd.css | 1 + css/managerList.caeb00b2.css | 1 - index.html | 2 +- js/app.29c9c5ff.js | 2 ++ js/{app.c59f2488.js.map => app.29c9c5ff.js.map} | 2 +- js/app.c59f2488.js | 2 -- js/managerAdd.c71d8b66.js | 2 -- js/managerAdd.c71d8b66.js.map | 1 - js/managerAdd.df306cab.js | 2 ++ js/managerAdd.df306cab.js.map | 1 + js/managerList.00b969cc.js | 2 ++ js/managerList.00b969cc.js.map | 1 + js/managerList.dee6e447.js | 2 -- js/managerList.dee6e447.js.map | 1 - js/managerManifest.36caeb39.js | 2 -- js/managerManifest.36caeb39.js.map | 1 - js/managerManifest.4c4791d6.js | 2 ++ js/managerManifest.4c4791d6.js.map | 1 + 21 files changed, 16 insertions(+), 16 deletions(-) create mode 100644 css/managerAdd.bd56fc11.css delete mode 100644 css/managerAdd.ff2bb101.css create mode 100644 css/managerList.0e68b8cd.css delete mode 100644 css/managerList.caeb00b2.css create mode 100644 js/app.29c9c5ff.js rename js/{app.c59f2488.js.map => app.29c9c5ff.js.map} (98%) delete mode 100644 js/app.c59f2488.js delete mode 100644 js/managerAdd.c71d8b66.js delete mode 100644 js/managerAdd.c71d8b66.js.map create mode 100644 js/managerAdd.df306cab.js create mode 100644 js/managerAdd.df306cab.js.map create mode 100644 js/managerList.00b969cc.js create mode 100644 js/managerList.00b969cc.js.map delete mode 100644 js/managerList.dee6e447.js delete mode 100644 js/managerList.dee6e447.js.map delete mode 100644 js/managerManifest.36caeb39.js delete mode 100644 js/managerManifest.36caeb39.js.map create mode 100644 js/managerManifest.4c4791d6.js create mode 100644 js/managerManifest.4c4791d6.js.map diff --git a/404.html b/404.html index edc9a5d..4e77e22 100644 --- a/404.html +++ b/404.html @@ -1 +1 @@ -command-manager
\ No newline at end of file +command-manager
\ No newline at end of file diff --git a/css/managerAdd.bd56fc11.css b/css/managerAdd.bd56fc11.css new file mode 100644 index 0000000..50d9984 --- /dev/null +++ b/css/managerAdd.bd56fc11.css @@ -0,0 +1 @@ +.el-form-item .el-select[data-v-80163f64],.el-form-item[data-v-80163f64] .el-input{width:100%} \ No newline at end of file diff --git a/css/managerAdd.ff2bb101.css b/css/managerAdd.ff2bb101.css deleted file mode 100644 index 8b0beee..0000000 --- a/css/managerAdd.ff2bb101.css +++ /dev/null @@ -1 +0,0 @@ -.el-form-item .el-select[data-v-df8cd03a],.el-form-item[data-v-df8cd03a] .el-input{width:100%} \ No newline at end of file diff --git a/css/managerList.0e68b8cd.css b/css/managerList.0e68b8cd.css new file mode 100644 index 0000000..4ce720e --- /dev/null +++ b/css/managerList.0e68b8cd.css @@ -0,0 +1 @@ +.el-space[data-v-18731c24]{margin-top:20px} \ No newline at end of file diff --git a/css/managerList.caeb00b2.css b/css/managerList.caeb00b2.css deleted file mode 100644 index 529350e..0000000 --- a/css/managerList.caeb00b2.css +++ /dev/null @@ -1 +0,0 @@ -.el-space[data-v-b365ad68]{margin-top:20px} \ No newline at end of file diff --git a/index.html b/index.html index edc9a5d..4e77e22 100644 --- a/index.html +++ b/index.html @@ -1 +1 @@ -command-manager
\ No newline at end of file +command-manager
\ No newline at end of file diff --git a/js/app.29c9c5ff.js b/js/app.29c9c5ff.js new file mode 100644 index 0000000..0a060b4 --- /dev/null +++ b/js/app.29c9c5ff.js @@ -0,0 +1,2 @@ +(function(){"use strict";var e={4325:function(e,n,t){var r=t(9242),o=t(3396);function a(e,n){const t=(0,o.up)("router-view");return(0,o.wg)(),(0,o.j4)(t)}var i=t(89);const u={},c=(0,i.Z)(u,[["render",a]]);var f=c,s=t(2436),d=t(65),m=(0,d.MT)({state:{},getters:{},mutations:{},actions:{},modules:{}}),l=t(9429),p=t(814),g=(t(4415),t(2748));const h=(e,n)=>{let t;return function(){const r=self;t&&clearTimeout(t),t=setTimeout((()=>{e.apply(r,arguments)}),n)}};var v=e=>{const n=window.ResizeObserver;window.ResizeObserver=class extends n{constructor(e){e=h(e,20),super(e)}},e.use(l.Z,{locale:p.Z});for(const[t,r]of Object.entries(g))e.component(t,r)};const b=(0,r.ri)(f).use(m).use(s.Z);v(b),b.mount("#app")},2436:function(e,n,t){t.d(n,{Z:function(){return l}});var r=t(2483),o=t(3396);const a={class:"home"};function i(e,n,t,r,i,u){return(0,o.wg)(),(0,o.iD)("div",a)}var u={name:"HomeView",components:{}},c=t(89);const f=(0,c.Z)(u,[["render",i]]);var s=f;const d=[{path:"/",name:"home",component:s,redirect:"/manager/manifest"},{path:"/manager",name:"manager",redirect:"/manager/manifest",component:()=>t.e(873).then(t.bind(t,4047)),children:[{path:"/manager/add",name:"managerAdd",component:()=>t.e(158).then(t.bind(t,6710))},{path:"/manager/edit",name:"managerEdit",component:()=>t.e(158).then(t.bind(t,6710))},{path:"/manager/copy",name:"managerCopy",component:()=>t.e(158).then(t.bind(t,6710))},{path:"/manager/list",name:"managerList",component:()=>t.e(453).then(t.bind(t,897))},{path:"/manager/manifest",name:"managerManifest",component:()=>t.e(395).then(t.bind(t,4211))}]}],m=(0,r.p7)({history:(0,r.PO)("/command-manager/"),routes:d});var l=m}},n={};function t(r){var o=n[r];if(void 0!==o)return o.exports;var a=n[r]={exports:{}};return e[r].call(a.exports,a,a.exports,t),a.exports}t.m=e,function(){var e=[];t.O=function(n,r,o,a){if(!r){var i=1/0;for(s=0;s=a)&&Object.keys(t.O).every((function(e){return t.O[e](r[c])}))?r.splice(c--,1):(u=!1,a0&&e[s-1][2]>a;s--)e[s]=e[s-1];e[s]=[r,o,a]}}(),function(){t.n=function(e){var n=e&&e.__esModule?function(){return e["default"]}:function(){return e};return t.d(n,{a:n}),n}}(),function(){t.d=function(e,n){for(var r in n)t.o(n,r)&&!t.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:n[r]})}}(),function(){t.f={},t.e=function(e){return Promise.all(Object.keys(t.f).reduce((function(n,r){return t.f[r](e,n),n}),[]))}}(),function(){t.u=function(e){return"js/"+{158:"managerAdd",395:"managerManifest",453:"managerList",873:"manager"}[e]+"."+{158:"df306cab",395:"4c4791d6",453:"00b969cc",873:"58e04bc2"}[e]+".js"}}(),function(){t.miniCssF=function(e){return"css/"+{158:"managerAdd",395:"managerManifest",453:"managerList",873:"manager"}[e]+"."+{158:"bd56fc11",395:"0c5e8f23",453:"0e68b8cd",873:"092217f5"}[e]+".css"}}(),function(){t.g=function(){if("object"===typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"===typeof window)return window}}()}(),function(){t.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)}}(),function(){var e={},n="command-manager:";t.l=function(r,o,a,i){if(e[r])e[r].push(o);else{var u,c;if(void 0!==a)for(var f=document.getElementsByTagName("script"),s=0;s\r\n \r\n\r\n\r\n\r\n","import { render } from \"./App.vue?vue&type=template&id=a2b6fcb8\"\nconst script = {}\n\nimport \"./App.vue?vue&type=style&index=0&id=a2b6fcb8&lang=scss\"\n\nimport exportComponent from \"../node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","import { createStore } from 'vuex'\r\n\r\nexport default createStore({\r\n state: {\r\n },\r\n getters: {\r\n },\r\n mutations: {\r\n },\r\n actions: {\r\n },\r\n modules: {\r\n }\r\n})\r\n","import ElementPlus from 'element-plus'\r\nimport zhCn from 'element-plus/dist/locale/zh-cn.mjs'\r\nimport 'element-plus/dist/index.css'\r\nimport '@/assets/scss/base.scss'\r\nimport * as ElementPlusIconsVue from '@element-plus/icons-vue'\r\n\r\nconst debounce = (callback, delay) => {\r\n let tid\r\n return function () {\r\n const ctx = self\r\n tid && clearTimeout(tid)\r\n tid = setTimeout(() => {\r\n callback.apply(ctx, arguments)\r\n }, delay)\r\n }\r\n}\r\n\r\nexport default (app) => {\r\n const _ = window.ResizeObserver\r\n window.ResizeObserver = class ResizeObserver extends _ {\r\n constructor (callback) {\r\n callback = debounce(callback, 20)\r\n super(callback)\r\n }\r\n }\r\n app.use(ElementPlus, {\r\n locale: zhCn\r\n })\r\n for (const [key, component] of Object.entries(ElementPlusIconsVue)) {\r\n app.component(key, component)\r\n }\r\n}\r\n","import { createApp } from 'vue'\r\nimport App from './App.vue'\r\nimport router from './router'\r\nimport store from './store'\r\nimport useElementPlus from './element-plus'\r\n\r\nconst app = createApp(App).use(store).use(router)\r\nuseElementPlus(app)\r\napp.mount('#app')\r\n","\r\n\r\n\r\n","import { render } from \"./HomeView.vue?vue&type=template&id=80c8d462\"\nimport script from \"./HomeView.vue?vue&type=script&lang=js\"\nexport * from \"./HomeView.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"../../node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","import { createRouter, createWebHistory } from 'vue-router'\r\nimport HomeView from '../views/HomeView.vue'\r\n\r\nconst routes = [\r\n {\r\n path: '/',\r\n name: 'home',\r\n component: HomeView,\r\n redirect: '/manager/manifest'\r\n },\r\n {\r\n path: '/manager',\r\n name: 'manager',\r\n redirect: '/manager/manifest',\r\n component: () => import(/* webpackChunkName: \"manager\" */ '../views/manager/index.vue'),\r\n children: [\r\n {\r\n path: '/manager/add',\r\n name: 'managerAdd',\r\n component: () => import(/* webpackChunkName: \"managerAdd\" */ '../views/manager/add.vue')\r\n },\r\n {\r\n path: '/manager/edit',\r\n name: 'managerEdit',\r\n component: () => import(/* webpackChunkName: \"managerEdit\" */ '../views/manager/add.vue')\r\n },\r\n {\r\n path: '/manager/copy',\r\n name: 'managerCopy',\r\n component: () => import(/* webpackChunkName: \"managerCopy\" */ '../views/manager/add.vue')\r\n },\r\n {\r\n path: '/manager/list',\r\n name: 'managerList',\r\n component: () => import(/* webpackChunkName: \"managerList\" */ '../views/manager/list.vue')\r\n },\r\n {\r\n path: '/manager/manifest',\r\n name: 'managerManifest',\r\n component: () => import(/* webpackChunkName: \"managerManifest\" */ '../views/manager/manifest.vue')\r\n }\r\n ]\r\n }\r\n]\r\n\r\nconst router = createRouter({\r\n history: createWebHistory(process.env.BASE_URL),\r\n routes\r\n})\r\n\r\nexport default router\r\n","// 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 = function(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 = deferred[i][0];\n\t\tvar fn = deferred[i][1];\n\t\tvar priority = deferred[i][2];\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(function(key) { return __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};","// getDefaultExport function for compatibility with non-harmony modules\n__webpack_require__.n = function(module) {\n\tvar getter = module && module.__esModule ?\n\t\tfunction() { return module['default']; } :\n\t\tfunction() { return module; };\n\t__webpack_require__.d(getter, { a: getter });\n\treturn getter;\n};","// define getter functions for harmony exports\n__webpack_require__.d = function(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};","__webpack_require__.f = {};\n// This file contains only the entry chunk.\n// The chunk loading function for additional chunks\n__webpack_require__.e = function(chunkId) {\n\treturn Promise.all(Object.keys(__webpack_require__.f).reduce(function(promises, key) {\n\t\t__webpack_require__.f[key](chunkId, promises);\n\t\treturn promises;\n\t}, []));\n};","// This function allow to reference async chunks\n__webpack_require__.u = function(chunkId) {\n\t// return url for filenames based on template\n\treturn \"js/\" + {\"158\":\"managerAdd\",\"395\":\"managerManifest\",\"453\":\"managerList\",\"873\":\"manager\"}[chunkId] + \".\" + {\"158\":\"c71d8b66\",\"395\":\"36caeb39\",\"453\":\"dee6e447\",\"873\":\"58e04bc2\"}[chunkId] + \".js\";\n};","// This function allow to reference async chunks\n__webpack_require__.miniCssF = function(chunkId) {\n\t// return url for filenames based on template\n\treturn \"css/\" + {\"158\":\"managerAdd\",\"395\":\"managerManifest\",\"453\":\"managerList\",\"873\":\"manager\"}[chunkId] + \".\" + {\"158\":\"ff2bb101\",\"395\":\"0c5e8f23\",\"453\":\"caeb00b2\",\"873\":\"092217f5\"}[chunkId] + \".css\";\n};","__webpack_require__.g = (function() {\n\tif (typeof globalThis === 'object') return globalThis;\n\ttry {\n\t\treturn this || new Function('return this')();\n\t} catch (e) {\n\t\tif (typeof window === 'object') return window;\n\t}\n})();","__webpack_require__.o = function(obj, prop) { return Object.prototype.hasOwnProperty.call(obj, prop); }","var inProgress = {};\nvar dataWebpackPrefix = \"command-manager:\";\n// loadScript function to load a script via script tag\n__webpack_require__.l = function(url, done, key, chunkId) {\n\tif(inProgress[url]) { inProgress[url].push(done); return; }\n\tvar script, needAttach;\n\tif(key !== undefined) {\n\t\tvar scripts = document.getElementsByTagName(\"script\");\n\t\tfor(var i = 0; i < scripts.length; i++) {\n\t\t\tvar s = scripts[i];\n\t\t\tif(s.getAttribute(\"src\") == url || s.getAttribute(\"data-webpack\") == dataWebpackPrefix + key) { script = s; break; }\n\t\t}\n\t}\n\tif(!script) {\n\t\tneedAttach = true;\n\t\tscript = document.createElement('script');\n\n\t\tscript.charset = 'utf-8';\n\t\tscript.timeout = 120;\n\t\tif (__webpack_require__.nc) {\n\t\t\tscript.setAttribute(\"nonce\", __webpack_require__.nc);\n\t\t}\n\t\tscript.setAttribute(\"data-webpack\", dataWebpackPrefix + key);\n\n\t\tscript.src = url;\n\t}\n\tinProgress[url] = [done];\n\tvar onScriptComplete = function(prev, event) {\n\t\t// avoid mem leaks in IE.\n\t\tscript.onerror = script.onload = null;\n\t\tclearTimeout(timeout);\n\t\tvar doneFns = inProgress[url];\n\t\tdelete inProgress[url];\n\t\tscript.parentNode && script.parentNode.removeChild(script);\n\t\tdoneFns && doneFns.forEach(function(fn) { return fn(event); });\n\t\tif(prev) return prev(event);\n\t}\n\tvar timeout = setTimeout(onScriptComplete.bind(null, undefined, { type: 'timeout', target: script }), 120000);\n\tscript.onerror = onScriptComplete.bind(null, script.onerror);\n\tscript.onload = onScriptComplete.bind(null, script.onload);\n\tneedAttach && document.head.appendChild(script);\n};","// define __esModule on exports\n__webpack_require__.r = function(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__.p = \"/command-manager/\";","if (typeof document === \"undefined\") return;\nvar createStylesheet = function(chunkId, fullhref, oldTag, resolve, reject) {\n\tvar linkTag = document.createElement(\"link\");\n\n\tlinkTag.rel = \"stylesheet\";\n\tlinkTag.type = \"text/css\";\n\tvar onLinkComplete = function(event) {\n\t\t// avoid mem leaks.\n\t\tlinkTag.onerror = linkTag.onload = null;\n\t\tif (event.type === 'load') {\n\t\t\tresolve();\n\t\t} else {\n\t\t\tvar errorType = event && (event.type === 'load' ? 'missing' : event.type);\n\t\t\tvar realHref = event && event.target && event.target.href || fullhref;\n\t\t\tvar err = new Error(\"Loading CSS chunk \" + chunkId + \" failed.\\n(\" + realHref + \")\");\n\t\t\terr.code = \"CSS_CHUNK_LOAD_FAILED\";\n\t\t\terr.type = errorType;\n\t\t\terr.request = realHref;\n\t\t\tif (linkTag.parentNode) linkTag.parentNode.removeChild(linkTag)\n\t\t\treject(err);\n\t\t}\n\t}\n\tlinkTag.onerror = linkTag.onload = onLinkComplete;\n\tlinkTag.href = fullhref;\n\n\tif (oldTag) {\n\t\toldTag.parentNode.insertBefore(linkTag, oldTag.nextSibling);\n\t} else {\n\t\tdocument.head.appendChild(linkTag);\n\t}\n\treturn linkTag;\n};\nvar findStylesheet = function(href, fullhref) {\n\tvar existingLinkTags = document.getElementsByTagName(\"link\");\n\tfor(var i = 0; i < existingLinkTags.length; i++) {\n\t\tvar tag = existingLinkTags[i];\n\t\tvar dataHref = tag.getAttribute(\"data-href\") || tag.getAttribute(\"href\");\n\t\tif(tag.rel === \"stylesheet\" && (dataHref === href || dataHref === fullhref)) return tag;\n\t}\n\tvar existingStyleTags = document.getElementsByTagName(\"style\");\n\tfor(var i = 0; i < existingStyleTags.length; i++) {\n\t\tvar tag = existingStyleTags[i];\n\t\tvar dataHref = tag.getAttribute(\"data-href\");\n\t\tif(dataHref === href || dataHref === fullhref) return tag;\n\t}\n};\nvar loadStylesheet = function(chunkId) {\n\treturn new Promise(function(resolve, reject) {\n\t\tvar href = __webpack_require__.miniCssF(chunkId);\n\t\tvar fullhref = __webpack_require__.p + href;\n\t\tif(findStylesheet(href, fullhref)) return resolve();\n\t\tcreateStylesheet(chunkId, fullhref, null, resolve, reject);\n\t});\n}\n// object to store loaded CSS chunks\nvar installedCssChunks = {\n\t143: 0\n};\n\n__webpack_require__.f.miniCss = function(chunkId, promises) {\n\tvar cssChunks = {\"158\":1,\"395\":1,\"453\":1,\"873\":1};\n\tif(installedCssChunks[chunkId]) promises.push(installedCssChunks[chunkId]);\n\telse if(installedCssChunks[chunkId] !== 0 && cssChunks[chunkId]) {\n\t\tpromises.push(installedCssChunks[chunkId] = loadStylesheet(chunkId).then(function() {\n\t\t\tinstalledCssChunks[chunkId] = 0;\n\t\t}, function(e) {\n\t\t\tdelete installedCssChunks[chunkId];\n\t\t\tthrow e;\n\t\t}));\n\t}\n};\n\n// no hmr","// 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\t143: 0\n};\n\n__webpack_require__.f.j = function(chunkId, promises) {\n\t\t// JSONP chunk loading for javascript\n\t\tvar installedChunkData = __webpack_require__.o(installedChunks, chunkId) ? installedChunks[chunkId] : undefined;\n\t\tif(installedChunkData !== 0) { // 0 means \"already installed\".\n\n\t\t\t// a Promise means \"currently loading\".\n\t\t\tif(installedChunkData) {\n\t\t\t\tpromises.push(installedChunkData[2]);\n\t\t\t} else {\n\t\t\t\tif(true) { // all chunks have JS\n\t\t\t\t\t// setup Promise in chunk cache\n\t\t\t\t\tvar promise = new Promise(function(resolve, reject) { installedChunkData = installedChunks[chunkId] = [resolve, reject]; });\n\t\t\t\t\tpromises.push(installedChunkData[2] = promise);\n\n\t\t\t\t\t// start chunk loading\n\t\t\t\t\tvar url = __webpack_require__.p + __webpack_require__.u(chunkId);\n\t\t\t\t\t// create error before stack unwound to get useful stacktrace later\n\t\t\t\t\tvar error = new Error();\n\t\t\t\t\tvar loadingEnded = function(event) {\n\t\t\t\t\t\tif(__webpack_require__.o(installedChunks, chunkId)) {\n\t\t\t\t\t\t\tinstalledChunkData = installedChunks[chunkId];\n\t\t\t\t\t\t\tif(installedChunkData !== 0) installedChunks[chunkId] = undefined;\n\t\t\t\t\t\t\tif(installedChunkData) {\n\t\t\t\t\t\t\t\tvar errorType = event && (event.type === 'load' ? 'missing' : event.type);\n\t\t\t\t\t\t\t\tvar realSrc = event && event.target && event.target.src;\n\t\t\t\t\t\t\t\terror.message = 'Loading chunk ' + chunkId + ' failed.\\n(' + errorType + ': ' + realSrc + ')';\n\t\t\t\t\t\t\t\terror.name = 'ChunkLoadError';\n\t\t\t\t\t\t\t\terror.type = errorType;\n\t\t\t\t\t\t\t\terror.request = realSrc;\n\t\t\t\t\t\t\t\tinstalledChunkData[1](error);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t};\n\t\t\t\t\t__webpack_require__.l(url, loadingEnded, \"chunk-\" + chunkId, chunkId);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n};\n\n// no prefetching\n\n// no preloaded\n\n// no HMR\n\n// no HMR manifest\n\n__webpack_require__.O.j = function(chunkId) { return installedChunks[chunkId] === 0; };\n\n// install a JSONP callback for chunk loading\nvar webpackJsonpCallback = function(parentChunkLoadingFunction, data) {\n\tvar chunkIds = data[0];\n\tvar moreModules = data[1];\n\tvar runtime = data[2];\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(function(id) { return 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 = self[\"webpackChunkcommand_manager\"] = self[\"webpackChunkcommand_manager\"] || [];\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, [998], function() { return __webpack_require__(4325); })\n__webpack_exports__ = __webpack_require__.O(__webpack_exports__);\n"],"names":["_createBlock","_component_router_view","script","__exports__","render","createStore","state","getters","mutations","actions","modules","debounce","callback","delay","tid","ctx","self","clearTimeout","setTimeout","apply","arguments","app","_","window","ResizeObserver","constructor","super","use","ElementPlus","locale","zhCn","key","component","Object","entries","ElementPlusIconsVue","createApp","App","store","router","useElementPlus","mount","class","_createElementBlock","_hoisted_1","name","components","routes","path","HomeView","redirect","children","createRouter","history","createWebHistory","process","__webpack_module_cache__","__webpack_require__","moduleId","cachedModule","undefined","exports","module","__webpack_modules__","call","m","deferred","O","result","chunkIds","fn","priority","notFulfilled","Infinity","i","length","fulfilled","j","keys","every","splice","r","n","getter","__esModule","d","a","definition","o","defineProperty","enumerable","get","f","e","chunkId","Promise","all","reduce","promises","u","miniCssF","g","globalThis","this","Function","obj","prop","prototype","hasOwnProperty","inProgress","dataWebpackPrefix","l","url","done","push","needAttach","scripts","document","getElementsByTagName","s","getAttribute","createElement","charset","timeout","nc","setAttribute","src","onScriptComplete","prev","event","onerror","onload","doneFns","parentNode","removeChild","forEach","bind","type","target","head","appendChild","Symbol","toStringTag","value","p","createStylesheet","fullhref","oldTag","resolve","reject","linkTag","rel","onLinkComplete","errorType","realHref","href","err","Error","code","request","insertBefore","nextSibling","findStylesheet","existingLinkTags","tag","dataHref","existingStyleTags","loadStylesheet","installedCssChunks","miniCss","cssChunks","then","installedChunks","installedChunkData","promise","error","loadingEnded","realSrc","message","webpackJsonpCallback","parentChunkLoadingFunction","data","moreModules","runtime","some","id","chunkLoadingGlobal","__webpack_exports__"],"sourceRoot":""} \ No newline at end of file +{"version":3,"file":"js/app.29c9c5ff.js","mappings":"+IACEA,EAAAA,EAAAA,IAAeC,E,aCAjB,MAAMC,EAAS,CAAC,EAKVC,GAA2B,OAAgBD,EAAQ,CAAC,CAAC,SAASE,KAEpE,Q,kBCNA,GAAeC,EAAAA,EAAAA,IAAY,CACzBC,MAAO,CACP,EACAC,QAAS,CACT,EACAC,UAAW,CACX,EACAC,QAAS,CACT,EACAC,QAAS,CACT,I,uCCNF,MAAMC,EAAWA,CAACC,EAAUC,KAC1B,IAAIC,EACJ,OAAO,WACL,MAAMC,EAAMC,KACZF,GAAOG,aAAaH,GACpBA,EAAMI,YAAW,KACfN,EAASO,MAAMJ,EAAKK,UAAU,GAC7BP,EACL,CAAC,EAGH,MAAgBQ,IACd,MAAMC,EAAIC,OAAOC,eACjBD,OAAOC,eAAiB,cAA6BF,EACnDG,WAAAA,CAAab,GACXA,EAAWD,EAASC,EAAU,IAC9Bc,MAAMd,EACR,GAEFS,EAAIM,IAAIC,EAAAA,EAAa,CACnBC,OAAQC,EAAAA,IAEV,IAAK,MAAOC,EAAKC,KAAcC,OAAOC,QAAQC,GAC5Cd,EAAIW,UAAUD,EAAKC,EAEtB,ECzBD,MAAMX,GAAMe,EAAAA,EAAAA,IAAUC,GAAKV,IAAIW,GAAOX,IAAIY,EAA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EH,EAUArC,EAAoBU,EAAEU,EAAI,SAASiB,GAAW,OAAoC,IAA7B8E,EAAgB9E,EAAgB,EAGrF,IAAIqF,EAAuB,SAASC,EAA4BC,GAC/D,IAKI3H,EAAUoC,EALVzB,EAAWgH,EAAK,GAChBC,EAAcD,EAAK,GACnBE,EAAUF,EAAK,GAGI3G,EAAI,EAC3B,GAAGL,EAASmH,MAAK,SAASC,GAAM,OAA+B,IAAxBb,EAAgBa,EAAW,IAAI,CACrE,IAAI/H,KAAY4H,EACZ7H,EAAoB+B,EAAE8F,EAAa5H,KACrCD,EAAoBQ,EAAEP,GAAY4H,EAAY5H,IAGhD,GAAG6H,EAAS,IAAInH,EAASmH,EAAQ9H,EAClC,CAEA,IADG2H,GAA4BA,EAA2BC,GACrD3G,EAAIL,EAASM,OAAQD,IACzBoB,EAAUzB,EAASK,GAChBjB,EAAoB+B,EAAEoF,EAAiB9E,IAAY8E,EAAgB9E,IACrE8E,EAAgB9E,GAAS,KAE1B8E,EAAgB9E,GAAW,EAE5B,OAAOrC,EAAoBU,EAAEC,EAC9B,EAEIsH,EAAqB1K,KAAK,+BAAiCA,KAAK,gCAAkC,GACtG0K,EAAmBnD,QAAQ4C,EAAqB3C,KAAK,KAAM,IAC3DkD,EAAmBxE,KAAOiE,EAAqB3C,KAAK,KAAMkD,EAAmBxE,KAAKsB,KAAKkD,G,ICpFvF,IAAIC,EAAsBlI,EAAoBU,OAAEP,EAAW,CAAC,MAAM,WAAa,OAAOH,EAAoB,KAAO,IACjHkI,EAAsBlI,EAAoBU,EAAEwH,E","sources":["webpack://command-manager/./src/App.vue","webpack://command-manager/./src/App.vue?7ccd","webpack://command-manager/./src/store/index.js","webpack://command-manager/./src/element-plus.js","webpack://command-manager/./src/main.js","webpack://command-manager/./src/views/HomeView.vue","webpack://command-manager/./src/views/HomeView.vue?1da1","webpack://command-manager/./src/router/index.js","webpack://command-manager/webpack/bootstrap","webpack://command-manager/webpack/runtime/chunk loaded","webpack://command-manager/webpack/runtime/compat get default export","webpack://command-manager/webpack/runtime/define property getters","webpack://command-manager/webpack/runtime/ensure chunk","webpack://command-manager/webpack/runtime/get javascript chunk filename","webpack://command-manager/webpack/runtime/get mini-css chunk filename","webpack://command-manager/webpack/runtime/global","webpack://command-manager/webpack/runtime/hasOwnProperty shorthand","webpack://command-manager/webpack/runtime/load script","webpack://command-manager/webpack/runtime/make namespace object","webpack://command-manager/webpack/runtime/publicPath","webpack://command-manager/webpack/runtime/css loading","webpack://command-manager/webpack/runtime/jsonp chunk loading","webpack://command-manager/webpack/startup"],"sourcesContent":["\r\n\r\n\r\n","import { render } from \"./App.vue?vue&type=template&id=a2b6fcb8\"\nconst script = {}\n\nimport \"./App.vue?vue&type=style&index=0&id=a2b6fcb8&lang=scss\"\n\nimport exportComponent from \"../node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","import { createStore } from 'vuex'\r\n\r\nexport default createStore({\r\n state: {\r\n },\r\n getters: {\r\n },\r\n mutations: {\r\n },\r\n actions: {\r\n },\r\n modules: {\r\n }\r\n})\r\n","import ElementPlus from 'element-plus'\r\nimport zhCn from 'element-plus/dist/locale/zh-cn.mjs'\r\nimport 'element-plus/dist/index.css'\r\nimport '@/assets/scss/base.scss'\r\nimport * as ElementPlusIconsVue from '@element-plus/icons-vue'\r\n\r\nconst debounce = (callback, delay) => {\r\n let tid\r\n return function () {\r\n const ctx = self\r\n tid && clearTimeout(tid)\r\n tid = setTimeout(() => {\r\n callback.apply(ctx, arguments)\r\n }, delay)\r\n }\r\n}\r\n\r\nexport default (app) => {\r\n const _ = window.ResizeObserver\r\n window.ResizeObserver = class ResizeObserver extends _ {\r\n constructor (callback) {\r\n callback = debounce(callback, 20)\r\n super(callback)\r\n }\r\n }\r\n app.use(ElementPlus, {\r\n locale: zhCn\r\n })\r\n for (const [key, component] of Object.entries(ElementPlusIconsVue)) {\r\n app.component(key, component)\r\n }\r\n}\r\n","import { createApp } from 'vue'\r\nimport App from './App.vue'\r\nimport router from './router'\r\nimport store from './store'\r\nimport useElementPlus from './element-plus'\r\n\r\nconst app = createApp(App).use(store).use(router)\r\nuseElementPlus(app)\r\napp.mount('#app')\r\n","\r\n\r\n\r\n","import { render } from \"./HomeView.vue?vue&type=template&id=80c8d462\"\nimport script from \"./HomeView.vue?vue&type=script&lang=js\"\nexport * from \"./HomeView.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"../../node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","import { createRouter, createWebHistory } from 'vue-router'\r\nimport HomeView from '../views/HomeView.vue'\r\n\r\nconst routes = [\r\n {\r\n path: '/',\r\n name: 'home',\r\n component: HomeView,\r\n redirect: '/manager/manifest'\r\n },\r\n {\r\n path: '/manager',\r\n name: 'manager',\r\n redirect: '/manager/manifest',\r\n component: () => import(/* webpackChunkName: \"manager\" */ '../views/manager/index.vue'),\r\n children: [\r\n {\r\n path: '/manager/add',\r\n name: 'managerAdd',\r\n component: () => import(/* webpackChunkName: \"managerAdd\" */ '../views/manager/add.vue')\r\n },\r\n {\r\n path: '/manager/edit',\r\n name: 'managerEdit',\r\n component: () => import(/* webpackChunkName: \"managerEdit\" */ '../views/manager/add.vue')\r\n },\r\n {\r\n path: '/manager/copy',\r\n name: 'managerCopy',\r\n component: () => import(/* webpackChunkName: \"managerCopy\" */ '../views/manager/add.vue')\r\n },\r\n {\r\n path: '/manager/list',\r\n name: 'managerList',\r\n component: () => import(/* webpackChunkName: \"managerList\" */ '../views/manager/list.vue')\r\n },\r\n {\r\n path: '/manager/manifest',\r\n name: 'managerManifest',\r\n component: () => import(/* webpackChunkName: \"managerManifest\" */ '../views/manager/manifest.vue')\r\n }\r\n ]\r\n }\r\n]\r\n\r\nconst router = createRouter({\r\n history: createWebHistory(process.env.BASE_URL),\r\n routes\r\n})\r\n\r\nexport default router\r\n","// 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 = function(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 = deferred[i][0];\n\t\tvar fn = deferred[i][1];\n\t\tvar priority = deferred[i][2];\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(function(key) { return __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};","// getDefaultExport function for compatibility with non-harmony modules\n__webpack_require__.n = function(module) {\n\tvar getter = module && module.__esModule ?\n\t\tfunction() { return module['default']; } :\n\t\tfunction() { return module; };\n\t__webpack_require__.d(getter, { a: getter });\n\treturn getter;\n};","// define getter functions for harmony exports\n__webpack_require__.d = function(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};","__webpack_require__.f = {};\n// This file contains only the entry chunk.\n// The chunk loading function for additional chunks\n__webpack_require__.e = function(chunkId) {\n\treturn Promise.all(Object.keys(__webpack_require__.f).reduce(function(promises, key) {\n\t\t__webpack_require__.f[key](chunkId, promises);\n\t\treturn promises;\n\t}, []));\n};","// This function allow to reference async chunks\n__webpack_require__.u = function(chunkId) {\n\t// return url for filenames based on template\n\treturn \"js/\" + {\"158\":\"managerAdd\",\"395\":\"managerManifest\",\"453\":\"managerList\",\"873\":\"manager\"}[chunkId] + \".\" + {\"158\":\"df306cab\",\"395\":\"4c4791d6\",\"453\":\"00b969cc\",\"873\":\"58e04bc2\"}[chunkId] + \".js\";\n};","// This function allow to reference async chunks\n__webpack_require__.miniCssF = function(chunkId) {\n\t// return url for filenames based on template\n\treturn \"css/\" + {\"158\":\"managerAdd\",\"395\":\"managerManifest\",\"453\":\"managerList\",\"873\":\"manager\"}[chunkId] + \".\" + {\"158\":\"bd56fc11\",\"395\":\"0c5e8f23\",\"453\":\"0e68b8cd\",\"873\":\"092217f5\"}[chunkId] + \".css\";\n};","__webpack_require__.g = (function() {\n\tif (typeof globalThis === 'object') return globalThis;\n\ttry {\n\t\treturn this || new Function('return this')();\n\t} catch (e) {\n\t\tif (typeof window === 'object') return window;\n\t}\n})();","__webpack_require__.o = function(obj, prop) { return Object.prototype.hasOwnProperty.call(obj, prop); }","var inProgress = {};\nvar dataWebpackPrefix = \"command-manager:\";\n// loadScript function to load a script via script tag\n__webpack_require__.l = function(url, done, key, chunkId) {\n\tif(inProgress[url]) { inProgress[url].push(done); return; }\n\tvar script, needAttach;\n\tif(key !== undefined) {\n\t\tvar scripts = document.getElementsByTagName(\"script\");\n\t\tfor(var i = 0; i < scripts.length; i++) {\n\t\t\tvar s = scripts[i];\n\t\t\tif(s.getAttribute(\"src\") == url || s.getAttribute(\"data-webpack\") == dataWebpackPrefix + key) { script = s; break; }\n\t\t}\n\t}\n\tif(!script) {\n\t\tneedAttach = true;\n\t\tscript = document.createElement('script');\n\n\t\tscript.charset = 'utf-8';\n\t\tscript.timeout = 120;\n\t\tif (__webpack_require__.nc) {\n\t\t\tscript.setAttribute(\"nonce\", __webpack_require__.nc);\n\t\t}\n\t\tscript.setAttribute(\"data-webpack\", dataWebpackPrefix + key);\n\n\t\tscript.src = url;\n\t}\n\tinProgress[url] = [done];\n\tvar onScriptComplete = function(prev, event) {\n\t\t// avoid mem leaks in IE.\n\t\tscript.onerror = script.onload = null;\n\t\tclearTimeout(timeout);\n\t\tvar doneFns = inProgress[url];\n\t\tdelete inProgress[url];\n\t\tscript.parentNode && script.parentNode.removeChild(script);\n\t\tdoneFns && doneFns.forEach(function(fn) { return fn(event); });\n\t\tif(prev) return prev(event);\n\t}\n\tvar timeout = setTimeout(onScriptComplete.bind(null, undefined, { type: 'timeout', target: script }), 120000);\n\tscript.onerror = onScriptComplete.bind(null, script.onerror);\n\tscript.onload = onScriptComplete.bind(null, script.onload);\n\tneedAttach && document.head.appendChild(script);\n};","// define __esModule on exports\n__webpack_require__.r = function(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__.p = \"/command-manager/\";","if (typeof document === \"undefined\") return;\nvar createStylesheet = function(chunkId, fullhref, oldTag, resolve, reject) {\n\tvar linkTag = document.createElement(\"link\");\n\n\tlinkTag.rel = \"stylesheet\";\n\tlinkTag.type = \"text/css\";\n\tvar onLinkComplete = function(event) {\n\t\t// avoid mem leaks.\n\t\tlinkTag.onerror = linkTag.onload = null;\n\t\tif (event.type === 'load') {\n\t\t\tresolve();\n\t\t} else {\n\t\t\tvar errorType = event && (event.type === 'load' ? 'missing' : event.type);\n\t\t\tvar realHref = event && event.target && event.target.href || fullhref;\n\t\t\tvar err = new Error(\"Loading CSS chunk \" + chunkId + \" failed.\\n(\" + realHref + \")\");\n\t\t\terr.code = \"CSS_CHUNK_LOAD_FAILED\";\n\t\t\terr.type = errorType;\n\t\t\terr.request = realHref;\n\t\t\tif (linkTag.parentNode) linkTag.parentNode.removeChild(linkTag)\n\t\t\treject(err);\n\t\t}\n\t}\n\tlinkTag.onerror = linkTag.onload = onLinkComplete;\n\tlinkTag.href = fullhref;\n\n\tif (oldTag) {\n\t\toldTag.parentNode.insertBefore(linkTag, oldTag.nextSibling);\n\t} else {\n\t\tdocument.head.appendChild(linkTag);\n\t}\n\treturn linkTag;\n};\nvar findStylesheet = function(href, fullhref) {\n\tvar existingLinkTags = document.getElementsByTagName(\"link\");\n\tfor(var i = 0; i < existingLinkTags.length; i++) {\n\t\tvar tag = existingLinkTags[i];\n\t\tvar dataHref = tag.getAttribute(\"data-href\") || tag.getAttribute(\"href\");\n\t\tif(tag.rel === \"stylesheet\" && (dataHref === href || dataHref === fullhref)) return tag;\n\t}\n\tvar existingStyleTags = document.getElementsByTagName(\"style\");\n\tfor(var i = 0; i < existingStyleTags.length; i++) {\n\t\tvar tag = existingStyleTags[i];\n\t\tvar dataHref = tag.getAttribute(\"data-href\");\n\t\tif(dataHref === href || dataHref === fullhref) return tag;\n\t}\n};\nvar loadStylesheet = function(chunkId) {\n\treturn new Promise(function(resolve, reject) {\n\t\tvar href = __webpack_require__.miniCssF(chunkId);\n\t\tvar fullhref = __webpack_require__.p + href;\n\t\tif(findStylesheet(href, fullhref)) return resolve();\n\t\tcreateStylesheet(chunkId, fullhref, null, resolve, reject);\n\t});\n}\n// object to store loaded CSS chunks\nvar installedCssChunks = {\n\t143: 0\n};\n\n__webpack_require__.f.miniCss = function(chunkId, promises) {\n\tvar cssChunks = {\"158\":1,\"395\":1,\"453\":1,\"873\":1};\n\tif(installedCssChunks[chunkId]) promises.push(installedCssChunks[chunkId]);\n\telse if(installedCssChunks[chunkId] !== 0 && cssChunks[chunkId]) {\n\t\tpromises.push(installedCssChunks[chunkId] = loadStylesheet(chunkId).then(function() {\n\t\t\tinstalledCssChunks[chunkId] = 0;\n\t\t}, function(e) {\n\t\t\tdelete installedCssChunks[chunkId];\n\t\t\tthrow e;\n\t\t}));\n\t}\n};\n\n// no hmr","// 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\t143: 0\n};\n\n__webpack_require__.f.j = function(chunkId, promises) {\n\t\t// JSONP chunk loading for javascript\n\t\tvar installedChunkData = __webpack_require__.o(installedChunks, chunkId) ? installedChunks[chunkId] : undefined;\n\t\tif(installedChunkData !== 0) { // 0 means \"already installed\".\n\n\t\t\t// a Promise means \"currently loading\".\n\t\t\tif(installedChunkData) {\n\t\t\t\tpromises.push(installedChunkData[2]);\n\t\t\t} else {\n\t\t\t\tif(true) { // all chunks have JS\n\t\t\t\t\t// setup Promise in chunk cache\n\t\t\t\t\tvar promise = new Promise(function(resolve, reject) { installedChunkData = installedChunks[chunkId] = [resolve, reject]; });\n\t\t\t\t\tpromises.push(installedChunkData[2] = promise);\n\n\t\t\t\t\t// start chunk loading\n\t\t\t\t\tvar url = __webpack_require__.p + __webpack_require__.u(chunkId);\n\t\t\t\t\t// create error before stack unwound to get useful stacktrace later\n\t\t\t\t\tvar error = new Error();\n\t\t\t\t\tvar loadingEnded = function(event) {\n\t\t\t\t\t\tif(__webpack_require__.o(installedChunks, chunkId)) {\n\t\t\t\t\t\t\tinstalledChunkData = installedChunks[chunkId];\n\t\t\t\t\t\t\tif(installedChunkData !== 0) installedChunks[chunkId] = undefined;\n\t\t\t\t\t\t\tif(installedChunkData) {\n\t\t\t\t\t\t\t\tvar errorType = event && (event.type === 'load' ? 'missing' : event.type);\n\t\t\t\t\t\t\t\tvar realSrc = event && event.target && event.target.src;\n\t\t\t\t\t\t\t\terror.message = 'Loading chunk ' + chunkId + ' failed.\\n(' + errorType + ': ' + realSrc + ')';\n\t\t\t\t\t\t\t\terror.name = 'ChunkLoadError';\n\t\t\t\t\t\t\t\terror.type = errorType;\n\t\t\t\t\t\t\t\terror.request = realSrc;\n\t\t\t\t\t\t\t\tinstalledChunkData[1](error);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t};\n\t\t\t\t\t__webpack_require__.l(url, loadingEnded, \"chunk-\" + chunkId, chunkId);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n};\n\n// no prefetching\n\n// no preloaded\n\n// no HMR\n\n// no HMR manifest\n\n__webpack_require__.O.j = function(chunkId) { return installedChunks[chunkId] === 0; };\n\n// install a JSONP callback for chunk loading\nvar webpackJsonpCallback = function(parentChunkLoadingFunction, data) {\n\tvar chunkIds = data[0];\n\tvar moreModules = data[1];\n\tvar runtime = data[2];\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(function(id) { return 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 = self[\"webpackChunkcommand_manager\"] = self[\"webpackChunkcommand_manager\"] || [];\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, [998], function() { return __webpack_require__(4325); })\n__webpack_exports__ = __webpack_require__.O(__webpack_exports__);\n"],"names":["_createBlock","_component_router_view","script","__exports__","render","createStore","state","getters","mutations","actions","modules","debounce","callback","delay","tid","ctx","self","clearTimeout","setTimeout","apply","arguments","app","_","window","ResizeObserver","constructor","super","use","ElementPlus","locale","zhCn","key","component","Object","entries","ElementPlusIconsVue","createApp","App","store","router","useElementPlus","mount","class","_createElementBlock","_hoisted_1","name","components","routes","path","HomeView","redirect","children","createRouter","history","createWebHistory","process","__webpack_module_cache__","__webpack_require__","moduleId","cachedModule","undefined","exports","module","__webpack_modules__","call","m","deferred","O","result","chunkIds","fn","priority","notFulfilled","Infinity","i","length","fulfilled","j","keys","every","splice","r","n","getter","__esModule","d","a","definition","o","defineProperty","enumerable","get","f","e","chunkId","Promise","all","reduce","promises","u","miniCssF","g","globalThis","this","Function","obj","prop","prototype","hasOwnProperty","inProgress","dataWebpackPrefix","l","url","done","push","needAttach","scripts","document","getElementsByTagName","s","getAttribute","createElement","charset","timeout","nc","setAttribute","src","onScriptComplete","prev","event","onerror","onload","doneFns","parentNode","removeChild","forEach","bind","type","target","head","appendChild","Symbol","toStringTag","value","p","createStylesheet","fullhref","oldTag","resolve","reject","linkTag","rel","onLinkComplete","errorType","realHref","href","err","Error","code","request","insertBefore","nextSibling","findStylesheet","existingLinkTags","tag","dataHref","existingStyleTags","loadStylesheet","installedCssChunks","miniCss","cssChunks","then","installedChunks","installedChunkData","promise","error","loadingEnded","realSrc","message","webpackJsonpCallback","parentChunkLoadingFunction","data","moreModules","runtime","some","id","chunkLoadingGlobal","__webpack_exports__"],"sourceRoot":""} \ No newline at end of file diff --git a/js/app.c59f2488.js b/js/app.c59f2488.js deleted file mode 100644 index 6e66aa6..0000000 --- a/js/app.c59f2488.js +++ /dev/null @@ -1,2 +0,0 @@ -(function(){"use strict";var e={4325:function(e,n,t){var r=t(9242),o=t(3396);function a(e,n){const t=(0,o.up)("router-view");return(0,o.wg)(),(0,o.j4)(t)}var i=t(89);const u={},c=(0,i.Z)(u,[["render",a]]);var f=c,s=t(2436),d=t(65),m=(0,d.MT)({state:{},getters:{},mutations:{},actions:{},modules:{}}),l=t(9429),p=t(814),g=(t(4415),t(2748));const h=(e,n)=>{let t;return function(){const r=self;t&&clearTimeout(t),t=setTimeout((()=>{e.apply(r,arguments)}),n)}};var v=e=>{const n=window.ResizeObserver;window.ResizeObserver=class extends n{constructor(e){e=h(e,20),super(e)}},e.use(l.Z,{locale:p.Z});for(const[t,r]of Object.entries(g))e.component(t,r)};const b=(0,r.ri)(f).use(m).use(s.Z);v(b),b.mount("#app")},2436:function(e,n,t){t.d(n,{Z:function(){return l}});var r=t(2483),o=t(3396);const a={class:"home"};function i(e,n,t,r,i,u){return(0,o.wg)(),(0,o.iD)("div",a)}var u={name:"HomeView",components:{}},c=t(89);const f=(0,c.Z)(u,[["render",i]]);var s=f;const d=[{path:"/",name:"home",component:s,redirect:"/manager/manifest"},{path:"/manager",name:"manager",redirect:"/manager/manifest",component:()=>t.e(873).then(t.bind(t,4047)),children:[{path:"/manager/add",name:"managerAdd",component:()=>t.e(158).then(t.bind(t,6498))},{path:"/manager/edit",name:"managerEdit",component:()=>t.e(158).then(t.bind(t,6498))},{path:"/manager/copy",name:"managerCopy",component:()=>t.e(158).then(t.bind(t,6498))},{path:"/manager/list",name:"managerList",component:()=>t.e(453).then(t.bind(t,1587))},{path:"/manager/manifest",name:"managerManifest",component:()=>t.e(395).then(t.bind(t,4211))}]}],m=(0,r.p7)({history:(0,r.PO)("/command-manager/"),routes:d});var l=m}},n={};function t(r){var o=n[r];if(void 0!==o)return o.exports;var a=n[r]={exports:{}};return e[r].call(a.exports,a,a.exports,t),a.exports}t.m=e,function(){var e=[];t.O=function(n,r,o,a){if(!r){var i=1/0;for(s=0;s=a)&&Object.keys(t.O).every((function(e){return t.O[e](r[c])}))?r.splice(c--,1):(u=!1,a0&&e[s-1][2]>a;s--)e[s]=e[s-1];e[s]=[r,o,a]}}(),function(){t.n=function(e){var n=e&&e.__esModule?function(){return e["default"]}:function(){return e};return t.d(n,{a:n}),n}}(),function(){t.d=function(e,n){for(var r in n)t.o(n,r)&&!t.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:n[r]})}}(),function(){t.f={},t.e=function(e){return Promise.all(Object.keys(t.f).reduce((function(n,r){return t.f[r](e,n),n}),[]))}}(),function(){t.u=function(e){return"js/"+{158:"managerAdd",395:"managerManifest",453:"managerList",873:"manager"}[e]+"."+{158:"c71d8b66",395:"36caeb39",453:"dee6e447",873:"58e04bc2"}[e]+".js"}}(),function(){t.miniCssF=function(e){return"css/"+{158:"managerAdd",395:"managerManifest",453:"managerList",873:"manager"}[e]+"."+{158:"ff2bb101",395:"0c5e8f23",453:"caeb00b2",873:"092217f5"}[e]+".css"}}(),function(){t.g=function(){if("object"===typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"===typeof window)return window}}()}(),function(){t.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)}}(),function(){var e={},n="command-manager:";t.l=function(r,o,a,i){if(e[r])e[r].push(o);else{var u,c;if(void 0!==a)for(var f=document.getElementsByTagName("script"),s=0;snew Promise(((u,n)=>{fetch(`${l.baseUrl}${e}`,{method:a,headers:{"Content-Type":"application/json"},body:JSON.stringify(t)}).then((e=>e.json())).then((e=>{200===e.code&&u(e)})).catch(n)})),n=e=>{const a=document.createElement("a");a.href=URL.createObjectURL(new Blob([e])),a.download="manifest.json",a.click()}},1791:function(__unused_webpack_module,__webpack_exports__,__webpack_require__){__webpack_require__.d(__webpack_exports__,{BG:function(){return handleExportBefore},ET:function(){return handleImport},IF:function(){return manifest},hM:function(){return handleImportBefore}});var vue__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(4870),_vueuse_core__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(6367),element_plus__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(6e3),element_plus__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(7178),_api__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(7877),_utils__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(6573);const state=(0,vue__WEBPACK_IMPORTED_MODULE_2__.qj)({import:!1,export:!1}),manifest=(0,_vueuse_core__WEBPACK_IMPORTED_MODULE_3__.y$C)("manifest",{},localStorage,{mergeDefaults:!0}),handleImportBefore=e=>{state.import||(element_plus__WEBPACK_IMPORTED_MODULE_4__.T.confirm("导入配置后, 将会覆盖当前配置, 是否确认?",{title:"确认导入配置",type:"warning"}).then((()=>{state.import=!0,e.target.click()})).catch(console.log),e.stopPropagation())},handleImport=async file=>{try{const data=await file.text();manifest.value=eval("("+data+")")}catch(err){console.warn(err)}return!1},handleExportBefore=e=>{state.export?handleExport():manifest.value.path&&element_plus__WEBPACK_IMPORTED_MODULE_4__.T.confirm(`是否要导出配置到 ${manifest.value.path}`,{title:"确认导出配置",type:"warning"}).then((()=>{state.export=!0,handleExport()})).catch(console.log)},handleExport=()=>{_api__WEBPACK_IMPORTED_MODULE_0__.Z.export(manifest.value).then((()=>{element_plus__WEBPACK_IMPORTED_MODULE_5__.z8.success("导出成功")})).catch((()=>{(0,_utils__WEBPACK_IMPORTED_MODULE_1__.S)(JSON.stringify(manifest.value,null,2))}))},handleOutput=()=>{console.log(manifest.value)}},6498:function(e,a,t){t.r(a),t.d(a,{default:function(){return g}});var l,u=t(3396),n=t(7139),o=t(4870),r=(t(1439),t(7585),t(5315),new Uint8Array(16));function _(){if(!l&&(l="undefined"!==typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!==typeof msCrypto&&"function"===typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto),!l))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return l(r)}t(7658);var d=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;function m(e){return"string"===typeof e&&d.test(e)}for(var p=m,i=[],s=0;s<256;++s)i.push((s+256).toString(16).substr(1));function c(e){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,t=(i[e[a+0]]+i[e[a+1]]+i[e[a+2]]+i[e[a+3]]+"-"+i[e[a+4]]+i[e[a+5]]+"-"+i[e[a+6]]+i[e[a+7]]+"-"+i[e[a+8]]+i[e[a+9]]+"-"+i[e[a+10]]+i[e[a+11]]+i[e[a+12]]+i[e[a+13]]+i[e[a+14]]+i[e[a+15]]).toLowerCase();if(!p(t))throw TypeError("Stringified UUID is invalid");return t}var f=c;function v(e,a,t){e=e||{};var l=e.random||(e.rng||_)();if(l[6]=15&l[6]|64,l[8]=63&l[8]|128,a){t=t||0;for(var u=0;u<16;++u)a[t+u]=l[u];return a}return f(l)}var w=v,E=t(1791),h=t(2483),W=t(2436),b={__name:"add",props:{row:{type:Object,default:()=>({})}},setup(e){const a=e,t=(0,h.yj)(),l=(0,o.iH)(E.IF.value.commands),r=()=>({form:Object.assign({name:"",path:"",port:"",nodeVersion:"",keywords:"",commandLines:"",desc:"",defaultRun:!1},a.row.uuid?a.row:{})}),_=(0,o.iH)(r().form),d=()=>{"edit"===a.active&&a.row.uuid?l.value=l.value.map((e=>e.uuid===a.row.uuid?Object.assign({},e,_.value):e)):(l.value=l.value.concat(Object.assign({},_.value,{uuid:w()})),_.value=r().form),E.IF.value=Object.assign({},E.IF.value,{commands:l.value}),setTimeout((()=>{W.Z.replace({name:"managerList"})}),500)};return(0,u.YP)((()=>a.active),(()=>{_.value=r().form})),(0,u.YP)((()=>t.name),(()=>{/^manager/.test(t.name)&&(t.query.uuid?_.value=l.value.find((e=>e.uuid===t.query.uuid)):_.value=r().form)}),{immediate:!0}),(e,a)=>{const l=(0,u.up)("el-input"),r=(0,u.up)("el-form-item"),m=(0,u.up)("el-col"),p=(0,u.up)("el-option"),i=(0,u.up)("el-select"),s=(0,u.up)("el-switch"),c=(0,u.up)("el-row"),f=(0,u.up)("el-button"),v=(0,u.up)("el-form");return(0,u.wg)(),(0,u.j4)(v,{model:_.value,"label-width":"140px"},{default:(0,u.w5)((()=>[(0,u.Wm)(c,null,{default:(0,u.w5)((()=>[(0,u.Wm)(m,{span:8},{default:(0,u.w5)((()=>[(0,u.Wm)(r,{label:"脚本名称",prop:"name"},{default:(0,u.w5)((()=>[(0,u.Wm)(l,{modelValue:_.value.name,"onUpdate:modelValue":a[0]||(a[0]=e=>_.value.name=e)},null,8,["modelValue"])])),_:1})])),_:1}),(0,u.Wm)(m,{span:8},{default:(0,u.w5)((()=>[(0,u.Wm)(r,{label:"脚本路径",prop:"path"},{default:(0,u.w5)((()=>[(0,u.Wm)(l,{modelValue:_.value.path,"onUpdate:modelValue":a[1]||(a[1]=e=>_.value.path=e)},null,8,["modelValue"])])),_:1})])),_:1}),(0,u.Wm)(m,{span:8},{default:(0,u.w5)((()=>[(0,u.Wm)(r,{label:"端口",prop:"port"},{default:(0,u.w5)((()=>[(0,u.Wm)(l,{modelValue:_.value.port,"onUpdate:modelValue":a[2]||(a[2]=e=>_.value.port=e)},null,8,["modelValue"])])),_:1})])),_:1}),(0,u.Wm)(m,{span:8},{default:(0,u.w5)((()=>[(0,u.Wm)(r,{label:"关键词(逗号分割)",prop:"keywords"},{default:(0,u.w5)((()=>[(0,u.Wm)(l,{modelValue:_.value.keywords,"onUpdate:modelValue":a[3]||(a[3]=e=>_.value.keywords=e)},null,8,["modelValue"])])),_:1})])),_:1}),(0,u.Wm)(m,{span:8},{default:(0,u.w5)((()=>[(0,u.Wm)(r,{label:"node版本",prop:"nodeVersion"},{default:(0,u.w5)((()=>[(0,u.Wm)(l,{modelValue:_.value.nodeVersion,"onUpdate:modelValue":a[4]||(a[4]=e=>_.value.nodeVersion=e)},null,8,["modelValue"])])),_:1})])),_:1}),(0,u.Wm)(m,{span:8},{default:(0,u.w5)((()=>[(0,u.Wm)(r,{label:"终端",prop:"terminal"},{default:(0,u.w5)((()=>[(0,u.Wm)(i,{placeholder:"选择要使用的终端",modelValue:_.value.terminal,"onUpdate:modelValue":a[5]||(a[5]=e=>_.value.terminal=e)},{default:(0,u.w5)((()=>[(0,u.Wm)(p,{lable:"cmd",value:"cmd"}),(0,u.Wm)(p,{lable:"git",value:"git"})])),_:1},8,["modelValue"])])),_:1})])),_:1}),(0,u.Wm)(m,{span:8},{default:(0,u.w5)((()=>[(0,u.Wm)(r,{label:"默认运行",prop:"defaultRun"},{default:(0,u.w5)((()=>[(0,u.Wm)(s,{modelValue:_.value.defaultRun,"onUpdate:modelValue":a[6]||(a[6]=e=>_.value.defaultRun=e),"active-text":"开启","inactive-text":"关闭"},null,8,["modelValue"])])),_:1})])),_:1})])),_:1}),(0,u.Wm)(r,{label:"命令组(换行符分割)",prop:"commandLines"},{default:(0,u.w5)((()=>[(0,u.Wm)(l,{modelValue:_.value.commandLines,"onUpdate:modelValue":a[7]||(a[7]=e=>_.value.commandLines=e),type:"textarea",rows:5},null,8,["modelValue"])])),_:1}),(0,u.Wm)(r,{label:"备注说明",prop:"desc"},{default:(0,u.w5)((()=>[(0,u.Wm)(l,{modelValue:_.value.desc,"onUpdate:modelValue":a[8]||(a[8]=e=>_.value.desc=e),type:"textarea",rows:5},null,8,["modelValue"])])),_:1}),(0,u.Wm)(r,null,{default:(0,u.w5)((()=>[(0,u.Wm)(f,{type:"primary",onClick:d},{default:(0,u.w5)((()=>[(0,u.Uk)((0,n.zw)("managerEdit"===(0,o.SU)(t).name?"修改":"添加"),1)])),_:1})])),_:1})])),_:1},8,["model"])}}},y=t(89);const V=(0,y.Z)(b,[["__scopeId","data-v-df8cd03a"]]);var g=V}}]); -//# sourceMappingURL=managerAdd.c71d8b66.js.map \ No newline at end of file diff --git a/js/managerAdd.c71d8b66.js.map b/js/managerAdd.c71d8b66.js.map deleted file mode 100644 index 0bb2819..0000000 --- a/js/managerAdd.c71d8b66.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"js/managerAdd.c71d8b66.js","mappings":"2IACA,KACEA,OAAQC,GACN,OAAOC,EAAAA,EAAAA,GAAS,SAAU,OAAQD,EACpC,EACAE,IAAAA,CAAMF,GACJ,OAAOC,EAAAA,EAAAA,GAAS,OAAQ,OAAQD,EAClC,E,0GCPF,GACEG,QAAS,2BCCJ,MAAMF,EAAWA,CAACG,EAAKC,EAAQL,IAC7B,IAAIM,SAAQ,CAACC,EAASC,KAC3BC,MAAO,GAAEC,EAAOP,UAAUC,IAAO,CAC/BC,SACAM,QAAS,CACP,eAAgB,oBAElBC,KAAMC,KAAKC,UAAUd,KAEpBe,MAAMC,GAAQA,EAAIC,SAClBF,MAAMC,IACY,MAAbA,EAAIE,MACNX,EAAQS,EACV,IAEDG,MAAMX,EAAO,IAIPY,EAAgBC,IAC3B,MAAMC,EAAOC,SAASC,cAAc,KACpCF,EAAKG,KAAOC,IAAIC,gBAAgB,IAAIC,KAAK,CAACP,KAC1CC,EAAKO,SAAW,gBAChBP,EAAKQ,OAAO,C,spBClBd,MAAMC,OAAQC,EAAAA,iCAAAA,IAAS,CACrBC,QAAQ,EACRlC,QAAQ,IAGGmC,UAAWC,EAAAA,0CAAAA,KACtB,WACA,CAAC,EACDC,aACA,CAAEC,eAAe,IAGNC,mBAAsBC,IAC5BR,MAAME,SACTO,0CAAAA,EAAaC,QAAQ,yBAA0B,CAC7CC,MAAO,SACPC,KAAM,YACL5B,MAAK,KACNgB,MAAME,QAAS,EACfM,EAAMK,OAAOd,OAAO,IACnBX,MAAM0B,QAAQC,KACjBP,EAAMQ,kBACR,EAEWC,aAAeC,aAC1B,IACE,MAAMjD,WAAakD,KAAKC,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B,EAAU1C,MAAQ0C,EAAU1C,MAAM4D,KAAKC,GAC9BA,EAAKzC,OAASoC,EAAMC,IAAIrC,KAAO2B,OAAOC,OAAO,CAAC,EAAGa,EAAMf,EAAK9C,OAAS6D,KAG9EnB,EAAU1C,MAAQ0C,EAAU1C,MAAM8D,OAAOf,OAAOC,OAAO,CAAC,EAAGF,EAAK9C,MAAO,CACrEoB,KAAMA,OAER0B,EAAK9C,MAAQ6C,IAAaC,MAE5BhE,EAAAA,GAASkB,MAAQ+C,OAAOC,OAAO,CAAC,EAAGlE,EAAAA,GAASkB,MAAO,CACjD4C,SAAUF,EAAU1C,QAEtB+D,YAAW,KACTC,EAAAA,EAAOC,QAAQ,CACbhB,KAAM,eACN,GACD,IAAI,E,OAETiB,EAAAA,EAAAA,KAAM,IAAMV,EAAMG,SAAQ,KACxBb,EAAK9C,MAAQ6C,IAAaC,IAAI,KAEhCoB,EAAAA,EAAAA,KAAM,IAAM1B,EAAMS,OAAM,KAClB,WAAW3B,KAAKkB,EAAMS,QACpBT,EAAM2B,MAAM/C,KACd0B,EAAK9C,MAAQ0C,EAAU1C,MAAMoE,MAAMP,GAASA,EAAKzC,OAASoB,EAAM2B,MAAM/C,OAEtE0B,EAAK9C,MAAQ6C,IAAaC,KAE9B,GACC,CACDuB,WAAW,I,m2FC3Gb,MAAMC,GAA2B,OAAgB,EAAQ,CAAC,CAAC,YAAY,qBAEvE,O","sources":["webpack://command-manager/./src/api/index.js","webpack://command-manager/./src/config/index.js","webpack://command-manager/./src/utils/index.js","webpack://command-manager/./src/views/manager/common.js","webpack://command-manager/./node_modules/uuid/dist/esm-browser/rng.js","webpack://command-manager/./node_modules/uuid/dist/esm-browser/regex.js","webpack://command-manager/./node_modules/uuid/dist/esm-browser/validate.js","webpack://command-manager/./node_modules/uuid/dist/esm-browser/stringify.js","webpack://command-manager/./node_modules/uuid/dist/esm-browser/v4.js","webpack://command-manager/./src/views/manager/add.vue","webpack://command-manager/./src/views/manager/add.vue?c092"],"sourcesContent":["import { fetchApi } from '@/utils'\r\nexport default {\r\n export (data) {\r\n return fetchApi('export', 'post', data)\r\n },\r\n open (data) {\r\n return fetchApi('open', 'post', data)\r\n }\r\n}\r\n","export default {\r\n baseUrl: 'http://localhost:27001/'\r\n}\r\n","import config from '@/config'\r\n\r\nexport const fetchApi = (url, method, data) => {\r\n return new Promise((resolve, reject) => {\r\n fetch(`${config.baseUrl}${url}`, {\r\n method,\r\n headers: {\r\n 'Content-Type': 'application/json'\r\n },\r\n body: JSON.stringify(data)\r\n })\r\n .then((res) => res.json())\r\n .then((res) => {\r\n if (res.code === 200) {\r\n resolve(res)\r\n }\r\n })\r\n .catch(reject)\r\n })\r\n}\r\n\r\nexport const downloadFile = (content) => {\r\n const link = document.createElement('a')\r\n link.href = URL.createObjectURL(new Blob([content]))\r\n link.download = 'manifest.json'\r\n link.click()\r\n}\r\n","import { reactive } from 'vue'\r\nimport { useStorage } from '@vueuse/core'\r\nimport { ElMessage, ElMessageBox } from 'element-plus'\r\n\r\nimport api from '@/api'\r\nimport { downloadFile } from '@/utils'\r\n\r\nconst state = reactive({\r\n import: false,\r\n export: false\r\n})\r\n\r\nexport const manifest = useStorage(\r\n 'manifest',\r\n {},\r\n localStorage,\r\n { mergeDefaults: true }\r\n)\r\n\r\nexport const handleImportBefore = (event) => {\r\n if (!state.import) {\r\n ElMessageBox.confirm('导入配置后, 将会覆盖当前配置, 是否确认?', {\r\n title: '确认导入配置',\r\n type: 'warning'\r\n }).then(() => {\r\n state.import = true\r\n event.target.click()\r\n }).catch(console.log)\r\n event.stopPropagation()\r\n }\r\n}\r\nexport const handleImport = async (file) => {\r\n try {\r\n const data = await file.text()\r\n // eslint-disable-next-line\r\n manifest.value = eval('(' + data + ')')\r\n } catch (err) {\r\n console.warn(err)\r\n }\r\n return false\r\n}\r\n\r\nexport const handleExportBefore = (event) => {\r\n if (!state.export) {\r\n manifest.value.path && ElMessageBox.confirm(`是否要导出配置到 ${manifest.value.path}`, {\r\n title: '确认导出配置',\r\n type: 'warning'\r\n }).then(() => {\r\n state.export = true\r\n handleExport()\r\n }).catch(console.log)\r\n } else {\r\n handleExport()\r\n }\r\n}\r\nexport const handleExport = () => {\r\n api.export(manifest.value).then(() => {\r\n ElMessage.success('导出成功')\r\n })\r\n .catch(() => {\r\n downloadFile(JSON.stringify(manifest.value, null, 2))\r\n })\r\n}\r\n\r\nexport const handleOutput = () => {\r\n console.log(manifest.value)\r\n}\r\n","// Unique ID creation requires a high quality random # generator. In the browser we therefore\n// require the crypto API and do not support built-in fallback to lower quality random number\n// generators (like Math.random()).\nvar getRandomValues;\nvar rnds8 = new Uint8Array(16);\nexport default function rng() {\n // lazy load so that environments that need to polyfill have a chance to do so\n if (!getRandomValues) {\n // getRandomValues needs to be invoked in a context where \"this\" is a Crypto implementation. Also,\n // find the complete implementation of crypto (msCrypto) on IE11.\n getRandomValues = typeof crypto !== 'undefined' && crypto.getRandomValues && crypto.getRandomValues.bind(crypto) || typeof msCrypto !== 'undefined' && typeof msCrypto.getRandomValues === 'function' && msCrypto.getRandomValues.bind(msCrypto);\n\n if (!getRandomValues) {\n throw new Error('crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported');\n }\n }\n\n return getRandomValues(rnds8);\n}","export default /^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;","import REGEX from './regex.js';\n\nfunction validate(uuid) {\n return typeof uuid === 'string' && REGEX.test(uuid);\n}\n\nexport default validate;","import validate from './validate.js';\n/**\n * Convert array of 16 byte values to UUID string format of the form:\n * XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX\n */\n\nvar byteToHex = [];\n\nfor (var i = 0; i < 256; ++i) {\n byteToHex.push((i + 0x100).toString(16).substr(1));\n}\n\nfunction stringify(arr) {\n var offset = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;\n // Note: Be careful editing this code! It's been tuned for performance\n // and works in ways you may not expect. See https://github.com/uuidjs/uuid/pull/434\n var uuid = (byteToHex[arr[offset + 0]] + byteToHex[arr[offset + 1]] + byteToHex[arr[offset + 2]] + byteToHex[arr[offset + 3]] + '-' + byteToHex[arr[offset + 4]] + byteToHex[arr[offset + 5]] + '-' + byteToHex[arr[offset + 6]] + byteToHex[arr[offset + 7]] + '-' + byteToHex[arr[offset + 8]] + byteToHex[arr[offset + 9]] + '-' + byteToHex[arr[offset + 10]] + byteToHex[arr[offset + 11]] + byteToHex[arr[offset + 12]] + byteToHex[arr[offset + 13]] + byteToHex[arr[offset + 14]] + byteToHex[arr[offset + 15]]).toLowerCase(); // Consistency check for valid UUID. If this throws, it's likely due to one\n // of the following:\n // - One or more input array values don't map to a hex octet (leading to\n // \"undefined\" in the uuid)\n // - Invalid input values for the RFC `version` or `variant` fields\n\n if (!validate(uuid)) {\n throw TypeError('Stringified UUID is invalid');\n }\n\n return uuid;\n}\n\nexport default stringify;","import rng from './rng.js';\nimport stringify from './stringify.js';\n\nfunction v4(options, buf, offset) {\n options = options || {};\n var rnds = options.random || (options.rng || rng)(); // Per 4.4, set bits for version and `clock_seq_hi_and_reserved`\n\n rnds[6] = rnds[6] & 0x0f | 0x40;\n rnds[8] = rnds[8] & 0x3f | 0x80; // Copy bytes to buffer, if provided\n\n if (buf) {\n offset = offset || 0;\n\n for (var i = 0; i < 16; ++i) {\n buf[offset + i] = rnds[i];\n }\n\n return buf;\n }\n\n return stringify(rnds);\n}\n\nexport default v4;","\r\n\r\n\r\n","import script from \"./add.vue?vue&type=script&setup=true&lang=js\"\nexport * from \"./add.vue?vue&type=script&setup=true&lang=js\"\n\nimport \"./add.vue?vue&type=style&index=0&id=df8cd03a&lang=scss&scoped=true\"\n\nimport exportComponent from \"../../../node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['__scopeId',\"data-v-df8cd03a\"]])\n\nexport default __exports__"],"names":["export","data","fetchApi","open","baseUrl","url","method","Promise","resolve","reject","fetch","config","headers","body","JSON","stringify","then","res","json","code","catch","downloadFile","content","link","document","createElement","href","URL","createObjectURL","Blob","download","click","state","reactive","import","manifest","useStorage","localStorage","mergeDefaults","handleImportBefore","event","ElMessageBox","confirm","title","type","target","console","log","stopPropagation","handleImport","async","file","text","value","eval","err","warn","handleExportBefore","handleExport","path","api","ElMessage","success","handleOutput","getRandomValues","rnds8","Uint8Array","rng","crypto","bind","msCrypto","Error","validate","uuid","REGEX","test","byteToHex","i","push","toString","substr","arr","offset","arguments","length","undefined","toLowerCase","TypeError","v4","options","buf","rnds","random","route","useRoute","tableData","ref","commands","defaultRef","form","Object","assign","name","port","nodeVersion","keywords","commandLines","desc","defaultRun","props","row","onConfirm","active","map","item","concat","setTimeout","router","replace","watch","query","find","immediate","__exports__"],"sourceRoot":""} \ No newline at end of file diff --git a/js/managerAdd.df306cab.js b/js/managerAdd.df306cab.js new file mode 100644 index 0000000..77f6199 --- /dev/null +++ b/js/managerAdd.df306cab.js @@ -0,0 +1,2 @@ +"use strict";(self["webpackChunkcommand_manager"]=self["webpackChunkcommand_manager"]||[]).push([[158],{7877:function(e,a,t){var l=t(6573);a.Z={export(e){return(0,l.a)("export","post",e)},open(e){return(0,l.a)("open","post",e)},exec(e){return(0,l.a)("exec","post",e)},stop(e){return(0,l.a)("stop","post",e)}}},6573:function(e,a,t){t.d(a,{S:function(){return n},a:function(){return u}});t(6229),t(7330),t(2062);var l={baseUrl:"http://localhost:27001/"};const u=(e,a,t)=>new Promise(((u,n)=>{fetch(`${l.baseUrl}${e}`,{method:a,headers:{"Content-Type":"application/json"},body:JSON.stringify(t)}).then((e=>e.json())).then((e=>{200===e.code&&u(e)})).catch(n)})),n=e=>{const a=document.createElement("a");a.href=URL.createObjectURL(new Blob([e])),a.download="manifest.json",a.click()}},1791:function(__unused_webpack_module,__webpack_exports__,__webpack_require__){__webpack_require__.d(__webpack_exports__,{BG:function(){return handleExportBefore},ET:function(){return handleImport},IF:function(){return manifest},hM:function(){return handleImportBefore}});var vue__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(4870),_vueuse_core__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(6367),element_plus__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(6e3),element_plus__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(7178),_api__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(7877),_utils__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(6573);const state=(0,vue__WEBPACK_IMPORTED_MODULE_2__.qj)({import:!1,export:!1}),manifest=(0,_vueuse_core__WEBPACK_IMPORTED_MODULE_3__.y$C)("manifest",{},localStorage,{mergeDefaults:!0}),handleImportBefore=e=>{state.import||(element_plus__WEBPACK_IMPORTED_MODULE_4__.T.confirm("导入配置后, 将会覆盖当前配置, 是否确认?",{title:"确认导入配置",type:"warning"}).then((()=>{state.import=!0,e.target.click()})).catch(console.log),e.stopPropagation())},handleImport=async file=>{try{const data=await file.text();manifest.value=eval("("+data+")")}catch(err){console.warn(err)}return!1},handleExportBefore=e=>{state.export?handleExport():manifest.value.path&&element_plus__WEBPACK_IMPORTED_MODULE_4__.T.confirm(`是否要导出配置到 ${manifest.value.path}`,{title:"确认导出配置",type:"warning"}).then((()=>{state.export=!0,handleExport()})).catch(console.log)},handleExport=()=>{_api__WEBPACK_IMPORTED_MODULE_0__.Z.export(manifest.value).then((()=>{element_plus__WEBPACK_IMPORTED_MODULE_5__.z8.success("导出成功")})).catch((()=>{(0,_utils__WEBPACK_IMPORTED_MODULE_1__.S)(JSON.stringify(manifest.value,null,2))}))},handleOutput=()=>{console.log(manifest.value)}},6710:function(e,a,t){t.r(a),t.d(a,{default:function(){return g}});var l,u=t(3396),n=t(7139),o=t(4870),r=(t(1439),t(7585),t(5315),new Uint8Array(16));function _(){if(!l&&(l="undefined"!==typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!==typeof msCrypto&&"function"===typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto),!l))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return l(r)}t(7658);var m=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;function d(e){return"string"===typeof e&&m.test(e)}for(var p=d,s=[],i=0;i<256;++i)s.push((i+256).toString(16).substr(1));function c(e){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,t=(s[e[a+0]]+s[e[a+1]]+s[e[a+2]]+s[e[a+3]]+"-"+s[e[a+4]]+s[e[a+5]]+"-"+s[e[a+6]]+s[e[a+7]]+"-"+s[e[a+8]]+s[e[a+9]]+"-"+s[e[a+10]]+s[e[a+11]]+s[e[a+12]]+s[e[a+13]]+s[e[a+14]]+s[e[a+15]]).toLowerCase();if(!p(t))throw TypeError("Stringified UUID is invalid");return t}var f=c;function v(e,a,t){e=e||{};var l=e.random||(e.rng||_)();if(l[6]=15&l[6]|64,l[8]=63&l[8]|128,a){t=t||0;for(var u=0;u<16;++u)a[t+u]=l[u];return a}return f(l)}var w=v,E=t(1791),h=t(2483),W=t(2436),b={__name:"add",setup(e){const a=(0,h.yj)(),t=()=>({form:{name:"",path:"",port:"",nodeVersion:"",keywords:"",commandLines:"",desc:"",defaultRun:!1}}),l=(0,o.iH)(t().form),r=(0,o.iH)(E.IF.value.commands),_=()=>{"managerEdit"===a.name&&a.query.uuid?r.value=r.value.map((e=>e.uuid===a.query.uuid?Object.assign({},e,l.value):e)):(r.value=r.value.concat(Object.assign({},l.value,{uuid:w()})),l.value=t().form),E.IF.value=Object.assign({},E.IF.value,{commands:r.value}),setTimeout((()=>{W.Z.replace({name:"managerList"})}),500)};return(0,u.YP)((()=>a.name),(()=>{/^manager/.test(a.name)&&(a.query.uuid?l.value=r.value.find((e=>e.uuid===a.query.uuid)):l.value=t().form)}),{immediate:!0}),(e,t)=>{const r=(0,u.up)("el-input"),m=(0,u.up)("el-form-item"),d=(0,u.up)("el-col"),p=(0,u.up)("el-option"),s=(0,u.up)("el-select"),i=(0,u.up)("el-switch"),c=(0,u.up)("el-row"),f=(0,u.up)("el-button"),v=(0,u.up)("el-form");return(0,u.wg)(),(0,u.j4)(v,{model:l.value,"label-width":"140px"},{default:(0,u.w5)((()=>[(0,u.Wm)(c,null,{default:(0,u.w5)((()=>[(0,u.Wm)(d,{span:8},{default:(0,u.w5)((()=>[(0,u.Wm)(m,{label:"脚本名称",prop:"name"},{default:(0,u.w5)((()=>[(0,u.Wm)(r,{modelValue:l.value.name,"onUpdate:modelValue":t[0]||(t[0]=e=>l.value.name=e)},null,8,["modelValue"])])),_:1})])),_:1}),(0,u.Wm)(d,{span:8},{default:(0,u.w5)((()=>[(0,u.Wm)(m,{label:"脚本路径",prop:"path"},{default:(0,u.w5)((()=>[(0,u.Wm)(r,{modelValue:l.value.path,"onUpdate:modelValue":t[1]||(t[1]=e=>l.value.path=e)},null,8,["modelValue"])])),_:1})])),_:1}),(0,u.Wm)(d,{span:8},{default:(0,u.w5)((()=>[(0,u.Wm)(m,{label:"端口",prop:"port"},{default:(0,u.w5)((()=>[(0,u.Wm)(r,{modelValue:l.value.port,"onUpdate:modelValue":t[2]||(t[2]=e=>l.value.port=e)},null,8,["modelValue"])])),_:1})])),_:1}),(0,u.Wm)(d,{span:8},{default:(0,u.w5)((()=>[(0,u.Wm)(m,{label:"关键词(逗号分割)",prop:"keywords"},{default:(0,u.w5)((()=>[(0,u.Wm)(r,{modelValue:l.value.keywords,"onUpdate:modelValue":t[3]||(t[3]=e=>l.value.keywords=e)},null,8,["modelValue"])])),_:1})])),_:1}),(0,u.Wm)(d,{span:8},{default:(0,u.w5)((()=>[(0,u.Wm)(m,{label:"node版本",prop:"nodeVersion"},{default:(0,u.w5)((()=>[(0,u.Wm)(r,{modelValue:l.value.nodeVersion,"onUpdate:modelValue":t[4]||(t[4]=e=>l.value.nodeVersion=e)},null,8,["modelValue"])])),_:1})])),_:1}),(0,u.Wm)(d,{span:8},{default:(0,u.w5)((()=>[(0,u.Wm)(m,{label:"终端",prop:"terminal"},{default:(0,u.w5)((()=>[(0,u.Wm)(s,{placeholder:"选择要使用的终端",modelValue:l.value.terminal,"onUpdate:modelValue":t[5]||(t[5]=e=>l.value.terminal=e)},{default:(0,u.w5)((()=>[(0,u.Wm)(p,{lable:"cmd",value:"cmd"}),(0,u.Wm)(p,{lable:"git",value:"git"})])),_:1},8,["modelValue"])])),_:1})])),_:1}),(0,u.Wm)(d,{span:8},{default:(0,u.w5)((()=>[(0,u.Wm)(m,{label:"默认运行",prop:"defaultRun"},{default:(0,u.w5)((()=>[(0,u.Wm)(i,{modelValue:l.value.defaultRun,"onUpdate:modelValue":t[6]||(t[6]=e=>l.value.defaultRun=e),"active-text":"开启","inactive-text":"关闭"},null,8,["modelValue"])])),_:1})])),_:1})])),_:1}),(0,u.Wm)(m,{label:"命令组(换行符分割)",prop:"commandLines"},{default:(0,u.w5)((()=>[(0,u.Wm)(r,{modelValue:l.value.commandLines,"onUpdate:modelValue":t[7]||(t[7]=e=>l.value.commandLines=e),type:"textarea",rows:5},null,8,["modelValue"])])),_:1}),(0,u.Wm)(m,{label:"备注说明",prop:"desc"},{default:(0,u.w5)((()=>[(0,u.Wm)(r,{modelValue:l.value.desc,"onUpdate:modelValue":t[8]||(t[8]=e=>l.value.desc=e),type:"textarea",rows:5},null,8,["modelValue"])])),_:1}),(0,u.Wm)(m,null,{default:(0,u.w5)((()=>[(0,u.Wm)(f,{type:"primary",onClick:_},{default:(0,u.w5)((()=>[(0,u.Uk)((0,n.zw)("managerEdit"===(0,o.SU)(a).name?"修改":"添加"),1)])),_:1})])),_:1})])),_:1},8,["model"])}}},y=t(89);const V=(0,y.Z)(b,[["__scopeId","data-v-80163f64"]]);var g=V}}]); +//# sourceMappingURL=managerAdd.df306cab.js.map \ No newline at end of file diff --git a/js/managerAdd.df306cab.js.map b/js/managerAdd.df306cab.js.map new file mode 100644 index 0000000..f18f35e --- /dev/null +++ b/js/managerAdd.df306cab.js.map @@ -0,0 +1 @@ +{"version":3,"file":"js/managerAdd.df306cab.js","mappings":"2IACA,KACEA,OAAQC,GACN,OAAOC,EAAAA,EAAAA,GAAS,SAAU,OAAQD,EACpC,EACAE,IAAAA,CAAMF,GACJ,OAAOC,EAAAA,EAAAA,GAAS,OAAQ,OAAQD,EAClC,EACAG,IAAAA,CAAMH,GACJ,OAAOC,EAAAA,EAAAA,GAAS,OAAQ,OAAQD,EAClC,EACAI,IAAAA,CAAMJ,GACJ,OAAOC,EAAAA,EAAAA,GAAS,OAAQ,OAAQD,EAClC,E,0GCbF,GACEK,QAAS,2BCCJ,MAAMJ,EAAWA,CAACK,EAAKC,EAAQP,IAC7B,IAAIQ,SAAQ,CAACC,EAASC,KAC3BC,MAAO,GAAEC,EAAOP,UAAUC,IAAO,CAC/BC,SACAM,QAAS,CACP,eAAgB,oBAElBC,KAAMC,KAAKC,UAAUhB,KAEpBiB,MAAMC,GAAQA,EAAIC,SAClBF,MAAMC,IACY,MAAbA,EAAIE,MACNX,EAAQS,EACV,IAEDG,MAAMX,EAAO,IAIPY,EAAgBC,IAC3B,MAAMC,EAAOC,SAASC,cAAc,KACpCF,EAAKG,KAAOC,IAAIC,gBAAgB,IAAIC,KAAK,CAACP,KAC1CC,EAAKO,SAAW,gBAChBP,EAAKQ,OAAO,C,spBClBd,MAAMC,OAAQC,EAAAA,iCAAAA,IAAS,CACrBC,QAAQ,EACRpC,QAAQ,IAGGqC,UAAWC,EAAAA,0CAAAA,KACtB,WACA,CAAC,EACDC,aACA,CAAEC,eAAe,IAGNC,mBAAsBC,IAC5BR,MAAME,SACTO,0CAAAA,EAAaC,QAAQ,yBAA0B,CAC7CC,MAAO,SACPC,KAAM,YACL5B,MAAK,KACNgB,MAAME,QAAS,EACfM,EAAMK,OAAOd,OAAO,IACnBX,MAAM0B,QAAQC,KAC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MnC,KAC9CgC,EAAUpD,MAAQoD,EAAUpD,MAAMwD,KAAKC,GAC9BA,EAAKrC,OAASoB,EAAMe,MAAMnC,KAAOsC,OAAOC,OAAO,CAAC,EAAGF,EAAMd,EAAK3C,OAASyD,KAGhFL,EAAUpD,MAAQoD,EAAUpD,MAAM4D,OAAOF,OAAOC,OAAO,CAAC,EAAGhB,EAAK3C,MAAO,CACrEoB,KAAMA,OAERuB,EAAK3C,MAAQ0C,IAAaC,MAE5B7D,EAAAA,GAASkB,MAAQ0D,OAAOC,OAAO,CAAC,EAAG7E,EAAAA,GAASkB,MAAO,CACjDqD,SAAUD,EAAUpD,QAEtB6D,YAAW,KACTC,EAAAA,EAAOC,QAAQ,CACbnB,KAAM,eACN,GACD,IAAI,E,OAGToB,EAAAA,EAAAA,KAAM,IAAMxB,EAAMI,OAAM,KAClB,WAAWtB,KAAKkB,EAAMI,QACpBJ,EAAMe,MAAMnC,KACduB,EAAK3C,MAAQoD,EAAUpD,MAAMiE,MAAMR,GAASA,EAAKrC,OAASoB,EAAMe,MAAMnC,OAEtEuB,EAAK3C,MAAQ0C,IAAaC,KAE9B,GACC,CACDuB,WAAW,I,m2FCrGb,MAAMC,GAA2B,OAAgB,EAAQ,CAAC,CAAC,YAAY,qBAEvE,O","sources":["webpack://command-manager/./src/api/index.js","webpack://command-manager/./src/config/index.js","webpack://command-manager/./src/utils/index.js","webpack://command-manager/./src/views/manager/common.js","webpack://command-manager/./node_modules/uuid/dist/esm-browser/rng.js","webpack://command-manager/./node_modules/uuid/dist/esm-browser/regex.js","webpack://command-manager/./node_modules/uuid/dist/esm-browser/validate.js","webpack://command-manager/./node_modules/uuid/dist/esm-browser/stringify.js","webpack://command-manager/./node_modules/uuid/dist/esm-browser/v4.js","webpack://command-manager/./src/views/manager/add.vue","webpack://command-manager/./src/views/manager/add.vue?c092"],"sourcesContent":["import { fetchApi } from '@/utils'\r\nexport default {\r\n export (data) {\r\n return fetchApi('export', 'post', data)\r\n },\r\n open (data) {\r\n return fetchApi('open', 'post', data)\r\n },\r\n exec (data) {\r\n return fetchApi('exec', 'post', data)\r\n },\r\n stop (data) {\r\n return fetchApi('stop', 'post', data)\r\n }\r\n}\r\n","export default {\r\n baseUrl: 'http://localhost:27001/'\r\n}\r\n","import config from '@/config'\r\n\r\nexport const fetchApi = (url, method, data) => {\r\n return new Promise((resolve, reject) => {\r\n fetch(`${config.baseUrl}${url}`, {\r\n method,\r\n headers: {\r\n 'Content-Type': 'application/json'\r\n },\r\n body: JSON.stringify(data)\r\n })\r\n .then((res) => res.json())\r\n .then((res) => {\r\n if (res.code === 200) {\r\n resolve(res)\r\n }\r\n })\r\n .catch(reject)\r\n })\r\n}\r\n\r\nexport const downloadFile = (content) => {\r\n const link = document.createElement('a')\r\n link.href = URL.createObjectURL(new Blob([content]))\r\n link.download = 'manifest.json'\r\n link.click()\r\n}\r\n","import { reactive } from 'vue'\r\nimport { useStorage } from '@vueuse/core'\r\nimport { ElMessage, ElMessageBox } from 'element-plus'\r\n\r\nimport api from '@/api'\r\nimport { downloadFile } from '@/utils'\r\n\r\nconst state = reactive({\r\n import: false,\r\n export: false\r\n})\r\n\r\nexport const manifest = useStorage(\r\n 'manifest',\r\n {},\r\n localStorage,\r\n { mergeDefaults: true }\r\n)\r\n\r\nexport const handleImportBefore = (event) => {\r\n if (!state.import) {\r\n ElMessageBox.confirm('导入配置后, 将会覆盖当前配置, 是否确认?', {\r\n title: '确认导入配置',\r\n type: 'warning'\r\n }).then(() => {\r\n state.import = true\r\n event.target.click()\r\n }).catch(console.log)\r\n event.stopPropagation()\r\n }\r\n}\r\nexport const handleImport = async (file) => {\r\n try {\r\n const data = await file.text()\r\n // eslint-disable-next-line\r\n manifest.value = eval('(' + data + ')')\r\n } catch (err) {\r\n console.warn(err)\r\n }\r\n return false\r\n}\r\n\r\nexport const handleExportBefore = (event) => {\r\n if (!state.export) {\r\n manifest.value.path && ElMessageBox.confirm(`是否要导出配置到 ${manifest.value.path}`, {\r\n title: '确认导出配置',\r\n type: 'warning'\r\n }).then(() => {\r\n state.export = true\r\n handleExport()\r\n }).catch(console.log)\r\n } else {\r\n handleExport()\r\n }\r\n}\r\nexport const handleExport = () => {\r\n api.export(manifest.value).then(() => {\r\n ElMessage.success('导出成功')\r\n })\r\n .catch(() => {\r\n downloadFile(JSON.stringify(manifest.value, null, 2))\r\n })\r\n}\r\n\r\nexport const handleOutput = () => {\r\n console.log(manifest.value)\r\n}\r\n","// Unique ID creation requires a high quality random # generator. In the browser we therefore\n// require the crypto API and do not support built-in fallback to lower quality random number\n// generators (like Math.random()).\nvar getRandomValues;\nvar rnds8 = new Uint8Array(16);\nexport default function rng() {\n // lazy load so that environments that need to polyfill have a chance to do so\n if (!getRandomValues) {\n // getRandomValues needs to be invoked in a context where \"this\" is a Crypto implementation. Also,\n // find the complete implementation of crypto (msCrypto) on IE11.\n getRandomValues = typeof crypto !== 'undefined' && crypto.getRandomValues && crypto.getRandomValues.bind(crypto) || typeof msCrypto !== 'undefined' && typeof msCrypto.getRandomValues === 'function' && msCrypto.getRandomValues.bind(msCrypto);\n\n if (!getRandomValues) {\n throw new Error('crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported');\n }\n }\n\n return getRandomValues(rnds8);\n}","export default /^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;","import REGEX from './regex.js';\n\nfunction validate(uuid) {\n return typeof uuid === 'string' && REGEX.test(uuid);\n}\n\nexport default validate;","import validate from './validate.js';\n/**\n * Convert array of 16 byte values to UUID string format of the form:\n * XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX\n */\n\nvar byteToHex = [];\n\nfor (var i = 0; i < 256; ++i) {\n byteToHex.push((i + 0x100).toString(16).substr(1));\n}\n\nfunction stringify(arr) {\n var offset = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;\n // Note: Be careful editing this code! It's been tuned for performance\n // and works in ways you may not expect. See https://github.com/uuidjs/uuid/pull/434\n var uuid = (byteToHex[arr[offset + 0]] + byteToHex[arr[offset + 1]] + byteToHex[arr[offset + 2]] + byteToHex[arr[offset + 3]] + '-' + byteToHex[arr[offset + 4]] + byteToHex[arr[offset + 5]] + '-' + byteToHex[arr[offset + 6]] + byteToHex[arr[offset + 7]] + '-' + byteToHex[arr[offset + 8]] + byteToHex[arr[offset + 9]] + '-' + byteToHex[arr[offset + 10]] + byteToHex[arr[offset + 11]] + byteToHex[arr[offset + 12]] + byteToHex[arr[offset + 13]] + byteToHex[arr[offset + 14]] + byteToHex[arr[offset + 15]]).toLowerCase(); // Consistency check for valid UUID. If this throws, it's likely due to one\n // of the following:\n // - One or more input array values don't map to a hex octet (leading to\n // \"undefined\" in the uuid)\n // - Invalid input values for the RFC `version` or `variant` fields\n\n if (!validate(uuid)) {\n throw TypeError('Stringified UUID is invalid');\n }\n\n return uuid;\n}\n\nexport default stringify;","import rng from './rng.js';\nimport stringify from './stringify.js';\n\nfunction v4(options, buf, offset) {\n options = options || {};\n var rnds = options.random || (options.rng || rng)(); // Per 4.4, set bits for version and `clock_seq_hi_and_reserved`\n\n rnds[6] = rnds[6] & 0x0f | 0x40;\n rnds[8] = rnds[8] & 0x3f | 0x80; // Copy bytes to buffer, if provided\n\n if (buf) {\n offset = offset || 0;\n\n for (var i = 0; i < 16; ++i) {\n buf[offset + i] = rnds[i];\n }\n\n return buf;\n }\n\n return stringify(rnds);\n}\n\nexport default v4;","\r\n\r\n\r\n","import script from \"./add.vue?vue&type=script&setup=true&lang=js\"\nexport * from \"./add.vue?vue&type=script&setup=true&lang=js\"\n\nimport \"./add.vue?vue&type=style&index=0&id=80163f64&lang=scss&scoped=true\"\n\nimport exportComponent from \"../../../node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['__scopeId',\"data-v-80163f64\"]])\n\nexport default __exports__"],"names":["export","data","fetchApi","open","exec","stop","baseUrl","url","method","Promise","resolve","reject","fetch","config","headers","body","JSON","stringify","then","res","json","code","catch","downloadFile","content","link","document","createElement","href","URL","createObjectURL","Blob","download","click","state","reactive","import","manifest","useStorage","localStorage","mergeDefaults","handleImportBefore","event","ElMessageBox","confirm","title","type","target","console","log","stopPropagation","handleImport","async","file","text","value","eval","err","warn","handleExportBefore","handleExport","path","api","ElMessage","success","handleOutput","getRandomValues","rnds8","Uint8Array","rng","crypto","bind","msCrypto","Error","validate","uuid","REGEX","test","byteToHex","i","push","toString","substr","arr","offset","arguments","length","undefined","toLowerCase","TypeError","v4","options","buf","rnds","random","route","useRoute","defaultRef","form","name","port","nodeVersion","keywords","commandLines","desc","defaultRun","ref","tableData","commands","onConfirm","query","map","item","Object","assign","concat","setTimeout","router","replace","watch","find","immediate","__exports__"],"sourceRoot":""} \ No newline at end of file diff --git a/js/managerList.00b969cc.js b/js/managerList.00b969cc.js new file mode 100644 index 0000000..b3a00f5 --- /dev/null +++ b/js/managerList.00b969cc.js @@ -0,0 +1,2 @@ +"use strict";(self["webpackChunkcommand_manager"]=self["webpackChunkcommand_manager"]||[]).push([[453],{7877:function(e,t,_){var a=_(6573);t.Z={export(e){return(0,a.a)("export","post",e)},open(e){return(0,a.a)("open","post",e)},exec(e){return(0,a.a)("exec","post",e)},stop(e){return(0,a.a)("stop","post",e)}}},6573:function(e,t,_){_.d(t,{S:function(){return l},a:function(){return n}});_(6229),_(7330),_(2062);var a={baseUrl:"http://localhost:27001/"};const n=(e,t,_)=>new Promise(((n,l)=>{fetch(`${a.baseUrl}${e}`,{method:t,headers:{"Content-Type":"application/json"},body:JSON.stringify(_)}).then((e=>e.json())).then((e=>{200===e.code&&n(e)})).catch(l)})),l=e=>{const t=document.createElement("a");t.href=URL.createObjectURL(new Blob([e])),t.download="manifest.json",t.click()}},1791:function(__unused_webpack_module,__webpack_exports__,__webpack_require__){__webpack_require__.d(__webpack_exports__,{BG:function(){return handleExportBefore},ET:function(){return handleImport},IF:function(){return manifest},hM:function(){return handleImportBefore}});var vue__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(4870),_vueuse_core__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(6367),element_plus__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(6e3),element_plus__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(7178),_api__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(7877),_utils__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(6573);const state=(0,vue__WEBPACK_IMPORTED_MODULE_2__.qj)({import:!1,export:!1}),manifest=(0,_vueuse_core__WEBPACK_IMPORTED_MODULE_3__.y$C)("manifest",{},localStorage,{mergeDefaults:!0}),handleImportBefore=e=>{state.import||(element_plus__WEBPACK_IMPORTED_MODULE_4__.T.confirm("导入配置后, 将会覆盖当前配置, 是否确认?",{title:"确认导入配置",type:"warning"}).then((()=>{state.import=!0,e.target.click()})).catch(console.log),e.stopPropagation())},handleImport=async file=>{try{const data=await file.text();manifest.value=eval("("+data+")")}catch(err){console.warn(err)}return!1},handleExportBefore=e=>{state.export?handleExport():manifest.value.path&&element_plus__WEBPACK_IMPORTED_MODULE_4__.T.confirm(`是否要导出配置到 ${manifest.value.path}`,{title:"确认导出配置",type:"warning"}).then((()=>{state.export=!0,handleExport()})).catch(console.log)},handleExport=()=>{_api__WEBPACK_IMPORTED_MODULE_0__.Z.export(manifest.value).then((()=>{element_plus__WEBPACK_IMPORTED_MODULE_5__.z8.success("导出成功")})).catch((()=>{(0,_utils__WEBPACK_IMPORTED_MODULE_1__.S)(JSON.stringify(manifest.value,null,2))}))},handleOutput=()=>{console.log(manifest.value)}},897:function(e,t,_){_.r(t),_.d(t,{default:function(){return u}});_(7658);var a=_(3396),n=_(4870),l=_(7877),o=_(1791),r=_(2436),i=_(6e3),c={__name:"list",setup(e){const t=(e,t)=>{r.Z.push({name:e,query:{uuid:t.uuid}})},_=e=>{l.Z.open(e)},c=e=>{l.Z.exec(e)},p=e=>{l.Z.stop(e)},s=(e,t)=>{i.T.confirm(`是否删除 ${e.name} 命令?`,{title:"删除确认",type:"warning"}).then((()=>{u.value.splice(t)})).catch(console.log)},u=(0,n.iH)(o.IF.value.commands);return(e,n)=>{const l=(0,a.up)("el-table-column"),o=(0,a.up)("el-button"),r=(0,a.up)("el-table");return(0,a.wg)(),(0,a.j4)(r,{data:u.value,onDblclick:n[0]||(n[0]=e=>t("managerEdit",e))},{default:(0,a.w5)((()=>[(0,a.Wm)(l,{type:"index",label:"序号",width:"60"}),(0,a.Wm)(l,{prop:"name",label:"名称",width:"120"}),(0,a.Wm)(l,{prop:"port",label:"端口",width:"120"}),(0,a.Wm)(l,{prop:"nodeVersion",label:"node版本",width:"90"}),(0,a.Wm)(l,{prop:"terminal",label:"终端",width:"64"}),(0,a.Wm)(l,{prop:"path",label:"脚本路径"}),(0,a.Wm)(l,{prop:"keywords",label:"关键词"}),(0,a.Wm)(l,{prop:"desc",label:"备注"}),(0,a.Wm)(l,{prop:"handle",label:"操作",width:"400"},{default:(0,a.w5)((({row:e,$index:n})=>[(0,a.Wm)(o,{size:"small",onClick:t=>_(e)},{default:(0,a.w5)((()=>[(0,a.Uk)("打开路径")])),_:2},1032,["onClick"]),(0,a.Wm)(o,{type:"danger",size:"small",onClick:t=>c(e)},{default:(0,a.w5)((()=>[(0,a.Uk)("执行")])),_:2},1032,["onClick"]),(0,a.Wm)(o,{type:"info",size:"small",onClick:t=>p(e)},{default:(0,a.w5)((()=>[(0,a.Uk)("停止")])),_:2},1032,["onClick"]),(0,a.Wm)(o,{type:"success",size:"small",onClick:_=>t("managerEdit",e)},{default:(0,a.w5)((()=>[(0,a.Uk)("修改")])),_:2},1032,["onClick"]),(0,a.Wm)(o,{type:"primary",size:"small",onClick:_=>t("managerCopy",e)},{default:(0,a.w5)((()=>[(0,a.Uk)("复制")])),_:2},1032,["onClick"]),(0,a.Wm)(o,{type:"warning",size:"small",onClick:t=>s(e,n)},{default:(0,a.w5)((()=>[(0,a.Uk)("删除")])),_:2},1032,["onClick"])])),_:1})])),_:1},8,["data"])}}},p=_(89);const s=(0,p.Z)(c,[["__scopeId","data-v-18731c24"]]);var u=s}}]); +//# sourceMappingURL=managerList.00b969cc.js.map \ No newline at end of file diff --git a/js/managerList.00b969cc.js.map b/js/managerList.00b969cc.js.map new file mode 100644 index 0000000..4765887 --- /dev/null +++ b/js/managerList.00b969cc.js.map @@ -0,0 +1 @@ +{"version":3,"file":"js/managerList.00b969cc.js","mappings":"2IACA,KACEA,OAAQC,GACN,OAAOC,EAAAA,EAAAA,GAAS,SAAU,OAAQD,EACpC,EACAE,IAAAA,CAAMF,GACJ,OAAOC,EAAAA,EAAAA,GAAS,OAAQ,OAAQD,EAClC,EACAG,IAAAA,CAAMH,GACJ,OAAOC,EAAAA,EAAAA,GAAS,OAAQ,OAAQD,EAClC,EACAI,IAAAA,CAAMJ,GACJ,OAAOC,EAAAA,EAAAA,GAAS,OAAQ,OAAQD,EAClC,E,0GCbF,GACEK,QAAS,2BCCJ,MAAMJ,EAAWA,CAACK,EAAKC,EAAQP,IAC7B,IAAIQ,SAAQ,CAACC,EAASC,KAC3BC,MAAO,GAAEC,EAAOP,UAAUC,IAAO,CAC/BC,SACAM,QAAS,CACP,eAAgB,oBAElBC,KAAMC,KAAKC,UAAUhB,KAEpBiB,MAAMC,GAAQA,EAAIC,SAClBF,MAAMC,IACY,MAAbA,EAAIE,MACNX,EAAQS,EACV,IAEDG,MAAMX,EAAO,IAIPY,EAAgBC,IAC3B,MAAMC,EAAOC,SAASC,cAAc,KACpCF,EAAKG,KAAOC,IAAIC,gBAAgB,IAAIC,KAAK,CAACP,KAC1CC,EAAKO,SAAW,gBAChBP,EAAKQ,OAAO,C,spBClBd,MAAMC,OAAQC,EAAAA,iCAAAA,IAAS,CACrBC,QAAQ,EACRpC,QAAQ,IAGGqC,UAAWC,EAAAA,0CAAAA,KACtB,WACA,CAAC,EACDC,aACA,CAAEC,eAAe,IAGNC,mBAAsBC,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AMwB,OAAOF,EAAO,IAC7BvD,MAAM0B,QAAQC,IAAI,EAEjB6B,GAAYE,EAAAA,EAAAA,IAAI3C,EAAAA,GAASkB,MAAM0B,U,q7CChDrC,MAAMC,GAA2B,OAAgB,EAAQ,CAAC,CAAC,YAAY,qBAEvE,O","sources":["webpack://command-manager/./src/api/index.js","webpack://command-manager/./src/config/index.js","webpack://command-manager/./src/utils/index.js","webpack://command-manager/./src/views/manager/common.js","webpack://command-manager/./src/views/manager/list.vue","webpack://command-manager/./src/views/manager/list.vue?7611"],"sourcesContent":["import { fetchApi } from '@/utils'\r\nexport default {\r\n export (data) {\r\n return fetchApi('export', 'post', data)\r\n },\r\n open (data) {\r\n return fetchApi('open', 'post', data)\r\n },\r\n exec (data) {\r\n return fetchApi('exec', 'post', data)\r\n },\r\n stop (data) {\r\n return fetchApi('stop', 'post', data)\r\n }\r\n}\r\n","export default {\r\n baseUrl: 'http://localhost:27001/'\r\n}\r\n","import config from '@/config'\r\n\r\nexport const fetchApi = (url, method, data) => {\r\n return new Promise((resolve, reject) => {\r\n fetch(`${config.baseUrl}${url}`, {\r\n method,\r\n headers: {\r\n 'Content-Type': 'application/json'\r\n },\r\n body: JSON.stringify(data)\r\n })\r\n .then((res) => res.json())\r\n .then((res) => {\r\n if (res.code === 200) {\r\n resolve(res)\r\n }\r\n })\r\n .catch(reject)\r\n })\r\n}\r\n\r\nexport const downloadFile = (content) => {\r\n const link = document.createElement('a')\r\n link.href = URL.createObjectURL(new Blob([content]))\r\n link.download = 'manifest.json'\r\n link.click()\r\n}\r\n","import { reactive } from 'vue'\r\nimport { useStorage } from '@vueuse/core'\r\nimport { ElMessage, ElMessageBox } from 'element-plus'\r\n\r\nimport api from '@/api'\r\nimport { downloadFile } from '@/utils'\r\n\r\nconst state = reactive({\r\n import: false,\r\n export: false\r\n})\r\n\r\nexport const manifest = useStorage(\r\n 'manifest',\r\n {},\r\n localStorage,\r\n { mergeDefaults: true }\r\n)\r\n\r\nexport const handleImportBefore = (event) => {\r\n if (!state.import) {\r\n ElMessageBox.confirm('导入配置后, 将会覆盖当前配置, 是否确认?', {\r\n title: '确认导入配置',\r\n type: 'warning'\r\n }).then(() => {\r\n state.import = true\r\n event.target.click()\r\n }).catch(console.log)\r\n event.stopPropagation()\r\n }\r\n}\r\nexport const handleImport = async (file) => {\r\n try {\r\n const data = await file.text()\r\n // eslint-disable-next-line\r\n manifest.value = eval('(' + data + ')')\r\n } catch (err) {\r\n console.warn(err)\r\n }\r\n return false\r\n}\r\n\r\nexport const handleExportBefore = (event) => {\r\n if (!state.export) {\r\n manifest.value.path && ElMessageBox.confirm(`是否要导出配置到 ${manifest.value.path}`, {\r\n title: '确认导出配置',\r\n type: 'warning'\r\n }).then(() => {\r\n state.export = true\r\n handleExport()\r\n }).catch(console.log)\r\n } else {\r\n handleExport()\r\n }\r\n}\r\nexport const handleExport = () => {\r\n api.export(manifest.value).then(() => {\r\n ElMessage.success('导出成功')\r\n })\r\n .catch(() => {\r\n downloadFile(JSON.stringify(manifest.value, null, 2))\r\n })\r\n}\r\n\r\nexport const handleOutput = () => {\r\n console.log(manifest.value)\r\n}\r\n","\r\n\r\n\r\n\r\n","import script from \"./list.vue?vue&type=script&setup=true&lang=js\"\nexport * from \"./list.vue?vue&type=script&setup=true&lang=js\"\n\nimport \"./list.vue?vue&type=style&index=0&id=18731c24&scoped=true&lang=css\"\n\nimport exportComponent from \"../../../node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['__scopeId',\"data-v-18731c24\"]])\n\nexport default __exports__"],"names":["export","data","fetchApi","open","exec","stop","baseUrl","url","method","Promise","resolve","reject","fetch","config","headers","body","JSON","stringify","then","res","json","code","catch","downloadFile","content","link","document","createElement","href","URL","createObjectURL","Blob","download","click","state","reactive","import","manifest","useStorage","localStorage","mergeDefaults","handleImportBefore","event","ElMessageBox","confirm","title","type","target","console","log","stopPropagation","handleImport","async","file","text","value","eval","err","warn","handleExportBefore","handleExport","path","api","ElMessage","success","handleOutput","handleRow","row","router","push","name","query","uuid","handleOpen","handleExec","handleStop","handleDelete","$index","tableData","splice","ref","commands","__exports__"],"sourceRoot":""} \ No newline at end of file diff --git a/js/managerList.dee6e447.js b/js/managerList.dee6e447.js deleted file mode 100644 index d3f1d1d..0000000 --- a/js/managerList.dee6e447.js +++ /dev/null @@ -1,2 +0,0 @@ -"use strict";(self["webpackChunkcommand_manager"]=self["webpackChunkcommand_manager"]||[]).push([[453],{7877:function(e,_,t){var a=t(6573);_.Z={export(e){return(0,a.a)("export","post",e)},open(e){return(0,a.a)("open","post",e)}}},6573:function(e,_,t){t.d(_,{S:function(){return r},a:function(){return n}});t(6229),t(7330),t(2062);var a={baseUrl:"http://localhost:27001/"};const n=(e,_,t)=>new Promise(((n,r)=>{fetch(`${a.baseUrl}${e}`,{method:_,headers:{"Content-Type":"application/json"},body:JSON.stringify(t)}).then((e=>e.json())).then((e=>{200===e.code&&n(e)})).catch(r)})),r=e=>{const _=document.createElement("a");_.href=URL.createObjectURL(new Blob([e])),_.download="manifest.json",_.click()}},1791:function(__unused_webpack_module,__webpack_exports__,__webpack_require__){__webpack_require__.d(__webpack_exports__,{BG:function(){return handleExportBefore},ET:function(){return handleImport},IF:function(){return manifest},hM:function(){return handleImportBefore}});var vue__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(4870),_vueuse_core__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(6367),element_plus__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(6e3),element_plus__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(7178),_api__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(7877),_utils__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(6573);const state=(0,vue__WEBPACK_IMPORTED_MODULE_2__.qj)({import:!1,export:!1}),manifest=(0,_vueuse_core__WEBPACK_IMPORTED_MODULE_3__.y$C)("manifest",{},localStorage,{mergeDefaults:!0}),handleImportBefore=e=>{state.import||(element_plus__WEBPACK_IMPORTED_MODULE_4__.T.confirm("导入配置后, 将会覆盖当前配置, 是否确认?",{title:"确认导入配置",type:"warning"}).then((()=>{state.import=!0,e.target.click()})).catch(console.log),e.stopPropagation())},handleImport=async file=>{try{const data=await file.text();manifest.value=eval("("+data+")")}catch(err){console.warn(err)}return!1},handleExportBefore=e=>{state.export?handleExport():manifest.value.path&&element_plus__WEBPACK_IMPORTED_MODULE_4__.T.confirm(`是否要导出配置到 ${manifest.value.path}`,{title:"确认导出配置",type:"warning"}).then((()=>{state.export=!0,handleExport()})).catch(console.log)},handleExport=()=>{_api__WEBPACK_IMPORTED_MODULE_0__.Z.export(manifest.value).then((()=>{element_plus__WEBPACK_IMPORTED_MODULE_5__.z8.success("导出成功")})).catch((()=>{(0,_utils__WEBPACK_IMPORTED_MODULE_1__.S)(JSON.stringify(manifest.value,null,2))}))},handleOutput=()=>{console.log(manifest.value)}},1587:function(e,_,t){t.r(_),t.d(_,{default:function(){return c}});t(7658);var a=t(3396),n=t(4870),r=t(7877),o=t(1791),l=t(2436),p={__name:"list",setup(e){const _=(e,_)=>{l.Z.push({name:e,query:{uuid:_.uuid}})},t=e=>{r.Z.open(e)},p=(0,n.iH)(o.IF.value.commands);return(e,n)=>{const r=(0,a.up)("el-table-column"),o=(0,a.up)("el-button"),l=(0,a.up)("el-table");return(0,a.wg)(),(0,a.j4)(l,{data:p.value,onDblclick:n[0]||(n[0]=e=>_("managerEdit",e))},{default:(0,a.w5)((()=>[(0,a.Wm)(r,{type:"index",label:"序号",width:"60"}),(0,a.Wm)(r,{prop:"name",label:"名称",width:"120"}),(0,a.Wm)(r,{prop:"port",label:"端口",width:"120"}),(0,a.Wm)(r,{prop:"nodeVersion",label:"node版本",width:"90"}),(0,a.Wm)(r,{prop:"terminal",label:"终端",width:"64"}),(0,a.Wm)(r,{prop:"path",label:"脚本路径"}),(0,a.Wm)(r,{prop:"keywords",label:"关键词"}),(0,a.Wm)(r,{prop:"desc",label:"备注"}),(0,a.Wm)(r,{prop:"handle",label:"操作",width:"240"},{default:(0,a.w5)((({row:e})=>[(0,a.Wm)(o,{type:"info",size:"small",onClick:_=>t(e)},{default:(0,a.w5)((()=>[(0,a.Uk)("打开路径")])),_:2},1032,["onClick"]),(0,a.Wm)(o,{type:"warning",size:"small",onClick:t=>_("managerEdit",e)},{default:(0,a.w5)((()=>[(0,a.Uk)("修改")])),_:2},1032,["onClick"]),(0,a.Wm)(o,{type:"primary",size:"small",onClick:t=>_("managerCopy",e)},{default:(0,a.w5)((()=>[(0,a.Uk)("复制")])),_:2},1032,["onClick"])])),_:1})])),_:1},8,["data"])}}},i=t(89);const u=(0,i.Z)(p,[["__scopeId","data-v-b365ad68"]]);var c=u}}]); -//# sourceMappingURL=managerList.dee6e447.js.map \ No newline at end of file diff --git a/js/managerList.dee6e447.js.map b/js/managerList.dee6e447.js.map deleted file mode 100644 index d799a0b..0000000 --- a/js/managerList.dee6e447.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"js/managerList.dee6e447.js","mappings":"2IACA,KACEA,OAAQC,GACN,OAAOC,EAAAA,EAAAA,GAAS,SAAU,OAAQD,EACpC,EACAE,IAAAA,CAAMF,GACJ,OAAOC,EAAAA,EAAAA,GAAS,OAAQ,OAAQD,EAClC,E,0GCPF,GACEG,QAAS,2BCCJ,MAAMF,EAAWA,CAACG,EAAKC,EAAQL,IAC7B,IAAIM,SAAQ,CAACC,EAASC,KAC3BC,MAAO,GAAEC,EAAOP,UAAUC,IAAO,CAC/BC,SACAM,QAAS,CACP,eAAgB,oBAElBC,KAAMC,KAAKC,UAAUd,KAEpBe,MAAMC,GAAQA,EAAIC,SAClBF,MAAMC,IACY,MAAbA,EAAIE,MACNX,EAAQS,EACV,IAEDG,MAAMX,EAAO,IAIPY,EAAgBC,IAC3B,MAAMC,EAAOC,SAASC,cAAc,KACpCF,EAAKG,KAAOC,IAAIC,gBAAgB,IAAIC,KAAK,CAACP,KAC1CC,EAAKO,SAAW,gBAChBP,EAAK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BrC,MAAMC,GAA2B,OAAgB,EAAQ,CAAC,CAAC,YAAY,qBAEvE,O","sources":["webpack://command-manager/./src/api/index.js","webpack://command-manager/./src/config/index.js","webpack://command-manager/./src/utils/index.js","webpack://command-manager/./src/views/manager/common.js","webpack://command-manager/./src/views/manager/list.vue","webpack://command-manager/./src/views/manager/list.vue?7611"],"sourcesContent":["import { fetchApi } from '@/utils'\r\nexport default {\r\n export (data) {\r\n return fetchApi('export', 'post', data)\r\n },\r\n open (data) {\r\n return fetchApi('open', 'post', data)\r\n }\r\n}\r\n","export default {\r\n baseUrl: 'http://localhost:27001/'\r\n}\r\n","import config from '@/config'\r\n\r\nexport const fetchApi = (url, method, data) => {\r\n return new Promise((resolve, reject) => {\r\n fetch(`${config.baseUrl}${url}`, {\r\n method,\r\n headers: {\r\n 'Content-Type': 'application/json'\r\n },\r\n body: JSON.stringify(data)\r\n })\r\n .then((res) => res.json())\r\n .then((res) => {\r\n if (res.code === 200) {\r\n resolve(res)\r\n }\r\n })\r\n .catch(reject)\r\n })\r\n}\r\n\r\nexport const downloadFile = (content) => {\r\n const link = document.createElement('a')\r\n link.href = URL.createObjectURL(new Blob([content]))\r\n link.download = 'manifest.json'\r\n link.click()\r\n}\r\n","import { reactive } from 'vue'\r\nimport { useStorage } from '@vueuse/core'\r\nimport { ElMessage, ElMessageBox } from 'element-plus'\r\n\r\nimport api from '@/api'\r\nimport { downloadFile } from '@/utils'\r\n\r\nconst state = reactive({\r\n import: false,\r\n export: false\r\n})\r\n\r\nexport const manifest = useStorage(\r\n 'manifest',\r\n {},\r\n localStorage,\r\n { mergeDefaults: true }\r\n)\r\n\r\nexport const handleImportBefore = (event) => {\r\n if (!state.import) {\r\n ElMessageBox.confirm('导入配置后, 将会覆盖当前配置, 是否确认?', {\r\n title: '确认导入配置',\r\n type: 'warning'\r\n }).then(() => {\r\n state.import = true\r\n event.target.click()\r\n }).catch(console.log)\r\n event.stopPropagation()\r\n }\r\n}\r\nexport const handleImport = async (file) => {\r\n try {\r\n const data = await file.text()\r\n // eslint-disable-next-line\r\n manifest.value = eval('(' + data + ')')\r\n } catch (err) {\r\n console.warn(err)\r\n }\r\n return false\r\n}\r\n\r\nexport const handleExportBefore = (event) => {\r\n if (!state.export) {\r\n manifest.value.path && ElMessageBox.confirm(`是否要导出配置到 ${manifest.value.path}`, {\r\n title: '确认导出配置',\r\n type: 'warning'\r\n }).then(() => {\r\n state.export = true\r\n handleExport()\r\n }).catch(console.log)\r\n } else {\r\n handleExport()\r\n }\r\n}\r\nexport const handleExport = () => {\r\n api.export(manifest.value).then(() => {\r\n ElMessage.success('导出成功')\r\n })\r\n .catch(() => {\r\n downloadFile(JSON.stringify(manifest.value, null, 2))\r\n })\r\n}\r\n\r\nexport const handleOutput = () => {\r\n console.log(manifest.value)\r\n}\r\n","\r\n\r\n\r\n\r\n","import script from \"./list.vue?vue&type=script&setup=true&lang=js\"\nexport * from \"./list.vue?vue&type=script&setup=true&lang=js\"\n\nimport \"./list.vue?vue&type=style&index=0&id=b365ad68&scoped=true&lang=css\"\n\nimport exportComponent from \"../../../node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['__scopeId',\"data-v-b365ad68\"]])\n\nexport default __exports__"],"names":["export","data","fetchApi","open","baseUrl","url","method","Promise","resolve","reject","fetch","config","headers","body","JSON","stringify","then","res","json","code","catch","downloadFile","content","link","document","createElement","href","URL","createObjectURL","Blob","download","click","state","reactive","import","manifest","useStorage","localStorage","mergeDefaults","handleImportBefore","event","ElMessageBox","confirm","title","type","target","console","log","stopPropagation","handleImport","async","file","text","value","eval","err","warn","handleExportBefore","handleExport","path","api","ElMessage","success","handleOutput","handleRow","row","router","push","name","query","uuid","handleOpen","tableData","ref","commands","__exports__"],"sourceRoot":""} \ No newline at end of file diff --git a/js/managerManifest.36caeb39.js b/js/managerManifest.36caeb39.js deleted file mode 100644 index 1f58480..0000000 --- a/js/managerManifest.36caeb39.js +++ /dev/null @@ -1,2 +0,0 @@ -"use strict";(self["webpackChunkcommand_manager"]=self["webpackChunkcommand_manager"]||[]).push([[395],{7877:function(e,l,a){var t=a(6573);l.Z={export(e){return(0,t.a)("export","post",e)},open(e){return(0,t.a)("open","post",e)}}},6573:function(e,l,a){a.d(l,{S:function(){return n},a:function(){return _}});a(6229),a(7330),a(2062);var t={baseUrl:"http://localhost:27001/"};const _=(e,l,a)=>new Promise(((_,n)=>{fetch(`${t.baseUrl}${e}`,{method:l,headers:{"Content-Type":"application/json"},body:JSON.stringify(a)}).then((e=>e.json())).then((e=>{200===e.code&&_(e)})).catch(n)})),n=e=>{const l=document.createElement("a");l.href=URL.createObjectURL(new Blob([e])),l.download="manifest.json",l.click()}},1791:function(__unused_webpack_module,__webpack_exports__,__webpack_require__){__webpack_require__.d(__webpack_exports__,{BG:function(){return handleExportBefore},ET:function(){return handleImport},IF:function(){return manifest},hM:function(){return handleImportBefore}});var vue__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(4870),_vueuse_core__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(6367),element_plus__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(6e3),element_plus__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(7178),_api__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(7877),_utils__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(6573);const state=(0,vue__WEBPACK_IMPORTED_MODULE_2__.qj)({import:!1,export:!1}),manifest=(0,_vueuse_core__WEBPACK_IMPORTED_MODULE_3__.y$C)("manifest",{},localStorage,{mergeDefaults:!0}),handleImportBefore=e=>{state.import||(element_plus__WEBPACK_IMPORTED_MODULE_4__.T.confirm("导入配置后, 将会覆盖当前配置, 是否确认?",{title:"确认导入配置",type:"warning"}).then((()=>{state.import=!0,e.target.click()})).catch(console.log),e.stopPropagation())},handleImport=async file=>{try{const data=await file.text();manifest.value=eval("("+data+")")}catch(err){console.warn(err)}return!1},handleExportBefore=e=>{state.export?handleExport():manifest.value.path&&element_plus__WEBPACK_IMPORTED_MODULE_4__.T.confirm(`是否要导出配置到 ${manifest.value.path}`,{title:"确认导出配置",type:"warning"}).then((()=>{state.export=!0,handleExport()})).catch(console.log)},handleExport=()=>{_api__WEBPACK_IMPORTED_MODULE_0__.Z.export(manifest.value).then((()=>{element_plus__WEBPACK_IMPORTED_MODULE_5__.z8.success("导出成功")})).catch((()=>{(0,_utils__WEBPACK_IMPORTED_MODULE_1__.S)(JSON.stringify(manifest.value,null,2))}))},handleOutput=()=>{console.log(manifest.value)}},4211:function(e,l,a){a.r(l),a.d(l,{default:function(){return f}});var t=a(3396),_=a(4870),n=a(7178),o=a(6e3),u=a(1791);const r=e=>((0,t.dD)("data-v-4240b540"),e=e(),(0,t.Cn)(),e),p=r((()=>(0,t._)("span",{style:{"padding-right":"50px"}},null,-1))),i=r((()=>(0,t._)("span",{class:"text--white"}," 导入配置 ",-1))),c={class:"dialog-footer"};var d={__name:"manifest",setup(e){const l=(0,_.iH)("String"),a=(0,_.iH)(["String","Number","Boolean"]),r=(0,_.iH)(""),d=(0,_.iH)(""),s=(0,_.iH)(!1),m=(0,_.qj)({}),f=(0,_.qj)({}),w=(0,_.qj)({}),h=()=>{s.value=!0},E=()=>{["commands"].includes(r.value)?n.z8.error(`不能添加属性${r.value}`):r.value?(m[r.value]={Boolean:Boolean,String:String,Number:Number}[l.value](d.value),r.value=d.value="",s.value=!1,n.z8.success("添加成功")):n.z8.error("不能添加空属性")},v=()=>{u.IF.value=Object.assign({},u.IF.value,f)},b=e=>{"path"!==e.prop?o.T.confirm(`是否删除属性${e.prop}`).then((()=>{delete w[e.prop],delete m[e.prop]})).catch(console.log):n.z8.error("不能删除path属性")};return(0,t.YP)((()=>[u.IF.value,r.value]),(()=>{const e=Object.assign({},m,u.IF.value);Object.keys(e).forEach((l=>{if(!(e[l]instanceof Object)){const a=e[l];f[l]=a,w[l]={prop:l,value:a,type:typeof a}}})),e.path=e.path||""}),{immediate:!0}),(e,n)=>{const o=(0,t.up)("Minus"),m=(0,t.up)("el-icon"),k=(0,t.up)("el-button"),W=(0,t.up)("el-input"),g=(0,t.up)("el-form-item"),O=(0,t.up)("el-upload"),U=(0,t.up)("el-form"),D=(0,t.up)("el-main"),M=(0,t.up)("el-aside"),P=(0,t.up)("el-option"),C=(0,t.up)("el-select"),y=(0,t.up)("el-dialog"),B=(0,t.up)("el-container");return(0,t.wg)(),(0,t.j4)(B,null,{default:(0,t.w5)((()=>[(0,t.Wm)(D,{style:{"--el-main-padding":"0px 20px"}},{default:(0,t.w5)((()=>[(0,t.Wm)(U,{model:f,"label-width":"120px"},{default:(0,t.w5)((()=>[((0,t.wg)(!0),(0,t.iD)(t.HY,null,(0,t.Ko)(w,(e=>((0,t.wg)(),(0,t.j4)(g,{key:e.prop,label:e.prop},{default:(0,t.w5)((()=>[(0,t.Wm)(W,{modelValue:f[e.prop],"onUpdate:modelValue":l=>f[e.prop]=l},{append:(0,t.w5)((()=>[(0,t.Wm)(k,{onClick:l=>b(e),icon:""},{default:(0,t.w5)((()=>[(0,t.Wm)(m,null,{default:(0,t.w5)((()=>[(0,t.Wm)(o)])),_:1})])),_:2},1032,["onClick"])])),_:2},1032,["modelValue","onUpdate:modelValue"])])),_:2},1032,["label"])))),128)),(0,t.Wm)(g,null,{default:(0,t.w5)((()=>[(0,t.Wm)(k,{type:"success",onClick:h},{default:(0,t.w5)((()=>[(0,t.Uk)("新增配置")])),_:1}),(0,t.Wm)(k,{type:"primary",onClick:v},{default:(0,t.w5)((()=>[(0,t.Uk)("暂存配置")])),_:1}),p,(0,t.Wm)(O,{class:"el-button el-button--text","before-upload":(0,_.SU)(u.ET),"show-file-list":!1},{trigger:(0,t.w5)((()=>[(0,t.Wm)(k,{type:"warning",onClick:(0,_.SU)(u.hM)},{default:(0,t.w5)((()=>[i])),_:1},8,["onClick"])])),_:1},8,["before-upload"]),(0,t.Wm)(k,{type:"danger",onClick:(0,_.SU)(u.BG)},{default:(0,t.w5)((()=>[(0,t.Uk)("导出配置")])),_:1},8,["onClick"])])),_:1})])),_:1},8,["model"])])),_:1}),(0,t.Wm)(M,{width:"300px"}),(0,t.Wm)(y,{width:"450px",modelValue:s.value,"onUpdate:modelValue":n[4]||(n[4]=e=>s.value=e)},{header:(0,t.w5)((()=>[(0,t.Uk)("新增配置")])),footer:(0,t.w5)((()=>[(0,t._)("span",c,[(0,t.Wm)(k,{onClick:n[3]||(n[3]=e=>s.value=!1)},{default:(0,t.w5)((()=>[(0,t.Uk)("取 消")])),_:1}),(0,t.Wm)(k,{type:"primary",onClick:E},{default:(0,t.w5)((()=>[(0,t.Uk)("确 定")])),_:1})])])),default:(0,t.w5)((()=>[(0,t.Wm)(U,{model:w},{default:(0,t.w5)((()=>[(0,t.Wm)(g,null,{default:(0,t.w5)((()=>[(0,t.Wm)(W,{placeholder:"属性名",modelValue:r.value,"onUpdate:modelValue":n[0]||(n[0]=e=>r.value=e)},null,8,["modelValue"])])),_:1}),(0,t.Wm)(g,null,{default:(0,t.w5)((()=>[(0,t.Wm)(W,{placeholder:"属性值",modelValue:d.value,"onUpdate:modelValue":n[1]||(n[1]=e=>d.value=e)},null,8,["modelValue"])])),_:1}),(0,t.Wm)(g,null,{default:(0,t.w5)((()=>[(0,t.Wm)(C,{placeholder:"类型",modelValue:l.value,"onUpdate:modelValue":n[2]||(n[2]=e=>l.value=e)},{default:(0,t.w5)((()=>[((0,t.wg)(!0),(0,t.iD)(t.HY,null,(0,t.Ko)(a.value,(e=>((0,t.wg)(),(0,t.j4)(P,{key:e,label:e,value:e},null,8,["label","value"])))),128))])),_:1},8,["modelValue"])])),_:1})])),_:1},8,["model"])])),_:1},8,["modelValue"])])),_:1})}}},s=a(89);const m=(0,s.Z)(d,[["__scopeId","data-v-4240b540"]]);var f=m}}]); -//# sourceMappingURL=managerManifest.36caeb39.js.map \ No newline at end of file diff --git a/js/managerManifest.36caeb39.js.map b/js/managerManifest.36caeb39.js.map deleted file mode 100644 index df3e744..0000000 --- a/js/managerManifest.36caeb39.js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AdA,EAAKC,KAIT1C,EAAAA,EAAaC,QAAS,SAAQwC,EAAKC,QAAQnE,MAAK,YACvCsD,EAASY,EAAKC,aACdf,EAAUc,EAAKC,KAAK,IAC1B/D,MAAM0B,QAAQC,KANfc,EAAAA,GAAUa,MAAM,aAMG,E,OAGvBU,EAAAA,EAAAA,KAAM,IAAM,CAACjD,EAAAA,GAASkB,MAAOa,EAASb,SAAQ,KAC5C,MAAMpD,EAAO8E,OAAOC,OAAO,CAAC,EAAGZ,EAAWjC,EAAAA,GAASkB,OACnD0B,OAAOM,KAAKpF,GAAMqF,SAAQC,IACxB,KAAMtF,EAAKsF,aAAgBR,QAAS,CAClC,MAAM1B,EAAQpD,EAAKsF,GACnBlB,EAAKkB,GAAOlC,EACZiB,EAASiB,GAAO,CAAEJ,KAAMI,EAAKlC,QAAOT,YAAaS,EACnD,KAEFpD,EAAK0D,KAAO1D,EAAK0D,MAAQ,EAAE,GAC1B,CACD6B,WAAW,I,suFC1Gb,MAAMC,GAA2B,OAAgB,EAAQ,CAAC,CAAC,YAAY,qBAEvE,O","sources":["webpack://command-manager/./src/api/index.js","webpack://command-manager/./src/config/index.js","webpack://command-manager/./src/utils/index.js","webpack://command-manager/./src/views/manager/common.js","webpack://command-manager/./src/views/manager/manifest.vue","webpack://command-manager/./src/views/manager/manifest.vue?0eac"],"sourcesContent":["import { fetchApi } from '@/utils'\r\nexport default {\r\n export (data) {\r\n return fetchApi('export', 'post', data)\r\n },\r\n open (data) {\r\n return fetchApi('open', 'post', data)\r\n }\r\n}\r\n","export default {\r\n baseUrl: 'http://localhost:27001/'\r\n}\r\n","import config from '@/config'\r\n\r\nexport const fetchApi = (url, method, data) => {\r\n return new Promise((resolve, reject) => {\r\n fetch(`${config.baseUrl}${url}`, {\r\n method,\r\n headers: {\r\n 'Content-Type': 'application/json'\r\n },\r\n body: JSON.stringify(data)\r\n })\r\n .then((res) => res.json())\r\n .then((res) => {\r\n if (res.code === 200) {\r\n resolve(res)\r\n }\r\n })\r\n .catch(reject)\r\n })\r\n}\r\n\r\nexport const downloadFile = (content) => {\r\n const link = document.createElement('a')\r\n link.href = URL.createObjectURL(new Blob([content]))\r\n link.download = 'manifest.json'\r\n link.click()\r\n}\r\n","import { reactive } from 'vue'\r\nimport { useStorage } from '@vueuse/core'\r\nimport { ElMessage, ElMessageBox } from 'element-plus'\r\n\r\nimport api from '@/api'\r\nimport { downloadFile } from '@/utils'\r\n\r\nconst state = reactive({\r\n import: false,\r\n export: false\r\n})\r\n\r\nexport const manifest = useStorage(\r\n 'manifest',\r\n {},\r\n localStorage,\r\n { mergeDefaults: true }\r\n)\r\n\r\nexport const handleImportBefore = (event) => {\r\n if (!state.import) {\r\n ElMessageBox.confirm('导入配置后, 将会覆盖当前配置, 是否确认?', {\r\n title: '确认导入配置',\r\n type: 'warning'\r\n }).then(() => {\r\n state.import = true\r\n event.target.click()\r\n }).catch(console.log)\r\n event.stopPropagation()\r\n }\r\n}\r\nexport const handleImport = async (file) => {\r\n try {\r\n const data = await file.text()\r\n // eslint-disable-next-line\r\n manifest.value = eval('(' + data + ')')\r\n } catch (err) {\r\n console.warn(err)\r\n }\r\n return false\r\n}\r\n\r\nexport const handleExportBefore = (event) => {\r\n if (!state.export) {\r\n manifest.value.path && ElMessageBox.confirm(`是否要导出配置到 ${manifest.value.path}`, {\r\n title: '确认导出配置',\r\n type: 'warning'\r\n }).then(() => {\r\n state.export = true\r\n handleExport()\r\n }).catch(console.log)\r\n } else {\r\n handleExport()\r\n }\r\n}\r\nexport const handleExport = () => {\r\n api.export(manifest.value).then(() => {\r\n ElMessage.success('导出成功')\r\n })\r\n .catch(() => {\r\n downloadFile(JSON.stringify(manifest.value, null, 2))\r\n })\r\n}\r\n\r\nexport const handleOutput = () => {\r\n console.log(manifest.value)\r\n}\r\n","\r\n\r\n\r\n\r\n\r\n","import script from \"./manifest.vue?vue&type=script&setup=true&lang=js\"\nexport * from \"./manifest.vue?vue&type=script&setup=true&lang=js\"\n\nimport \"./manifest.vue?vue&type=style&index=0&id=4240b540&lang=scss&scoped=true\"\n\nimport exportComponent from \"../../../node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['__scopeId',\"data-v-4240b540\"]])\n\nexport default __exports__"],"names":["export","data","fetchApi","open","baseUrl","url","method","Promise","resolve","reject","fetch","config","headers","body","JSON","stringify","then","res","json","code","catch","downloadFile","content","link","document","createElement","href","URL","createObjectURL","Blob","download","click","state","reactive","import","manifest","useStorage","localStorage","mergeDefaults","handleImportBefore","event","ElMessageBox","confirm","title","type","target","console","log","stopPropagation","handleImport","async","file","text","value","eval","err","warn","handleExportBefore","handleExport","path","api","ElMessage","success","handleOutput","ref","types","property","addDialogVisible","propertys","form","baseForm","handleAddDialog","handleAdd","includes","error","Boolean","String","Number","handleSave","Object","assign","handleRemove","item","prop","watch","keys","forEach","key","immediate","__exports__"],"sourceRoot":""} \ No newline at end of file diff --git a/js/managerManifest.4c4791d6.js b/js/managerManifest.4c4791d6.js new file mode 100644 index 0000000..509fddb --- /dev/null +++ b/js/managerManifest.4c4791d6.js @@ -0,0 +1,2 @@ +"use strict";(self["webpackChunkcommand_manager"]=self["webpackChunkcommand_manager"]||[]).push([[395],{7877:function(e,l,a){var t=a(6573);l.Z={export(e){return(0,t.a)("export","post",e)},open(e){return(0,t.a)("open","post",e)},exec(e){return(0,t.a)("exec","post",e)},stop(e){return(0,t.a)("stop","post",e)}}},6573:function(e,l,a){a.d(l,{S:function(){return o},a:function(){return _}});a(6229),a(7330),a(2062);var t={baseUrl:"http://localhost:27001/"};const _=(e,l,a)=>new Promise(((_,o)=>{fetch(`${t.baseUrl}${e}`,{method:l,headers:{"Content-Type":"application/json"},body:JSON.stringify(a)}).then((e=>e.json())).then((e=>{200===e.code&&_(e)})).catch(o)})),o=e=>{const l=document.createElement("a");l.href=URL.createObjectURL(new Blob([e])),l.download="manifest.json",l.click()}},1791:function(__unused_webpack_module,__webpack_exports__,__webpack_require__){__webpack_require__.d(__webpack_exports__,{BG:function(){return handleExportBefore},ET:function(){return handleImport},IF:function(){return manifest},hM:function(){return handleImportBefore}});var vue__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(4870),_vueuse_core__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(6367),element_plus__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(6e3),element_plus__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(7178),_api__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(7877),_utils__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(6573);const state=(0,vue__WEBPACK_IMPORTED_MODULE_2__.qj)({import:!1,export:!1}),manifest=(0,_vueuse_core__WEBPACK_IMPORTED_MODULE_3__.y$C)("manifest",{},localStorage,{mergeDefaults:!0}),handleImportBefore=e=>{state.import||(element_plus__WEBPACK_IMPORTED_MODULE_4__.T.confirm("导入配置后, 将会覆盖当前配置, 是否确认?",{title:"确认导入配置",type:"warning"}).then((()=>{state.import=!0,e.target.click()})).catch(console.log),e.stopPropagation())},handleImport=async file=>{try{const data=await file.text();manifest.value=eval("("+data+")")}catch(err){console.warn(err)}return!1},handleExportBefore=e=>{state.export?handleExport():manifest.value.path&&element_plus__WEBPACK_IMPORTED_MODULE_4__.T.confirm(`是否要导出配置到 ${manifest.value.path}`,{title:"确认导出配置",type:"warning"}).then((()=>{state.export=!0,handleExport()})).catch(console.log)},handleExport=()=>{_api__WEBPACK_IMPORTED_MODULE_0__.Z.export(manifest.value).then((()=>{element_plus__WEBPACK_IMPORTED_MODULE_5__.z8.success("导出成功")})).catch((()=>{(0,_utils__WEBPACK_IMPORTED_MODULE_1__.S)(JSON.stringify(manifest.value,null,2))}))},handleOutput=()=>{console.log(manifest.value)}},4211:function(e,l,a){a.r(l),a.d(l,{default:function(){return f}});var t=a(3396),_=a(4870),o=a(7178),n=a(6e3),u=a(1791);const r=e=>((0,t.dD)("data-v-4240b540"),e=e(),(0,t.Cn)(),e),p=r((()=>(0,t._)("span",{style:{"padding-right":"50px"}},null,-1))),i=r((()=>(0,t._)("span",{class:"text--white"}," 导入配置 ",-1))),c={class:"dialog-footer"};var s={__name:"manifest",setup(e){const l=(0,_.iH)("String"),a=(0,_.iH)(["String","Number","Boolean"]),r=(0,_.iH)(""),s=(0,_.iH)(""),d=(0,_.iH)(!1),m=(0,_.qj)({}),f=(0,_.qj)({}),w=(0,_.qj)({}),h=()=>{d.value=!0},E=()=>{["commands"].includes(r.value)?o.z8.error(`不能添加属性${r.value}`):r.value?(m[r.value]={Boolean:Boolean,String:String,Number:Number}[l.value](s.value),r.value=s.value="",d.value=!1,o.z8.success("添加成功")):o.z8.error("不能添加空属性")},v=()=>{u.IF.value=Object.assign({},u.IF.value,f)},b=e=>{"path"!==e.prop?n.T.confirm(`是否删除属性${e.prop}`).then((()=>{delete w[e.prop],delete m[e.prop]})).catch(console.log):o.z8.error("不能删除path属性")};return(0,t.YP)((()=>[u.IF.value,r.value]),(()=>{const e=Object.assign({},m,u.IF.value);Object.keys(e).forEach((l=>{if(!(e[l]instanceof Object)){const a=e[l];f[l]=a,w[l]={prop:l,value:a,type:typeof a}}})),e.path=e.path||""}),{immediate:!0}),(e,o)=>{const n=(0,t.up)("Minus"),m=(0,t.up)("el-icon"),k=(0,t.up)("el-button"),W=(0,t.up)("el-input"),g=(0,t.up)("el-form-item"),O=(0,t.up)("el-upload"),U=(0,t.up)("el-form"),D=(0,t.up)("el-main"),M=(0,t.up)("el-aside"),P=(0,t.up)("el-option"),C=(0,t.up)("el-select"),x=(0,t.up)("el-dialog"),y=(0,t.up)("el-container");return(0,t.wg)(),(0,t.j4)(y,null,{default:(0,t.w5)((()=>[(0,t.Wm)(D,{style:{"--el-main-padding":"0px 20px"}},{default:(0,t.w5)((()=>[(0,t.Wm)(U,{model:f,"label-width":"120px"},{default:(0,t.w5)((()=>[((0,t.wg)(!0),(0,t.iD)(t.HY,null,(0,t.Ko)(w,(e=>((0,t.wg)(),(0,t.j4)(g,{key:e.prop,label:e.prop},{default:(0,t.w5)((()=>[(0,t.Wm)(W,{modelValue:f[e.prop],"onUpdate:modelValue":l=>f[e.prop]=l},{append:(0,t.w5)((()=>[(0,t.Wm)(k,{onClick:l=>b(e),icon:""},{default:(0,t.w5)((()=>[(0,t.Wm)(m,null,{default:(0,t.w5)((()=>[(0,t.Wm)(n)])),_:1})])),_:2},1032,["onClick"])])),_:2},1032,["modelValue","onUpdate:modelValue"])])),_:2},1032,["label"])))),128)),(0,t.Wm)(g,null,{default:(0,t.w5)((()=>[(0,t.Wm)(k,{type:"success",onClick:h},{default:(0,t.w5)((()=>[(0,t.Uk)("新增配置")])),_:1}),(0,t.Wm)(k,{type:"primary",onClick:v},{default:(0,t.w5)((()=>[(0,t.Uk)("暂存配置")])),_:1}),p,(0,t.Wm)(O,{class:"el-button el-button--text","before-upload":(0,_.SU)(u.ET),"show-file-list":!1},{trigger:(0,t.w5)((()=>[(0,t.Wm)(k,{type:"warning",onClick:(0,_.SU)(u.hM)},{default:(0,t.w5)((()=>[i])),_:1},8,["onClick"])])),_:1},8,["before-upload"]),(0,t.Wm)(k,{type:"danger",onClick:(0,_.SU)(u.BG)},{default:(0,t.w5)((()=>[(0,t.Uk)("导出配置")])),_:1},8,["onClick"])])),_:1})])),_:1},8,["model"])])),_:1}),(0,t.Wm)(M,{width:"300px"}),(0,t.Wm)(x,{width:"450px",modelValue:d.value,"onUpdate:modelValue":o[4]||(o[4]=e=>d.value=e)},{header:(0,t.w5)((()=>[(0,t.Uk)("新增配置")])),footer:(0,t.w5)((()=>[(0,t._)("span",c,[(0,t.Wm)(k,{onClick:o[3]||(o[3]=e=>d.value=!1)},{default:(0,t.w5)((()=>[(0,t.Uk)("取 消")])),_:1}),(0,t.Wm)(k,{type:"primary",onClick:E},{default:(0,t.w5)((()=>[(0,t.Uk)("确 定")])),_:1})])])),default:(0,t.w5)((()=>[(0,t.Wm)(U,{model:w},{default:(0,t.w5)((()=>[(0,t.Wm)(g,null,{default:(0,t.w5)((()=>[(0,t.Wm)(W,{placeholder:"属性名",modelValue:r.value,"onUpdate:modelValue":o[0]||(o[0]=e=>r.value=e)},null,8,["modelValue"])])),_:1}),(0,t.Wm)(g,null,{default:(0,t.w5)((()=>[(0,t.Wm)(W,{placeholder:"属性值",modelValue:s.value,"onUpdate:modelValue":o[1]||(o[1]=e=>s.value=e)},null,8,["modelValue"])])),_:1}),(0,t.Wm)(g,null,{default:(0,t.w5)((()=>[(0,t.Wm)(C,{placeholder:"类型",modelValue:l.value,"onUpdate:modelValue":o[2]||(o[2]=e=>l.value=e)},{default:(0,t.w5)((()=>[((0,t.wg)(!0),(0,t.iD)(t.HY,null,(0,t.Ko)(a.value,(e=>((0,t.wg)(),(0,t.j4)(P,{key:e,label:e,value:e},null,8,["label","value"])))),128))])),_:1},8,["modelValue"])])),_:1})])),_:1},8,["model"])])),_:1},8,["modelValue"])])),_:1})}}},d=a(89);const m=(0,d.Z)(s,[["__scopeId","data-v-4240b540"]]);var f=m}}]); +//# sourceMappingURL=managerManifest.4c4791d6.js.map \ No newline at end of file diff --git a/js/managerManifest.4c4791d6.js.map b/js/managerManifest.4c4791d6.js.map new file mode 100644 index 0000000..ad6065d --- /dev/null +++ b/js/managerManifest.4c4791d6.js.map @@ -0,0 +1 @@ +{"version":3,"file":"js/managerManifest.4c4791d6.js","mappings":"2IACA,KACEA,OAAQC,GACN,OAAOC,EAAAA,EAAAA,GAAS,SAAU,OAAQD,EACpC,EACAE,IAAAA,CAAMF,GACJ,OAAOC,EAAAA,EAAAA,GAAS,OAAQ,OAAQD,EAClC,EACAG,IAAAA,CAAMH,GACJ,OAAOC,EAAAA,EAAAA,GAAS,OAAQ,OAAQD,EAClC,EACAI,IAAAA,CAAMJ,GACJ,OAAOC,EAAAA,EAAAA,GAAS,OAAQ,OAAQD,EAClC,E,0GCbF,GACEK,QAAS,2BCCJ,MAAMJ,EAAWA,CAACK,EAAKC,EAAQP,IAC7B,IAAIQ,SAAQ,CAACC,EAASC,KAC3BC,MAAO,GAAE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kB,OACnD0B,OAAOM,KAAKtF,GAAMuF,SAAQC,IACxB,KAAMxF,EAAKwF,aAAgBR,QAAS,CAClC,MAAM1B,EAAQtD,EAAKwF,GACnBlB,EAAKkB,GAAOlC,EACZiB,EAASiB,GAAO,CAAEJ,KAAMI,EAAKlC,QAAOT,YAAaS,EACnD,KAEFtD,EAAK4D,KAAO5D,EAAK4D,MAAQ,EAAE,GAC1B,CACD6B,WAAW,I,suFC1Gb,MAAMC,GAA2B,OAAgB,EAAQ,CAAC,CAAC,YAAY,qBAEvE,O","sources":["webpack://command-manager/./src/api/index.js","webpack://command-manager/./src/config/index.js","webpack://command-manager/./src/utils/index.js","webpack://command-manager/./src/views/manager/common.js","webpack://command-manager/./src/views/manager/manifest.vue","webpack://command-manager/./src/views/manager/manifest.vue?0eac"],"sourcesContent":["import { fetchApi } from '@/utils'\r\nexport default {\r\n export (data) {\r\n return fetchApi('export', 'post', data)\r\n },\r\n open (data) {\r\n return fetchApi('open', 'post', data)\r\n },\r\n exec (data) {\r\n return fetchApi('exec', 'post', data)\r\n },\r\n stop (data) {\r\n return fetchApi('stop', 'post', data)\r\n }\r\n}\r\n","export default {\r\n baseUrl: 'http://localhost:27001/'\r\n}\r\n","import config from '@/config'\r\n\r\nexport const fetchApi = (url, method, data) => {\r\n return new Promise((resolve, reject) => {\r\n fetch(`${config.baseUrl}${url}`, {\r\n method,\r\n headers: {\r\n 'Content-Type': 'application/json'\r\n },\r\n body: JSON.stringify(data)\r\n })\r\n .then((res) => res.json())\r\n .then((res) => {\r\n if (res.code === 200) {\r\n resolve(res)\r\n }\r\n })\r\n .catch(reject)\r\n })\r\n}\r\n\r\nexport const downloadFile = (content) => {\r\n const link = document.createElement('a')\r\n link.href = URL.createObjectURL(new Blob([content]))\r\n link.download = 'manifest.json'\r\n link.click()\r\n}\r\n","import { reactive } from 'vue'\r\nimport { useStorage } from '@vueuse/core'\r\nimport { ElMessage, ElMessageBox } from 'element-plus'\r\n\r\nimport api from '@/api'\r\nimport { downloadFile } from '@/utils'\r\n\r\nconst state = reactive({\r\n import: false,\r\n export: false\r\n})\r\n\r\nexport const manifest = useStorage(\r\n 'manifest',\r\n {},\r\n localStorage,\r\n { mergeDefaults: true }\r\n)\r\n\r\nexport const handleImportBefore = (event) => {\r\n if (!state.import) {\r\n ElMessageBox.confirm('导入配置后, 将会覆盖当前配置, 是否确认?', {\r\n title: '确认导入配置',\r\n type: 'warning'\r\n }).then(() => {\r\n state.import = true\r\n event.target.click()\r\n }).catch(console.log)\r\n event.stopPropagation()\r\n }\r\n}\r\nexport const handleImport = async (file) => {\r\n try {\r\n const data = await file.text()\r\n // eslint-disable-next-line\r\n manifest.value = eval('(' + data + ')')\r\n } catch (err) {\r\n console.warn(err)\r\n }\r\n return false\r\n}\r\n\r\nexport const handleExportBefore = (event) => {\r\n if (!state.export) {\r\n manifest.value.path && ElMessageBox.confirm(`是否要导出配置到 ${manifest.value.path}`, {\r\n title: '确认导出配置',\r\n type: 'warning'\r\n }).then(() => {\r\n state.export = true\r\n handleExport()\r\n }).catch(console.log)\r\n } else {\r\n handleExport()\r\n }\r\n}\r\nexport const handleExport = () => {\r\n api.export(manifest.value).then(() => {\r\n ElMessage.success('导出成功')\r\n })\r\n .catch(() => {\r\n downloadFile(JSON.stringify(manifest.value, null, 2))\r\n })\r\n}\r\n\r\nexport const handleOutput = () => {\r\n console.log(manifest.value)\r\n}\r\n","\r\n\r\n\r\n\r\n\r\n","import script from \"./manifest.vue?vue&type=script&setup=true&lang=js\"\nexport * from \"./manifest.vue?vue&type=script&setup=true&lang=js\"\n\nimport \"./manifest.vue?vue&type=style&index=0&id=4240b540&lang=scss&scoped=true\"\n\nimport exportComponent from \"../../../node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['__scopeId',\"data-v-4240b540\"]])\n\nexport default __exports__"],"names":["export","data","fetchApi","open","exec","stop","baseUrl","url","method","Promise","resolve","reject","fetch","config","headers","body","JSON","stringify","then","res","json","code","catch","downloadFile","content","link","document","createElement","href","URL","createObjectURL","Blob","download","click","state","reactive","import","manifest","useStorage","localStorage","mergeDefaults","handleImportBefore","event","ElMessageBox","confirm","title","type","target","console","log","stopPropagation","handleImport","async","file","text","value","eval","err","warn","handleExportBefore","handleExport","path","api","ElMessage","success","handleOutput","ref","types","property","addDialogVisible","propertys","form","baseForm","handleAddDialog","handleAdd","includes","error","Boolean","String","Number","handleSave","Object","assign","handleRemove","item","prop","watch","keys","forEach","key","immediate","__exports__"],"sourceRoot":""} \ No newline at end of file