Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Online/Offline Status Display #18

Merged
merged 5 commits into from
Dec 10, 2024
Merged

Add Online/Offline Status Display #18

merged 5 commits into from
Dec 10, 2024

Conversation

neozhu
Copy link
Owner

@neozhu neozhu commented Dec 9, 2024

2024-12-10.111736.mp4

Description

This PR introduces a new feature to display the online/offline status using Base64-encoded SVG icons in a Blazor component. The implementation includes the following:

  1. A Blazor component NetworkStatusIndicator.razor to show the current network status (online or offline) using MudImage and MudTooltip.
  2. Integration with OnlineStatusService to monitor network connectivity changes.
  3. Use of Base64-encoded SVG strings for online, offline, and loading states to ensure assets are available offline.
  4. Real-time updates of the status and tooltip based on network state changes.

@neozhu neozhu merged commit e343b0e into main Dec 10, 2024
5 checks passed
@neozhu neozhu deleted the feature/onofflinestate branch December 10, 2024 08:37
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