Merge branch 'master' of https://github.com/theajack/cnchar
This commit is contained in:
commit
ef15b4a571
File diff suppressed because it is too large
Load Diff
|
@ -53,13 +53,12 @@
|
|||
"husky": "^3.1.0",
|
||||
"less": "^3.9.0",
|
||||
"less-loader": "^5.0.0",
|
||||
"tc-comment": "0.0.3",
|
||||
"ts-loader": "^6.2.1",
|
||||
"typescript": "^3.7.4",
|
||||
"vue": "^2.5.2",
|
||||
"vue-highlight.js": "^2.2.0",
|
||||
"vuepress": "^1.0.2",
|
||||
"vuepress-plugin-comment": "^0.7.3",
|
||||
"vuepress-plugin-tc-comment": "0.0.5",
|
||||
"webpack": "^4.39.1",
|
||||
"webpack-cli": "^3.3.6",
|
||||
"webpack-dev-server": "^3.7.2"
|
||||
|
|
|
@ -58,7 +58,6 @@
|
|||
</template>
|
||||
|
||||
<script>
|
||||
import initComment from 'tc-comment';
|
||||
export default {
|
||||
data () {
|
||||
return {
|
||||
|
@ -106,16 +105,6 @@
|
|||
window.open('https://theajack.gitee.io/jsbox/?theme=dark&lang=html&lib=cnchar-all&code=DwZwLgngNgpgfAWAFAAI0oMQGMB2WAWAhgE4C0JMhA3sunSlAJY4yn4yMDm+YAXCgGYADAAcAHgG5a6AL7JgAenDR48gCaMAbikZqAvAHI1xQgHdyxSgbiKNmxEmB2d+g7gIkLVmwrsPQWMSMImAOdJokKMZmAIKWhCh6UQD2WACuALYwOGAAdJwwYACisFk5AEIQAJJqABRGJuYUhAYAlFKo6NGmcZS5zCzEABIAKgCyADKJKAYGHeGRySGMyTjTNJ30KFiwJPwAZoRQIDAANNJbMFD83b2E55v0yrD8G1tbJhpYRwDCyVDJYj8AwYAAsoP2Bge73oACNCFgANacYjJNI4NR-AFAmYYGD4qEXGEMbKcMD4fgANiERLocke9LoSzAKxwuUgIhg03cRGIuW6uRGAE0AApFXIAOQA8gAlMYxCbzdA8kj8xr1QAG8oBfTShKGZrPayCJ+tW7IgnO5eF5arMgtF4oAyiMZVKANJFJVoFV87r1QCSNoB1bV1JpwhqQxuWpo5XKS3ptpjtYtyMQlVXlIyqUolnu2VtVvoMgAj9QDuicHI6GOkSIsQUJYQNMANq05V5vmaGDEECs6HvOPgVGImCanWnGaAtQd3UGEBETltHtbPtgAdDgyAf1TAHPqU-Hk9HBhwhCy8+bXtbuR3xBGyQA6uPag2DIAqKyngHCTKeAL2MDABdVoL+hxrBVnbYg8i7DIRFgK8Rk+epAFo5QBftU3Y9HjoACgI7PJl0INQrwdRhwNgepACJ7INfxPGZADj-LVABC3QAGdUATtMDFyEBOSgKB6jAVYYGQmF10Ack1ADC5JiWKudiyJQ9B+KE5jWPYgwRH+CAeN7M9+2SQcr1vYg6gAJgAVj3MCIO48SYTjXQVgye8DEAFLkpynQBBZXsn8-1Qs8xHwCB6j4wAWG0AJsUBMATPzAGjnQBMvWUxcz0+Rhvjk7VAAEVCL-1UwEwAdWTrMAAn1AEg5KdMr4qEDEAOXNAG21QrgrslzyL7VKHWXdShwfDUpxHGZEqqiTTw8PlGBAH4cB+Xl6hiJK6AAKQdLNmOXZhOEYfYvL7WSqhwfZknqIYAAOcDaUz0C-Ik1FSTJsjyApilKU7KhqepvS8FpWn6HBBhGGAxDAaY61yAArZJmHqAAdHbWiJQCcBAf4YFyAFOFqOsQccJRAmCUIgA');
|
||||
}
|
||||
},
|
||||
mounted () {
|
||||
initComment({el: '#comment'});
|
||||
// let timer = setInterval(() => {
|
||||
// let comment = document.getElementById('vcomments');
|
||||
// if (comment) {
|
||||
// comment.className += ' home-comment';
|
||||
// clearInterval(timer);
|
||||
// }
|
||||
// }, 500);
|
||||
}
|
||||
};
|
||||
</script>
|
||||
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
|
||||
module.exports = {
|
||||
title: 'cnchar', // 标题
|
||||
description: '功能全面、多端支持的汉字拼音笔画js库', // 描述
|
||||
|
@ -11,6 +12,16 @@ module.exports = {
|
|||
// dest: './dist', //打包位置
|
||||
port: 6868, // 端口号
|
||||
// 主题配置
|
||||
devServer: {
|
||||
proxy: {
|
||||
'/api': {
|
||||
target: 'https://shiyix.cn/',
|
||||
// pathRewrite: {'^/remote': ''},
|
||||
changeOrigin: true,
|
||||
secure: false
|
||||
}
|
||||
}
|
||||
},
|
||||
themeConfig: {
|
||||
// 顶部导航栏配置
|
||||
nav: [
|
||||
|
@ -138,27 +149,26 @@ module.exports = {
|
|||
|
||||
// 官方图片放大组件 目前是所有img都可以点击放大。具体配置见https://v1.vuepress.vuejs.org/zh/plugin/official/plugin-medium-zoom.html
|
||||
['@vuepress/medium-zoom', {selector: 'img'}],
|
||||
|
||||
// // vssue 一个借助issue的评论插件 具体配置见https://vssue.js.org/zh/
|
||||
'vuepress-plugin-tc-comment'
|
||||
// [
|
||||
// '@vssue/vuepress-plugin-vssue',
|
||||
// 'vuepress-plugin-comment',
|
||||
// {
|
||||
// // 设置 `platform` 而不是 `api` 我这里是在github平台
|
||||
// platform: 'gitee',
|
||||
|
||||
// // owner与repo配置 https://github.com/${owner}/${repo}
|
||||
// owner: 'theajack',
|
||||
// repo: 'cnchar',
|
||||
|
||||
// // 填写自己的OAuth App 信息。详见https://vssue.js.org/zh/options/#repo
|
||||
// clientId:
|
||||
// 'xx',
|
||||
// clientSecret:
|
||||
// 'xx',
|
||||
// locale: 'zh', // 使用的语言 这里是简体中文
|
||||
// baseURL: 'https://gitee.com', // 平台的 base URL
|
||||
// },
|
||||
// ], // 平台的 base URL
|
||||
// // choosen: pluginConf,
|
||||
// // options: {
|
||||
// // }
|
||||
// choosen: pluginValine,
|
||||
// options: {
|
||||
// el: '#vcomments',
|
||||
// appId: 'azSK2mRA57Pa2Y0NEWxXjrdJ-gzGzoHsz',
|
||||
// appKey: 'Ky1y1SbwcyYkHMEbdVeq6mnf',
|
||||
// notify: false,
|
||||
// verify: false,
|
||||
// avatar: 'mp',
|
||||
// placeholder: '留下点什么吧...'
|
||||
// }
|
||||
// }
|
||||
// ]
|
||||
|
||||
// [
|
||||
// 'vuepress-plugin-comment',
|
||||
// {
|
||||
|
@ -178,9 +188,6 @@ module.exports = {
|
|||
],
|
||||
|
||||
// vuepress里修改webpack配置,使用的是chainWebpack进行链式调用
|
||||
// 具体使用可以参考我这个例子和 https://github.com/neutrinojs/webpack-chain/tree/v5
|
||||
// chainWebpack: (config, isServer) => {
|
||||
// config.resolve.alias
|
||||
// .set('@',resolve('src'))
|
||||
// }
|
||||
};
|
||||
|
|
|
@ -1,11 +1,3 @@
|
|||
#vcomments{
|
||||
width: 90%;
|
||||
max-width: 78%;
|
||||
margin: 0 auto;
|
||||
}
|
||||
#vcomments.home-comment{
|
||||
max-width: 1000px;
|
||||
}
|
||||
html,body{
|
||||
font-size: 16px!important;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue