How jingongx/suidemo works
SuiDemo is a Wails desktop-app template: the user enters through the Vue application, navigates its dashboard, tags, settings, or About view, and can configure language, appearance, and hotkeys. The README also documents SQLite CRUD and OCR capabilities. The frontend navigation and several binding calls are visible in sampled source; backend wiring and the database/OCR implementations were not excerpted, so those relationships are shown only as unverified where useful.
Main entry points: Main/Index.vue Main navigation · main.ts Frontend bootstrap · Shortcut/Index.vue Shortcut settings · General/Index.vue Settings view
Components 27
Desktop interface
- Frontend bootstrap
frontend/src/main.ts - App shell
frontend/src/App.vue - Main navigation
frontend/src/components/Main/Index.vue - Dashboard
frontend/src/components/Dashboard/Index.vue - Tag management
frontend/src/components/Tags/Index.vue - About view
frontend/src/components/About/Index.vue
User preferences
- Settings view
frontend/src/components/General/Index.vue - Language setting
frontend/src/components/Setting/LanguageSwitcher.vue - Internationalization
frontend/src/utils/i18n.ts - Theme setting
frontend/src/components/Setting/ThemeSetting.vue - Theme manager
frontend/src/utils/ThemeManager.ts - Shortcut settings
frontend/src/components/Shortcut/Index.vue - Shortcut inputs
frontend/src/components/Setting/ShortcutInput.vue - Windows shortcut input
frontend/src/components/Setting/WinShortcutInput.vue - Hotkey conversion
frontend/src/utils/hotkeyUtils.ts
Application services
- Hotkey binding
frontend/bindings/changeme/internal/services/hotkeyservice.ts - App service binding
frontend/bindings/changeme/internal/services/appservice.ts - Config binding
frontend/bindings/changeme/internal/services/appconfigservice.ts - App service
internal/services/appservice.go - Config service
internal/services/appconfig_service.go - Hotkey service
internal/services/hotkey_service.go - SQLite store
internal/services/store.go - OCR service
internal/services/ocr_service.go
Platform features
- System information
frontend/src/utils/osinfo.ts - System info binding
frontend/bindings/changeme/internal/services/systeminfo.ts - Native hotkeys
platform/hotkey_windows.go
Other components
- User
Connections 30
- User → Frontend bootstrap: starts app
frontend/src/main.ts - Frontend bootstrap → App shell: mounts
frontend/src/main.ts - Frontend bootstrap → Internationalization: initializes
frontend/src/main.ts - Frontend bootstrap → Theme manager: initializes
frontend/src/main.ts - Frontend bootstrap → Config binding: reads language
frontend/src/main.ts - App shell → Theme manager: uses theme state
frontend/src/App.vue - Main navigation → Dashboard: selects view
frontend/src/components/Main/Index.vue - Main navigation → Tag management: selects view
frontend/src/components/Main/Index.vue - Main navigation → Settings view: selects view
frontend/src/components/Main/Index.vue - Main navigation → About view: selects view
frontend/src/components/Main/Index.vue - Main navigation → App service binding: opens window
frontend/src/components/Main/Index.vue - Main navigation → System information: checks platform
frontend/src/components/Main/Index.vue - Settings view → Language setting: renders
frontend/src/components/General/Index.vue - Settings view → Theme setting: renders
frontend/src/components/General/Index.vue - Settings view → Shortcut settings: renders
frontend/src/components/General/Index.vue - Language setting → Internationalization: updates locale
frontend/src/components/Setting/LanguageSwitcher.vue - Language setting → Config binding: sets language
frontend/src/components/Setting/LanguageSwitcher.vue - Theme setting → Theme manager: sets theme
frontend/src/components/Setting/ThemeSetting.vue - Shortcut settings → Shortcut inputs: renders
frontend/src/components/Shortcut/Index.vue - Shortcut settings → Windows shortcut input: renders
frontend/src/components/Shortcut/Index.vue - Shortcut settings → Hotkey conversion: converts keys
frontend/src/components/Shortcut/Index.vue - Shortcut settings → Hotkey binding: reads and updates
frontend/src/components/Shortcut/Index.vue - Dashboard → App service binding: opens window
frontend/src/components/Dashboard/Index.vue - App service binding → App service: dispatches calls
- Config binding → Config service: dispatches calls
- Hotkey binding → Hotkey service: dispatches calls
- Hotkey service → Native hotkeys: registers shortcuts
- System information → System info binding: queries system
frontend/src/utils/osinfo.ts - App service → SQLite store: uses persistence
- User → OCR service: extracts image text