Valine废了 删掉评论功能
This commit is contained in:
@@ -18,10 +18,6 @@
|
||||
max-width: 100%;
|
||||
}
|
||||
}
|
||||
#comments {
|
||||
margin:0 30px;
|
||||
background-color:$colorBg;
|
||||
}
|
||||
.article-inner h1.article-title, .article-title {
|
||||
color: #696969;
|
||||
margin-left: 0px;
|
||||
|
||||
@@ -195,9 +195,6 @@
|
||||
display: block;
|
||||
}
|
||||
}
|
||||
#comments {
|
||||
margin: 0;
|
||||
}
|
||||
.share{
|
||||
padding: 3px 10px;
|
||||
}
|
||||
|
||||
@@ -100,10 +100,6 @@ body.night {
|
||||
.profilepic, .waifu, #header .header-nav .social a {
|
||||
filter: brightness(30%);
|
||||
}
|
||||
// 评论
|
||||
#comments {
|
||||
background: none;
|
||||
}
|
||||
// 文章信息栏
|
||||
.article-info-index.article-info {
|
||||
border-top-color: $borderColor_night;
|
||||
|
||||
@@ -1,19 +0,0 @@
|
||||
const axios = require('axios')
|
||||
// const AV = require('leancloud-storage')
|
||||
window.AV = require('leancloud-storage')
|
||||
// const Valine = require('../lib/Valine.min')
|
||||
/**
|
||||
* 使用根据Valine项目源代码重新打包
|
||||
* 可以支持对于AV对象的传参输入, 而不需要暴露全局变量
|
||||
* 但是缺少一些新功能
|
||||
*/
|
||||
|
||||
import(/* webpackChunkName: "valine" */ '../lib/Valine.min').then(({default: Valine }) => {
|
||||
// 从接口获取评论配置
|
||||
axios.get(`${window.themeConfig.root}api/v1/common/config/valine_config`).then(res => {
|
||||
let config = res.data
|
||||
config.path = window.location.pathname
|
||||
// config.av = AV
|
||||
new Valine(config)
|
||||
})
|
||||
})
|
||||
@@ -42,11 +42,6 @@ Util.addLoadEvent(function() {
|
||||
}
|
||||
})
|
||||
|
||||
if(window.themeConfig.isPost && window.themeConfig.comment) {
|
||||
// 文章详情页面, 并且启用了评论, 则加载评论相关代码
|
||||
import(/* webpackChunkName: "comment" */ './comment')
|
||||
}
|
||||
|
||||
// 初始化看板娘
|
||||
import(/* webpackChunkName: "waifu" */ './waifu').then(waifuInit => {
|
||||
waifuInit.default.init()
|
||||
|
||||
-11
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user