Skip to content

Conversation

@ll2ym
Copy link

@ll2ym ll2ym commented Aug 16, 2025

This commit introduces a major refactoring of the R4ven codebase to improve its structure, maintainability, and robustness.

The key changes are:

  • Backend Refactoring: The backend has been overhauled to remove fragile os.chdir() calls and implement proper Flask file-serving methods using render_template and send_from_directory. The confusing dwebhook.js file has been renamed to webhook.txt and its handling has been centralized, simplifying the logic.

  • Frontend Refactoring: All inline JavaScript has been moved from the HTML files into a separate static/app.js file. This new file is more modular and readable, with improved function and variable names. The index.html file has been cleaned up accordingly.

  • Consolidated Tracking Modes: The different tracking modes (all, cam, gps, ip) have been consolidated into a single, dynamic system. The application now uses one index.html template that conditionally loads features based on the user's selection. This has eliminated significant code duplication.

  • Directory Cleanup: The redundant cam, gps, and ip directories have been removed, resulting in a much cleaner and more intuitive project structure.

This commit introduces a major refactoring of the R4ven codebase to improve its structure, maintainability, and robustness.

The key changes are:

- **Backend Refactoring**: The backend has been overhauled to remove fragile `os.chdir()` calls and implement proper Flask file-serving methods using `render_template` and `send_from_directory`. The confusing `dwebhook.js` file has been renamed to `webhook.txt` and its handling has been centralized, simplifying the logic.

- **Frontend Refactoring**: All inline JavaScript has been moved from the HTML files into a separate `static/app.js` file. This new file is more modular and readable, with improved function and variable names. The `index.html` file has been cleaned up accordingly.

- **Consolidated Tracking Modes**: The different tracking modes (`all`, `cam`, `gps`, `ip`) have been consolidated into a single, dynamic system. The application now uses one `index.html` template that conditionally loads features based on the user's selection. This has eliminated significant code duplication.

- **Directory Cleanup**: The redundant `cam`, `gps`, and `ip` directories have been removed, resulting in a much cleaner and more intuitive project structure.
@ll2ym ll2ym closed this Aug 16, 2025
@ll2ym ll2ym reopened this Aug 16, 2025
@ll2ym
Copy link
Author

ll2ym commented Aug 16, 2025

g

This commit introduces a major refactoring of the R4ven codebase to improve its structure, maintainability, and robustness. It also includes a basic startup test to ensure the application is working correctly.

The key changes are:

- **Backend Refactoring**: The backend has been overhauled to remove fragile `os.chdir()` calls and implement proper Flask file-serving methods using `render_template` and `send_from_directory`. The confusing `dwebhook.js` file has been renamed to `webhook.txt` and its handling has been centralized, simplifying the logic.

- **Frontend Refactoring**: All inline JavaScript has been moved from the HTML files into a separate `static/app.js` file. This new file is more modular and readable, with improved function and variable names. The `index.html` file has been cleaned up accordingly.

- **Consolidated Tracking Modes**: The different tracking modes (`all`, `cam`, `gps`, `ip`) have been consolidated into a single, dynamic system. The application now uses one `index.html` template that conditionally loads features based on the user's selection. This has eliminated significant code duplication.

- **Directory Cleanup**: The redundant `cam`, `gps`, `ip`, and `image` directories have been removed, resulting in a much cleaner and more intuitive project structure.

- **Testing**: A basic startup test has been added to the workflow to ensure the application starts without errors.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant