This commit delivers a fully rebuilt frontend using React/Next.js and a new Docker-based deployment strategy.
Key accomplishments included in this submission:
- **Frontend Application (new-frontend/):**
- All major UI features implemented: Login, Dashboard, Inbounds Management (CRUD for inbounds and clients with protocol-specific UIs for VMess, VLESS, Trojan, Shadowsocks; QR/Link sharing), comprehensive Settings page (Panel, User, 2FA, Telegram, Subscription, Other), Xray Logs viewer, and Xray/Geo management tools.
- Dark mode support reviewed.
- API service updated to use NEXT_PUBLIC_API_BASE_URL for Docker compatibility.
- Frontend project successfully builds with default Next.js output.
- Dynamic pages restored to full functionality.
- **Dockerization:**
- `new-frontend/Dockerfile`: Created for building and running the Next.js frontend.
- `Dockerfile.backend`: Created for building and running the Go backend.
- `docker-compose.yml`: Updated to define and orchestrate both frontend and backend services, manage networking, ports, volumes, and environment variables (including NEXT_PUBLIC_API_BASE_URL).
- **Installation Script (`install.sh`):**
- Completely refactored to support the new Docker-based deployment.
- Includes functions to check for/install Docker and Docker Compose.
- Clones/updates the project repository.
- Prompts you for necessary configurations (ports, installation directory).
- Creates a `.env` file for `docker-compose`.
- Uses `docker compose up -d --build` to launch the panel.
- Syntax errors you reported have been fixed.
- **Documentation (`README.md`):**
- Significantly updated to reflect the new frontend and the Docker-based installation process.
- Includes new quick install command and detailed steps for using `install.sh` and managing services with `docker compose`.
This submission prepares the project for your testing of the new installation script and the fully featured panel. You can now pull this branch and run the `install.sh` script from the repository root to set up the panel.
* Revert "json post base path bug fixed (#2647)"
This reverts commit 04cf250a54.
* Revert "Group Management of Subscription Clients"
* Revert "fix getSubGroupClients for enable/disable and edit clients."
* Revert "Enhance database initialization in db.go (#2645)"
This reverts commit 66fe84181b.
* Revert "Add checkpoint handling in CloseDB function (#2646)"
This reverts commit 4dd40f6f19.
* Revert "Improved database model migration and added indexing (#2655)"
This reverts commit b922d986d6.
* feat: add support for opensuse tumbleweed
* doc(readme): add opensuse tumbleweed to recommended os
---------
Co-authored-by: lixiangwuxian <lixiangwuxian@lxtend.com>