1
0

inbound.html 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113
  1. {{define "form/inbound"}}
  2. <!-- base -->
  3. <a-form :colon="false" :label-col="{ md: {span:6} }" :wrapper-col="{ md: {span:14} }">
  4. <a-form-item label='{{ i18n "enable" }}'>
  5. <a-switch v-model="dbInbound.enable"></a-switch>
  6. </a-form-item>
  7. <a-form-item label='{{ i18n "remark" }}'>
  8. <a-input v-model.trim="dbInbound.remark"></a-input>
  9. </a-form-item>
  10. <a-form-item label='{{ i18n "protocol" }}'>
  11. <a-select v-model="inbound.protocol" :disabled="isEdit" :dropdown-class-name="themeSwitcher.currentTheme">
  12. <a-select-option v-for="p in Protocols" :key="p" :value="p">[[ p ]]</a-select-option>
  13. </a-select>
  14. </a-form-item>
  15. <a-form-item>
  16. <template slot="label">
  17. <a-tooltip>
  18. <template slot="title">
  19. <span>{{ i18n "pages.inbounds.monitorDesc" }}</span>
  20. </template>
  21. {{ i18n "monitor" }}
  22. <a-icon type="question-circle"></a-icon>
  23. </a-tooltip>
  24. </template>
  25. <a-input v-model.trim="inbound.listen"></a-input>
  26. </a-form-item>
  27. <a-form-item label='{{ i18n "pages.inbounds.port" }}'>
  28. <a-input-number v-model.number="inbound.port"></a-input-number>
  29. </a-form-item>
  30. <a-form-item>
  31. <template slot="label">
  32. <a-tooltip>
  33. <template slot="title">
  34. 0 <span>{{ i18n "pages.inbounds.meansNoLimit" }}</span>
  35. </template>
  36. {{ i18n "pages.inbounds.totalFlow" }}(GB)
  37. <a-icon type="question-circle"></a-icon>
  38. </a-tooltip>
  39. </template>
  40. <a-input-number v-model="dbInbound.totalGB" :min="0"></a-input-number>
  41. </a-form-item>
  42. <a-form-item>
  43. <template slot="label">
  44. <a-tooltip>
  45. <template slot="title">
  46. <span>{{ i18n "pages.inbounds.leaveBlankToNeverExpire" }}</span>
  47. </template>
  48. {{ i18n "pages.inbounds.expireDate" }}
  49. <a-icon type="question-circle"></a-icon>
  50. </a-tooltip>
  51. </template>
  52. <a-date-picker :show-time="{ format: 'HH:mm:ss' }" format="YYYY-MM-DD HH:mm:ss"
  53. :dropdown-class-name="themeSwitcher.currentTheme"
  54. v-model="dbInbound._expiryTime"></a-date-picker>
  55. </a-form-item>
  56. </a-form>
  57. <!-- vmess settings -->
  58. <template v-if="inbound.protocol === Protocols.VMESS">
  59. {{template "form/vmess"}}
  60. </template>
  61. <!-- vless settings -->
  62. <template v-if="inbound.protocol === Protocols.VLESS">
  63. {{template "form/vless"}}
  64. </template>
  65. <!-- trojan settings -->
  66. <template v-if="inbound.protocol === Protocols.TROJAN">
  67. {{template "form/trojan"}}
  68. </template>
  69. <!-- shadowsocks -->
  70. <template v-if="inbound.protocol === Protocols.SHADOWSOCKS">
  71. {{template "form/shadowsocks"}}
  72. </template>
  73. <!-- dokodemo-door -->
  74. <template v-if="inbound.protocol === Protocols.DOKODEMO">
  75. {{template "form/dokodemo"}}
  76. </template>
  77. <!-- socks -->
  78. <template v-if="inbound.protocol === Protocols.SOCKS">
  79. {{template "form/socks"}}
  80. </template>
  81. <!-- http -->
  82. <template v-if="inbound.protocol === Protocols.HTTP">
  83. {{template "form/http"}}
  84. </template>
  85. <!-- stream settings -->
  86. <template v-if="inbound.canEnableStream()">
  87. {{template "form/streamSettings"}}
  88. {{template "form/externalProxy" }}
  89. </template>
  90. <!-- tls settings -->
  91. <template v-if="inbound.canEnableTls()">
  92. {{template "form/tlsSettings"}}
  93. </template>
  94. <!-- sniffing -->
  95. <template v-if="inbound.canSniffing()">
  96. {{template "form/sniffing"}}
  97. </template>
  98. {{end}}