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:
@@ -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
|
||||
|
||||
17
zh_TW/version-[version].paths.ts
Normal file
17
zh_TW/version-[version].paths.ts
Normal 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
|
||||
}
|
||||
})
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user