From 6aaa3def0dae80b3ab4a4fb556eb48feef91199d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?George=C2=B7Dong?= Date: Wed, 19 Feb 2025 00:11:48 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=B7=BB=E5=8A=A0Notion=E6=96=87?= =?UTF-8?q?=E6=A1=A3=E6=8C=89=E9=92=AETooltip?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/renderer/src/i18n/locales/en-us.json | 1 + src/renderer/src/i18n/locales/ja-jp.json | 1 + src/renderer/src/i18n/locales/ru-ru.json | 1 + src/renderer/src/i18n/locales/zh-cn.json | 1 + src/renderer/src/i18n/locales/zh-tw.json | 1 + .../pages/settings/DataSettings/DataSettings.tsx | 16 ++++++++-------- 6 files changed, 13 insertions(+), 8 deletions(-) diff --git a/src/renderer/src/i18n/locales/en-us.json b/src/renderer/src/i18n/locales/en-us.json index 28a70e02..d33b6cbc 100644 --- a/src/renderer/src/i18n/locales/en-us.json +++ b/src/renderer/src/i18n/locales/en-us.json @@ -567,6 +567,7 @@ "notion.database_id": "Notion Database ID", "notion.database_id_placeholder": "Enter Notion Database ID", "notion.title": "Notion Configuration", + "notion.help": "Notion Configuration Documentation", "notion.check": { "button": "Check", "fail": "Connection failed, please check network and Api_key and Database_id", diff --git a/src/renderer/src/i18n/locales/ja-jp.json b/src/renderer/src/i18n/locales/ja-jp.json index faaab183..2ab936b4 100644 --- a/src/renderer/src/i18n/locales/ja-jp.json +++ b/src/renderer/src/i18n/locales/ja-jp.json @@ -567,6 +567,7 @@ "notion.database_id": "Notion データベースID", "notion.database_id_placeholder": "Notion データベースIDを入力してください", "notion.title": "Notion 設定", + "notion.help": "Notion 設定ドキュメント", "notion.check": { "button": "確認", "fail": "接続エラー、ネットワーク設定とApi_keyとDatabase_idを確認してください", diff --git a/src/renderer/src/i18n/locales/ru-ru.json b/src/renderer/src/i18n/locales/ru-ru.json index ae7e54b9..03e41da4 100644 --- a/src/renderer/src/i18n/locales/ru-ru.json +++ b/src/renderer/src/i18n/locales/ru-ru.json @@ -567,6 +567,7 @@ "notion.database_id": "ID базы данных Notion", "notion.database_id_placeholder": "Введите ID базы данных Notion", "notion.title": "Настройки Notion", + "notion.help": "Документация по настройке Notion", "notion.check": { "button": "Проверить", "fail": "Не удалось подключиться, пожалуйста, проверьте сеть и правильность Api_key и Database_id", diff --git a/src/renderer/src/i18n/locales/zh-cn.json b/src/renderer/src/i18n/locales/zh-cn.json index 37a763a2..f3041187 100644 --- a/src/renderer/src/i18n/locales/zh-cn.json +++ b/src/renderer/src/i18n/locales/zh-cn.json @@ -567,6 +567,7 @@ "notion.database_id": "Notion 数据库 ID", "notion.database_id_placeholder": "请输入Notion 数据库 ID", "notion.title": "Notion 配置", + "notion.help" : "Notion 配置文档", "notion.check": { "button": "检查", "fail": "连接失败,请检查网络及Api_key和Database_id是否正确", diff --git a/src/renderer/src/i18n/locales/zh-tw.json b/src/renderer/src/i18n/locales/zh-tw.json index 000f1b3f..9ce0f9e2 100644 --- a/src/renderer/src/i18n/locales/zh-tw.json +++ b/src/renderer/src/i18n/locales/zh-tw.json @@ -565,6 +565,7 @@ "notion.database_id": "Notion 資料庫 ID", "notion.database_id_placeholder": "請輸入Notion 資料庫 ID", "notion.title": "Notion 配置", + "notion.help": "Notion 配置文檔", "notion.check": { "button": "檢查", "fail": "連接失敗,請檢查網絡及Api_key和Database_id是否正確", diff --git a/src/renderer/src/pages/settings/DataSettings/DataSettings.tsx b/src/renderer/src/pages/settings/DataSettings/DataSettings.tsx index bb7d3ac9..b51483c1 100644 --- a/src/renderer/src/pages/settings/DataSettings/DataSettings.tsx +++ b/src/renderer/src/pages/settings/DataSettings/DataSettings.tsx @@ -7,7 +7,7 @@ import { backup, reset, restore } from '@renderer/services/BackupService' import { RootState, useAppDispatch } from '@renderer/store' import { setNotionApiKey, setNotionDatabaseID } from '@renderer/store/settings' import { AppInfo } from '@renderer/types' -import { Button, Modal, Typography } from 'antd' +import { Button, Modal, Tooltip, Typography } from 'antd' import Input from 'antd/es/input/Input' import { FC, useEffect, useState } from 'react' import { useTranslation } from 'react-i18next' @@ -73,10 +73,12 @@ const NotionSettings: FC = () => { {t('settings.data.notion.title')} - + + + @@ -104,9 +106,7 @@ const NotionSettings: FC = () => { style={{ width: 250 }} placeholder={t('settings.data.notion.api_key_placeholder')} /> - + {/* 添加分割线 */}