Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
19 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,11 @@ const Network = () => {
GRPC: 'grpcs://',
WS: 'wss://'
};

const internalProtocolMap = {
HTTP: 'http://',
GRPC: 'grpc://',
WS: ['ws', '://'].join('')
};
const networkColumn: {
title: string;
dataIndex?: keyof NetworkType;
Expand All @@ -100,19 +104,19 @@ const Network = () => {
title: t('internal_debug_address'),
key: 'internalAddress',
render: (item: NetworkType) => {
const prefix = item.openPublicDomain ? protocolMap[item.protocol] : 'https://';
const prefix = item.openPublicDomain ? internalProtocolMap[item.protocol] : 'http://';
const address = `${prefix}${devboxDetail?.name}.${env.namespace}.svc.cluster.local:${item.port}`;
return (
<Tooltip>
<TooltipTrigger asChild>
<div
className="flex cursor-pointer break-all hover:underline"
<span
className="inline-block cursor-pointer break-all hover:underline"
onClick={() => copyData(address)}
>
{address.replace('.svc.cluster.local', '')}
</div>
</span>
</TooltipTrigger>
<TooltipContent side="bottom">{t('copy')}</TooltipContent>
<TooltipContent side="top" align="center"><p className="text-sm">{t('copy')}</p></TooltipContent>
</Tooltip>
);
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ const TemplateCard = ({
{/* name */}
<Tooltip>
<TooltipTrigger asChild>
<span className="max-w-30 cursor-pointer truncate font-medium">
<span className="max-w-27 cursor-pointer truncate font-medium">
{templateRepositoryName}
</span>
</TooltipTrigger>
Expand Down
Loading
Loading