💄 增加动画
This commit is contained in:
parent
a98086dd00
commit
637c53defb
@ -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";
|
import {deleteVersionById, insertVersion} from "../storage/version";
|
||||||
|
|
||||||
const fs = require("fs");
|
const fs = require("fs");
|
||||||
@ -197,4 +197,8 @@ export const initGitHubApi = () => {
|
|||||||
ipcMain.on("github.open", () => {
|
ipcMain.on("github.open", () => {
|
||||||
shell.openExternal("https://github.com/luckjiawei/frpc-desktop");
|
shell.openExternal("https://github.com/luckjiawei/frpc-desktop");
|
||||||
})
|
})
|
||||||
|
|
||||||
|
electron.ipcMain.on("github.openReleases", () => {
|
||||||
|
electron.shell.openExternal("https://github.com/luckjiawei/frpc-desktop/releases");
|
||||||
|
});
|
||||||
};
|
};
|
||||||
|
@ -32,6 +32,11 @@ const handleOpenGitHub = () => {
|
|||||||
ipcRenderer.send("github.open")
|
ipcRenderer.send("github.open")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const handleOpenGitHubReleases = () => {
|
||||||
|
ipcRenderer.send("github.openReleases")
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
onMounted(() => {
|
onMounted(() => {
|
||||||
routes.value = router.options.routes[0].children?.filter(
|
routes.value = router.options.routes[0].children?.filter(
|
||||||
f => !f.meta?.hidden
|
f => !f.meta?.hidden
|
||||||
@ -63,7 +68,7 @@ onMounted(() => {
|
|||||||
<Icon icon="mdi:github"/>
|
<Icon icon="mdi:github"/>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
<div class="version">
|
<div class="version mb-2 animate__animated" @click="handleOpenGitHubReleases">
|
||||||
v1.0.4
|
v1.0.4
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -55,6 +55,10 @@ $danger-color: #F56C6C;
|
|||||||
margin-top: auto;
|
margin-top: auto;
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
font-size: 14px;
|
font-size: 14px;
|
||||||
|
cursor: pointer;
|
||||||
|
}
|
||||||
|
.version:hover {
|
||||||
|
animation: heartBeat 1s;
|
||||||
}
|
}
|
||||||
|
|
||||||
.menu-container {
|
.menu-container {
|
||||||
|
Loading…
Reference in New Issue
Block a user