mirror of
https://github.com/acepanel/acepanel.github.io.git
synced 2026-02-04 01:57:15 +08:00
fix: lint
This commit is contained in:
@@ -2,7 +2,7 @@ import {type DefaultTheme, defineConfig} from 'vitepress'
|
||||
|
||||
const locale = 'en'
|
||||
|
||||
const resp = await (await fetch('https://panel.haozi.net/api/versions')).json()
|
||||
const resp = await (await fetch('https://api.acepanel.net/versions?locale=en')).json()
|
||||
const versions = resp.data.slice(0, 10).map((item: any) => {
|
||||
return item.version
|
||||
})
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { type DefaultTheme, defineConfig } from 'vitepress';
|
||||
const locale = "zh_CN";
|
||||
const resp = await (await fetch('https://panel.haozi.net/api/versions')).json();
|
||||
const resp = await (await fetch('https://api.acepanel.net/versions?locale=zh_CN')).json();
|
||||
const versions = resp.data.slice(0, 10).map((item: any) => {
|
||||
return item.version;
|
||||
});
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { type DefaultTheme, defineConfig } from 'vitepress';
|
||||
const locale = "zh_TW";
|
||||
const resp = await (await fetch('https://panel.haozi.net/api/versions')).json();
|
||||
const resp = await (await fetch('https://api.acepanel.net/versions?locale=zh_TW')).json();
|
||||
const versions = resp.data.slice(0, 10).map((item: any) => {
|
||||
return item.version;
|
||||
});
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
export default {
|
||||
async paths() {
|
||||
const resp = await (await fetch('https://api.acepanel.net/versions?locale=zh_CN')).json()
|
||||
const resp = await (await fetch('https://api.acepanel.net/versions?locale=en')).json()
|
||||
if (!resp.message || resp.message !== 'success') return []
|
||||
|
||||
return resp.data.slice(0, 10).map((item: any) => {
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
export default {
|
||||
async paths() {
|
||||
const resp = await (await fetch('https://panel.haozi.net/api/versions')).json()
|
||||
const resp = await (await fetch('https://api.acepanel.net/versions?locale=zh_CN')).json()
|
||||
if (!resp.message || resp.message !== 'success') return []
|
||||
|
||||
return resp.data.slice(0, 10).map((item: any) => {
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
export default {
|
||||
async paths() {
|
||||
const resp = await (await fetch('https://panel.haozi.net/api/versions')).json()
|
||||
const resp = await (await fetch('https://api.acepanel.net/versions?locale=zh_TW')).json()
|
||||
if (!resp.message || resp.message !== 'success') return []
|
||||
|
||||
return resp.data.slice(0, 10).map((item: any) => {
|
||||
|
||||
Reference in New Issue
Block a user