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:
authormhsanaei <ho3ein.sanaei@gmail.com>2024-09-16 12:41:21 +0300
committermhsanaei <ho3ein.sanaei@gmail.com>2024-09-16 12:41:21 +0300
commit566cd9e9c4b7f10f19b7eb647c6c7cad4647ac44 (patch)
tree88dfe6ef573c216f79b14d4205407f4d2ec96b21 /web/html/xui
parentad78cec7c79c51f16940f54baeb35cbefd18d939 (diff)
New - Allocate
Diffstat (limited to 'web/html/xui')
-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
-rw-r--r--web/html/xui/inbounds.html3
4 files changed, 26 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">
diff --git a/web/html/xui/inbounds.html b/web/html/xui/inbounds.html
index f27be794..e93a0a1d 100644
--- a/web/html/xui/inbounds.html
+++ b/web/html/xui/inbounds.html
@@ -935,6 +935,7 @@
settings: Inbound.Settings.getSettings(baseInbound.protocol).toString(),
streamSettings: baseInbound.stream.toString(),
sniffing: baseInbound.sniffing.toString(),
+ allocate: baseInbound.allocate.toString(),
};
await this.submit('/panel/inbound/add', data, inModal);
},
@@ -980,6 +981,7 @@
};
if (inbound.canEnableStream()) data.streamSettings = inbound.stream.toString();
data.sniffing = inbound.sniffing.toString();
+ data.allocate = inbound.allocate.toString();
await this.submit('/panel/inbound/add', data, inModal);
},
@@ -999,6 +1001,7 @@
};
if (inbound.canEnableStream()) data.streamSettings = inbound.stream.toString();
data.sniffing = inbound.sniffing.toString();
+ data.allocate = inbound.allocate.toString();
await this.submit(`/panel/inbound/update/${dbInbound.id}`, data, inModal);
},