external_proxy.html 1.6 KB

1234567891011121314151617181920212223242526272829
  1. {{define "form/externalProxy"}}
  2. <a-form :colon="false" :label-col="{ md: {span:8} }" :wrapper-col="{ md: {span:14} }">
  3. <a-divider style="margin:5px 0 0;"></a-divider>
  4. <a-form-item label="External Proxy">
  5. <a-switch v-model="externalProxy"></a-switch>
  6. <a-button icon="plus" v-if="externalProxy" type="primary" style="margin-left: 10px" size="small" @click="inbound.stream.externalProxy.push({forceTls: 'same', dest: '', port: 443, remark: ''})"></a-button>
  7. </a-form-item>
  8. <a-input-group style="margin: 8px 0;" compact v-for="(row, index) in inbound.stream.externalProxy">
  9. <template>
  10. <a-tooltip title="Force TLS">
  11. <a-select v-model="row.forceTls" style="width:20%; margin: 0px" :dropdown-class-name="themeSwitcher.currentTheme">
  12. <a-select-option value="same">{{ i18n "pages.inbounds.same" }}</a-select-option>
  13. <a-select-option value="none">{{ i18n "none" }}</a-select-option>
  14. <a-select-option value="tls">TLS</a-select-option>
  15. </a-select>
  16. </a-tooltip>
  17. </template>
  18. <a-input style="width: 35%" v-model.trim="row.dest" placeholder='{{ i18n "host" }}'></a-input>
  19. <a-tooltip title='{{ i18n "pages.inbounds.port" }}'>
  20. <a-input-number style="width: 15%;" v-model.number="row.port" min="1" max="65531"></a-input-number>
  21. </a-tooltip>
  22. <a-input style="width: 30%; top: 0;" v-model.trim="row.remark" placeholder='{{ i18n "remark" }}'>
  23. <template slot="addonAfter">
  24. <a-button icon="minus" size="small" @click="inbound.stream.externalProxy.splice(index, 1)"></a-button>
  25. </template>
  26. </a-input>
  27. </a-input-group>
  28. </a-form>
  29. {{end}}