devtool_panel调整

This commit is contained in:
许彦峰 2019-03-16 15:11:29 +08:00
parent e5b61e8676
commit 805d7e15fb
12 changed files with 8 additions and 49 deletions

View File

@ -1,10 +0,0 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Title</title>
</head>
<body>
<div id="app"></div>
</body>
</html>

View File

@ -1,12 +0,0 @@
import Vue from 'vue';
import dev_panel from './dev_panel.vue';
import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'
Vue.use(ElementUI);
new Vue({
el: '#app',
render: h => h(dev_panel)
});

View File

@ -1,20 +0,0 @@
<template>
<div>
<el-button @click="onClick">devtools</el-button>
</div>
</template>
<script>
export default {
name: "index",
methods: {
onClick() {
console.log("devtools");
}
}
}
</script>
<style scoped>
</style>

View File

@ -23,7 +23,7 @@
// sidebar.setObject({some_data: "some data to show!"});
// });
chrome.devtools.panels.create("Cocos", "icon/icon48.png", "pages/dev_panel.html",
chrome.devtools.panels.create("Cocos", "icon/icon48.png", "pages/devtools_panel.html",
function (panel) {
console.log("[Cocos Creator Inspector] Dev Panel Created!");

View File

@ -1,7 +1,7 @@
import Vue from 'vue';
import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'
import App from './App.vue';
import index from './index.vue';
import ui_prop from './ui/ui-prop.vue'
import NodeBaseProperty from './ccType/NodeBaseProperty.vue'
@ -19,5 +19,5 @@ Vue.component('ColorPicker', ColorPicker);
Vue.use(ElementUI);
new Vue({
el: '#app',
render: h => h(App)
render: h => h(index)
});

View File

@ -29,7 +29,8 @@
</template>
<script>
import injectScript from '../injectScript.js'
// import injectScript from '../injectScript.js'
let injectScript = "";
export default {
name: "app",

View File

@ -31,11 +31,11 @@ module.exports = {
entry: {
popup: resolve("popup"),
devtools: resolve("devtools"),
dev_panel:resolve("devtools/dev_panel"),
devtools_panel:resolve("devtools/panel"),
background: resolve("background"),
options: resolve('options'),
content: resolve("content"),
inject: resolve('content/inject')
inject: resolve('content/inject'),
// devInspector: path.resolve(__dirname, './src/dev/devInspector/main.js'),
// dev: path.resolve(__dirname, './src/dev/dev.js'),
@ -61,7 +61,7 @@ module.exports = {
htmlPage("popup", 'popup', ['popup']),
htmlPage("devtools", 'devtools', ['devtools']),
htmlPage("dev_panel", 'dev_panel', ['dev_panel']),
htmlPage("devtools_panel", 'devtools_panel', ['devtools_panel']),
htmlPage("options", 'options', ['options']),
htmlPage('background', 'background', ['background']),
new ChromeManifest({