frpc-desktop/src/views/about/index.vue

52 lines
1.7 KiB
Vue
Raw Normal View History

2024-08-07 19:30:10 +08:00
<script lang="ts" setup>
import {defineComponent} from "vue";
import {ipcRenderer, clipboard} from "electron";
import {Icon} from "@iconify/vue";
import Breadcrumb from "@/layout/compoenets/Breadcrumb.vue";
import {ElMessage} from "element-plus";
import pkg from '../../../package.json';
const handleOpenGitHub = () => {
ipcRenderer.send("github.open")
}
const handleCopyInfo = () => {
ElMessage({
message: '复制成功',
type: 'success',
})
clipboard.writeText(`
2024-08-07 19:48:27 +08:00
Frpc Desktop
v${pkg.version}
2024-08-07 19:30:10 +08:00
更简单的内网穿透工具免费开源 / 桌面客户端 / 开机启动
`)
}
defineComponent({
name: "About"
});
</script>
<template>
<div class="main">
<breadcrumb/>
2024-08-07 20:27:27 +08:00
<div class="app-container-breadcrumb">
<div
class="w-full h-full bg-white p-4 rounded drop-shadow-lg overflow-y-auto flex justify-center items-center flex-col"
>
<img src="/logo/only/1024x1024.png" class="w-[95px] h-[95px] mt-[-50px]" alt="Logo"/>
<div class="mt-[8px] text-2xl">Frpc Desktop</div>
<div class="mt-[8px] text-neutral-400 flex items-center">
v{{pkg.version}}
<Icon class="ml-1.5 cursor-pointer" icon="material-symbols:refresh-rounded"></Icon>
</div>
<div class="mt-[8px] text-sm">更简单的内网穿透工具免费开源 / 桌面客户端 / 开机启动</div>
<div class="mt-[12px]">
<el-button type="primary" @click="handleCopyInfo">复制信息</el-button>
<el-button type="danger" plain @click="handleOpenGitHub">反馈问题</el-button>
</div>
2024-08-07 19:30:10 +08:00
</div>
</div>
</div>
</template>