Skip to content

Commit

Permalink
feat: add a search input component for other pages (X-lab2017#35)
Browse files Browse the repository at this point in the history
Signed-off-by: frank-zsy <[email protected]>
Signed-off-by: Bruce-Jay <[email protected]>
  • Loading branch information
frank-zsy authored and Bruce-Jay committed Sep 8, 2024
1 parent 7ee7a0f commit bdca01f
Show file tree
Hide file tree
Showing 8 changed files with 515 additions and 53 deletions.
4 changes: 4 additions & 0 deletions docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,10 @@ const config = {
},
},

customFields: {
ossBaseUrl: 'https://oss.x-lab.info/open_digger/',
},

presets: [
[
'classic',
Expand Down
9 changes: 6 additions & 3 deletions i18n/en/code.json
Original file line number Diff line number Diff line change
Expand Up @@ -325,12 +325,15 @@
"metricCharts.dataNotFound": {
"message": "Data not found"
},
"metricCharts.input.placeholder": {
"message": "Repo name or user login"
"metricCharts.invalidInput": {
"message": "Invalid input, please check your input."
},
"metricCharts.submit": {
"searchInput.submit": {
"message": "Submit"
},
"searchInput.placeholder": {
"message": "Search for a name..."
},
"leaderboard.dataInputPlaceHolder": {
"message": "Data input, JSON format with each item as a row in the table"
},
Expand Down
9 changes: 6 additions & 3 deletions i18n/zh/code.json
Original file line number Diff line number Diff line change
Expand Up @@ -325,12 +325,15 @@
"metricCharts.dataNotFound": {
"message": "数据未找到"
},
"metricCharts.input.placeholder": {
"message": "请输入要查询的项目或开发者名称"
"metricCharts.invalidInput": {
"message": "请检查输入参数"
},
"metricCharts.submit": {
"searchInput.submit": {
"message": "提交"
},
"searchInput.placeholder": {
"message": "键入搜索名称..."
},
"leaderboard.dataInputPlaceHolder": {
"message": "数据输入,内容为 JSON 数据,每项为表格一行内容"
},
Expand Down
253 changes: 253 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
"prism-react-renderer": "^2.3.1",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"react-select": "^5.8.0",
"rehype-katex": "^7.0.0",
"remark-math": "^6.0.0",
"stackedit-js": "^1.0.7"
Expand Down
Loading

0 comments on commit bdca01f

Please sign in to comment.