Commit Graph

38 Commits (master)

Author SHA1 Message Date
Aidaho 073a86be80 v8.2.1: Refactor HA and Config Compare modules, optimize service installation flow, and add Spanish language support
- Replaced unused AJAX and JS methods (`cleanProvisioningProcess`, `showErrorStatus`) in HA management with simpler, streamlined equivalents. Moved HA cluster data fetching logic to the new endpoint (`HAClustersView`).
- Introduced `compareConfig()` method to improve configuration diff rendering. Removed redundant templates (`compare.html`), leveraging external Diff2Html library.
- Simplified HA service installation logic in `Reconfigure`, enabling task-based tracking. Removed redundant progress logic (`increaseProgressValue`, `checkInstallResp`).
- Added support for Spanish localization (`es-ES.html`, updated `languages.html` template).
- Replaced Python PagerDuty SDK for a more actively maintained library.
- Fixed description rendering logic in HA cluster templates.
- Updated Nginx to support multiple aliases per server.
- Minor dependency updates and comments cleanup in Ansible WAF tasks.
2025-07-03 17:57:53 +03:00
Aidaho f749f7366e v8.2.1: Refactor JS and Python models, remove unused functions, and improve form validation
Updated JavaScript to refine option selection logic and remove redundant functions (`showCompare`, `showCompareConfigs`). Enhanced Python models with validators to enforce non-empty inputs for critical fields (`port`, `maxconn`, etc.). Optimized configuration diff logic for better performance and readability. Added file lock checks before database migrations.
2025-06-08 12:55:43 +03:00
Aidaho bc2fe10485 v8.2.0: Refactor metrics and user group handling for better efficiency
Replaced raw SQL queries with ORM-based queries in metrics retrieval functions, ensuring better maintainability and readability. Simplified logic in `check_user_group_for_flask` and `get_dick_permit` by removing redundant arguments and unused paths. Adjusted the flow for consistent error handling and improved data grouping across various time ranges for metrics calculations.
2025-05-17 10:49:31 +03:00
Aidaho c765616b1b v8.1.8: Remove unused code and improve variable naming.
Removed the obsolete `Reconfigure` function from UDP.js and cleaned up unused parameters in config.py. Enhanced logging by simplifying error messages in auth.py and clarified variable naming for HA routes. These changes improve readability and maintainability.
2025-04-26 22:33:15 +03:00
Aidaho 53d319f5e0 v8.1.7: Add "log" mode, improve metrics, and refactor logging
Extended "mode" options to include "log" for frontend/backend configurations. Enhanced RAM/CPU metrics to better handle remote servers and removed redundant logic. Streamlined logging with structured formatting, improved error handling, and removed unnecessary parameters.
2025-04-05 12:33:22 +03:00
Aidaho 66f1760ca3 v8.1.6: Add support for editing specific config sections and templates
Enhanced configuration management by introducing support for editing specific sections in HAProxy configurations via `edit_section`. Added server templates with structured validation, improved file encoding handling, and addressed edge cases in multiple components for greater robustness.
2025-03-14 12:29:16 +03:00
Aidaho a8dfe6e2c4 v8.1.1: Refactor server SQL function names
Replaced multiple SQL function calls with consistent `get_server` naming. Consolidated and streamlined the function calls to `get_server` and `get_server_by_ip` to ensure consistency and improve maintainability across the codebase. Removed obsolete and redundant function definitions that were no longer in use.
2024-11-13 21:52:41 +03:00
Aidaho 4e5f4b2bd1 v8.0: Add new icons and update HA view validation
Added new icons for Keepalived and Roxy services in the static images and integrated them into the main menu. Updated HA view validation to use `eth` instead of `ip` and changed certain property types from string to integer. Enhanced error handling and data processing for the configuration routes and improved JSON data handling in the script.js file.
2024-09-01 20:51:12 +03:00
Aidaho bf7469cc3f v8.0: Refactor and simplify config upload and restart logic.
Consolidate user and server queries, remove redundant code, and streamline logging actions. Enhance function readability and efficiency by eliminating unnecessary variables and try-except blocks. The refactor ensures service consistency and maintains error handling robustness.
2024-09-01 09:03:53 +03:00
Aidaho 8f50e1b8bf v8.0: https://roxy-wi.org/changelog#8 2024-08-02 12:50:02 +03:00
Aidaho 9a193e43f9 v7.3.2.0: Enhance user parameter handling in various routes
Added decorator `@get_user_params()` to various route handlers in `routes.py`. Adjusted user handling in `config.py` by eliminating checks for 'login' and directly accessing user parameters from Flask's global variable `g`. Also moved user retrieval process from `routes.py` to lower level operations allowing for better abstraction and less redundancy.
2024-07-08 15:53:05 +03:00
Aidaho 8dedc459e1 v7.3.2.0: Refactor user_id retrieval function call
The user id retrieval function, get_user_id_by_username, in the config module was refactored. The changes included the removal of unnecessary use of keyword argument on a function call. This change simplifies the code, making it more readable and easier to understand.
2024-07-08 10:17:28 +03:00
Aidaho 811255ba0b v7.3.1.0: Improve error handling and streamline data formatting
This update reviews and adjusts multiple code segments across the project. The improvements are mainly focused on error handling with more informative exceptions and error messages. Additionally, data formatting and retrieval have been streamlined, mainly regarding JSON data preparation and use in several functions, which should expedite the data processing and enhance the code maintainability. Minor changes were also done on the front-end logic for error handling and improved user interaction.
2024-06-19 20:52:24 +03:00
Aidaho ea8e51ee29 v7.3.1.0: Refactor server-side code to use JSON-based APIs
The commit refactors the server-side modules of the Roxy-WI web interface to use JSON-based APIs for improved data exchange. Specifically, methods for user, group and SSH management have been updated to accept and return JSON data. Simultaneously, error handling is improved to give more informative responses instead of plain strings. The client-side JavaScript code is also refactored to accommodate these changes. Additionally, some minor corrections are made in the UI templates.
2024-06-16 19:20:18 +03:00
Aidaho 7d47e94160 v7.3.0.0
https://roxy-wi.org/changelog#7_3
2024-06-05 10:20:43 +03:00
Aidaho 4382c44b92 v7.2.2.0
Fix haproxy command
2024-04-01 17:04:38 +03:00
Aidaho 666fc39e1d v7.2.1.0
SQL fixes
2024-03-04 09:34:24 +03:00
Aidaho d1a81f937b v7.2.1.0
https://roxy-wi.org/changelog#7_2_1
2024-03-03 10:11:48 +03:00
Aidaho 2712b25515 v7.1.2.0
Changelog: https://roxy-wi.org/changelog#7.1.2
2024-02-04 10:28:17 +03:00
Aidaho 6a671d96e2 v7.0.0.0
Changelog: https://roxy-wi.org/changelog#7.0.0
2023-10-11 20:18:07 +03:00
Aidaho 3f83e316fa v7.0.0.0
Changelog: https://roxy-wi.org/changelog#7.0.0
2023-10-06 22:15:47 +03:00
Aidaho 6aaeeef565 v7.0.0.0
Changelog: https://roxy-wi.org/changelog#7.0.0
2023-10-03 22:56:34 +03:00
Aidaho 4b168e8fa8 v7.0.0.0
Changelog: https://roxy-wi.org/changelog#7.0.0
2023-09-17 12:42:39 +03:00
Aidaho 08e415c3da v6.3.12.0
Changelog: https://roxy-wi.org/changelog#6_3_12
2023-05-17 20:38:13 +03:00
Aidaho 28eaa9d940 v6.3.9.0
Changelog: https://roxy-wi.org/changelog#6_3_9
2023-04-06 10:48:00 +03:00
Aidaho 3a4af20d27 v6.3.7.0
Changelog: https://roxy-wi.org/changelog#6_3_7
2023-03-08 16:15:15 +03:00
Aidaho 4879b215b7 v6.3.7.0
Changelog: https://roxy-wi.org/changelog#6_3_7
2023-03-04 10:42:26 +03:00
Aidaho d190583abd v6.3.7.0
Changelog: https://roxy-wi.org/changelog#6_3_7
2023-03-03 23:03:41 +03:00
Aidaho f9c324da13 v6.3.5.0
Changelog: https://roxy-wi.org/changelog#6_3_5
2023-02-14 21:46:14 +03:00
Pavel Loginov 6ec8df1ee5 v6.3.2.0
Changelog: https://roxy-wi.org/changelog#6_3_2
2022-12-29 14:11:51 +03:00
Pavel Loginov e0b914074a v6.3.1.0
Changelog: https://roxy-wi.org/changelog#6_3_1
2022-12-09 23:08:32 +03:00
Pavel Loginov 729df72f11 v6.3.1.0
Changelog: https://roxy-wi.org/changelog#6_3_1
2022-12-07 16:49:42 +03:00
Pavel Loginov 586f4c626f v6.3.1.0
Changelog: https://roxy-wi.org/changelog#6_3_1
2022-12-07 13:21:55 +03:00
Pavel Loginov 811055a496 v6.3.1.0
Changelog: https://roxy-wi.org/changelog#6_3_1
2022-12-07 12:27:46 +03:00
Pavel Loginov f5651d62c0 v6.3.1.0
Changelog: https://roxy-wi.org/changelog#6_3_1
2022-12-06 10:23:17 +03:00
Pavel Loginov 5a40d50368 v6.3.1.0
Changelog: https://roxy-wi.org/changelog#6_3_1
2022-12-04 21:43:25 +03:00
Pavel Loginov f7de094a4f v6.3.0.0
Changelog: https://roxy-wi.org/changelog#6_3_0
2022-11-17 12:49:30 +03:00
Pavel Loginov c48f9f8fc6 v6.3.0.0
Changelog: https://roxy-wi.org/changelog#6_3_0
2022-11-17 10:34:58 +03:00