瀏覽代碼

fix typo nel meno del file scaricato

main
Lorenzo Pollutri 3 週之前
父節點
當前提交
68ea692951
共有 3 個檔案被更改,包括 3 行新增3 行删除
  1. +1
    -1
      README.md
  2. +1
    -1
      app/admin/page.tsx
  3. +1
    -1
      app/api/admin/backup/route.ts

+ 1
- 1
README.md 查看文件

@@ -253,7 +253,7 @@ Per avere uno stato di partenza noto su ogni macchina nuova, includere nel pacch
Disponibile dall'admin in **Settings → Backup & Restore**.

### Dall'interfaccia
- **⬇ Save backup (ZIP)** — scarica `interceptop-backup-YYYYMMDD-hhmmss.zip` con card, configurazione, media e font (esclude i file temporanei).
- **⬇ Save backup (ZIP)** — scarica `interceptor-backup-YYYYMMDD-hhmmss.zip` con card, configurazione, media e font (esclude i file temporanei).
- **⤴ Restore from ZIP** — carica uno zip; dopo conferma sovrascrive lo stato attuale e ricarica la pagina. La cartella `data/` precedente viene conservata come `data.bak-<timestamp>/` come rete di sicurezza.

### Da riga di comando (Linux)


+ 1
- 1
app/admin/page.tsx 查看文件

@@ -967,7 +967,7 @@ export default function AdminDashboard() {
<div className="mt-10 pt-6 border-t border-gray-200">
<h3 className="text-sm font-bold uppercase tracking-wider text-gray-600 mb-3">Backup &amp; Restore</h3>
<p className="text-xs text-gray-500 mb-4">
The backup contains cards, portal configuration, media (images, videos, PDFs), and uploaded fonts. Restoring overwrites the current state. Clicking the &ldquo;Save backup (ZIP)&rdquo; button saves the Cards structure as <code>interceptop-backup-YYYYMMDD-hhmmss.zip</code>.
The backup contains cards, portal configuration, media (images, videos, PDFs), and uploaded fonts. Restoring overwrites the current state. Clicking the &ldquo;Save backup (ZIP)&rdquo; button saves the Cards structure as <code>interceptor-backup-YYYYMMDD-hhmmss.zip</code>.
</p>
<div className="flex flex-wrap gap-3">
<button


+ 1
- 1
app/api/admin/backup/route.ts 查看文件

@@ -52,7 +52,7 @@ export async function GET() {
return new Response(stream, {
headers: {
'Content-Type': 'application/zip',
'Content-Disposition': `attachment; filename="interceptop-backup-${timestamp()}.zip"`,
'Content-Disposition': `attachment; filename="interceptor-backup-${timestamp()}.zip"`,
'Cache-Control': 'no-store',
},
});


Loading…
取消
儲存