|
@@ -19,7 +19,7 @@ import "brace/mode/json"
|
|
|
import "brace/theme/chrome"
|
|
|
import Prism from "prismjs/prism"
|
|
|
|
|
|
-import { globalEvt } from "../store/console"
|
|
|
+import { EventBus } from "../common/eventbus"
|
|
|
|
|
|
export default {
|
|
|
name: "requester",
|
|
@@ -39,14 +39,12 @@ export default {
|
|
|
url: this.url,
|
|
|
body: this.body
|
|
|
}
|
|
|
- console.log("Prism:", Prism.languages)
|
|
|
- // var highlighted = JSON.stringify(simObj, " ", " ") // Prism.highlight(JSON.stringify(simObj), Prism.languages)
|
|
|
var highlighted = Prism.highlight(JSON.stringify(simObj, null, " "), Prism.languages.js)
|
|
|
this.log(method + "-\n" + highlighted)
|
|
|
},
|
|
|
// Mixin future or global thingy
|
|
|
log: function(...msg) {
|
|
|
- globalEvt.$emit("log", "method:", ...msg)
|
|
|
+ EventBus.$emit("log", "method:", ...msg)
|
|
|
}
|
|
|
},
|
|
|
components: {
|