Commit graph

20 commits

Author SHA1 Message Date
ccbikai
225579ba68 chore: eslint & ai rules 2025-07-20 11:34:36 +08:00
ccbikai
643df5c6de feat: add vue-sonner styles import
Import required CSS styles for vue-sonner toast component to ensure proper styling and visual consistency of notifications.nr
2025-05-25 20:38:28 +08:00
ccbikai
970f9474fb feat: enhance SEO and mobile app meta properties
Improves SEO optimization and mobile app integration by:
- Adding ogSiteName meta property for better social sharing
- Including apple-touch-icon for iOS device support
- Updating documentation for Worker deployment configuration
- Clarifying preview mode duration (5 minutes) in documentation
2025-05-24 18:51:11 +08:00
ccbikai
61fec839e4 chore: eslint 2025-05-21 19:54:54 +08:00
ccbikai
2bbb905ac8 perf: optimize dashboard components and lazy loading
Enhances dashboard performance through strategic component optimizations:

- Removes redundant v-if condition from chart component
- Implements lazy loading for the resource-intensive globe component
- Bumps package version to 0.1.12

These changes improve initial load time and runtime performance while maintaining functionality.
2025-05-20 21:46:49 +08:00
ccbikai
1d28494d6b feat(globe): enhance traffic visualization effects
Improves the visual representation of traffic events on the globe:
- Optimizes arc animation parameters for smoother transitions
- Adds source and target ring animations for better event tracking
- Skips visualization for nearby locations to reduce visual clutter
- Updates color scheme to dark orange for better visibility
- Synchronizes animation timings with event delays
2025-05-19 20:39:17 +08:00
ccbikai
bab8dec489 style(vue): improve motion animation formatting
Enhances code readability and maintainability by:
- Breaking v-motion directive into separate line
- Reordering motion module in Nuxt config for better dependency loading

This change maintains the same functionality while improving code organization
and module initialization order.
2025-05-18 21:52:02 +08:00
ccbikai
9106881448 fix: clean up globe arcs and prevent empty stats display
- Adds cleanup timer for globe arcs to prevent accumulation
- Conditionally renders chart header when stats are available
- Improves event handling in AnimatedList by passing props
- Fixes traffic event animation by clearing previous timeouts

These changes improve visualization performance and user experience by preventing memory leaks from accumulated arcs and ensuring smoother animations.
2025-05-18 21:17:19 +08:00
ccbikai
852755ee1d feat: enhance globe visualization with traffic arcs
Adds real-time visualization of traffic flow between user locations and data centers on the 3D globe:

- Implements arc animations for traffic visualization
- Adjusts globe colors and atmosphere for better visibility
- Adds data center (colo) location mapping
- Centers initial view on user's current location
- Improves mobile responsiveness and layout
- Adds cleanup handling for globe resources

Performance and UX improvements:
- Optimizes globe rotation speed and controls
- Updates time picker layout with logical grouping
- Enhances responsive design for dashboard components
2025-05-18 20:50:56 +08:00
ccbikai
70d6632fd0 refactor: remove redundant watcher cleanup in Vue comps
Removes unnecessary manual watcher cleanup via stopWatchQueryChange across multiple Vue components.

Vue 3's watch() automatically handles cleanup when components are unmounted, making explicit stopWatchQueryChange calls and onBeforeUnmount handlers redundant.

This change:
- Improves code maintainability
- Reduces boilerplate code
- Follows Vue 3 best practices for reactive system cleanup
2025-05-18 19:13:04 +08:00
ccbikai
0dd263c354 feat: enhance realtime dashboard with time filters
Implements comprehensive time filtering and visualization improvements:

- Adds time range picker with presets from 5min to 24h
- Enhances chart visualization with minute-level granularity
- Updates globe visualization to respond to time/filter changes
- Implements animated event log display
- Swaps primary/secondary color scheme for better contrast

Improves realtime data handling with automatic updates and proper cleanup on unmount. Includes i18n support for new time picker UI across all supported languages.
2025-05-18 19:06:28 +08:00
ccbikai
3456e69366 feat: enhance realtime globe functionality
- Reintroduced the realtime dashboard tab in the navigation menu.
- Updated Globe component to utilize geographic coordinates for live session locations.
- Added dynamic resizing for the globe based on viewport width.
- Implemented stop rotation feature on mouse down for better user interaction.
- Cleaned up commented code and improved type definitions in event logging.
2025-05-11 21:53:23 +08:00
ccbikai
7291beafea Merge branch 'preview' into realtime 2025-05-11 18:58:02 +08:00
ccbikai
189c52dd4d chore: remove realtime dashboard tab
Temporarily disables the realtime dashboard navigation option by commenting out its TabsTrigger component in the navigation menu. This indicates a planned feature or work in progress.
2025-05-11 17:49:27 +08:00
ccbikai
63cd5e9503 feat: add realtime log and globe 2025-05-11 17:48:46 +08:00
ccbikai
622d6351c6 refactor: replace Dashboard with DashboardAnalysis
Updates component to use more specific DashboardAnalysis component while preserving existing link-related functionality and props
2025-05-11 14:43:40 +08:00
ccbikai
cd16254dbc feat: use locale for Intl.DisplayNames rendering
Updates formatting of country and language names to respect the user's locale instead of hardcoding to English ('en').

Includes commented placeholder for future timezone support via Intl.TimeZone API.
2025-05-11 14:41:37 +08:00
ccbikai
d580a9f882 chore: Adjust the directory structure in preparation for real-time. 2025-05-11 14:17:57 +08:00
ccbikai
d4d088521a Merge branch 'master' of github.com:WuChenDi/Sink into WuChenDi-master 2025-05-11 13:40:19 +08:00
wudi
7cadbfe2b1 refactor: Migrate project files and directories to the app directory using the new compatibilityVersion: 4 feature
- Moved `app.config.ts` to the `app` directory
- Migrated `.vue` files and other assets to the `app` directory
- Updated import paths to reflect the new file locations
2025-03-24 11:05:59 +08:00