-
Notifications
You must be signed in to change notification settings - Fork 94
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: fix Uncaught ReferenceError: importScripts is not defined
- Loading branch information
1 parent
4376e13
commit 139b82b
Showing
13 changed files
with
87 additions
and
373 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
129 changes: 0 additions & 129 deletions
129
docusaurus-search-local/src/client/utils/SearchSourceFactory.spec.ts
This file was deleted.
Oops, something went wrong.
84 changes: 0 additions & 84 deletions
84
docusaurus-search-local/src/client/utils/SearchSourceFactory.ts
This file was deleted.
Oops, something went wrong.
18 changes: 1 addition & 17 deletions
18
docusaurus-search-local/src/client/utils/__mocks__/proxiedGenerated.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,5 @@ | ||
export let language = ["en", "zh"]; | ||
export let removeDefaultStopWordFilter = false; | ||
export let removeDefaultStemmer = false; | ||
export const searchIndexUrl = "search-index{dir}.json?_=abc"; | ||
export const searchResultLimits = 8; | ||
export const removeDefaultStemmer = false; | ||
export const searchResultContextMaxLength = 50; | ||
export const explicitSearchResultPath = false; | ||
export const docsPluginIdForPreferredVersion = undefined; | ||
export const indexDocs = true; | ||
|
||
export function __setLanguage(value: string[]): void { | ||
language = value; | ||
} | ||
|
||
export function __setRemoveDefaultStopWordFilter(value: boolean): void { | ||
removeDefaultStopWordFilter = value; | ||
} | ||
|
||
export function __setRemoveDefaultStemmer(value: boolean): void { | ||
removeDefaultStemmer = value; | ||
} |
12 changes: 12 additions & 0 deletions
12
docusaurus-search-local/src/client/utils/__mocks__/proxiedGeneratedConstants.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
export let language = ["en", "zh"]; | ||
export let removeDefaultStopWordFilter = false; | ||
export const searchIndexUrl = "search-index{dir}.json?_=abc"; | ||
export const searchResultLimits = 8; | ||
|
||
export function __setLanguage(value: string[]): void { | ||
language = value; | ||
} | ||
|
||
export function __setRemoveDefaultStopWordFilter(value: boolean): void { | ||
removeDefaultStopWordFilter = value; | ||
} |
2 changes: 2 additions & 0 deletions
2
docusaurus-search-local/src/client/utils/proxiedGeneratedConstants.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
// This file is auto generated while building. | ||
export * from "@generated/@easyops-cn/docusaurus-search-local/default/generated-constants.js"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.