This commit is contained in:
Alireza Ahmadi
2024-10-29 13:45:22 +01:00
parent fe5b6cf922
commit e89ac96885
6 changed files with 14 additions and 12 deletions
+1 -1
View File
@@ -1 +1 @@
github: alireza0 buy_me_a_coffee: alireza7
+2 -1
View File
@@ -26,7 +26,8 @@ jobs:
- name: Setup Go - name: Setup Go
uses: actions/setup-go@v5 uses: actions/setup-go@v5
with: with:
go-version-file: go.mod cache: false
go-version-file: backend/go.mod
- name: Setup Node.js - name: Setup Node.js
uses: actions/setup-node@v4 uses: actions/setup-node@v4
+8 -8
View File
@@ -27,7 +27,7 @@
| Dark/Light Theme | :heavy_check_mark: | | Dark/Light Theme | :heavy_check_mark: |
## Default Installation Informarion ## Default Installation Information
- Panel Port: 2095 - Panel Port: 2095
- Panel Path: /app/ - Panel Path: /app/
- Subscription Port: 2096 - Subscription Port: 2096
@@ -40,12 +40,12 @@
bash <(curl -Ls https://raw.githubusercontent.com/alireza0/s-ui/master/install.sh) bash <(curl -Ls https://raw.githubusercontent.com/alireza0/s-ui/master/install.sh)
``` ```
## Install Custom Version ## Install legacy Version
**Step 1:** To install your desired version, add the version to the end of the installation command. e.g., ver `0.0.1`: **Step 1:** To install your desired legacy version, add the version to the end of the installation command. e.g., ver `1.0.0`:
```sh ```sh
bash <(curl -Ls https://raw.githubusercontent.com/alireza0/s-ui/master/install.sh) 0.0.1 bash <(curl -Ls https://raw.githubusercontent.com/alireza0/s-ui/master/install.sh) 1.0.0
``` ```
## Uninstall S-UI ## Uninstall S-UI
@@ -80,7 +80,7 @@ curl -fsSL https://get.docker.com | sh
```shell ```shell
mkdir s-ui && cd s-ui mkdir s-ui && cd s-ui
wget -q https://raw.githubusercontent.com/alireza0/s-ui/refs/tags/1.0.0/docker-compose.yml wget -q https://raw.githubusercontent.com/alireza0/s-ui/master/docker-compose.yml
docker compose up -d docker compose up -d
``` ```
@@ -104,7 +104,7 @@ docker build -t s-ui .
</details> </details>
## Manual run + contribution ## Manual run ( contribution )
<details> <details>
<summary>Click for details</summary> <summary>Click for details</summary>
@@ -125,7 +125,7 @@ npm run dev
``` ```
> By this command it will run a `vite` web server on separate port `3000`, with backend proxy to `http://localhost:2095`. You can change it in `frontend/vite.config.mts`. > By this command it will run a `vite` web server on separate port `3000`, with backend proxy to `http://localhost:2095`. You can change it in `frontend/vite.config.mts`.
To build fronend: To build frontend:
```shell ```shell
cd frontend cd frontend
npm run build npm run build
@@ -133,7 +133,7 @@ npm run build
### - Backend ### - Backend
Backend codes are in `backend` folder in the root of repository. Backend codes are in `backend` folder in the root of repository.
> Please build fronend once before! > Please build frontend once before!
To build backend: To build backend:
```shell ```shell
+1 -1
View File
@@ -1 +1 @@
1.0.0 1.1.0
+1 -1
View File
@@ -1,6 +1,6 @@
{ {
"name": "frontend", "name": "frontend",
"version": "1.0.0", "version": "1.1.0",
"private": true, "private": true,
"scripts": { "scripts": {
"dev": "vite --host", "dev": "vite --host",
+1
View File
@@ -174,6 +174,7 @@ export default {
this.inbound = createInbound(this.inbound.type, this.inbound.type != this.inTypes.Tun ? prevConfig : { tag: tag }) this.inbound = createInbound(this.inbound.type, this.inbound.type != this.inTypes.Tun ? prevConfig : { tag: tag })
if (this.HasInData.includes(this.inbound.type)){ if (this.HasInData.includes(this.inbound.type)){
if (this.inData.id == -1) this.inData.id = 0 if (this.inData.id == -1) this.inData.id = 0
this.inData.addrs = []
this.inData.outJson = {} this.inData.outJson = {}
this.inData.tag = tag this.inData.tag = tag
} else { } else {