inbound_info_modal.html 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503
  1. {{define "inboundInfoModal"}}
  2. <a-modal id="inbound-info-modal" v-model="infoModal.visible" title='{{ i18n "pages.inbounds.details"}}' :closable="true" :mask-closable="true" :footer="null" width="600px" :class="themeSwitcher.currentTheme">
  3. <a-row>
  4. <a-col :xs="24" :md="12">
  5. <table>
  6. <tr>
  7. <td>{{ i18n "protocol" }}</td>
  8. <td>
  9. <a-tag color="purple">[[ dbInbound.protocol ]]</a-tag>
  10. </td>
  11. </tr>
  12. <tr>
  13. <td>{{ i18n "pages.inbounds.address" }}</td>
  14. <td>
  15. <a-tooltip :title="[[ dbInbound.address ]]">
  16. <a-tag class="info-large-tag">[[ dbInbound.address ]]</a-tag>
  17. </a-tooltip>
  18. </td>
  19. </tr>
  20. <tr>
  21. <td>{{ i18n "pages.inbounds.port" }}</td>
  22. <td>
  23. <a-tag>[[ dbInbound.port ]]</a-tag>
  24. </td>
  25. </tr>
  26. </table>
  27. </a-col>
  28. <a-col :xs="24" :md="12">
  29. <template v-if="dbInbound.isVMess || dbInbound.isVLess || dbInbound.isTrojan || dbInbound.isSS">
  30. <table>
  31. <tr>
  32. <td>{{ i18n "transmission" }}</td>
  33. <td>
  34. <a-tag color="green">[[ inbound.network ]]</a-tag>
  35. </td>
  36. </tr>
  37. <template v-if="inbound.isTcp || inbound.isWs || inbound.isH2 || inbound.isHttpupgrade || inbound.isSplithttp">
  38. <tr>
  39. <td>{{ i18n "host" }}</td>
  40. <td v-if="inbound.host">
  41. <a-tooltip :title="[[ inbound.host ]]">
  42. <a-tag class="info-large-tag">[[ inbound.host ]]</a-tag>
  43. </a-tooltip>
  44. </td>
  45. <td v-else>
  46. <a-tag color="orange">{{ i18n "none" }}</a-tag>
  47. </td>
  48. </tr>
  49. </tr>
  50. <tr>
  51. <td>{{ i18n "path" }}</td>
  52. <td v-if="inbound.path">
  53. <a-tooltip :title="[[ inbound.path ]]">
  54. <a-tag class="info-large-tag">[[ inbound.path ]]</a-tag>
  55. </a-tooltip>
  56. <td v-else>
  57. <a-tag color="orange">{{ i18n "none" }}</a-tag>
  58. </td>
  59. </tr>
  60. </template>
  61. <template v-if="inbound.isKcp">
  62. <tr>
  63. <td>kcp {{ i18n "encryption" }}</td>
  64. <td>
  65. <a-tag>[[ inbound.kcpType ]]</a-tag>
  66. </td>
  67. </tr>
  68. <tr>
  69. <td>kcp {{ i18n "password" }}</td>
  70. <td>
  71. <a-tag>[[ inbound.kcpSeed ]]</a-tag>
  72. </td>
  73. </tr>
  74. </template>
  75. <template v-if="inbound.isGrpc">
  76. <tr>
  77. <td>grpc serviceName</td>
  78. <td>
  79. <a-tooltip :title="[[ inbound.serviceName ]]">
  80. <a-tag class="info-large-tag">[[ inbound.serviceName ]]</a-tag>
  81. </a-tooltip>
  82. <tr>
  83. <td>grpc multiMode</td>
  84. <td>
  85. <a-tag>[[ inbound.stream.grpc.multiMode ]]</a-tag>
  86. </td>
  87. </tr>
  88. </template>
  89. </table>
  90. </template>
  91. </a-col>
  92. <template v-if="dbInbound.hasLink()">
  93. {{ i18n "security" }}
  94. <a-tag :color="inbound.stream.security == 'none' ? 'red' : 'green'">[[ inbound.stream.security ]]</a-tag>
  95. <br />
  96. <template v-if="inbound.stream.security != 'none'">
  97. {{ i18n "domainName" }}
  98. <a-tag v-if="inbound.serverName" :color="inbound.serverName ? 'green' : 'orange'">[[ inbound.serverName ? inbound.serverName : '' ]]</a-tag>
  99. <a-tag v-else color="orange">{{ i18n "none" }}</a-tag>
  100. </template>
  101. </template>
  102. <table v-if="dbInbound.isSS" style="margin-bottom: 10px; width: 100%;">
  103. <tr>
  104. <td>{{ i18n "encryption" }}</td>
  105. <td>
  106. <a-tag color="green">[[ inbound.settings.method ]]</a-tag>
  107. </td>
  108. </tr>
  109. <tr v-if="inbound.isSS2022">
  110. <td>{{ i18n "password" }}</td>
  111. <td>
  112. <a-tooltip :title="[[ inbound.settings.password ]]">
  113. <a-tag class="info-large-tag">[[ inbound.settings.password ]]</a-tag>
  114. </a-tooltip>
  115. </td>
  116. </tr>
  117. <tr>
  118. <td>{{ i18n "pages.inbounds.network" }}</td>
  119. <td>
  120. <a-tag color="green">[[ inbound.settings.network ]]</a-tag>
  121. </td>
  122. </tr>
  123. </table>
  124. <template v-if="infoModal.clientSettings">
  125. <a-divider>{{ i18n "pages.inbounds.client" }}</a-divider>
  126. <table style="margin-bottom: 10px;">
  127. <tr>
  128. <td>{{ i18n "pages.inbounds.email" }}</td>
  129. <td v-if="infoModal.clientSettings.email">
  130. <a-tag color="green">[[ infoModal.clientSettings.email ]]</a-tag>
  131. </td>
  132. <td v-else>
  133. <a-tag color="red">{{ i18n "none" }}</a-tag>
  134. </td>
  135. </tr>
  136. <tr v-if="infoModal.clientSettings.id">
  137. <td>ID</td>
  138. <td>
  139. <a-tag>[[ infoModal.clientSettings.id ]]</a-tag>
  140. </td>
  141. </tr>
  142. <tr v-if="infoModal.inbound.canEnableTlsFlow()">
  143. <td>Flow</td>
  144. <td v-if="infoModal.clientSettings.flow">
  145. <a-tag>[[ infoModal.clientSettings.flow ]]</a-tag>
  146. </td>
  147. <td v-else>
  148. <a-tag color="orange">{{ i18n "none" }}</a-tag>
  149. </td>
  150. </tr>
  151. <tr v-if="infoModal.inbound.xtls">
  152. <td>Flow</td>
  153. <td v-if="infoModal.clientSettings.flow">
  154. <a-tag>[[ infoModal.clientSettings.flow ]]</a-tag>
  155. </td>
  156. <td v-else>
  157. <a-tag color="orange">{{ i18n "none" }}</a-tag>
  158. </td>
  159. </tr>
  160. <tr v-if="infoModal.clientSettings.password">
  161. <td>{{ i18n "password" }}</td>
  162. <td>
  163. <a-tooltip :title="[[ infoModal.clientSettings.password ]]">
  164. <a-tag class="info-large-tag">[[ infoModal.clientSettings.password ]]</a-tag>
  165. </a-tooltip>
  166. </td>
  167. </tr>
  168. <tr>
  169. <td>{{ i18n "status" }}</td>
  170. <td>
  171. <a-tag v-if="isEnable" color="green">{{ i18n "enabled" }}</a-tag>
  172. <a-tag v-else>{{ i18n "disabled" }}</a-tag>
  173. <a-tag v-if="!isActive" color="red">{{ i18n "depleted" }}</a-tag>
  174. </td>
  175. </tr>
  176. <tr v-if="infoModal.clientStats">
  177. <td>{{ i18n "usage" }}</td>
  178. <td>
  179. <a-tag color="green">[[ sizeFormat(infoModal.clientStats.up + infoModal.clientStats.down) ]]</a-tag>
  180. <a-tag>↑ [[ sizeFormat(infoModal.clientStats.up) ]] / [[ sizeFormat(infoModal.clientStats.down) ]] ↓</a-tag>
  181. </td>
  182. </tr>
  183. </table>
  184. <table style="display: inline-table; margin-block: 10px; width: 100%; text-align: center;">
  185. <tr>
  186. <th>{{ i18n "remained" }}</th>
  187. <th>{{ i18n "pages.inbounds.totalFlow" }}</th>
  188. <th>{{ i18n "pages.inbounds.expireDate" }}</th>
  189. </tr>
  190. <tr>
  191. <td>
  192. <a-tag v-if="infoModal.clientStats && infoModal.clientSettings.totalGB > 0" :color="statsColor(infoModal.clientStats)"> [[ getRemStats() ]] </a-tag>
  193. </td>
  194. <td>
  195. <a-tag v-if="infoModal.clientSettings.totalGB > 0" :color="statsColor(infoModal.clientStats)"> [[ sizeFormat(infoModal.clientSettings.totalGB) ]] </a-tag>
  196. <a-tag v-else color="purple" class="infinite-tag">
  197. <svg height="10px" width="14px" viewBox="0 0 640 512" fill="currentColor">
  198. <path d="M484.4 96C407 96 349.2 164.1 320 208.5C290.8 164.1 233 96 155.6 96C69.75 96 0 167.8 0 256s69.75 160 155.6 160C233.1 416 290.8 347.9 320 303.5C349.2 347.9 407 416 484.4 416C570.3 416 640 344.2 640 256S570.3 96 484.4 96zM155.6 368C96.25 368 48 317.8 48 256s48.25-112 107.6-112c67.75 0 120.5 82.25 137.1 112C276 285.8 223.4 368 155.6 368zM484.4 368c-67.75 0-120.5-82.25-137.1-112C364 226.2 416.6 144 484.4 144C543.8 144 592 194.2 592 256S543.8 368 484.4 368z" fill="currentColor"></path>
  199. </svg>
  200. </a-tag>
  201. </td>
  202. <td>
  203. <template v-if="infoModal.clientSettings.expiryTime > 0">
  204. <a-tag :color="usageColor(new Date().getTime(), app.expireDiff, infoModal.clientSettings.expiryTime)">
  205. <template v-if="app.datepicker === 'gregorian'">
  206. [[ DateUtil.formatMillis(infoModal.clientSettings.expiryTime) ]]
  207. </template>
  208. <template v-else>
  209. [[ DateUtil.convertToJalalian(moment(infoModal.clientSettings.expiryTime)) ]]
  210. </template>
  211. </a-tag>
  212. </template>
  213. <a-tag v-else-if="infoModal.clientSettings.expiryTime < 0" color="green">[[ infoModal.clientSettings.expiryTime / -86400000 ]] {{ i18n "pages.client.days" }}
  214. </a-tag>
  215. <a-tag v-else color="purple" class="infinite-tag">
  216. <svg height="10px" width="14px" viewBox="0 0 640 512" fill="currentColor">
  217. <path d="M484.4 96C407 96 349.2 164.1 320 208.5C290.8 164.1 233 96 155.6 96C69.75 96 0 167.8 0 256s69.75 160 155.6 160C233.1 416 290.8 347.9 320 303.5C349.2 347.9 407 416 484.4 416C570.3 416 640 344.2 640 256S570.3 96 484.4 96zM155.6 368C96.25 368 48 317.8 48 256s48.25-112 107.6-112c67.75 0 120.5 82.25 137.1 112C276 285.8 223.4 368 155.6 368zM484.4 368c-67.75 0-120.5-82.25-137.1-112C364 226.2 416.6 144 484.4 144C543.8 144 592 194.2 592 256S543.8 368 484.4 368z" fill="currentColor"></path>
  218. </svg>
  219. </a-tag>
  220. </td>
  221. </tr>
  222. </table>
  223. <template v-if="app.subSettings.enable && infoModal.clientSettings.subId">
  224. <a-divider>Subscription URL</a-divider>
  225. <tr-info-row class="tr-info-row">
  226. <tr-info-title class="tr-info-title">
  227. <a-tag color="purple">Subscription Link</a-tag>
  228. <a-tooltip title='{{ i18n "copy" }}'>
  229. <a-button size="small" icon="snippets" id="copy-sub-link" @click="copyToClipboard('copy-sub-link', infoModal.subLink)"></a-button>
  230. </a-tooltip>
  231. </tr-info-title>
  232. <a :href="[[ infoModal.subLink ]]" target="_blank">[[ infoModal.subLink ]]</a>
  233. </tr-info-row>
  234. <tr-info-row class="tr-info-row">
  235. <tr-info-title class="tr-info-title">
  236. <a-tag color="purple">Json Link</a-tag>
  237. <a-tooltip title='{{ i18n "copy" }}'>
  238. <a-button size="small" icon="snippets" id="copy-subJson-link" @click="copyToClipboard('copy-subJson-link', infoModal.subJsonLink)"></a-button>
  239. </a-tooltip>
  240. </tr-info-title>
  241. <a :href="[[ infoModal.subJsonLink ]]" target="_blank">[[ infoModal.subJsonLink ]]</a>
  242. </tr-info-row>
  243. </template>
  244. <template v-if="app.tgBotEnable && infoModal.clientSettings.tgId">
  245. <a-divider>Telegram ChatID</a-divider>
  246. <tr-info-row class="tr-info-row">
  247. <tr-info-title class="tr-info-title">
  248. <a-tag color="blue">[[ infoModal.clientSettings.tgId ]]</a-tag>
  249. <a-tooltip title='{{ i18n "copy" }}'>
  250. <a-button size="small" icon="snippets" id="copy-tg-link" @click="copyToClipboard('copy-tg-link', infoModal.clientSettings.tgId)"></a-button>
  251. </a-tooltip>
  252. </tr-info-title>
  253. </tr-info-row>
  254. </template>
  255. <template v-if="dbInbound.hasLink()">
  256. <a-divider>URL</a-divider>
  257. <tr-info-row v-for="(link,index) in infoModal.links" class="tr-info-row">
  258. <tr-info-title class="tr-info-title">
  259. <a-tag class="tr-info-tag" color="green">[[ link.remark ]]</a-tag>
  260. <a-tooltip title='{{ i18n "copy" }}'>
  261. <a-button style="min-width: 24px;" size="small" icon="snippets" :id="'copy-url-link-'+index" @click="copyToClipboard('copy-url-link-'+index, link.link)"></a-button>
  262. </a-tooltip>
  263. </tr-info-title>
  264. <code>[[ link.link ]]</code>
  265. </tr-info-row>
  266. </template>
  267. </template>
  268. <template v-else>
  269. <template v-if="dbInbound.isSS && !inbound.isSSMultiUser">
  270. <a-divider>URL</a-divider>
  271. <tr-info-row v-for="(link,index) in infoModal.links" class="tr-info-row">
  272. <tr-info-title class="tr-info-title">
  273. <a-tag class="tr-info-tag" color="green">[[ link.remark ]]</a-tag>
  274. <a-tooltip title='{{ i18n "copy" }}'>
  275. <a-button style="min-width: 24px;" size="small" icon="snippets" :id="'copy-url-link-'+index" @click="copyToClipboard('copy-url-link-'+index, link.link)"></a-button>
  276. </a-tooltip>
  277. </tr-info-title>
  278. <code>[[ link.link ]]</code>
  279. </tr-info-row>
  280. </template>
  281. <table v-if="inbound.protocol == Protocols.DOKODEMO" class="tr-info-table">
  282. <tr>
  283. <th>{{ i18n "pages.inbounds.targetAddress" }}</th>
  284. <th>{{ i18n "pages.inbounds.destinationPort" }}</th>
  285. <th>{{ i18n "pages.inbounds.network" }}</th>
  286. <th>FollowRedirect</th>
  287. </tr>
  288. <tr>
  289. <td>
  290. <a-tag color="green">[[ inbound.settings.address ]]</a-tag>
  291. </td>
  292. <td>
  293. <a-tag color="green">[[ inbound.settings.port ]]</a-tag>
  294. </td>
  295. <td>
  296. <a-tag color="green">[[ inbound.settings.network ]]</a-tag>
  297. </td>
  298. <td>
  299. <a-tag color="green">[[ inbound.settings.followRedirect ]]</a-tag>
  300. </td>
  301. </tr>
  302. </table>
  303. <table v-if="dbInbound.isSocks" class="tr-info-table">
  304. <tr>
  305. <th>{{ i18n "password" }} Auth</th>
  306. <th>{{ i18n "pages.inbounds.enable" }} udp</th>
  307. <th>IP</th>
  308. </tr>
  309. <tr>
  310. <td>
  311. <a-tag color="green">[[ inbound.settings.auth ]]</a-tag>
  312. </td>
  313. <td>
  314. <a-tag color="green">[[ inbound.settings.udp]]</a-tag>
  315. </td>
  316. <td>
  317. <a-tag color="green">[[ inbound.settings.ip ]]</a-tag>
  318. </td>
  319. </tr>
  320. <template v-if="inbound.settings.auth == 'password'">
  321. <tr>
  322. <td></td>
  323. <td>{{ i18n "username" }}</td>
  324. <td>{{ i18n "password" }}</td>
  325. </tr>
  326. <tr v-for="account,index in inbound.settings.accounts">
  327. <td>[[ index ]]</td>
  328. <td>
  329. <a-tag color="green">[[ account.user ]]</a-tag>
  330. </td>
  331. <td>
  332. <a-tag color="green">[[ account.pass ]]</a-tag>
  333. </td>
  334. </tr>
  335. </template>
  336. </table>
  337. <table v-if="dbInbound.isHTTP" class="tr-info-table">
  338. <tr>
  339. <th></th>
  340. <th>{{ i18n "username" }}</th>
  341. <th>{{ i18n "password" }}</th>
  342. </tr>
  343. <tr v-for="account,index in inbound.settings.accounts">
  344. <td>[[ index ]]</td>
  345. <td>
  346. <a-tag color="green">[[ account.user ]]</a-tag>
  347. </td>
  348. <td>
  349. <a-tag color="green">[[ account.pass ]]</a-tag>
  350. </td>
  351. </tr>
  352. </table>
  353. <table v-if="dbInbound.isWireguard" class="tr-info-table">
  354. <tr class="client-table-odd-row">
  355. <td>{{ i18n "pages.xray.wireguard.secretKey" }}</td>
  356. <td>[[ inbound.settings.secretKey ]]</td>
  357. </tr>
  358. <tr>
  359. <td>{{ i18n "pages.xray.wireguard.publicKey" }}</td>
  360. <td>[[ inbound.settings.pubKey ]]</td>
  361. </tr>
  362. <tr class="client-table-odd-row">
  363. <td>MTU</td>
  364. <td>[[ inbound.settings.mtu ]]</td>
  365. </tr>
  366. <tr>
  367. <td>Kernel Mode</td>
  368. <td>[[ inbound.settings.kernelMode ]]</td>
  369. </tr>
  370. <template v-for="(peer, index) in inbound.settings.peers">
  371. <tr>
  372. <td colspan="2">
  373. <a-divider>Peer [[ index + 1 ]]</a-divider>
  374. </td>
  375. </tr>
  376. <tr class="client-table-odd-row">
  377. <td>{{ i18n "pages.xray.wireguard.secretKey" }}</td>
  378. <td>[[ peer.privateKey ]]</td>
  379. </tr>
  380. <tr>
  381. <td>{{ i18n "pages.xray.wireguard.publicKey" }}</td>
  382. <td>[[ peer.publicKey ]]</td>
  383. </tr>
  384. <tr class="client-table-odd-row">
  385. <td>{{ i18n "pages.xray.wireguard.psk" }}</td>
  386. <td>[[ peer.psk ]]</td>
  387. </tr>
  388. <tr>
  389. <td>{{ i18n "pages.xray.wireguard.allowedIPs" }}</td>
  390. <td>[[ peer.allowedIPs.join(",") ]]</td>
  391. </tr>
  392. <tr class="client-table-odd-row">
  393. <td>Keep Alive</td>
  394. <td>[[ peer.keepAlive ]]</td>
  395. </tr>
  396. <tr>
  397. <td colspan="2">
  398. <tr-info-row v-for="(link,index) in infoModal.links" class="tr-info-row">
  399. <tr-info-title class="tr-info-title">
  400. <a-tag color="blue">Config</a-tag>
  401. <a-tooltip title='{{ i18n "copy" }}'>
  402. <a-button style="min-width: 24px;" size="small" icon="snippets" :id="'copy-url-link-'+index" @click="copyToClipboard('copy-url-link-'+index, infoModal.links[index])"></a-button>
  403. </a-tooltip>
  404. </tr-info-title>
  405. <div v-html="infoModal.links[index].replaceAll(`\n`,`<br />`)" style="border-radius: 1rem; padding: 0.5rem;" class="client-table-odd-row">
  406. </div>
  407. </tr-info-row>
  408. </td>
  409. </tr>
  410. </table>
  411. </template>
  412. </template>
  413. </a-modal>
  414. <script>
  415. const infoModal = {
  416. visible: false,
  417. inbound: new Inbound(),
  418. dbInbound: new DBInbound(),
  419. clientSettings: null,
  420. clientStats: [],
  421. upStats: 0,
  422. downStats: 0,
  423. clipboard: null,
  424. links: [],
  425. index: null,
  426. isExpired: false,
  427. subLink: '',
  428. subJsonLink: '',
  429. show(dbInbound, index) {
  430. this.index = index;
  431. this.inbound = dbInbound.toInbound();
  432. this.dbInbound = new DBInbound(dbInbound);
  433. this.clientSettings = this.inbound.clients ? this.inbound.clients[index] : null;
  434. this.isExpired = this.inbound.clients ? this.inbound.isExpiry(index) : this.dbInbound.isExpiry;
  435. this.clientStats = this.inbound.clients ? this.dbInbound.clientStats.find(row => row.email === this.clientSettings.email) : [];
  436. if (this.inbound.protocol == Protocols.WIREGUARD) {
  437. this.links = this.inbound.genInboundLinks(dbInbound.remark).split('\r\n')
  438. } else {
  439. this.links = this.inbound.genAllLinks(this.dbInbound.remark, app.remarkModel, this.clientSettings);
  440. }
  441. if (this.clientSettings) {
  442. if (this.clientSettings.subId) {
  443. this.subLink = this.genSubLink(this.clientSettings.subId);
  444. this.subJsonLink = this.genSubJsonLink(this.clientSettings.subId);
  445. }
  446. }
  447. this.visible = true;
  448. },
  449. close() {
  450. infoModal.visible = false;
  451. },
  452. genSubLink(subID) {
  453. return app.subSettings.subURI + subID;
  454. },
  455. genSubJsonLink(subID) {
  456. return app.subSettings.subJsonURI + subID;
  457. }
  458. };
  459. const infoModalApp = new Vue({
  460. delimiters: ['[[', ']]'],
  461. el: '#inbound-info-modal',
  462. data: {
  463. infoModal,
  464. get dbInbound() {
  465. return this.infoModal.dbInbound;
  466. },
  467. get inbound() {
  468. return this.infoModal.inbound;
  469. },
  470. get isActive() {
  471. if (infoModal.clientStats) {
  472. return infoModal.clientStats.enable;
  473. }
  474. return true;
  475. },
  476. get isEnable() {
  477. if (infoModal.clientSettings) {
  478. return infoModal.clientSettings.enable;
  479. }
  480. return infoModal.dbInbound.isEnable;
  481. },
  482. },
  483. methods: {
  484. copyToClipboard(elementId, content) {
  485. this.infoModal.clipboard = new ClipboardJS('#' + elementId, {
  486. text: () => content,
  487. });
  488. this.infoModal.clipboard.on('success', () => {
  489. app.$message.success('{{ i18n "copied" }}')
  490. this.infoModal.clipboard.destroy();
  491. });
  492. },
  493. statsColor(stats) {
  494. return usageColor(stats.up + stats.down, app.trafficDiff, stats.total);
  495. },
  496. getRemStats() {
  497. remained = this.infoModal.clientStats.total - this.infoModal.clientStats.up - this.infoModal.clientStats.down;
  498. return remained > 0 ? sizeFormat(remained) : '-';
  499. },
  500. },
  501. });
  502. </script>
  503. {{end}}