Skip to content

Commit fe939cb

Browse files
committed
Rename the configurations section component to ApiConfigurationsSection
- rename `apps/editor/src/views/settings/frontend/Home/sections/ConfigurationsSection.tsx` to api configurations sectio
1 parent a88e836 commit fe939cb

3 files changed

Lines changed: 6 additions & 21 deletions

File tree

‎apps/editor/src/views/settings/frontend/Home/Home.tsx‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { useState, useRef, useEffect, useCallback } from 'react'
22
import { Layout as UiLayout } from '@ui/components/editor/settings/Layout'
33
import { NavigationItem as UiNavigationItem } from '@ui/components/editor/settings/NavigationItem'
44
import { ModelProvidersSection } from './sections/ModelProvidersSection'
5-
import { ConfigurationsSection } from './sections/ConfigurationsSection'
5+
import { ApiConfigurationsSection } from './sections/ApiConfigurationsSection'
66
import { Item as UiItem } from '@ui/components/editor/settings/Item'
77
import { Group as UiGroup } from '@ui/components/editor/settings/Group/Group'
88
import { Section as UiSection } from '@ui/components/editor/settings/Section'
@@ -353,7 +353,7 @@ export const Home: React.FC<Props> = (props) => {
353353

354354
<UiSection
355355
ref={(el) => set_section_ref('model-providers', el)}
356-
title={t('sidebar.model-providers')}
356+
title={t('sections.model-providers')}
357357
subtitle={t('model-providers.subtitle')}
358358
actions={
359359
<UiButton on_click={() => props.on_add_provider()}>
@@ -433,7 +433,7 @@ export const Home: React.FC<Props> = (props) => {
433433
</UiGroup>
434434
</UiSection>
435435

436-
<ConfigurationsSection
436+
<ApiConfigurationsSection
437437
ref={(el) => set_section_ref('configurations', el)}
438438
set_section_ref={set_section_ref}
439439
api_configurations={props.api_configurations}

apps/editor/src/views/settings/frontend/Home/sections/ConfigurationsSection.tsx renamed to apps/editor/src/views/settings/frontend/Home/sections/ApiConfigurationsSection.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ type Props = {
4242
on_voice_input_instructions_blur: () => void
4343
}
4444

45-
export const ConfigurationsSection = forwardRef<HTMLDivElement, Props>(
45+
export const ApiConfigurationsSection = forwardRef<HTMLDivElement, Props>(
4646
(props, ref) => {
4747
const { t } = use_translation()
4848

@@ -237,4 +237,4 @@ export const ConfigurationsSection = forwardRef<HTMLDivElement, Props>(
237237
}
238238
)
239239

240-
ConfigurationsSection.displayName = 'ConfigurationsSection'
240+
ApiConfigurationsSection.displayName = 'ApiConfigurationsSection'

‎apps/editor/src/views/settings/frontend/i18n/translations/model-providers.ts‎

Lines changed: 1 addition & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,6 @@
11
export const model_providers = {
22
'model-providers.subtitle': {
3-
en: 'Manage API keys and access tokens.',
4-
pl: 'Zarządzaj kluczami API i tokenami dostępu.',
5-
'zh-cn': '管理 API 密钥和访问令牌。',
6-
ja: 'API キーとアクセストークンを管理します。',
7-
'zh-tw': '管理 API 金鑰和存取權杖。',
8-
de: 'API-Schlüssel und Zugriffstoken verwalten.',
9-
es: 'Gestionar claves API y tokens de acceso.',
10-
fr: "Gérer les clés API et les jetons d'accès.",
11-
'pt-br': 'Gerenciar chaves de API e tokens de acesso.',
12-
ru: 'Управление API ключами и токенами доступа.',
13-
ko: 'API 키 및 액세스 토큰을 관리합니다.',
14-
it: 'Gestisci le chiavi API e i token di accesso.',
15-
tr: 'API anahtarlarını ve erişim belirteçlerini yönetin.',
16-
cs: 'Správa API klíčů a přístupových tokenů.',
17-
hu: 'API kulcsok és hozzáférési tokenek kezelése.',
18-
bg: 'Управление на API ключове и токени за достъп.'
3+
en: 'Make API calls to predefined endpoints or add a custom one.'
194
},
205
'model-providers.notice.credentials': {
216
en: 'Credentials are stored securely in the {link} on your machine.',

0 commit comments

Comments
 (0)