feat(backup): add backup scripts workflow

This commit is contained in:
2026-03-10 09:48:53 +01:00
parent fb96cc3c32
commit 0863dfad2e
10 changed files with 857 additions and 34 deletions

View File

@@ -0,0 +1,18 @@
import scripts from "../config/backup-script.json"
type BackupScript = {
key: string
label: string
icon?: string
command: string
}
export default defineEventHandler(() => {
return {
scripts: (scripts as BackupScript[]).map(({ key, label, icon }) => ({
key,
label,
icon: icon || "mdi:play-circle-outline"
}))
}
})