no message
@ -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-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-new": "webpack --config ./src/webpack.config.js --hide-modules --progress"
|
||||
"build-new": "webpack --config ./src/webpack.config.js --hide-modules --progress --watch"
|
||||
},
|
||||
"dependencies": {
|
||||
"fs": "0.0.1-security",
|
||||
|
@ -6,5 +6,5 @@
|
||||
</head>
|
||||
<body>
|
||||
<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>
|
||||
|
Before Width: | Height: | Size: 5.4 KiB After Width: | Height: | Size: 5.4 KiB |
@ -4,11 +4,11 @@ module.exports = {
|
||||
description: "Cocos Creator Inspector",
|
||||
browser_action: {
|
||||
default_title: "CC-Inspector",
|
||||
default_icon: "static/images/icon48.png",
|
||||
default_icon: "icon/icon48.png",
|
||||
default_popup: "pages/popup.html"
|
||||
},
|
||||
icons: {
|
||||
48: "static/images/icon48.png"
|
||||
48: "icon/icon48.png"
|
||||
},
|
||||
devtools_page: "pages/devtools.html",
|
||||
content_scripts: [
|
||||
|
@ -1,8 +1,8 @@
|
||||
import Vue from 'vue';
|
||||
import ElementUI from 'element-ui'
|
||||
import 'element-ui/lib/theme-chalk/index.css'
|
||||
import index from './index.vue';
|
||||
|
||||
import ElementUI from 'element-ui'
|
||||
import 'element-ui/lib/theme-chalk/index.css'
|
||||
Vue.use(ElementUI);
|
||||
|
||||
new Vue({
|
||||
|
@ -1,13 +1,18 @@
|
||||
<template>
|
||||
<div id="app" style="width: auto;">
|
||||
<h3>{{title}}</h3>
|
||||
<div style="width: auto;">
|
||||
<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;">
|
||||
<span>支持作者</span>
|
||||
</div>
|
||||
<br/>
|
||||
<div style="margin:0 auto;width:100%;">
|
||||
<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>
|
||||
<br/>
|
||||
@ -15,17 +20,17 @@
|
||||
<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;">
|
||||
<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>
|
||||
</div>
|
||||
<div style="height: 100%;float: right;margin-right: 10px;">
|
||||
<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>
|
||||
</div>
|
||||
<div style="height: 100%;float: right;margin-right: 10px;">
|
||||
<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>
|
||||
</div>
|
||||
</div>
|
||||
@ -41,7 +46,6 @@
|
||||
Vue.component('icon', Icon);
|
||||
|
||||
export default {
|
||||
name: "app",
|
||||
data() {
|
||||
return {
|
||||
title: "cc-inspector",
|
||||
@ -53,6 +57,9 @@
|
||||
console.log("onBtnClickGitHub");
|
||||
}
|
||||
},
|
||||
onClickOptions() {
|
||||
chrome.tabs.create({url: 'pages/options.html'})
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
|
Before Width: | Height: | Size: 5.9 KiB After Width: | Height: | Size: 5.9 KiB |
Before Width: | Height: | Size: 140 KiB After Width: | Height: | Size: 140 KiB |
Before Width: | Height: | Size: 5.6 KiB After Width: | Height: | Size: 5.6 KiB |
Before Width: | Height: | Size: 3.0 KiB After Width: | Height: | Size: 3.0 KiB |
@ -33,8 +33,8 @@ module.exports = {
|
||||
devtools: resolve("devtools"),
|
||||
background: resolve("background"),
|
||||
options: resolve('options'),
|
||||
content:resolve("content"),
|
||||
inject:resolve('content/inject')
|
||||
content: resolve("content"),
|
||||
inject: resolve('content/inject')
|
||||
|
||||
// devInspector: path.resolve(__dirname, './src/dev/devInspector/main.js'),
|
||||
// dev: path.resolve(__dirname, './src/dev/dev.js'),
|
||||
@ -91,18 +91,13 @@ module.exports = {
|
||||
// chunks: ['devInspector']
|
||||
// }),
|
||||
|
||||
// // 拷贝静态资源(manifest.json)
|
||||
// new CopyWebpackPlugin([
|
||||
// {
|
||||
// from: path.resolve(__dirname, 'src/assets/'),
|
||||
// to: 'static',
|
||||
// force: true,
|
||||
// // ignore: ['.*']
|
||||
// },
|
||||
// {
|
||||
// from: path.resolve(__dirname, 'src/manifest.json'),
|
||||
// to: path.resolve(__dirname, 'dist/')
|
||||
// }]),
|
||||
// 拷贝静态资源(manifest.json)
|
||||
new CopyWebpackPlugin([{
|
||||
from: path.resolve(__dirname, 'icon'),
|
||||
to: 'icon',
|
||||
force: true,
|
||||
// ignore: ['.*']
|
||||
}]),
|
||||
// new webpack.DefinePlugin({
|
||||
// 'process.env': {
|
||||
// NODE_ENV: '"production"'
|
||||
|