Skip to content

Commit f5a6a6a

Browse files
committed
Update UI labels: change Nodes to Iran Nodes and Servers to Foreign node
- Change 'Nodes' to 'Iran Nodes' in English UI - Change 'Servers' to 'Foreign node' in English UI - Change 'Manage your nodes behind GFW' to 'Manage your iran nodes' - Change 'Manage your foreign tunnel servers' to 'Manage your Foreign servers' - Update Farsi translations: 'نودهای ایران' and 'سرورهای خارج' - Add IP Address column to Nodes table to match Servers table
1 parent 1e9b8ef commit f5a6a6a

2 files changed

Lines changed: 27 additions & 21 deletions

File tree

frontend/src/contexts/LanguageContext.tsx

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -156,8 +156,8 @@ const translations: Record<Language, Translations> = {
156156
},
157157
navigation: {
158158
dashboard: 'Dashboard',
159-
nodes: 'Nodes',
160-
servers: 'Servers',
159+
nodes: 'Iran Nodes',
160+
servers: 'Foreign node',
161161
tunnels: 'Tunnels',
162162
coreHealth: 'Core Health',
163163
logs: 'Logs',
@@ -167,15 +167,15 @@ const translations: Record<Language, Translations> = {
167167
dark: 'Dark',
168168
},
169169
nodes: {
170-
title: 'Nodes',
171-
subtitle: 'Manage your nodes behind GFW',
170+
title: 'Iran Nodes',
171+
subtitle: 'Manage your iran nodes',
172172
addNode: 'Add Node',
173173
viewCACertificate: 'View CA Certificate',
174174
downloadCA: 'Download CA',
175175
},
176176
servers: {
177-
title: 'Foreign Servers',
178-
subtitle: 'Manage your foreign tunnel servers',
177+
title: 'Foreign node',
178+
subtitle: 'Manage your Foreign servers',
179179
viewCACertificate: 'View CA Certificate',
180180
downloadCA: 'Download CA',
181181
},
@@ -281,8 +281,8 @@ const translations: Record<Language, Translations> = {
281281
},
282282
navigation: {
283283
dashboard: 'داشبورد',
284-
nodes: 'نودها',
285-
servers: 'سرورها',
284+
nodes: 'نودهای ایران',
285+
servers: 'سرورهای خارج',
286286
tunnels: 'تونل‌ها',
287287
coreHealth: 'سلامت هسته',
288288
logs: 'لاگ‌ها',
@@ -292,15 +292,15 @@ const translations: Record<Language, Translations> = {
292292
dark: 'تاریک',
293293
},
294294
nodes: {
295-
title: 'نودها',
296-
subtitle: 'مدیریت نودهای پشت فایروال',
295+
title: 'نودهای ایران',
296+
subtitle: 'مدیریت نودهای ایران',
297297
addNode: 'افزودن نود',
298298
viewCACertificate: 'مشاهده گواهی CA',
299299
downloadCA: 'دانلود CA',
300300
},
301301
servers: {
302-
title: 'سرورهای خارجی',
303-
subtitle: 'مدیریت سرورهای تونل خارجی',
302+
title: 'سرورهای خارج',
303+
subtitle: 'مدیریت سرورهای خارج',
304304
viewCACertificate: 'مشاهده گواهی CA',
305305
downloadCA: 'دانلود CA',
306306
},

frontend/src/pages/Nodes.tsx

Lines changed: 15 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -166,6 +166,9 @@ const Nodes = () => {
166166
<th className="px-6 py-3 text-left text-xs font-medium text-gray-500 dark:text-gray-300 uppercase tracking-wider">
167167
Status
168168
</th>
169+
<th className="px-6 py-3 text-left text-xs font-medium text-gray-500 dark:text-gray-300 uppercase tracking-wider">
170+
IP Address
171+
</th>
169172
<th className="px-6 py-3 text-left text-xs font-medium text-gray-500 dark:text-gray-300 uppercase tracking-wider">
170173
Last Seen
171174
</th>
@@ -234,15 +237,18 @@ const Nodes = () => {
234237
return status
235238
}
236239
}
237-
return (
238-
<span className={`inline-flex items-center gap-1 px-2 py-1 rounded-full text-xs font-medium ${getStatusColor(connStatus)}`}>
239-
{getStatusIcon(connStatus)}
240-
{getStatusText(connStatus)}
241-
</span>
242-
)
243-
})()}
244-
</td>
245-
<td className="px-6 py-4 whitespace-nowrap text-sm text-gray-500 dark:text-gray-400">
240+
return (
241+
<span className={`inline-flex items-center gap-1 px-2 py-1 rounded-full text-xs font-medium ${getStatusColor(connStatus)}`}>
242+
{getStatusIcon(connStatus)}
243+
{getStatusText(connStatus)}
244+
</span>
245+
)
246+
})()}
247+
</td>
248+
<td className="px-6 py-4 whitespace-nowrap text-sm text-gray-500 dark:text-gray-400">
249+
{node.metadata?.ip_address || 'N/A'}
250+
</td>
251+
<td className="px-6 py-4 whitespace-nowrap text-sm text-gray-500 dark:text-gray-400">
246252
{new Date(node.last_seen).toLocaleString()}
247253
</td>
248254
<td className="px-6 py-4 whitespace-nowrap text-sm">

0 commit comments

Comments
 (0)