@rspress/plugin-algolia 2.0.0-beta.32 → 2.0.0-beta.34
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.
- package/dist/runtime/Search.css +22 -25
- package/dist/runtime/locales.js +23 -23
- package/package.json +7 -7
package/dist/runtime/Search.css
CHANGED
|
@@ -2,34 +2,31 @@
|
|
|
2
2
|
align-self: center;
|
|
3
3
|
}
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
5
|
+
[class*="DocSearch"] {
|
|
6
|
+
--docsearch-primary-color: var(--rp-c-brand);
|
|
7
|
+
--docsearch-text-color: var(--rp-c-text-1);
|
|
8
|
+
--docsearch-secondary-text-color: var(--rp-c-text-2);
|
|
9
|
+
--docsearch-muted-color: var(--rp-c-text-2);
|
|
10
|
+
--docsearch-subtle-color: var(--rp-c-divider);
|
|
11
|
+
--docsearch-container-background: #3c3c3c66;
|
|
12
|
+
--docsearch-modal-background: var(--rp-c-bg);
|
|
13
|
+
--docsearch-searchbox-background: var(--rp-c-bg-soft);
|
|
14
|
+
--docsearch-searchbox-focus-background: var(--rp-c-bg);
|
|
15
|
+
--docsearch-hit-color: var(--rp-c-text-1);
|
|
16
|
+
--docsearch-hit-active-color: var(--rp-c-text-1);
|
|
17
|
+
--docsearch-hit-background: var(--rp-c-bg-soft);
|
|
18
|
+
--docsearch-hit-shadow: var(--rp-shadow-2);
|
|
19
|
+
--docsearch-footer-background: var(--rp-c-bg-soft);
|
|
20
|
+
--docsearch-key-background: var(--rp-c-bg-mute);
|
|
21
|
+
--docsearch-key-color: var(--rp-c-text-2);
|
|
22
|
+
--docsearch-logo-color: var(--rp-c-text-2);
|
|
23
|
+
--docsearch-highlight-color: var(--rp-c-brand);
|
|
24
|
+
--docsearch-icon-color: var(--rp-c-text-2);
|
|
25
|
+
--docsearch-background-color: var(--rp-c-bg);
|
|
12
26
|
}
|
|
13
27
|
|
|
14
28
|
html.rp-dark [class*="DocSearch"] {
|
|
15
|
-
--docsearch-
|
|
16
|
-
--docsearch-primary-color: var(--rp-c-brand);
|
|
17
|
-
--docsearch-highlight-color: var(--docsearch-primary-color);
|
|
18
|
-
--docsearch-searchbox-shadow: inset 0 0 0 2px var(--docsearch-primary-color);
|
|
19
|
-
--docsearch-searchbox-focus-background: var(--rp-c-bg-mute);
|
|
20
|
-
--docsearch-modal-shadow: none;
|
|
21
|
-
--docsearch-footer-shadow: none;
|
|
22
|
-
--docsearch-logo-color: var(--rp-c-text-2);
|
|
23
|
-
--docsearch-hit-background: var(--rp-c-dark-light-1);
|
|
24
|
-
--docsearch-hit-color: var(--rp-c-text-2);
|
|
25
|
-
--docsearch-hit-shadow: none;
|
|
26
|
-
--docsearch-modal-background: var(--rp-c-bg);
|
|
27
|
-
--docsearch-footer-background: var(--rp-c-bg);
|
|
28
|
-
--docsearch-key-gradient: var(--rp-c-bg);
|
|
29
|
-
--docsearch-key-shadow: var(--rp-c-bg-mute);
|
|
30
|
-
--docsearch-text-color: var(--rp-c-text-2);
|
|
31
|
-
--docsearch-muted-color: var(--rp-c-text-2);
|
|
32
|
-
--docsearch-key-pressed-shadow: none;
|
|
29
|
+
--docsearch-container-background: #000c;
|
|
33
30
|
}
|
|
34
31
|
|
|
35
32
|
@media (width <= 768px) {
|
package/dist/runtime/locales.js
CHANGED
|
@@ -1,41 +1,41 @@
|
|
|
1
1
|
const ZH_LOCALES = {
|
|
2
2
|
zh: {
|
|
3
|
-
placeholder:
|
|
3
|
+
placeholder: '搜索文档',
|
|
4
4
|
translations: {
|
|
5
5
|
button: {
|
|
6
|
-
buttonText:
|
|
7
|
-
buttonAriaLabel:
|
|
6
|
+
buttonText: '搜索',
|
|
7
|
+
buttonAriaLabel: '搜索'
|
|
8
8
|
},
|
|
9
9
|
modal: {
|
|
10
10
|
searchBox: {
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
11
|
+
clearButtonTitle: '清除查询条件',
|
|
12
|
+
clearButtonAriaLabel: '清除查询条件',
|
|
13
|
+
closeButtonText: '取消',
|
|
14
|
+
closeButtonAriaLabel: '取消'
|
|
15
15
|
},
|
|
16
16
|
startScreen: {
|
|
17
|
-
recentSearchesTitle:
|
|
18
|
-
noRecentSearchesText:
|
|
19
|
-
saveRecentSearchButtonTitle:
|
|
20
|
-
removeRecentSearchButtonTitle:
|
|
21
|
-
favoriteSearchesTitle:
|
|
22
|
-
removeFavoriteSearchButtonTitle:
|
|
17
|
+
recentSearchesTitle: '搜索历史',
|
|
18
|
+
noRecentSearchesText: '没有搜索历史',
|
|
19
|
+
saveRecentSearchButtonTitle: '保存至搜索历史',
|
|
20
|
+
removeRecentSearchButtonTitle: '从搜索历史中移除',
|
|
21
|
+
favoriteSearchesTitle: '收藏',
|
|
22
|
+
removeFavoriteSearchButtonTitle: '从收藏中移除'
|
|
23
23
|
},
|
|
24
24
|
errorScreen: {
|
|
25
|
-
titleText:
|
|
26
|
-
helpText:
|
|
25
|
+
titleText: '无法获取结果',
|
|
26
|
+
helpText: '你可能需要检查你的网络连接'
|
|
27
27
|
},
|
|
28
28
|
footer: {
|
|
29
|
-
selectText:
|
|
30
|
-
navigateText:
|
|
31
|
-
closeText:
|
|
32
|
-
|
|
29
|
+
selectText: '选择',
|
|
30
|
+
navigateText: '切换',
|
|
31
|
+
closeText: '关闭',
|
|
32
|
+
poweredByText: '搜索提供者'
|
|
33
33
|
},
|
|
34
34
|
noResultsScreen: {
|
|
35
|
-
noResultsText:
|
|
36
|
-
suggestedQueryText:
|
|
37
|
-
reportMissingResultsText:
|
|
38
|
-
reportMissingResultsLinkText:
|
|
35
|
+
noResultsText: '无法找到相关结果',
|
|
36
|
+
suggestedQueryText: '你可以尝试查询',
|
|
37
|
+
reportMissingResultsText: '你认为该查询应该有结果?',
|
|
38
|
+
reportMissingResultsLinkText: '点击反馈'
|
|
39
39
|
}
|
|
40
40
|
}
|
|
41
41
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rspress/plugin-algolia",
|
|
3
|
-
"version": "2.0.0-beta.
|
|
3
|
+
"version": "2.0.0-beta.34",
|
|
4
4
|
"description": "A plugin for rspress to search with algolia in docs.",
|
|
5
5
|
"bugs": "https://github.com/web-infra-dev/rspress/issues",
|
|
6
6
|
"repository": {
|
|
@@ -34,15 +34,15 @@
|
|
|
34
34
|
"static"
|
|
35
35
|
],
|
|
36
36
|
"dependencies": {
|
|
37
|
-
"@docsearch/css": "^
|
|
38
|
-
"@docsearch/react": "^
|
|
37
|
+
"@docsearch/css": "^4.1.0",
|
|
38
|
+
"@docsearch/react": "^4.1.0"
|
|
39
39
|
},
|
|
40
40
|
"devDependencies": {
|
|
41
|
-
"@microsoft/api-extractor": "^7.52.
|
|
41
|
+
"@microsoft/api-extractor": "^7.52.13",
|
|
42
42
|
"@rsbuild/plugin-react": "~1.4.0",
|
|
43
|
-
"@rslib/core": "0.
|
|
43
|
+
"@rslib/core": "0.13.3",
|
|
44
44
|
"@types/node": "^22.8.1",
|
|
45
|
-
"@types/react": "^19.1.
|
|
45
|
+
"@types/react": "^19.1.13",
|
|
46
46
|
"@types/react-dom": "^19.1.9",
|
|
47
47
|
"react": "^19.1.1",
|
|
48
48
|
"rsbuild-plugin-publint": "^0.3.3",
|
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
"@rspress/config": "1.0.0"
|
|
51
51
|
},
|
|
52
52
|
"peerDependencies": {
|
|
53
|
-
"@rspress/core": "^2.0.0-beta.
|
|
53
|
+
"@rspress/core": "^2.0.0-beta.34"
|
|
54
54
|
},
|
|
55
55
|
"engines": {
|
|
56
56
|
"node": ">=18.0.0"
|