no message

This commit is contained in:
许彦峰 2019-03-16 11:27:49 +08:00
parent 796d7071ce
commit 8171030e35
13 changed files with 11484 additions and 11448 deletions

View File

@ -11,7 +11,7 @@
"dev-popup": "cross-env NODE_ENV=development webpack-dev-server --open http://localhost:8083/popup.html --inline --progress --hot --port 8083", "dev-popup": "cross-env NODE_ENV=development webpack-dev-server --open http://localhost:8083/popup.html --inline --progress --hot --port 8083",
"dev-inspector": "cross-env NODE_ENV=development webpack-dev-server --open http://localhost:8084/devInspector.html --inline --progress --hot --port 8084", "dev-inspector": "cross-env NODE_ENV=development webpack-dev-server --open http://localhost:8084/devInspector.html --inline --progress --hot --port 8084",
"build": "cross-env NODE_ENV=production webpack --progress --hide-modules", "build": "cross-env NODE_ENV=production webpack --progress --hide-modules",
"build-new": "webpack --config ./src/webpack.config.js --hide-modules --progress" "build-new": "webpack --config ./src/webpack.config.js --hide-modules --progress --watch"
}, },
"dependencies": { "dependencies": {
"fs": "0.0.1-security", "fs": "0.0.1-security",

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -6,5 +6,5 @@
</head> </head>
<body> <body>
<div id="app"></div> <div id="app"></div>
<script type="text/javascript" src="/js/popup.js?2bd6ee2cf39f248d5168"></script></body> <script type="text/javascript" src="/js/popup.js?186296ef3918f832b723"></script></body>
</html> </html>

View File

Before

Width:  |  Height:  |  Size: 5.4 KiB

After

Width:  |  Height:  |  Size: 5.4 KiB

View File

@ -4,11 +4,11 @@ module.exports = {
description: "Cocos Creator Inspector", description: "Cocos Creator Inspector",
browser_action: { browser_action: {
default_title: "CC-Inspector", default_title: "CC-Inspector",
default_icon: "static/images/icon48.png", default_icon: "icon/icon48.png",
default_popup: "pages/popup.html" default_popup: "pages/popup.html"
}, },
icons: { icons: {
48: "static/images/icon48.png" 48: "icon/icon48.png"
}, },
devtools_page: "pages/devtools.html", devtools_page: "pages/devtools.html",
content_scripts: [ content_scripts: [

View File

@ -1,8 +1,8 @@
import Vue from 'vue'; import Vue from 'vue';
import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'
import index from './index.vue'; import index from './index.vue';
import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'
Vue.use(ElementUI); Vue.use(ElementUI);
new Vue({ new Vue({

View File

@ -1,13 +1,18 @@
<template> <template>
<div id="app" style="width: auto;"> <div style="width: auto;">
<h3>{{title}}</h3> <div style="display: flex;flex-direction: row;align-items: center;">
<h3>{{title}}</h3>
<div style="flex: 1"></div>
<el-button size="mini" @click="onClickOptions">设置</el-button>
<el-button size="mini" @click="onMsgToBg">To-Bg</el-button>
</div>
<div style="text-align: center;width: 100%; color: #6d6d6d;"> <div style="text-align: center;width: 100%; color: #6d6d6d;">
<span>支持作者</span> <span>支持作者</span>
</div> </div>
<br/> <br/>
<div style="margin:0 auto;width:100%;"> <div style="margin:0 auto;width:100%;">
<div style="width: 200px; margin: 0 auto;" v-show="isShowMoneyPng"> <div style="width: 200px; margin: 0 auto;" v-show="isShowMoneyPng">
<img style="width: 100%;height: auto;" src="static/images/money.jpg"> <img style="width: 100%;height: auto;" src="res/money.jpg">
</div> </div>
</div> </div>
<br/> <br/>
@ -15,17 +20,17 @@
<span style="font-size: 14px;float: left;text-align: center;line-height: 30px;color: #6d6d6d;">联系方式:</span> <span style="font-size: 14px;float: left;text-align: center;line-height: 30px;color: #6d6d6d;">联系方式:</span>
<div style="height: 100%;float: right;margin-right: 10px;"> <div style="height: 100%;float: right;margin-right: 10px;">
<a href="https://github.com/tidys/CocosCreatorPlugins/tree/master/CocosCreatorInspector" target="_blank"> <a href="https://github.com/tidys/CocosCreatorPlugins/tree/master/CocosCreatorInspector" target="_blank">
<img src="static/images/github.png" style="height: 100%;"> <img src="res/github.png" style="height: 100%;">
</a> </a>
</div> </div>
<div style="height: 100%;float: right;margin-right: 10px;"> <div style="height: 100%;float: right;margin-right: 10px;">
<a href="https://jq.qq.com/?_wv=1027&k=5SdPdy2" target="_blank"> <a href="https://jq.qq.com/?_wv=1027&k=5SdPdy2" target="_blank">
<img src="static/images/qq.png" style="height: 100%;"> <img src="res/qq.png" style="height: 100%;">
</a> </a>
</div> </div>
<div style="height: 100%;float: right;margin-right: 10px;"> <div style="height: 100%;float: right;margin-right: 10px;">
<a href="http://forum.cocos.com/t/chrome-creator/55669" target="_blank"> <a href="http://forum.cocos.com/t/chrome-creator/55669" target="_blank">
<img src="static/images/tiezi.png" style="height: 100%;"> <img src="res/tiezi.png" style="height: 100%;">
</a> </a>
</div> </div>
</div> </div>
@ -41,7 +46,6 @@
Vue.component('icon', Icon); Vue.component('icon', Icon);
export default { export default {
name: "app",
data() { data() {
return { return {
title: "cc-inspector", title: "cc-inspector",
@ -53,6 +57,9 @@
console.log("onBtnClickGitHub"); console.log("onBtnClickGitHub");
} }
}, },
onClickOptions() {
chrome.tabs.create({url: 'pages/options.html'})
}
} }
</script> </script>

View File

Before

Width:  |  Height:  |  Size: 5.9 KiB

After

Width:  |  Height:  |  Size: 5.9 KiB

View File

Before

Width:  |  Height:  |  Size: 140 KiB

After

Width:  |  Height:  |  Size: 140 KiB

View File

Before

Width:  |  Height:  |  Size: 5.6 KiB

After

Width:  |  Height:  |  Size: 5.6 KiB

View File

Before

Width:  |  Height:  |  Size: 3.0 KiB

After

Width:  |  Height:  |  Size: 3.0 KiB

View File

@ -33,8 +33,8 @@ module.exports = {
devtools: resolve("devtools"), devtools: resolve("devtools"),
background: resolve("background"), background: resolve("background"),
options: resolve('options'), options: resolve('options'),
content:resolve("content"), content: resolve("content"),
inject:resolve('content/inject') inject: resolve('content/inject')
// devInspector: path.resolve(__dirname, './src/dev/devInspector/main.js'), // devInspector: path.resolve(__dirname, './src/dev/devInspector/main.js'),
// dev: path.resolve(__dirname, './src/dev/dev.js'), // dev: path.resolve(__dirname, './src/dev/dev.js'),
@ -91,18 +91,13 @@ module.exports = {
// chunks: ['devInspector'] // chunks: ['devInspector']
// }), // }),
// // 拷贝静态资源(manifest.json) // 拷贝静态资源(manifest.json)
// new CopyWebpackPlugin([ new CopyWebpackPlugin([{
// { from: path.resolve(__dirname, 'icon'),
// from: path.resolve(__dirname, 'src/assets/'), to: 'icon',
// to: 'static', force: true,
// force: true, // ignore: ['.*']
// // ignore: ['.*'] }]),
// },
// {
// from: path.resolve(__dirname, 'src/manifest.json'),
// to: path.resolve(__dirname, 'dist/')
// }]),
// new webpack.DefinePlugin({ // new webpack.DefinePlugin({
// 'process.env': { // 'process.env': {
// NODE_ENV: '"production"' // NODE_ENV: '"production"'