diff --git a/electron/api/github.ts b/electron/api/github.ts index 3f6e525..7bfb799 100644 --- a/electron/api/github.ts +++ b/electron/api/github.ts @@ -1,4 +1,4 @@ -import {app, BrowserWindow, ipcMain, net, shell} from "electron"; +import electron, {app, BrowserWindow, ipcMain, net, shell} from "electron"; import {deleteVersionById, insertVersion} from "../storage/version"; const fs = require("fs"); @@ -197,4 +197,8 @@ export const initGitHubApi = () => { ipcMain.on("github.open", () => { shell.openExternal("https://github.com/luckjiawei/frpc-desktop"); }) + + electron.ipcMain.on("github.openReleases", () => { + electron.shell.openExternal("https://github.com/luckjiawei/frpc-desktop/releases"); + }); }; diff --git a/src/layout/compoenets/LeftMenu.vue b/src/layout/compoenets/LeftMenu.vue index 164cb4d..faf9090 100644 --- a/src/layout/compoenets/LeftMenu.vue +++ b/src/layout/compoenets/LeftMenu.vue @@ -32,6 +32,11 @@ const handleOpenGitHub = () => { ipcRenderer.send("github.open") } +const handleOpenGitHubReleases = () => { + ipcRenderer.send("github.openReleases") +} + + onMounted(() => { routes.value = router.options.routes[0].children?.filter( f => !f.meta?.hidden @@ -63,7 +68,7 @@ onMounted(() => { -
+
v1.0.4
diff --git a/src/styles/layout.scss b/src/styles/layout.scss index 06b9057..04ede87 100644 --- a/src/styles/layout.scss +++ b/src/styles/layout.scss @@ -55,6 +55,10 @@ $danger-color: #F56C6C; margin-top: auto; font-weight: bold; font-size: 14px; + cursor: pointer; + } + .version:hover { + animation: heartBeat 1s; } .menu-container {