vuepress-theme-uniapp-official 1.4.33 → 1.4.35

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -159,6 +159,7 @@
159
159
  searchBox: { placeholder, buttonText, searchBy },
160
160
  resultsScreen: { resultsText, noResultsText, askNoResultsText },
161
161
  },
162
+ extraFacetFilters = []
162
163
  } = searchPageConfig;
163
164
  const crawlerUrl = 'https://zh.uniapp.dcloud.io/'
164
165
 
@@ -358,16 +359,8 @@
358
359
  searchByAlgolia() {
359
360
  const { searchParameters = {} } = this.options;
360
361
  let categoryArr = [`category:${this.currentCategory.text}`];
361
- if (this.currentCategory.text === 'uni-app') {
362
- // category:uni-app OR tag:UTS OR tag:插件
363
- categoryArr.push('tag:UTS', 'tag:插件')
364
- categoryArr = [categoryArr];
365
- }
366
- if (this.currentCategory.text === 'uni-app x') {
367
- // category:uni-app OR tag:UTS OR tag:插件
368
- categoryArr.push('tag:插件', 'tag:工程化')
369
- categoryArr = [categoryArr];
370
- }
362
+ categoryArr.push(...extraFacetFilters)
363
+ categoryArr = [categoryArr];
371
364
  return searchClient(
372
365
  Object.assign({}, this.options, {
373
366
  query: `'${this.searchValue}'`,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vuepress-theme-uniapp-official",
3
- "version": "1.4.33",
3
+ "version": "1.4.35",
4
4
  "description": "uni-app official website theme for vuepress",
5
5
  "main": "index.js",
6
6
  "repository": {