Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
jinyaoMa committed Sep 14, 2022
1 parent c7bcede commit 9781da5
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 16 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
build/bin
frontend/wailsjs
frontend/public/docs
*-res.syso

# From the vue template of vite
#
Expand Down
25 changes: 10 additions & 15 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,18 +13,13 @@ Prepare and install environment for development?
## Technologies

| Technology | Role | Sources |
| :--------- | :--------------------------------------------------- | :----------------------------- |
| Go | Backend programming language | https://pkg.go.dev/std |
| TypeScript | Frontend programming language | https://typescriptlang.org |
| Vite | Next Generation Frontend Tooling | https://vitejs.dev/ |
| Vue 3 | Progressive JavaScript Framework | https://vuejs.org/ |
| Wails | Build cross-platform desktop applications using Go | https://wails.io/ |
| UPX | Ultimate packer for executables | https://upx.github.io/ |
| Swaggo | Converts Go annotations to Swagger Documentation 2.0 | https://github.com/swaggo/swag |

## Design Pattern Summary

| Pattern | Role | Packages |
| :-------- | :------------------------------------------- | :-------------- |
| Singleton | Maintains read-only state and global objects | app, i18n, tray |
| Technology | Role | Sources |
| :--------- | :--------------------------------------------------- | :------------------------------------ |
| Go | Backend programming language | https://pkg.go.dev/std |
| TypeScript | Frontend programming language | https://typescriptlang.org |
| Vite | Next Generation Frontend Tooling | https://vitejs.dev/ |
| Vue 3 | Progressive JavaScript Framework | https://vuejs.org/ |
| Wails | Build cross-platform desktop applications using Go | https://wails.io/ |
| UPX | Ultimate packer for executables | https://upx.github.io/ |
| Swaggo | Converts Go annotations to Swagger Documentation 2.0 | https://github.com/swaggo/swag |
| Systray | A cross platfrom system tray using Go | https://github.com/getlantern/systray |
3 changes: 2 additions & 1 deletion backend/tray/tray.go
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,6 @@ func (t *tray) onReady() {
}
if dialog == "Yes" { // when default button => "Yes" is clicked
systray.Quit()
runtime.Quit(t.wailsCtx)
}
},
})
Expand All @@ -182,4 +181,6 @@ func (t *tray) onQuit() {
t.displayLanguage.StopWatch()
t.colorTheme.StopWatch()
t.quit.StopWatch()

runtime.Quit(t.wailsCtx)
}

0 comments on commit 9781da5

Please sign in to comment.