1
0

external_proxy.html 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. {{define "form/externalProxy"}}
  2. <a-form
  3. :colon="false"
  4. :label-col="{ md: {span:8} }"
  5. :wrapper-col="{ md: {span:14} }"
  6. >
  7. <a-divider :style="{ margin: '5px 0 0' }"></a-divider>
  8. <a-form-item label="External Proxy">
  9. <a-switch v-model="externalProxy"></a-switch>
  10. <a-button
  11. icon="plus"
  12. v-if="externalProxy"
  13. type="primary"
  14. :style="{ marginLeft: '10px' }"
  15. size="small"
  16. @click="inbound.stream.externalProxy.push({forceTls: 'same', dest: '', port: 443, remark: ''})"
  17. ></a-button>
  18. </a-form-item>
  19. <a-input-group
  20. :style="{ margin: '8px 0' }"
  21. compact
  22. v-for="(row, index) in inbound.stream.externalProxy"
  23. >
  24. <template>
  25. <a-tooltip title="Force TLS">
  26. <a-select
  27. v-model="row.forceTls"
  28. :style="{ width: '20%', margin: '0px' }"
  29. :dropdown-class-name="themeSwitcher.currentTheme"
  30. >
  31. <a-select-option value="same"
  32. >{{ i18n "pages.inbounds.same" }}</a-select-option
  33. >
  34. <a-select-option value="none">{{ i18n "none" }}</a-select-option>
  35. <a-select-option value="tls">TLS</a-select-option>
  36. </a-select>
  37. </a-tooltip>
  38. </template>
  39. <a-input
  40. :style="{ width: '30%' }"
  41. v-model.trim="row.dest"
  42. placeholder='{{ i18n "host" }}'
  43. ></a-input>
  44. <a-tooltip title='{{ i18n "pages.inbounds.port" }}'>
  45. <a-input-number
  46. :style="{ width: '15%' }"
  47. v-model.number="row.port"
  48. min="1"
  49. max="65535"
  50. ></a-input-number>
  51. </a-tooltip>
  52. <a-input
  53. :style="{ width: '30%', top: '0' }"
  54. v-model.trim="row.remark"
  55. placeholder='{{ i18n "remark" }}'
  56. >
  57. <template slot="addonAfter">
  58. <a-button
  59. icon="minus"
  60. size="small"
  61. @click="inbound.stream.externalProxy.splice(index, 1)"
  62. ></a-button>
  63. </template>
  64. </a-input>
  65. </a-input-group>
  66. </a-form>
  67. {{end}}