diff options
| author | MHSanaei <ho3ein.sanaei@gmail.com> | 2023-07-18 02:49:01 +0300 |
|---|---|---|
| committer | MHSanaei <ho3ein.sanaei@gmail.com> | 2023-07-18 02:49:01 +0300 |
| commit | c2e9ee36658a8549251df7fb37467baa55341a5f (patch) | |
| tree | 25baf2f09f566d9aba8cae93274612af0cd5d750 /web/html/xui/inbound_info_modal.html | |
| parent | 1f78842b707a1190b6a84aded269d664254a7f1d (diff) | |
update - shadowsocks
Co-Authored-By: Alireza Ahmadi <alireza7@gmail.com>
Diffstat (limited to 'web/html/xui/inbound_info_modal.html')
| -rw-r--r-- | web/html/xui/inbound_info_modal.html | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/web/html/xui/inbound_info_modal.html b/web/html/xui/inbound_info_modal.html index 00cb5ce6..fae058ad 100644 --- a/web/html/xui/inbound_info_modal.html +++ b/web/html/xui/inbound_info_modal.html @@ -179,6 +179,19 @@ <td><a-tag color="green">[[ inbound.settings.network ]]</a-tag></td> </tr> </table> + <template v-if="inbound.protocol == Protocols.SHADOWSOCKS && !inbound.isSSMultiUser"> + <a-divider>URL</a-divider> + <a-row v-for="(link,index) in infoModal.links"> + <a-col :span="22"><a-tag color="cyan">[[ link.remark ]]</a-tag><br />[[ link.link ]]</a-col> + <a-col :span="2" style="text-align: right;"> + <a-tooltip title='{{ i18n "copy" }}'> + <button class="ant-btn ant-btn-primary" :id="'copy-url-link-'+index" @click="copyToClipboard('copy-url-link-'+index, link.link)"> + <a-icon type="snippets"></a-icon> + </button> + </a-tooltip> + </a-col> + </a-row> + </template> <table v-if="inbound.protocol == Protocols.DOKODEMO" style="margin-bottom: 10px; width: 100%;"> <tr> <th>{{ i18n "pages.inbounds.targetAddress" }}</th> @@ -251,7 +264,7 @@ this.clientSettings = this.settings.clients ? Object.values(this.settings.clients)[index] : null; this.isExpired = this.inbound.isExpiry(index); this.clientStats = this.settings.clients ? this.dbInbound.clientStats.find(row => row.email === this.clientSettings.email) : []; - remark = this.dbInbound.remark + "-" + this.clientSettings.email; + remark = this.dbInbound.remark + ( this.clientSettings ? "-" + this.clientSettings.email : ''); address = this.dbInbound.address; this.links = []; if (this.inbound.tls && !ObjectUtil.isArrEmpty(this.inbound.stream.tls.settings.domains)) { |
