Skip to content

Commit e11390c

Browse files
committed
Remove SSH port forwarding notice from web settings section
- remove notice 'use forwarding o fport 55155...' └── apps └── editor └── src └── views └── settings └── frontend ├── Home │ └── sections │ └── WebSection.tsx └── i18n └── translations ├── index.ts └── web.ts
1 parent 24a6913 commit e11390c

2 files changed

Lines changed: 1 addition & 58 deletions

File tree

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

Lines changed: 1 addition & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import { forwardRef, useEffect, useState } from 'react'
22
import { Section as UiSection } from '@ui/components/editor/settings-view/Section'
33
import { Group as UiGroup } from '@ui/components/editor/settings-view/Group/Group'
4-
import { Notices as UiNotices } from '@ui/components/editor/settings-view/Notices'
54
import { Input as UiInput } from '@ui/components/editor/common/Input'
65
import { Item as UiItem } from '@ui/components/editor/settings-view/Item'
76
import { SortableList } from '@ui/components/editor/settings-view/SortableList'
@@ -10,7 +9,7 @@ import { DefaultConfigurationSelector } from '@ui/components/editor/settings-vie
109
import { WebConfiguration } from '@/types/web-configuration'
1110
import { Icon } from '@ui/components/editor/common/Icon'
1211
import { CHATBOTS } from '@shared/constants/chatbots'
13-
import { use_translation, Translation } from '../../i18n/use-translation'
12+
import { use_translation } from '../../i18n/use-translation'
1413
import { NavItem } from '../Home'
1514

1615
type Props = {
@@ -158,25 +157,6 @@ export const WebSection = forwardRef<HTMLDivElement, Props>((props, ref) => {
158157

159158
return (
160159
<UiSection ref={ref} title={t('web.title')} subtitle={t('web.subtitle')}>
161-
<UiNotices
162-
notices={[
163-
{
164-
type: 'info',
165-
message: (
166-
<Translation
167-
id="web.notice-forwarding"
168-
components={{
169-
forwarding: (
170-
<a href="https://code.visualstudio.com/docs/debugtest/port-forwarding">
171-
{t('web.forwarding')}
172-
</a>
173-
)
174-
}}
175-
/>
176-
)
177-
}
178-
]}
179-
/>
180160
<div
181161
ref={(el) => props.set_section_ref('section:web:group:chatbots', el)}
182162
>

‎apps/editor/src/views/settings/frontend/i18n/translations/web.ts‎

Lines changed: 0 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -20,43 +20,6 @@ export const translations = {
2020
hu: 'Chatbotok automatikus kitöltése.',
2121
bg: 'Автоматично попълване на чатботове.'
2222
},
23-
'web.notice-forwarding': {
24-
en: 'Use {forwarding} of port 55155 when using remote machine via SSH.',
25-
pl: 'Użyj {forwarding} portu 55155 podczas korzystania ze zdalnej maszyny przez SSH.',
26-
'zh-cn': '通过 SSH 使用远程机器时,使用端口 55155 的 {forwarding}。',
27-
ja: 'SSH 経由でリモートマシンを使用する場合は、ポート 55155 の {forwarding} を使用してください。',
28-
'zh-tw': '透過 SSH 使用遠端機器時,使用連接埠 55155 的 {forwarding}。',
29-
de: 'Verwenden Sie die {forwarding} für Port 55155, wenn Sie eine Remotemaschine über SSH nutzen.',
30-
es: 'Utiliza el {forwarding} del puerto 55155 cuando uses una máquina remota a través de SSH.',
31-
fr: "Utilisez la {forwarding} du port 55155 lors de l'utilisation d'une machine distante via SSH.",
32-
'pt-br':
33-
'Use o {forwarding} da porta 55155 ao usar uma máquina remota via SSH.',
34-
ru: 'Используйте {forwarding} порта 55155 при использовании удаленной машины через SSH.',
35-
ko: 'SSH를 통해 원격 머신을 사용할 때는 포트 55155의 {forwarding}을 사용하세요.',
36-
it: 'Usa il {forwarding} della porta 55155 quando usi una macchina remota tramite SSH.',
37-
tr: 'SSH üzerinden uzak makine kullanırken 55155 numaralı bağlantı noktasının {forwarding} özelliğini kullanın.',
38-
cs: 'Při použití vzdáleného počítače přes SSH použijte {forwarding} portu 55155.',
39-
hu: 'Használja az 55155-ös port {forwarding} funkcióját, ha SSH-n keresztül távoli gépet használ.',
40-
bg: 'Използвайте {forwarding} на порт 55155, когато използвате отдалечена машина чрез SSH.'
41-
},
42-
'web.forwarding': {
43-
en: 'forwarding',
44-
pl: 'przekierowania',
45-
'zh-cn': '端口转发',
46-
ja: 'ポートフォワーディング',
47-
'zh-tw': '通訊埠轉發',
48-
de: 'Portweiterleitung',
49-
es: 'reenvío de puertos',
50-
fr: 'redirection de port',
51-
'pt-br': 'encaminhamento de porta',
52-
ru: 'переадресации',
53-
ko: '포트 포워딩',
54-
it: 'port forwarding',
55-
tr: 'yönlendirme',
56-
cs: 'přesměrování',
57-
hu: 'porttovábbítás',
58-
bg: 'пренасочване'
59-
},
6023
'chatbots.configurations.title': {
6124
en: 'Chatbots',
6225
pl: 'Chatboty',

0 commit comments

Comments
 (0)