style: add margin to alerts in Github Copilot settings
- Updated the styling of alert components in the Github Copilot settings to include top and bottom margins for improved spacing and visual clarity.
This commit is contained in:
parent
88143ba695
commit
ea31f27451
@ -982,7 +982,7 @@
|
|||||||
"search_placeholder": "Search model id or name",
|
"search_placeholder": "Search model id or name",
|
||||||
"title": "Model Provider",
|
"title": "Model Provider",
|
||||||
"copilot": {
|
"copilot": {
|
||||||
"tooltip": "You need to log in to Github before using Github Copilot in Cherry Studio.",
|
"tooltip": "You need to log in to Github before using Github Copilot",
|
||||||
"description": "Your GitHub account needs to subscribe to Copilot.",
|
"description": "Your GitHub account needs to subscribe to Copilot.",
|
||||||
"login": "Log in to Github",
|
"login": "Log in to Github",
|
||||||
"connect": "Connect to Github",
|
"connect": "Connect to Github",
|
||||||
|
|||||||
@ -982,7 +982,7 @@
|
|||||||
"search_placeholder": "モデルIDまたは名前を検索",
|
"search_placeholder": "モデルIDまたは名前を検索",
|
||||||
"title": "モデルプロバイダー",
|
"title": "モデルプロバイダー",
|
||||||
"copilot": {
|
"copilot": {
|
||||||
"tooltip": "Cherry StudioでGithub Copilotを使用するには、まずGithubにログインする必要があります。",
|
"tooltip": "Github Copilot を使用するには、まず Github にログインする必要があります。",
|
||||||
"description": "あなたのGithubアカウントはCopilotを購読する必要があります。",
|
"description": "あなたのGithubアカウントはCopilotを購読する必要があります。",
|
||||||
"login": "GitHubにログインする",
|
"login": "GitHubにログインする",
|
||||||
"connect": "GitHubに接続する",
|
"connect": "GitHubに接続する",
|
||||||
|
|||||||
@ -982,7 +982,7 @@
|
|||||||
"search_placeholder": "Поиск по ID или имени модели",
|
"search_placeholder": "Поиск по ID или имени модели",
|
||||||
"title": "Провайдеры моделей",
|
"title": "Провайдеры моделей",
|
||||||
"copilot": {
|
"copilot": {
|
||||||
"tooltip": "В Cherry Studio для использования Github Copilot необходимо сначала войти в Github.",
|
"tooltip": "Для использования Github Copilot необходимо сначала войти в Github.",
|
||||||
"description": "Ваша учетная запись Github должна подписаться на Copilot.",
|
"description": "Ваша учетная запись Github должна подписаться на Copilot.",
|
||||||
"login": "Войти в Github",
|
"login": "Войти в Github",
|
||||||
"connect": "Подключить Github",
|
"connect": "Подключить Github",
|
||||||
|
|||||||
@ -982,21 +982,21 @@
|
|||||||
"search_placeholder": "搜索模型 ID 或名称",
|
"search_placeholder": "搜索模型 ID 或名称",
|
||||||
"title": "模型服务",
|
"title": "模型服务",
|
||||||
"copilot": {
|
"copilot": {
|
||||||
"tooltip": "在Cherry Studio中使用Github Copilot需要先登录Github",
|
"tooltip": "使用 Github Copilot 需要先登录 Github",
|
||||||
"description": "您的 Github 账号需要订阅 Copilot",
|
"description": "您的 Github 账号需要订阅 Copilot",
|
||||||
"login": "登录 Github",
|
"login": "登录 Github",
|
||||||
"connect": "连接 Github",
|
"connect": "连接 Github",
|
||||||
"logout": "退出 Github",
|
"logout": "退出 Github",
|
||||||
"auth_success_title": "认证成功",
|
"auth_success_title": "认证成功",
|
||||||
"code_generated_title": "获取 Device Code",
|
"code_generated_title": "获取 Device Code",
|
||||||
"code_generated_desc": "请将device code复制到下面的浏览器链接中",
|
"code_generated_desc": "请将 Device Code 复制到下面的浏览器链接中",
|
||||||
"code_failed": "获取 Device Code 失败,请重试",
|
"code_failed": "获取 Device Code 失败,请重试",
|
||||||
"auth_success": "Github Copilot 认证成功",
|
"auth_success": "Github Copilot 认证成功",
|
||||||
"auth_failed": "Github Copilot 认证失败",
|
"auth_failed": "Github Copilot 认证失败",
|
||||||
"logout_success": "已成功退出",
|
"logout_success": "已成功退出",
|
||||||
"logout_failed": "退出失败,请重试",
|
"logout_failed": "退出失败,请重试",
|
||||||
"confirm_title": "风险警告",
|
"confirm_title": "风险警告",
|
||||||
"confirm_login": "过度使用可能会导致您的Github遭到封号,请谨慎使用!!!!",
|
"confirm_login": "过度使用可能会导致您的 Github 账号遭到封号,请谨慎使用!!!!",
|
||||||
"rate_limit": "速率限制",
|
"rate_limit": "速率限制",
|
||||||
"custom_headers": "自定义请求头",
|
"custom_headers": "自定义请求头",
|
||||||
"headers_description": "自定义请求头(json格式)",
|
"headers_description": "自定义请求头(json格式)",
|
||||||
|
|||||||
@ -982,21 +982,21 @@
|
|||||||
"search_placeholder": "搜尋模型 ID 或名稱",
|
"search_placeholder": "搜尋模型 ID 或名稱",
|
||||||
"title": "模型提供者",
|
"title": "模型提供者",
|
||||||
"copilot": {
|
"copilot": {
|
||||||
"tooltip": "在Cherry Studio中使用Github Copilot需要先登入Github",
|
"tooltip": "使用 Github Copilot 需要先登入 Github",
|
||||||
"description": "您的 Github 帳號需要訂閱 Copilot",
|
"description": "您的 Github 帳號需要訂閱 Copilot",
|
||||||
"login": "登入 Github",
|
"login": "登入 Github",
|
||||||
"connect": "連接 Github",
|
"connect": "連接 Github",
|
||||||
"logout": "退出 Github",
|
"logout": "退出 Github",
|
||||||
"auth_success_title": "認證成功",
|
"auth_success_title": "認證成功",
|
||||||
"code_generated_title": "獲取設備代碼",
|
"code_generated_title": "獲取設備代碼",
|
||||||
"code_generated_desc": "請將設備代碼複製到下面的瀏覽器連結中。",
|
"code_generated_desc": "請將設備代碼複製到下面的瀏覽器連結中",
|
||||||
"code_failed": "獲取 Device Code失敗,請重試",
|
"code_failed": "獲取 Device Code失敗,請重試",
|
||||||
"auth_success": "Github Copilot 認證成功",
|
"auth_success": "Github Copilot 認證成功",
|
||||||
"auth_failed": "Github Copilot認證失敗",
|
"auth_failed": "Github Copilot認證失敗",
|
||||||
"logout_success": "已成功登出",
|
"logout_success": "已成功登出",
|
||||||
"logout_failed": "退出失敗,請重試",
|
"logout_failed": "退出失敗,請重試",
|
||||||
"confirm_title": "風險警告",
|
"confirm_title": "風險警告",
|
||||||
"confirm_login": "過度使用可能會導致您的Github帳號被封,請謹慎使用!!!!",
|
"confirm_login": "過度使用可能會導致您的 Github 帳號遭到封號,請謹慎使用!!!!",
|
||||||
"rate_limit": "速率限制",
|
"rate_limit": "速率限制",
|
||||||
"custom_headers": "自訂請求標頭",
|
"custom_headers": "自訂請求標頭",
|
||||||
"headers_description": "自訂請求標頭(json格式)",
|
"headers_description": "自訂請求標頭(json格式)",
|
||||||
|
|||||||
@ -182,6 +182,7 @@ const GithubCopilotSettings: FC<GithubCopilotSettingsProps> = ({ provider: initi
|
|||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
<Alert
|
<Alert
|
||||||
|
style={{ marginTop: 12, marginBottom: 12 }}
|
||||||
type="info"
|
type="info"
|
||||||
message={t('settings.provider.copilot.code_generated_title')}
|
message={t('settings.provider.copilot.code_generated_title')}
|
||||||
description={
|
description={
|
||||||
@ -212,6 +213,7 @@ const GithubCopilotSettings: FC<GithubCopilotSettingsProps> = ({ provider: initi
|
|||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
<Alert
|
<Alert
|
||||||
|
style={{ marginTop: 12, marginBottom: 12 }}
|
||||||
type="warning"
|
type="warning"
|
||||||
message={t('settings.provider.copilot.tooltip')}
|
message={t('settings.provider.copilot.tooltip')}
|
||||||
description={t('settings.provider.copilot.description')}
|
description={t('settings.provider.copilot.description')}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user