1
0

vless.html 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. {{define "form/vless"}}
  2. <a-collapse activeKey="0" v-for="(client, index) in inbound.settings.vlesses.slice(0,1)" v-if="!isEdit">
  3. <a-collapse-panel header='{{ i18n "pages.inbounds.client" }}'>
  4. {{template "form/client"}}
  5. </a-collapse-panel>
  6. </a-collapse>
  7. <a-collapse v-else>
  8. <a-collapse-panel :header="'{{ i18n "pages.client.clientCount"}} : ' + inbound.settings.vlesses.length">
  9. <table width="100%">
  10. <tr class="client-table-header">
  11. <th>{{ i18n "pages.inbounds.email" }}</th>
  12. <th>Flow</th>
  13. <th>ID</th>
  14. </tr>
  15. <tr v-for="(client, index) in inbound.settings.vlesses" :class="index % 2 == 1 ? 'client-table-odd-row' : ''">
  16. <td>[[ client.email ]]</td>
  17. <td>[[ client.flow ]]</td>
  18. <td>[[ client.id ]]</td>
  19. </tr>
  20. </table>
  21. </a-collapse-panel>
  22. </a-collapse>
  23. <template v-if="inbound.isTcp && !inbound.stream.isReality">
  24. <a-form :colon="false" :label-col="{ md: {span:8} }" :wrapper-col="{ md: {span:14} }">
  25. <a-form-item label="Fallbacks">
  26. <a-button icon="plus" type="primary" size="small" @click="inbound.settings.addFallback()"></a-button>
  27. </a-form-item>
  28. </a-form>
  29. <!-- vless fallbacks -->
  30. <a-form v-for="(fallback, index) in inbound.settings.fallbacks" :colon="false" :label-col="{ md: {span:8} }" :wrapper-col="{ md: {span:14} }">
  31. <a-divider style="margin:0;"> Fallback [[ index + 1 ]] <a-icon type="delete" @click="() => inbound.settings.delFallback(index)" style="color: rgb(255, 77, 79);cursor: pointer;"></a-icon>
  32. </a-divider>
  33. <a-form-item label='SNI'>
  34. <a-input v-model="fallback.name"></a-input>
  35. </a-form-item>
  36. <a-form-item label='ALPN'>
  37. <a-input v-model="fallback.alpn"></a-input>
  38. </a-form-item>
  39. <a-form-item label='Path'>
  40. <a-input v-model="fallback.path"></a-input>
  41. </a-form-item>
  42. <a-form-item label='Dest'>
  43. <a-input v-model="fallback.dest"></a-input>
  44. </a-form-item>
  45. <a-form-item label='xVer'>
  46. <a-input-number v-model="fallback.xver" :min="0" :max="2"></a-input-number>
  47. </a-form-item>
  48. </a-form>
  49. <a-divider style="margin:5px 0;"></a-divider>
  50. </template>
  51. {{end}}