-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: Refactor code to comply to basic principles
Fixes #65 Refactor code to comply with basic principles. * **`monitor-app/main.py`**: - Split `check_and_update_status` into `fetch_status` and `update_status`. - Move GUI import logic to a separate function `import_gui_modules`. - Rename `setup_application` to `initialize_application`. - Update `main` to use the new functions. * **`monitor-app/src/core/app_settings.py`**: - Split `AppSettings` into `SettingsLoader` and `SettingsSaver`. - Update `app_settings` to use the new classes. * **`monitor-app/src/core/notification_handler.py`**: - Split event handling and notification sending into separate functions. - Rename functions for clarity, e.g., `send_game_online_notification` to `notify_game_online`. * **`monitor-app/src/core/state.py`**: - Rename `get_state` to `retrieve_state` in `GameState` and `GameServerState`. - Rename `update` to `update_state` in `GameState` and `GameServerState`. * **`monitor-app/src/core/steam_api.py`**: - Rename `get_status` to `fetch_status_from_api`. - Rename `get_game_icon` to `fetch_game_icon`. * **`monitor-app/src/gui/mainwindow.py`**: - Rename `update_status` to `refresh_status`. - Rename `handle_status_timeout` to `on_status_timeout`. * **`web-app/src/lib/services/webhook-service.ts`**: - Fix warning in `encryptWebhookUrl` by handling the error properly. --- For more details, open the [Copilot Workspace session](https://copilot-workspace.githubnext.com/bl4ckswordsman/disco-beacon/issues/65?shareId=XXXX-XXXX-XXXX-XXXX).
- Loading branch information
1 parent
c7af99b
commit 01b5a3d
Showing
7 changed files
with
89 additions
and
80 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters