博客全文检索施工记录

This commit is contained in:
结发受长生
2019-07-09 13:09:17 +08:00
parent 699e807bf1
commit 3439b8d34b
15 changed files with 195 additions and 11 deletions
+22
View File
@@ -0,0 +1,22 @@
const webpack = require('webpack')
const configCreator = require('./webpack.config')
const webpackConfig = configCreator(process.env, {mode: 'production'})
webpack(webpackConfig, (err, stats) => {
if (err) {
throw err
}
const info = stats.toJson()
if (stats.hasErrors()) {
console.error(info.errors)
}
if (stats.hasWarnings()) {
console.warn(info.warnings)
}
console.log(stats.toString({
chunks: false,
colors: true
}))
})
+2 -1
View File
@@ -23,4 +23,5 @@ about_me: About Me
github_homepage: Github Homepage
weibo: Weibo
rss_subscription: Rss subscription
email: Email
email: Email
search_all_articles: Search all articles
+2 -1
View File
@@ -23,4 +23,5 @@ about_me: À propos de moi
github_homepage: Github homepage
weibo: Weibo
rss_subscription: Abonnement Rss
email: Boîte aux lettres
email: Boîte aux lettres
search_all_articles: Rechercher tous les articles
+2 -1
View File
@@ -23,4 +23,5 @@ about_me: 私について
github_homepage: Githubホームページ
weibo: ウェイボ
rss_subscription: RSS購読
email: メールボックス
email: メールボックス
search_all_articles: すべての記事を検索
+2 -1
View File
@@ -23,4 +23,5 @@ about_me: Обо мне
github_homepage: Домашняя страница Github
weibo: Weibo
rss_subscription: RSS подписка
email: почтовый ящик
email: почтовый ящик
search_all_articles: Искать все статьи
+2 -1
View File
@@ -23,4 +23,5 @@ about_me: 关于我
github_homepage: Github主页
weibo: 微博
rss_subscription: Rss订阅
email: 邮箱
email: 邮箱
search_all_articles: 搜索所有文章
+2 -1
View File
@@ -23,4 +23,5 @@ about_me: 關於我
github_homepage: Github主頁
weibo: 微博
rss_subscription: Rss訂閱
email: 郵箱
email: 郵箱
search_all_articles: 搜索所有文章
+1 -1
View File
@@ -6,7 +6,7 @@
<i class="icon icon-search"></i>
</div>
<div class="search-input" >
<input placeholder="搜索所有文章" type="text" v-model="fullTextSearchWords" >
<input placeholder="<%= __('search_all_articles') %>" type="text" v-model="fullTextSearchWords" >
</div>
</div>
<div class="search-result">
+1 -4
View File
@@ -166,10 +166,7 @@ new Vue({
return
}
this.fullTextSearch.pageNum = 0
fullTextSearchTimer = setTimeout(() => {
this.fullTextSearchItems.splice(0, this.fullTextSearchItems.length)
this.loadSearchResult()
}, 500)
fullTextSearchTimer = setTimeout(this.loadSearchResult.bind(this), 500)
}
},
mounted () {
+1
View File
@@ -104,6 +104,7 @@ module.exports = function(env, argv) {
dry: false,
})
],
mode: argv.mode,
watch: !isProd
}
}