mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-06-05 20:54:14 +00:00
feat(panel): copy connection strings for mixed inbound
This commit is contained in:
parent
f9ae0347c6
commit
690ee01086
1 changed files with 38 additions and 6 deletions
|
|
@ -669,13 +669,40 @@ const showSubscriptionTab = computed(
|
||||||
<a-tag color="green" class="value-tag">{{ account.user }}</a-tag>
|
<a-tag color="green" class="value-tag">{{ account.user }}</a-tag>
|
||||||
<span class="account-sep">:</span>
|
<span class="account-sep">:</span>
|
||||||
<a-tag class="value-tag">{{ account.pass }}</a-tag>
|
<a-tag class="value-tag">{{ account.pass }}</a-tag>
|
||||||
<a-tooltip :title="t('copy')">
|
|
||||||
<a-button size="small" @click="copyText(`${account.user}:${account.pass}`)">
|
<a-dropdown-button class="value-copy-dropdown" trigger="click"
|
||||||
<template #icon>
|
size="small" @click="copyText(`${account.user}:${account.pass}`)">
|
||||||
<CopyOutlined />
|
<a-tooltip :title="t('copy')">
|
||||||
</template>
|
<CopyOutlined />
|
||||||
|
</a-tooltip>
|
||||||
|
|
||||||
|
<template #overlay>
|
||||||
|
<a-menu @click="({ key }) => copyText(`${key}://${account.user}:${account.pass}@${dbInbound.address}:${dbInbound.port}`)">
|
||||||
|
<a-menu-item key="socks5">
|
||||||
|
SOCKS5
|
||||||
|
</a-menu-item>
|
||||||
|
<a-menu-item key="http">
|
||||||
|
HTTP
|
||||||
|
</a-menu-item>
|
||||||
|
</a-menu>
|
||||||
|
</template>
|
||||||
|
</a-dropdown-button>
|
||||||
|
</dd>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<template v-if="inbound.settings.auth === 'noauth'">
|
||||||
|
<div class="info-row">
|
||||||
|
<dt>{{ t('copy') }}</dt>
|
||||||
|
<dd>
|
||||||
|
<a-space>
|
||||||
|
<a-button size="small" @click="copyText(`socks5://${dbInbound.address}:${dbInbound.port}`)">
|
||||||
|
SOCKS5
|
||||||
</a-button>
|
</a-button>
|
||||||
</a-tooltip>
|
<a-button size="small" @click="copyText(`http://${dbInbound.address}:${dbInbound.port}`)">
|
||||||
|
HTTP
|
||||||
|
</a-button>
|
||||||
|
</a-space>
|
||||||
</dd>
|
</dd>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
@ -897,6 +924,7 @@ const showSubscriptionTab = computed(
|
||||||
white-space: normal;
|
white-space: normal;
|
||||||
word-break: break-all;
|
word-break: break-all;
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
|
margin-right: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.value-block {
|
.value-block {
|
||||||
|
|
@ -927,6 +955,10 @@ const showSubscriptionTab = computed(
|
||||||
flex-shrink: 0;
|
flex-shrink: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.value-copy-dropdown > :global(.ant-btn):first-child {
|
||||||
|
padding: 0 4px !important;
|
||||||
|
}
|
||||||
|
|
||||||
.security-line {
|
.security-line {
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue