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:
-rw-r--r--.env.example4
-rw-r--r--CONTRIBUTING.md5
-rw-r--r--web/html/xray.html4
3 files changed, 11 insertions, 2 deletions
diff --git a/.env.example b/.env.example
new file mode 100644
index 00000000..62aa8c0b
--- /dev/null
+++ b/.env.example
@@ -0,0 +1,4 @@
+XUI_DEBUG=true
+XUI_DB_FOLDER=x-ui
+XUI_LOG_FOLDER=x-ui
+XUI_BIN_FOLDER=x-ui \ No newline at end of file
diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md
new file mode 100644
index 00000000..5455e8b5
--- /dev/null
+++ b/CONTRIBUTING.md
@@ -0,0 +1,5 @@
+## Local Development Setup
+
+- Create a directory named `x-ui` in the project root
+- Rename `.env.example` to `.env `
+- Run `main.go` \ No newline at end of file
diff --git a/web/html/xray.html b/web/html/xray.html
index 4dacd021..f4d89c84 100644
--- a/web/html/xray.html
+++ b/web/html/xray.html
@@ -527,10 +527,10 @@
findOutboundTraffic(o) {
for (const otraffic of this.outboundsTraffic) {
if (otraffic.tag == o.tag) {
- return SizeFormatter.sizeFormat(otraffic.up) + ' / ' + SizeFormatter.sizeFormat(otraffic.down);
+ return `↑ ${SizeFormatter.sizeFormat(otraffic.up)} / ${SizeFormatter.sizeFormat(otraffic.down)} ↓`
}
}
- return SizeFormatter.sizeFormat(0) + ' / ' + SizeFormatter.sizeFormat(0);
+ return `${SizeFormatter.sizeFormat(0)} / ${SizeFormatter.sizeFormat(0)}`
},
findOutboundAddress(o) {
serverObj = null;