uuidconvert/panel/index.js
2022-04-05 18:40:31 +08:00

45 lines
1012 B
JavaScript

const PACKAGE_NAME = "uuidconvert";
const fs = require("fs");
Editor.Panel.extend({
style: fs.readFileSync(Editor.url(`packages://${PACKAGE_NAME}/static/style/default/index.css`), 'utf-8')
.concat(fs.readFileSync(Editor.url(`packages://${PACKAGE_NAME}/static/style/default/bootstrap.min.css`), 'utf-8')),
template: fs.readFileSync(
Editor.url(`packages://${PACKAGE_NAME}/static/template/default/index.html`), 'utf-8'),
$: {
app: '#app',
},
ready() {
this.app = new Vue({
el: this.$app,
created: function () {
},
components: {
"counter": Editor.require(`packages://${PACKAGE_NAME}/static/template/vue/counter.js`)
},
data: function () {
return {}
},
methods: {
},
watch: {
}
})
},
methods: {
},
messages: {
}
});