2
0
mirror of https://github.com/acepanel/acepanel.github.io.git synced 2026-02-04 06:47:16 +08:00

fix: lint

This commit is contained in:
2025-05-27 00:55:21 +08:00
parent ab527f37da
commit a70152a4ce
2 changed files with 17 additions and 2 deletions

View File

@@ -1,6 +1,5 @@
---
layout: home
hero:
name: "Rat Panel"
text: "Simple · lightweight · efficient"
@@ -13,7 +12,6 @@ hero:
- theme: alt
text: Quick install
link: /quickstart/install
features:
- icon: ✨
title: Extremely low occupancy

View File

@@ -0,0 +1,17 @@
export default {
async paths() {
const resp = await (await fetch('https://panel.haozi.net/api/versions')).json()
if (!resp.message || resp.message !== 'success') return []
return resp.data.slice(0, 10).map((item: any) => {
return {
params: {
version: item.version,
type: item.type,
time: item.updated_at.replace('T', ' ').slice(0, 19)
},
content: item.description
}
})
}
}