mirror of
https://github.com/zyycn/codex-proxy-rs.git
synced 2026-11-29 00:01:06 +00:00
* chore(deps-dev): bump @antfu/eslint-config in /frontend Bumps [@antfu/eslint-config](https://github.com/antfu/eslint-config) from 9.5.1 to 10.0.0. - [Release notes](https://github.com/antfu/eslint-config/releases) - [Commits](https://github.com/antfu/eslint-config/compare/v9.5.1...v10.0.0) --- updated-dependencies: - dependency-name: "@antfu/eslint-config" dependency-version: 10.0.0 dependency-type: direct:development update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> * chore(frontend): migrate formatting to ESLint v10 Co-authored-by: Codex <noreply@openai.com> --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Zyy <zyycn@users.noreply.github.com> Co-authored-by: Codex <noreply@openai.com>
63 lines
1.2 KiB
TypeScript
63 lines
1.2 KiB
TypeScript
import type { OutboundProxyRecord } from '@/api'
|
|
import { defineTableColumns } from '@codex-proxy/ui'
|
|
import { computed } from 'vue'
|
|
import { t } from '@/i18n'
|
|
|
|
export const proxyColumns = computed(() => (defineTableColumns<OutboundProxyRecord>([
|
|
{ key: 'selection', kind: 'selection' },
|
|
{
|
|
key: 'name',
|
|
label: t('proxies.editor.nameLabel'),
|
|
kind: 'identity',
|
|
size: 'lg',
|
|
},
|
|
{
|
|
key: 'address',
|
|
label: t('proxies.editor.proxyAddress'),
|
|
kind: 'identity',
|
|
size: 'xl',
|
|
},
|
|
{
|
|
key: 'status',
|
|
label: t('common.fields.status'),
|
|
kind: 'status',
|
|
},
|
|
{
|
|
key: 'exitIp',
|
|
label: t('proxies.fields.exitIp'),
|
|
kind: 'custom',
|
|
size: 'xl',
|
|
},
|
|
{
|
|
key: 'region',
|
|
label: t('common.location.region'),
|
|
kind: 'custom',
|
|
size: 'lg',
|
|
},
|
|
{
|
|
key: 'latency',
|
|
label: t('proxies.fields.latency'),
|
|
kind: 'custom',
|
|
size: 'sm',
|
|
},
|
|
{
|
|
key: 'accounts',
|
|
label: t('accounts.fields.count'),
|
|
kind: 'custom',
|
|
size: 'sm',
|
|
},
|
|
{
|
|
key: 'testedAt',
|
|
label: t('proxies.fields.testTime'),
|
|
kind: 'datetime',
|
|
fixedWidth: true,
|
|
},
|
|
{
|
|
key: 'actions',
|
|
label: t('common.fields.actions'),
|
|
kind: 'actions',
|
|
size: 'lg',
|
|
fixedWidth: true,
|
|
},
|
|
])))
|