Skip to content

Commit

Permalink
fix type checking
Browse files Browse the repository at this point in the history
  • Loading branch information
zmh-program committed Dec 27, 2023
1 parent d19ce5e commit 3d1e8c8
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 6 deletions.
3 changes: 2 additions & 1 deletion app/src/resources/i18n/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -424,7 +424,8 @@
"searchEndpoint": "Search Endpoint",
"searchQuery": "Max Search Results",
"searchTip": "DuckDuckGo search endpoint, if not filled in, use WebPilot and New Bing reverse search function by default.\nDuckDuckGo API project build: [duckduckgo-api](https://github.com/binjie09/duckduckgo-api).",
"mailFrom": "Sender"
"mailFrom": "Sender",
"test": "Test outgoing"
},
"user": "User Management",
"invitation-code": "Invitation Code",
Expand Down
3 changes: 2 additions & 1 deletion app/src/resources/i18n/ja.json
Original file line number Diff line number Diff line change
Expand Up @@ -424,7 +424,8 @@
"searchEndpoint": "アクセスポイントを検索",
"searchQuery": "検索結果の最大数",
"searchTip": "DuckDuckGoは、入力せずにWebPilotやNew Bing Reverse Searchなどのアクセスポイントを自動的に検索します。\\ nDuckDuckGo APIプロジェクトビルド:[ duckduckgo - api ]( https://github.com/binjie09/duckduckgo-api )。",
"mailFrom": "発信元"
"mailFrom": "発信元",
"test": "テスト送信"
},
"user": "ユーザー管理",
"invitation-code": "招待コード",
Expand Down
3 changes: 2 additions & 1 deletion app/src/resources/i18n/ru.json
Original file line number Diff line number Diff line change
Expand Up @@ -424,7 +424,8 @@
"searchEndpoint": "Конечная точка поиска",
"searchQuery": "Максимальное количество результатов поиска",
"searchTip": "Конечная точка поиска DuckDuckGo, если она не заполнена, по умолчанию используется функция обратного поиска WebPilot и New Bing.\nСборка проекта DuckDuckGo API: [duckduckgo-api](https://github.com/binjie09/duckduckgo-api).",
"mailFrom": "От"
"mailFrom": "От",
"test": "Тест исходящий"
},
"user": "Управление пользователями",
"invitation-code": "Код приглашения",
Expand Down
6 changes: 3 additions & 3 deletions app/src/routes/admin/System.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ function General({ data, dispatch, onChange }: CompProps<GeneralState>) {
</ParagraphDescription>
<ParagraphFooter>
<div className={`grow`} />
<Button size={`sm`} loading={true} onClick={onChange}>
<Button size={`sm`} loading={true} onClick={async () => await onChange()}>
{t("admin.system.save")}
</Button>
</ParagraphFooter>
Expand Down Expand Up @@ -200,7 +200,7 @@ function Mail({ data, dispatch, onChange }: CompProps<MailState>) {
</DialogFooter>
</DialogContent>
</Dialog>
<Button size={`sm`} loading={true} onClick={onChange}>
<Button size={`sm`} loading={true} onClick={async () => await onChange()}>
{t("admin.system.save")}
</Button>
</ParagraphFooter>
Expand Down Expand Up @@ -245,7 +245,7 @@ function Search({ data, dispatch, onChange }: CompProps<SearchState>) {
<ParagraphDescription>{t("admin.system.searchTip")}</ParagraphDescription>
<ParagraphFooter>
<div className={`grow`} />
<Button size={`sm`} loading={true} onClick={onChange}>
<Button size={`sm`} loading={true} onClick={async () => await onChange()}>
{t("admin.system.save")}
</Button>
</ParagraphFooter>
Expand Down

0 comments on commit 3d1e8c8

Please sign in to comment.