mirror of
https://github.com/tidys/cc-inspector-chrome
synced 2026-04-28 18:26:28 +00:00
init
This commit is contained in:
3
template/src/devtools/index.js
Normal file
3
template/src/devtools/index.js
Normal file
@@ -0,0 +1,3 @@
|
||||
chrome.devtools.panels.create('panel', 'img/logo.png', 'pages/panel.html', function (panel) {
|
||||
console.log('hello from callback')
|
||||
})
|
||||
8
template/src/devtools/panel.js
Normal file
8
template/src/devtools/panel.js
Normal file
@@ -0,0 +1,8 @@
|
||||
import Vue from 'vue'
|
||||
import root from './root.vue'
|
||||
Vue.config.productionTip = false
|
||||
/* eslint-disable no-new */
|
||||
new Vue({
|
||||
el: '#root',
|
||||
render: h => h(root)
|
||||
})
|
||||
18
template/src/devtools/root.vue
Normal file
18
template/src/devtools/root.vue
Normal file
@@ -0,0 +1,18 @@
|
||||
<template lang="pug">
|
||||
div devtools
|
||||
</template>
|
||||
<script>
|
||||
export default {
|
||||
data: () => ({
|
||||
}),
|
||||
computed: { },
|
||||
created () { },
|
||||
mounted () { },
|
||||
methods: { }
|
||||
}
|
||||
</script>
|
||||
<style lang="scss">
|
||||
div {
|
||||
color: blue
|
||||
}
|
||||
</style>
|
||||
Reference in New Issue
Block a user