Commit Graph

250 Commits

Author SHA1 Message Date
3a13108181 feat: Add WARP management tab to settings page
Integrates WARP (install, uninstall, configure, status) functionality
into the web panel's settings page. Users can now manage WARP
directly from the UI.
2025-06-02 13:29:48 +03:30
5e61afe15c feat: Add OBFS management tab to settings page
- Added a new "OBFS" tab in `settings.html`.
- The tab displays the current OBFS status (active/inactive).
2025-06-02 00:38:53 +03:30
97ade9e4eb feat: Add OBFS status API endpoint 2025-06-02 00:19:25 +03:30
b2cb712c08 feat: Adapt WARP API to handle JSON status output 2025-05-25 12:49:33 +03:30
c7ed9b3aef feat: add reset webpanel admin credentials 2025-05-23 13:01:22 +03:30
b5af06708d feat: add API endpoint to fetch IP Limiter configuration 2025-05-23 12:16:58 +03:30
5d0a9a875e Update footer to remove shield icons 2025-05-23 11:47:26 +03:30
ec6610571d feat: Add NormalSub subpath configuration to settings UI
Adds a 'Configure' tab to the Normal Subscriptions section in Settings.
This tab allows users to view and edit the subpath for the NormalSub service.

- Modified settings.html:
  - Added new tab link and pane for NormalSub subpath configuration.
  - Tab is only visible and accessible if NormalSub service is active.
- Extended JavaScript:
  - `sendRequest` function now accepts an optional `postSuccessCallback`.
  - Added `isValidSubPath` for client-side validation.
  - `updateServiceUI` now manages visibility of the 'Configure' tab and fetches current subpath.
  - Implemented `fetchNormalSubPath` to get subpath via API.
  - Implemented `editNormalSubPath` to save subpath via API.
  - Integrated new input into `validateForm` and added real-time validation.
- Updated `updateDecoyStatusUI` and its calls from `setupDecoy`/`stopDecoy` to use the new `postSuccessCallback` pattern for consistency.
- Standardized form IDs (e.g., `telegram_form`, `port_form`) for better targeting in `validateForm` and `updateServiceUI`.
2025-05-18 11:25:29 +03:30
3cb8022c7c feat: Add API endpoint to get current NormalSub subpath
- Created `GetSubPathResponse` Pydantic schema for the API response.
- Added a new GET endpoint `/api/v1/config/normalsub/subpath` to fetch
  the current NormalSub subpath using `cli_api.get_normalsub_subpath()`.
- Returns the subpath or null if not found/set.
2025-05-17 23:55:01 +03:30
d86087cf74 feat: Add API endpoint to edit NormalSub subpath
This commit introduces a new PUT endpoint `/api/v1/config/normalsub/edit_subpath`
to allow modification of the NormalSub service's subpath.

- Added `EditSubPathInputBody` Pydantic model for request validation.
- Implemented the API endpoint in `normalsub.py` router, calling the
  corresponding `cli_api.edit_normalsub_subpath` function.
- Includes error handling for validation and general exceptions.
2025-05-17 23:27:17 +03:30
5b04b47e60 feat(frontend): Enhance user management UI and error handling in users.html
-   Added default values for "Traffic Limit" and "Expiration Days" in the "Add User" modal.
2025-05-09 00:12:42 +03:30
69e9605414 feat(api): Implement user existence checks in add user API endpoint 2025-05-09 00:11:10 +03:30
9d0a13a226 Refactor: Implement WARP ACL configuration in Python
- remove WARP Plus/Key
2025-05-02 18:24:58 +03:30
8d9fda0c09 Remove Tree Mode 2025-05-01 23:34:29 +03:30
f2f2401b52 fix(ui): Adjust JSONEditor code view background in dark mode 2025-05-01 23:33:38 +03:30
552862c251 Integrate custom CSS into base.html 2025-05-01 22:18:35 +03:30
ea581c0197 feat: Enhance UI/UX with improved CSS for light/dark modes 2025-05-01 21:49:27 +03:30
862128b325 fixed footer 2025-05-01 19:47:33 +03:30
72b372b978 feat: Add user count, ID column, and sorting to users table
- Display total user count in the card header.
- Add a new '#' column to the user table showing the row number.
- Sort the user list alphabetically by username (case-insensitive) using Jinja filter before rendering.
- Update JavaScript column index references (`td:eq(n)`) to reflect the added '#' column.
2025-04-28 19:38:31 +03:30
cdf122d687 🔧 Fix missing return statement in telegram_stop_api function 2025-04-28 10:49:29 +03:30
57993d7602 feat: Add Decoy Site feature
Adds a new Decoy Site configuration tab in the settings section.
2025-04-26 20:33:12 +03:30
c1d8c422af Add decoy status API 2025-04-26 13:31:19 +03:30
fa7090a88b feat(api): Add endpoints for webpanel decoy management using background tasks
- Add POST `/api/v1/config/hysteria/webpanel/decoy/setup` endpoint to configure the decoy site.
- Add POST `/api/v1/config/hysteria/webpanel/decoy/stop` endpoint to remove the decoy site configuration.
- Implement `BackgroundTasks` for both endpoints to prevent Caddy service restarts from interrupting the API response.
- Add `SetupDecoyRequest` Pydantic schema for the setup endpoint payload.
2025-04-25 21:58:04 +03:30
7ff72e720c feat: Add decoy site functionality to Hysteria web panel
- Add ability to configure a decoy site on port 443 while hiding the web panel
- Support both same-port and separate-port configurations
- Add commands to manage decoy sites: 'decoy' to add/configure and 'stopdecoy' to remove
- Ensure clean reversion of Caddy configuration when stopping decoy sites
- Make decoy path optional during panel startup

