yujialong 8 months ago
parent 798b02e176
commit 9953106b2f
  1. 2503
      package-lock.json
  2. 1
      package.json
  3. 2
      src/api/index.js
  4. 11
      src/components/TestPanel.vue
  5. 8
      vue.config.js

2503
package-lock.json generated

File diff suppressed because it is too large Load Diff

@ -16,6 +16,7 @@
"element-ui": "^2.15.6",
"file-saver": "^2.0.5",
"html2canvas": "^1.4.1",
"image-webpack-loader": "^8.1.0",
"jquery": "^3.6.0",
"js-cookie": "^3.0.1",
"jspdf": "^2.5.1",

@ -42,6 +42,8 @@ export default {
getStartTime: `python/python/getStartTime`,
getProductSystemTheme: `nakadai/mall/getProductSystemTheme`,
heartbeatDetection : `nakadai/message/heartbeatDetection`,
heartbeatDetectionRabbit : `python/rabbitMessage/heartbeatDetection`,
createQueue : `python/rabbitMessage/createQueue`,
endRunningProcess : `python/python/endRunningProcess`,
sendMessageToUser : `python/rabbitMessage/sendMessageToUser`,
}

@ -405,6 +405,7 @@ export default {
accountId: '',
runCodeType: '',
finishVscodeItem: 0,
clientTopic: '',
};
},
components: {
@ -1236,8 +1237,8 @@ export default {
},
onConnected: function () {
//
const topic = '/amq/queue/pythonQueue_' + this.accountId;
this.client.subscribe(topic, this.responseCallback, this.onFailed);
this.clientTopic = '/amq/queue/pythonQueue_' + this.accountId;
this.client.subscribe(this.clientTopic, this.responseCallback, this.onFailed);
},
onFailed: function (frame) {
console.log("MQ Failed: " + frame);
@ -1256,7 +1257,7 @@ export default {
newmain.$emit('runCode', data)
}
if (this.runCodeType !== 'vscodeRunCode') this.runCodeType = ''
} else if (typeof data === 'string') {
} else if (typeof data === 'string' && data !== 'ping') {
newmain.$emit('setPid', data)
}
},
@ -1270,9 +1271,9 @@ export default {
//
heartbeatDetection () {
setInterval(async () => {
this.client.send('ping')
await this.$get(this.api.heartbeatDetectionRabbit)
await this.$get(this.api.heartbeatDetection)
}, 56 * 1000)
}, 55 * 1000)
},
//
getUserDetail () {

@ -7,4 +7,12 @@ module.exports = {
port: 8085 // 固定端口
},
productionSourceMap: false,
chainWebpack: config => {
config.module
.rule("images")
.use("image-webpack-loader")
.loader("image-webpack-loader")
.options({ bypassOnDebug: true })
.end();
}
}
Loading…
Cancel
Save