Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/MHSanaei/3x-ui.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'web/html/xui/form')
-rw-r--r--web/html/xui/form/allocate.html16
-rw-r--r--web/html/xui/form/inbound.html6
-rw-r--r--web/html/xui/form/sniffing.html2
3 files changed, 23 insertions, 1 deletions
diff --git a/web/html/xui/form/allocate.html b/web/html/xui/form/allocate.html
new file mode 100644
index 00000000..8c19d3ec
--- /dev/null
+++ b/web/html/xui/form/allocate.html
@@ -0,0 +1,16 @@
+{{define "form/allocate"}}
+<a-divider style="margin:5px 0 0;">Allocate</a-divider>
+<a-form :colon="false" :label-col="{ md: {span:8} }" :wrapper-col="{ md: {span:14} }">
+ <a-form-item label='strategy'>
+ <a-select v-model="inbound.allocate.strategy" :dropdown-class-name="themeSwitcher.currentTheme">
+ <a-select-option v-for="s in ['always','random']" :value="s">[[ s ]]</a-select-option>
+ </a-select>
+ </a-form-item>
+ <a-form-item label='refresh'>
+ <a-input-number v-model.number="inbound.allocate.refresh" min="0"></a-input-number>
+ </a-form-item>
+ <a-form-item label='concurrency'>
+ <a-input-number v-model.number="inbound.allocate.concurrency" min="0"></a-input-number>
+ </a-form-item>
+</a-form>
+{{end}}
diff --git a/web/html/xui/form/inbound.html b/web/html/xui/form/inbound.html
index c0ae1998..2930b7be 100644
--- a/web/html/xui/form/inbound.html
+++ b/web/html/xui/form/inbound.html
@@ -118,4 +118,10 @@
<template>
{{template "form/sniffing"}}
</template>
+
+<!-- allocate -->
+<template>
+ {{template "form/allocate"}}
+</template>
+
{{end}}
diff --git a/web/html/xui/form/sniffing.html b/web/html/xui/form/sniffing.html
index f4230dd1..23dfea65 100644
--- a/web/html/xui/form/sniffing.html
+++ b/web/html/xui/form/sniffing.html
@@ -1,5 +1,5 @@
{{define "form/sniffing"}}
-<a-divider style="margin:5px 0 0;"></a-divider>
+<a-divider style="margin:5px 0 0;">Sniffing</a-divider>
<a-form :colon="false" :label-col="{ md: {span:8} }" :wrapper-col="{ md: {span:14} }">
<a-form-item>
<span slot="label">