This enhancement improves obfuscation capabilities by serving legitimate-looking 
content on standard HTTPS port while keeping the actual panel hidden behind a 
secret path.
2025-04-25 20:50:24 +03:30
32c21126ed add UserUriResponse schem 2025-04-19 18:43:06 +03:30
fb221d350e Changes log:
feat: add user URI API endpoint
feat: integrate show_user_uri_api in users page
refactor: remove URI generation from viewmodel
2025-04-19 18:18:01 +03:30
578301eb8d Fix title typo 2025-04-18 13:48:53 +03:30
dcea07e8f9 Change Project Name 2025-04-18 13:44:57 +03:30
e91825ca2c Change Project Name 2025-04-18 13:28:34 +03:30
35d917b887 feat : Optimize user edit workflow and eliminate service restart delay 2025-04-14 12:53:15 +03:30
49b9580b60 Improve user reset API 2025-04-14 12:22:42 +03:30
3384095d9e Improve user removal API with proper 404 error handling
- Added user existence check before attempting removal
- Return 404 status code when user is not found
- Leveraged existing get_user functionality for consistency
- Separated HTTPException handling to preserve status codes
- Enhanced error handling to provide clearer feedback to API consumers
2025-04-14 12:11:53 +03:30
8cd9866309 Fix Status 2025-04-12 13:15:39 +03:30
3eea66a6f5 fix: Allow null values for upload and download bytes in user info 2025-04-12 11:38:07 +03:30
580fe5e487 Update User Info Response
Added more details UserInfoResponse class
2025-04-12 00:08:52 +03:30
10dc20ad8e Remove SingBox Service Status 2025-04-11 21:57:40 +03:30
9297cf2467 Remove SingBox 2025-04-11 21:33:28 +03:30
7ad4a9839e fix: reload page after user edit for traffic usage update 2025-04-09 23:18:23 +03:30
e38bb4f864 Fix: Update table index references for user status and quota in edit user modal 2025-04-09 18:55:25 +03:30
f17ab3aa19 Merge branch 'original' of https://github.com/SeyedHashtag/dijiq into original 2025-04-08 20:25:16 +03:30
704f0988f3 Refactor: Update traffic usage display and calculations in user model and template 2025-04-08 20:25:13 +03:30
22d9c99ced Fix: Enable "Save Changes" button in Edit User modal 2025-04-05 23:17:02 +03:30
53304d9570 Remove default value 2025-03-24 11:35:39 +03:30
40a5d681b8 Fix: Correct Version Check Response for Up-to-Date Panel 2025-03-24 00:43:26 +03:30
1d78d38bc5 Replace SingboxSub with IP Limit 2025-03-24 00:22:16 +03:30
81eea1bfb9 Added IP Limit 2025-03-24 00:19:08 +03:30
f0fb7811c6 Added API and IPLimit service 2025-03-23 14:17:45 +03:30
5f28aa9d90 Added domain validation
Modify Pydantic Models
2025-03-19 23:01:19 +03:30
552b0ab7ca Fixed QR Code Display for Domain-Based URIs 2025-03-19 21:41:15 +03:30
82c736b261 Added Release URL 2025-03-12 10:13:46 +03:30