feat: add qlrepo sync crontab

This commit is contained in:
engigu
2026-03-19 11:06:45 +08:00
parent a03800f196
commit cd818f7b0c
23 changed files with 4126 additions and 529 deletions
+26 -6
View File
@@ -1,7 +1,7 @@
<script setup lang="ts">
import { ref, onMounted } from 'vue'
import { Badge } from '@/components/ui/badge'
import { ExternalLink, TriangleAlert } from 'lucide-vue-next'
import { ExternalLink, TriangleAlert, History } from 'lucide-vue-next'
import { api, type AboutInfo } from '@/api'
const aboutInfo = ref<AboutInfo | null>(null)
@@ -21,9 +21,16 @@ onMounted(loadAbout)
<template>
<div>
<!-- 站点关于 -->
<div class="mb-6">
<h3 class="text-lg font-semibold mb-1">白虎面板 (Baihu Panel)</h3>
<p class="text-sm text-muted-foreground">极致轻量高性能的自动化任务调度平台深度集成 Mise 运行时管理支持多语言环境动态切换与全自动依赖管理</p>
<div class="mb-8 flex flex-col sm:flex-row justify-between items-start gap-4">
<div class="flex-1 min-w-0">
<h3 class="text-xl font-bold mb-1.5">白虎面板 (Baihu Panel)</h3>
<p class="text-sm text-muted-foreground leading-relaxed">极致轻量高性能的自动化任务调度平台深度集成 Mise 运行时管理支持多语言环境动态切换与全自动依赖管理</p>
</div>
<a href="https://engigu.github.io/baihu-panel/guide/changelog.html" target="_blank"
class="inline-flex items-center gap-1.5 h-9 px-4 rounded-full border border-primary/20 bg-primary/5 text-primary text-xs font-semibold hover:bg-primary/10 transition-all whitespace-nowrap shadow-sm shadow-primary/5">
<History class="h-3.5 w-3.5" />
查看更新日志
</a>
</div>
<div class="grid sm:grid-cols-2 gap-x-8 gap-y-5">
@@ -51,8 +58,21 @@ onMounted(loadAbout)
<h4 class="text-sm font-medium mb-2">系统信息</h4>
<div class="space-y-2">
<div class="flex justify-between items-center">
<span class="text-muted-foreground text-sm">系统版本:</span>
<Badge variant="outline" class="font-mono text-xs">{{ aboutInfo?.version || 'dev' }}</Badge>
<span class="text-muted-foreground text-sm">当前版本:</span>
<div class="flex items-center gap-1.5">
<Badge variant="outline" class="font-mono text-xs">{{ aboutInfo?.version || 'dev' }}</Badge>
<Badge v-if="aboutInfo?.remote_version && aboutInfo.remote_version === aboutInfo.version" variant="secondary"
class="text-[10px] h-4 px-1 bg-green-500/10 text-green-600 border-green-500/20">
最新版本
</Badge>
</div>
</div>
<div v-if="aboutInfo?.remote_version && aboutInfo.remote_version !== aboutInfo.version"
class="flex justify-between items-center">
<span class="text-muted-foreground text-sm">最新版本:</span>
<Badge variant="secondary" class="font-mono text-xs bg-primary/10 text-primary border-primary/20">
{{ aboutInfo.remote_version }}
</Badge>
</div>
<div class="flex justify-between items-center">
<span class="text-muted-foreground text-sm">构建时间:</span>