{"remainingRequest":"E:\\视频边缘计算管理平台\\TransFlow\\node_modules\\babel-loader\\lib\\index.js!E:\\视频边缘计算管理平台\\TransFlow\\src\\main.js","dependencies":[{"path":"E:\\视频边缘计算管理平台\\TransFlow\\src\\main.js","mtime":1675039406917},{"path":"E:\\视频边缘计算管理平台\\TransFlow\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"E:\\视频边缘计算管理平台\\TransFlow\\node_modules\\babel-loader\\lib\\index.js","mtime":499162500000}],"contextDependencies":[],"result":["import \"E:\\\\\\u89C6\\u9891\\u8FB9\\u7F18\\u8BA1\\u7B97\\u7BA1\\u7406\\u5E73\\u53F0\\\\TransFlow\\\\node_modules\\\\core-js\\\\modules\\\\es6.array.iterator.js\";\nimport \"E:\\\\\\u89C6\\u9891\\u8FB9\\u7F18\\u8BA1\\u7B97\\u7BA1\\u7406\\u5E73\\u53F0\\\\TransFlow\\\\node_modules\\\\core-js\\\\modules\\\\es6.promise.js\";\nimport \"E:\\\\\\u89C6\\u9891\\u8FB9\\u7F18\\u8BA1\\u7B97\\u7BA1\\u7406\\u5E73\\u53F0\\\\TransFlow\\\\node_modules\\\\core-js\\\\modules\\\\es6.object.assign.js\";\nimport \"E:\\\\\\u89C6\\u9891\\u8FB9\\u7F18\\u8BA1\\u7B97\\u7BA1\\u7406\\u5E73\\u53F0\\\\TransFlow\\\\node_modules\\\\core-js\\\\modules\\\\es7.promise.finally.js\";\nimport Vue from 'vue';\nimport ElementUI from 'element-ui';\nimport 'element-ui/lib/theme-chalk/index.css';\nimport ViewUI from 'view-design';\nimport 'view-design/dist/styles/iview.css';\nimport axios from 'axios';\nimport App from \"./App.vue\";\nimport store from \"./store\";\nimport router from \"./router/index.js\";\nimport echarts from 'echarts';\nimport VueI18n from 'vue-i18n';\nimport { messages } from \"./components/common/i18n.js\";\nimport { formatSeconds } from \"./utils/tools.js\";\nimport mqttConfig from \"./utils/mqttConfig\";\nimport 'babel-polyfill';\nimport \"./assets/css/main.css\";\nimport \"./assets/css/theme.scss\";\nVue.use(ElementUI);\nVue.use(ViewUI);\nVue.use(VueI18n);\nVue.directive('alterELDialogMarginTop'\n/*修改elementUI中el-dialog顶部的距离,传入值eg:{marginTop:'5vh'} */\n, {\n inserted: function inserted(el, binding, vnode) {\n el.firstElementChild.style.marginTop = binding.value.marginTop;\n }\n});\nvar i18n = new VueI18n({\n locale: 'zh',\n messages: messages\n});\nVue.prototype.$axios = axios;\nVue.prototype.$echarts = echarts;\nVue.prototype.$formatSeconds = formatSeconds; // 全局使用该工具函数\n\nArray.prototype.pushNoRepeat = function () {\n // 往数组里添加不重复数据\n for (var i = 0; i < arguments.length; i++) {\n var ele = arguments[i];\n\n if (this.indexOf(ele) == -1) {\n this.push(ele);\n }\n }\n};\n\nVue.config.productionTip = false; // 使用钩子函数对路由进行权限跳转\n\nrouter.beforeEach(function (to, from, next) {\n document.title = \"\".concat(to.meta.title, \" | \\u540E\\u53F0\\u7BA1\\u7406\\u7CFB\\u7EDF\");\n var role = localStorage.getItem('ms_username');\n\n if (!role && to.path !== '/Login') {\n next('/Login');\n } else if (to.meta.permission) {\n // 如果是管理员权限则可进入,这里只是简单的模拟管理员权限而已\n role === 'admin' ? next() : next('/403');\n } else {\n // 简单的判断IE10及以下,该组件不兼容\n if (navigator.userAgent.indexOf('MSIE') > -1) {\n Vue.prototype.$alert('vue-quill-editor组件不兼容IE10及以下浏览器,请使用更高版本的浏览器查看', '浏览器不兼容通知', {\n confirmButtonText: '确定'\n });\n } else {\n next();\n }\n }\n}); //MQTT订阅\n\nvar currentTopics = null;\nvar client = null;\nvar callback = null;\nvar mqtt = new mqttConfig(currentTopics);\n\nwindow.PubScribe = function (topic, number, _callback) {\n callback = _callback;\n\n if (currentTopics != null) {\n //取消currentTopics主题订阅\n if (client != null) {\n client.unsubscribe(currentTopics);\n currentTopics = null;\n }\n } // mqtt = mqttConfig;\n\n\n if (client == null) {\n client = mqtt.createConnect(function () {\n client.subscribe(['hert', 'img0', 'img1', 'img2', 'img3', 'img4', 'img5', 'img6', 'img7'], {\n qos: 0\n }, function (err) {\n if (!err) {\n console.log(\"订阅成功0\", ['hert', 'img0', 'img1', 'img2', 'img3', 'img4', 'img5', 'img6', 'img7']);\n client.publish('msg_stream', JSON.stringify({\n \"msg_flag\": parseInt(number)\n }));\n }\n });\n client.on(\"message\", function (topic, message) {\n //数据分类\n try {\n callback(topic, message);\n } catch (error) {}\n });\n });\n } else {\n if (topic != null) {\n currentTopics = topic;\n client.subscribe(currentTopics, {\n qos: 0\n }, function (err) {\n if (!err) {\n console.log(\"订阅成功1\"); // setTimeout(function() { \n\n client.publish('msg_stream', JSON.stringify({\n \"msg_flag\": parseInt(number)\n })); // }, 1000);\n } else {\n console.log('消息订阅失败!');\n }\n });\n }\n }\n};\n\nnew Vue({\n el: '#app',\n router: router,\n store: store,\n i18n: i18n,\n render: function render(h) {\n return h(App);\n }\n});",{"version":3,"sources":["E:/视频边缘计算管理平台/TransFlow/src/main.js"],"names":["Vue","ElementUI","ViewUI","axios","App","store","router","echarts","VueI18n","messages","formatSeconds","mqttConfig","use","directive","inserted","el","binding","vnode","firstElementChild","style","marginTop","value","i18n","locale","prototype","$axios","$echarts","$formatSeconds","Array","pushNoRepeat","i","arguments","length","ele","indexOf","push","config","productionTip","beforeEach","to","from","next","document","title","meta","role","localStorage","getItem","path","permission","navigator","userAgent","$alert","confirmButtonText","currentTopics","client","callback","mqtt","window","PubScribe","topic","number","_callback","unsubscribe","createConnect","subscribe","qos","err","console","log","publish","JSON","stringify","parseInt","on","message","error","render","h"],"mappings":";;;;AAAA,OAAOA,GAAP,MAAgB,KAAhB;AACA,OAAOC,SAAP,MAAsB,YAAtB;AACA,OAAO,sCAAP;AACA,OAAOC,MAAP,MAAmB,aAAnB;AACA,OAAO,mCAAP;AACA,OAAOC,KAAP,MAAkB,OAAlB;AAEA,OAAOC,GAAP;AACA,OAAOC,KAAP;AACA,OAAOC,MAAP;AAEA,OAAOC,OAAP,MAAoB,SAApB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A,MAAM,CAACe,OAAP,CAAe,YAAf,EAA6BC,IAAI,CAACC,SAAL,CAAe;AACxC,wBAAYC,QAAQ,CAACZ,MAAD;AADoB,WAAf,CAA7B,EAHM,CAMN;AAEH,SARD,MAQO;AACHO,UAAAA,OAAO,CAACC,GAAR,CAAY,SAAZ;AACH;AAEJ,OAfD;AAgBH;AACJ;AACJ,CArDD;;AAuDA,IAAIrE,GAAJ,CAAQ;AACJe,EAAAA,EAAE,EAAE,MADA;AAEJT,EAAAA,MAAM,EAANA,MAFI;AAGJD,EAAAA,KAAK,EAALA,KAHI;AAIJiB,EAAAA,IAAI,EAAJA,IAJI;AAKJuD,EAAAA,MAAM,EAAE,gBAAAC,CAAC;AAAA,WAAIA,CAAC,CAAC1E,GAAD,CAAL;AAAA;AALL,CAAR","sourcesContent":["import Vue from 'vue';\r\nimport ElementUI from 'element-ui';\r\nimport 'element-ui/lib/theme-chalk/index.css';\r\nimport ViewUI from 'view-design';\r\nimport 'view-design/dist/styles/iview.css';\r\nimport axios from 'axios';\r\n\r\nimport App from './App.vue';\r\nimport store from './store';\r\nimport router from './router/index.js';\r\n\r\nimport echarts from 'echarts';\r\nimport VueI18n from 'vue-i18n';\r\nimport {\r\n messages\r\n} from './components/common/i18n.js';\r\nimport {\r\n formatSeconds\r\n} from './utils/tools.js';\r\n\r\nimport mqttConfig from './utils/mqttConfig';\r\n\r\nimport 'babel-polyfill';\r\nimport './assets/css/main.css';\r\nimport './assets/css/theme.scss';\r\n\r\nVue.use(ElementUI);\r\nVue.use(ViewUI);\r\nVue.use(VueI18n);\r\nVue.directive('alterELDialogMarginTop' /*修改elementUI中el-dialog顶部的距离,传入值eg:{marginTop:'5vh'} */ , {\r\n inserted(el, binding, vnode) {\r\n el.firstElementChild.style.marginTop = binding.value.marginTop\r\n }\r\n})\r\nconst i18n = new VueI18n({\r\n locale: 'zh',\r\n messages\r\n});\r\n\r\nVue.prototype.$axios = axios;\r\nVue.prototype.$echarts = echarts;\r\nVue.prototype.$formatSeconds = formatSeconds; // 全局使用该工具函数\r\n\r\nArray.prototype.pushNoRepeat = function () { // 往数组里添加不重复数据\r\n for (var i = 0; i < arguments.length; i++) {\r\n var ele = arguments[i];\r\n if (this.indexOf(ele) == -1) {\r\n this.push(ele);\r\n }\r\n }\r\n}\r\n\r\nVue.config.productionTip = false;\r\n\r\n// 使用钩子函数对路由进行权限跳转\r\nrouter.beforeEach((to, from, next) => {\r\n document.title = `${to.meta.title} | 后台管理系统`;\r\n const role = localStorage.getItem('ms_username');\r\n if (!role && to.path !== '/Login') {\r\n next('/Login');\r\n } else if (to.meta.permission) { // 如果是管理员权限则可进入,这里只是简单的模拟管理员权限而已\r\n role === 'admin' ? next() : next('/403');\r\n } else {\r\n // 简单的判断IE10及以下,该组件不兼容\r\n if (navigator.userAgent.indexOf('MSIE') > -1) {\r\n Vue.prototype.$alert('vue-quill-editor组件不兼容IE10及以下浏览器,请使用更高版本的浏览器查看', '浏览器不兼容通知', {\r\n confirmButtonText: '确定'\r\n });\r\n } else {\r\n next();\r\n }\r\n }\r\n});\r\n\r\n//MQTT订阅\r\nvar currentTopics = null;\r\nvar client = null;\r\nvar callback = null;\r\nlet mqtt = new mqttConfig(currentTopics);\r\n\r\nwindow.PubScribe = function (topic, number, _callback) {\r\n callback = _callback;\r\n if (currentTopics != null) {\r\n //取消currentTopics主题订阅\r\n if (client != null) {\r\n client.unsubscribe(currentTopics);\r\n currentTopics = null;\r\n }\r\n }\r\n\r\n // mqtt = mqttConfig;\r\n if (client == null) {\r\n client = mqtt.createConnect(() => {\r\n client.subscribe(['hert', 'img0', 'img1', 'img2', 'img3', 'img4', 'img5', 'img6', 'img7'], {\r\n qos: 0\r\n }, (err) => {\r\n if (!err) {\r\n console.log(\"订阅成功0\", ['hert', 'img0', 'img1', 'img2', 'img3', 'img4', 'img5', 'img6', 'img7']);\r\n client.publish('msg_stream', JSON.stringify({\r\n \"msg_flag\": parseInt(number)\r\n }))\r\n }\r\n });\r\n client.on(\"message\", (topic, message) => {\r\n //数据分类\r\n try {\r\n callback(topic, message);\r\n } catch (error) {\r\n\r\n }\r\n });\r\n });\r\n } else {\r\n if (topic != null) {\r\n currentTopics = topic;\r\n client.subscribe(currentTopics, {\r\n qos: 0\r\n }, (err) => {\r\n if (!err) {\r\n console.log(\"订阅成功1\");\r\n // setTimeout(function() { \r\n client.publish('msg_stream', JSON.stringify({\r\n \"msg_flag\": parseInt(number)\r\n }))\r\n // }, 1000);\r\n\r\n } else {\r\n console.log('消息订阅失败!')\r\n }\r\n\r\n });\r\n }\r\n }\r\n}\r\n\r\nnew Vue({\r\n el: '#app',\r\n router,\r\n store,\r\n i18n,\r\n render: h => h(App)\r\n});"]}]}