mirror of
https://github.com/MetaCubeX/metacubexd.git
synced 2024-12-27 07:34:12 +08:00
feat(connections): shorten the tab names
This commit is contained in:
parent
716fc2e93c
commit
1a37a106f8
@ -5,7 +5,10 @@ export const ConnectionsTableDetailsModal: Component<{
|
|||||||
selectedConnectionID?: string
|
selectedConnectionID?: string
|
||||||
}> = (props) => {
|
}> = (props) => {
|
||||||
return (
|
return (
|
||||||
<dialog id="connections-table-details-modal" class="modal">
|
<dialog
|
||||||
|
id="connections-table-details-modal"
|
||||||
|
class="modal modal-bottom sm:modal-middle"
|
||||||
|
>
|
||||||
<div class="modal-box">
|
<div class="modal-box">
|
||||||
<Show when={props.selectedConnectionID}>
|
<Show when={props.selectedConnectionID}>
|
||||||
<pre>
|
<pre>
|
||||||
|
@ -95,8 +95,11 @@ export const ConnectionsTableOrderingModal = (props: {
|
|||||||
}
|
}
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<dialog id="connections-table-ordering-modal" class="modal">
|
<dialog
|
||||||
<div class="modal-box w-80" onContextMenu={(e) => e.preventDefault()}>
|
id="connections-table-ordering-modal"
|
||||||
|
class="modal modal-bottom sm:modal-middle"
|
||||||
|
>
|
||||||
|
<div class="modal-box" onContextMenu={(e) => e.preventDefault()}>
|
||||||
<DragDropProvider
|
<DragDropProvider
|
||||||
onDragStart={onDragStart}
|
onDragStart={onDragStart}
|
||||||
onDragEnd={onDragEnd as DragEventHandler}
|
onDragEnd={onDragEnd as DragEventHandler}
|
||||||
@ -115,15 +118,17 @@ export const ConnectionsTableOrderingModal = (props: {
|
|||||||
</DragOverlay>
|
</DragOverlay>
|
||||||
</DragDropProvider>
|
</DragDropProvider>
|
||||||
|
|
||||||
<Button
|
<div class="modal-action">
|
||||||
class="btn-neutral btn-sm ml-auto mt-4 block"
|
<Button
|
||||||
onClick={() => {
|
class="btn-neutral btn-sm ml-auto mt-4 block"
|
||||||
props.onOrderChange(CONNECTIONS_TABLE_INITIAL_COLUMN_ORDER)
|
onClick={() => {
|
||||||
props.onVisibleChange(CONNECTIONS_TABLE_INITIAL_COLUMN_VISIBILITY)
|
props.onOrderChange(CONNECTIONS_TABLE_INITIAL_COLUMN_ORDER)
|
||||||
}}
|
props.onVisibleChange(CONNECTIONS_TABLE_INITIAL_COLUMN_VISIBILITY)
|
||||||
>
|
}}
|
||||||
{t('reset')}
|
>
|
||||||
</Button>
|
{t('reset')}
|
||||||
|
</Button>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<form method="dialog" class="modal-backdrop">
|
<form method="dialog" class="modal-backdrop">
|
||||||
|
@ -68,7 +68,6 @@ export default {
|
|||||||
switchEndpoint: 'Switch Endpoint',
|
switchEndpoint: 'Switch Endpoint',
|
||||||
switchLanguage: 'Switch Language',
|
switchLanguage: 'Switch Language',
|
||||||
latencyTestTimeoutDuration: 'Latency Test Timeout Duration',
|
latencyTestTimeoutDuration: 'Latency Test Timeout Duration',
|
||||||
closedConnections: 'Closed Connections',
|
|
||||||
all: 'All',
|
all: 'All',
|
||||||
sequence: 'Sequence',
|
sequence: 'Sequence',
|
||||||
payload: 'Payload',
|
payload: 'Payload',
|
||||||
@ -78,4 +77,6 @@ export default {
|
|||||||
global: 'Global',
|
global: 'Global',
|
||||||
rule: 'Rule',
|
rule: 'Rule',
|
||||||
direct: 'Direct',
|
direct: 'Direct',
|
||||||
|
active: 'Active',
|
||||||
|
closed: 'Closed',
|
||||||
}
|
}
|
||||||
|
@ -68,7 +68,6 @@ export default {
|
|||||||
switchEndpoint: '切换后端',
|
switchEndpoint: '切换后端',
|
||||||
switchLanguage: '切换语言',
|
switchLanguage: '切换语言',
|
||||||
latencyTestTimeoutDuration: '测速超时时间',
|
latencyTestTimeoutDuration: '测速超时时间',
|
||||||
closedConnections: '已关闭连接',
|
|
||||||
all: '全部',
|
all: '全部',
|
||||||
sequence: '序列号',
|
sequence: '序列号',
|
||||||
payload: '内容',
|
payload: '内容',
|
||||||
@ -78,4 +77,6 @@ export default {
|
|||||||
global: '全局',
|
global: '全局',
|
||||||
rule: '规则',
|
rule: '规则',
|
||||||
direct: '直连',
|
direct: '直连',
|
||||||
|
active: '活动',
|
||||||
|
closed: '已关闭',
|
||||||
}
|
}
|
||||||
|
@ -2,13 +2,13 @@ import { writeClipboard } from '@solid-primitives/clipboard'
|
|||||||
import { useI18n } from '@solid-primitives/i18n'
|
import { useI18n } from '@solid-primitives/i18n'
|
||||||
import { makePersisted } from '@solid-primitives/storage'
|
import { makePersisted } from '@solid-primitives/storage'
|
||||||
import {
|
import {
|
||||||
IconCircleX,
|
IconInfoSmall,
|
||||||
IconInfoCircle,
|
|
||||||
IconPlayerPause,
|
IconPlayerPause,
|
||||||
IconPlayerPlay,
|
IconPlayerPlay,
|
||||||
IconSettings,
|
IconSettings,
|
||||||
IconSortAscending,
|
IconSortAscending,
|
||||||
IconSortDescending,
|
IconSortDescending,
|
||||||
|
IconX,
|
||||||
IconZoomInFilled,
|
IconZoomInFilled,
|
||||||
IconZoomOutFilled,
|
IconZoomOutFilled,
|
||||||
} from '@tabler/icons-solidjs'
|
} from '@tabler/icons-solidjs'
|
||||||
@ -113,7 +113,7 @@ export default () => {
|
|||||||
modal?.showModal()
|
modal?.showModal()
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<IconInfoCircle size="16" />
|
<IconInfoSmall size="16" />
|
||||||
</Button>
|
</Button>
|
||||||
</div>
|
</div>
|
||||||
),
|
),
|
||||||
@ -131,7 +131,7 @@ export default () => {
|
|||||||
class="btn-circle btn-xs"
|
class="btn-circle btn-xs"
|
||||||
onClick={() => closeSingleConnectionAPI(row.original.id)}
|
onClick={() => closeSingleConnectionAPI(row.original.id)}
|
||||||
>
|
>
|
||||||
<IconCircleX size="16" />
|
<IconX size="16" />
|
||||||
</Button>
|
</Button>
|
||||||
</div>
|
</div>
|
||||||
),
|
),
|
||||||
@ -293,12 +293,12 @@ export default () => {
|
|||||||
const tabs = createMemo(() => [
|
const tabs = createMemo(() => [
|
||||||
{
|
{
|
||||||
type: ActiveTab.activeConnections,
|
type: ActiveTab.activeConnections,
|
||||||
name: t('activeConnections'),
|
name: t('active'),
|
||||||
count: activeConnections().length,
|
count: activeConnections().length,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
type: ActiveTab.closedConnections,
|
type: ActiveTab.closedConnections,
|
||||||
name: t('closedConnections'),
|
name: t('closed'),
|
||||||
count: closedConnections().length,
|
count: closedConnections().length,
|
||||||
},
|
},
|
||||||
])
|
])
|
||||||
@ -350,7 +350,7 @@ export default () => {
|
|||||||
}
|
}
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<IconCircleX />
|
<IconX />
|
||||||
</Button>
|
</Button>
|
||||||
|
|
||||||
<Button
|
<Button
|
||||||
|
Loading…
x
Reference in New Issue
Block a user