no message

This commit is contained in:
许彦峰 2019-03-16 12:31:00 +08:00
parent 8171030e35
commit b0ceb078b9
9 changed files with 47 additions and 66460 deletions

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 index from './index.vue';
import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'
Vue.use(ElementUI);
new Vue({
el: '#app',
render: h => h(index)

@ -1,10 +1,16 @@
<template>
<el-button @click="onClickTest">1111</el-button>
</template>
<script>
export default {
name: "index"
name: "index",
methods: {
onClickTest() {
console.log(1);
}
}
}
</script>

@ -12,7 +12,7 @@
<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="res/money.jpg">
<img style="width: 100%;height: auto;" src="./res/money.jpg">
</div>
</div>
<br/>
@ -20,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="res/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="res/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="res/tiezi.png" style="height: 100%;">
<img src="./res/tiezi.png" style="height: 100%;">
</a>
</div>
</div>
@ -55,12 +55,19 @@
methods: {
onBtnClickGitHub() {
console.log("onBtnClickGitHub");
}
},
onClickOptions() {
chrome.tabs.create({url: 'pages/options.html'})
},
onMsgToBg(){
debugger
let bg = chrome.extension.getBackgroundPage();
if(bg){
bg.test();
}
}
},
}
</script>

@ -138,11 +138,27 @@ module.exports = {
loader: 'babel-loader',
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)$/,
loader: 'file-loader',
test: /\.(png|jpg|gif|svg)(\?.*)?$/,
loader: 'url-loader',
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]'
}
}
]