Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/MHSanaei/3x-ui.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/web/html
diff options
context:
space:
mode:
authorMHSanaei <ho3ein.sanaei@gmail.com>2026-04-26 21:06:24 +0300
committerMHSanaei <ho3ein.sanaei@gmail.com>2026-04-26 21:06:24 +0300
commit4521beab7c245a3420ae558ce34c37fb9ed1a53d (patch)
tree7ba02cbea1702715b1932581a3d6b9d0613beaf9 /web/html
parenta62c637632d0e4f0ff74fe185a3ea50048cb73d8 (diff)
wireguard: link
Diffstat (limited to 'web/html')
-rw-r--r--web/html/modals/inbound_info_modal.html15
1 files changed, 14 insertions, 1 deletions
diff --git a/web/html/modals/inbound_info_modal.html b/web/html/modals/inbound_info_modal.html
index 14b1d86b..67da21a9 100644
--- a/web/html/modals/inbound_info_modal.html
+++ b/web/html/modals/inbound_info_modal.html
@@ -513,9 +513,19 @@
<div v-html="infoModal.links[index].replaceAll(`\n`,`<br />`)"
:style="{ borderRadius: '1rem', padding: '0.5rem' }" class="client-table-odd-row">
</div>
+ <a-divider orientation="center">Link</a-divider>
+ <tr-info-title class="tr-info-title">
+ <a-tag color="green">Link</a-tag>
+ <a-tooltip title='{{ i18n "copy" }}'>
+ <a-button :style="{ minWidth: '24px' }" size="small" icon="snippets"
+ @click="copy(infoModal.wireguardLinks[index])"></a-button>
+ </a-tooltip>
+ </tr-info-title>
+ <code :style="{ display: 'block', whiteSpace: 'normal', wordBreak: 'break-all' }">[[ infoModal.wireguardLinks[index] ]]</code>
</tr-info-row>
</td>
</tr>
+ </template>
</table>
</template>
</template>
@@ -603,6 +613,7 @@
upStats: 0,
downStats: 0,
links: [],
+ wireguardLinks: [],
index: null,
isExpired: false,
subLink: '',
@@ -633,9 +644,11 @@
}
}
if (this.inbound.protocol == Protocols.WIREGUARD) {
- this.links = this.inbound.genInboundLinks(dbInbound.remark).split('\r\n')
+ this.links = this.inbound.genWireguardConfigs(dbInbound.remark).split('\r\n')
+ this.wireguardLinks = this.inbound.genWireguardLinks(dbInbound.remark).split('\r\n')
} else {
this.links = this.inbound.genAllLinks(this.dbInbound.remark, app.remarkModel, this.clientSettings);
+ this.wireguardLinks = [];
}
if (this.clientSettings) {
if (this.clientSettings.subId) {