diff options
| author | MHSanaei <ho3ein.sanaei@gmail.com> | 2024-02-21 13:47:52 +0300 |
|---|---|---|
| committer | MHSanaei <ho3ein.sanaei@gmail.com> | 2024-02-21 13:47:52 +0300 |
| commit | 03b7a3479394f54a2e793f23f35e0f2b8a4b4a6a (patch) | |
| tree | 72e4bd1e7201f90bc118b8ee0f2bc86d4718bb97 /web/html/xui/inbound_info_modal.html | |
| parent | f3eb4f055db80372298d60c073870a5af1431785 (diff) | |
[sub] json + fragment
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 | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/web/html/xui/inbound_info_modal.html b/web/html/xui/inbound_info_modal.html index 23f8bd47..c8341651 100644 --- a/web/html/xui/inbound_info_modal.html +++ b/web/html/xui/inbound_info_modal.html @@ -166,7 +166,7 @@ <template v-if="app.subSettings.enable && infoModal.clientSettings.subId"> <a-divider>Subscription URL</a-divider> <a-row> - <a-col :sx="24" :md="22"><a :href="[[ infoModal.subLink ]]" target="_blank">[[ infoModal.subLink ]]</a></a-col> + <a-col :sx="24" :md="22">SUB: <a :href="[[ infoModal.subLink ]]" target="_blank">[[ infoModal.subLink ]]</a></a-col> <a-col :sx="24" :md="2" style="text-align: right;"> <a-tooltip title='{{ i18n "copy" }}'> <button class="ant-btn ant-btn-primary" id="copy-sub-link" @click="copyToClipboard('copy-sub-link', infoModal.subLink)"> @@ -175,6 +175,16 @@ </a-tooltip> </a-col> </a-row> + <a-row> + <a-col :sx="24" :md="22">JSON: <a :href="[[ infoModal.subJsonLink ]]" target="_blank">[[ infoModal.subJsonLink ]]</a></a-col> + <a-col :sx="24" :md="2" style="text-align: right; margin-top: 5px;"> + <a-tooltip title='{{ i18n "copy" }}'> + <button class="ant-btn ant-btn-primary" id="copy-subJson-link" @click="copyToClipboard('copy-subJson-link', infoModal.subJsonLink)"> + <a-icon type="snippets"></a-icon> + </button> + </a-tooltip> + </a-col> + </a-row> </template> <template v-if="app.tgBotEnable && infoModal.clientSettings.tgId"> <a-divider>Telegram ID</a-divider> @@ -345,6 +355,7 @@ index: null, isExpired: false, subLink: '', + subJsonLink: '', show(dbInbound, index) { this.index = index; this.inbound = dbInbound.toInbound(); @@ -360,6 +371,7 @@ if (this.clientSettings) { if (this.clientSettings.subId) { this.subLink = this.genSubLink(this.clientSettings.subId); + this.subJsonLink = this.genSubJsonLink(this.clientSettings.subId); } } this.visible = true; @@ -369,6 +381,9 @@ }, genSubLink(subID) { return app.subSettings.subURI+subID; + }, + genSubJsonLink(subID) { + return app.subSettings.subJsonURI+subID; } }; |
