mirror of
https://github.com/tidys/cc-inspector-chrome
synced 2025-10-22 20:35:24 +00:00
no message
This commit is contained in:
Binary file not shown.
Binary file not shown.
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -1,10 +0,0 @@
|
|||||||
<!DOCTYPE html>
|
|
||||||
<html>
|
|
||||||
<head>
|
|
||||||
<meta charset="utf-8">
|
|
||||||
<title>popup</title>
|
|
||||||
</head>
|
|
||||||
<body>
|
|
||||||
<div id="app"></div>
|
|
||||||
<script type="text/javascript" src="/js/popup.js?186296ef3918f832b723"></script></body>
|
|
||||||
</html>
|
|
@@ -1,6 +1,11 @@
|
|||||||
import Vue from 'vue';
|
import Vue from 'vue';
|
||||||
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);
|
||||||
|
|
||||||
|
|
||||||
new Vue({
|
new Vue({
|
||||||
el: '#app',
|
el: '#app',
|
||||||
render: h => h(index)
|
render: h => h(index)
|
||||||
|
@@ -1,11 +1,17 @@
|
|||||||
<template>
|
<template>
|
||||||
|
<el-button @click="onClickTest">1111</el-button>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
export default {
|
|
||||||
name: "index"
|
export default {
|
||||||
|
name: "index",
|
||||||
|
methods: {
|
||||||
|
onClickTest() {
|
||||||
|
console.log(1);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style scoped>
|
<style scoped>
|
||||||
|
@@ -12,7 +12,7 @@
|
|||||||
<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="res/money.jpg">
|
<img style="width: 100%;height: auto;" src="./res/money.jpg">
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<br/>
|
<br/>
|
||||||
@@ -20,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="res/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="res/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="res/tiezi.png" style="height: 100%;">
|
<img src="./res/tiezi.png" style="height: 100%;">
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -55,11 +55,18 @@
|
|||||||
methods: {
|
methods: {
|
||||||
onBtnClickGitHub() {
|
onBtnClickGitHub() {
|
||||||
console.log("onBtnClickGitHub");
|
console.log("onBtnClickGitHub");
|
||||||
|
},
|
||||||
|
onClickOptions() {
|
||||||
|
chrome.tabs.create({url: 'pages/options.html'})
|
||||||
|
},
|
||||||
|
onMsgToBg(){
|
||||||
|
debugger
|
||||||
|
let bg = chrome.extension.getBackgroundPage();
|
||||||
|
if(bg){
|
||||||
|
bg.test();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
onClickOptions() {
|
|
||||||
chrome.tabs.create({url: 'pages/options.html'})
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
@@ -138,11 +138,27 @@ module.exports = {
|
|||||||
loader: 'babel-loader',
|
loader: 'babel-loader',
|
||||||
exclude: /node_modules/
|
exclude: /node_modules/
|
||||||
},
|
},
|
||||||
|
// {
|
||||||
|
// test: /\.(png|jpg|gif|svg|ttf|woff|woff2|eot)$/,
|
||||||
|
// loader: 'file-loader',
|
||||||
|
// options: {
|
||||||
|
// name: '[name].[ext]?[hash]'
|
||||||
|
// }
|
||||||
|
// },
|
||||||
{
|
{
|
||||||
test: /\.(png|jpg|gif|svg|ttf|woff|woff2|eot)$/,
|
test: /\.(png|jpg|gif|svg)(\?.*)?$/,
|
||||||
loader: 'file-loader',
|
loader: 'url-loader',
|
||||||
options: {
|
options: {
|
||||||
name: '[name].[ext]?[hash]'
|
limit: 10000,
|
||||||
|
name: 'img/[name].[hash:7].[ext]'
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
test: /\.(woff2?|eot|ttf|otf)(\?.*)?$/,
|
||||||
|
loader: 'url-loader',
|
||||||
|
options: {
|
||||||
|
limit: 10000,
|
||||||
|
name: 'fonts/[name].[hash:7].[ext]'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
Reference in New Issue
Block a user