How qianyesu/gdou-net-login works
GDOU Net Login is a desktop client for campus-network SRUN authentication and connection maintenance, with Windows/Tauri and native macOS implementations. The user configures credentials and network settings, then logs in; status checks and optional reconnect keep the session alive. The README also describes Portal detection, diagnostics, themes, tray operation, and update checking. The excerpts show Windows UI-to-command wiring and macOS manager/client responsibilities; README statements support documented Portal and reconnect behavior where implementation details were not sampled.
Main entry points: ContentView.swift Native login interface · SrunClient.swift macOS SRUN client · main.rs Desktop runtime · AutoReconnectManager.swift Reconnect manager
Components 19
Windows client
- Login interface
frontend/src/main.jsx - Desktop runtime
desktop/src/main.rs - Windows configuration
desktop/src/config.rs
macOS client
- macOS app entry
macos/Sources/App.swift - Native login interface
macos/Sources/Views/ContentView.swift - Reconnect manager
macos/Sources/Services/AutoReconnectManager.swift - macOS configuration
macos/Sources/Models/AppConfig.swift - Password keychain
macos/Sources/Services/KeychainService.swift - Window and tray lifecycle
macos/Sources/AppDelegate.swift
Authentication and network
- Windows SRUN client
desktop/src/srun.rs - macOS SRUN client
macos/Sources/Services/SrunClient.swift - SRUN crypto
macos/Sources/Services/SrunCrypto.swift - Login state model
macos/Sources/Models/LoginState.swift - Campus Portal
Settings and diagnostics
- Network monitor
macos/Sources/Services/NetworkMonitor.swift - Advanced settings
macos/Sources/Views/AdvancedSettingsSheet.swift - Diagnostics view
macos/Sources/Views/DiagnosticsSheet.swift - Traffic visualization
macos/Sources/Views/TrafficWaveformView.swift
Other components
- User
Connections 24
- User → Login interface: configures and logs in
README.md - Login interface → Desktop runtime: invokes commands
frontend/src/main.jsx - Desktop runtime → Windows configuration: loads and saves
desktop/src/main.rs - Desktop runtime → Windows SRUN client: calls authentication
desktop/src/main.rs - Desktop runtime → Campus Portal: probes and authenticates
README.md - User → Native login interface: configures and logs in
README.md - macOS app entry → Native login interface: presents
macos/Sources/App.swift - macOS app entry → Window and tray lifecycle: adapts lifecycle
macos/Sources/App.swift - Native login interface → Reconnect manager: requests login and status
macos/Sources/Views/ContentView.swift - Native login interface → Network monitor: starts monitoring
macos/Sources/Views/ContentView.swift - Native login interface → Advanced settings: opens settings
macos/Sources/Views/ContentView.swift - Native login interface → Diagnostics view: opens diagnostics
macos/Sources/Views/ContentView.swift - Native login interface → Traffic visualization: renders
macos/Sources/Views/ContentView.swift - Reconnect manager → macOS SRUN client: checks and authenticates
macos/Sources/Services/AutoReconnectManager.swift - Reconnect manager → Password keychain: loads saved password
macos/Sources/Services/AutoReconnectManager.swift - Reconnect manager → macOS configuration: uses settings
macos/Sources/Services/AutoReconnectManager.swift - macOS SRUN client → SRUN crypto: uses protocol crypto
macos/Sources/Services/SrunClient.swift - macOS SRUN client → Login state model: decodes status
macos/Sources/Services/SrunClient.swift - macOS SRUN client → Campus Portal: probes and authenticates
README.md - Advanced settings → macOS SRUN client: probes Portal
macos/Sources/Views/AdvancedSettingsSheet.swift - Advanced settings → Network monitor: reads interfaces
macos/Sources/Views/AdvancedSettingsSheet.swift - Diagnostics view → macOS SRUN client: runs diagnostics
macos/Sources/Views/DiagnosticsSheet.swift - Diagnostics view → Network monitor: checks network
macos/Sources/Views/DiagnosticsSheet.swift - Traffic visualization → Network monitor: renders measurements
macos/Sources/Views/TrafficWaveformView.swift