From 637c53defbeafdff12355fe36b221214fe55287b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=88=98=E5=98=89=E4=BC=9F?= <8473136@qq.com> Date: Mon, 5 Aug 2024 23:22:06 +0800 Subject: [PATCH] =?UTF-8?q?:lipstick:=20=E5=A2=9E=E5=8A=A0=E5=8A=A8?= =?UTF-8?q?=E7=94=BB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- electron/api/github.ts | 6 +++++- src/layout/compoenets/LeftMenu.vue | 7 ++++++- src/styles/layout.scss | 4 ++++ 3 files changed, 15 insertions(+), 2 deletions(-) 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 {