1
0
mirror of https://github.com/ialley-workshop-open/uni-halo.git synced 2026-06-11 12:49:30 +08:00

feat: 新增数据可视化看板、删除多余的文件

This commit is contained in:
小莫唐尼
2025-11-28 00:01:00 +08:00
parent 3643bdf6f6
commit 7ba35ffd5d
65 changed files with 13731 additions and 7182 deletions
+1 -1
View File
@@ -16,7 +16,7 @@ import v2Config from './v2/all.config.js'
const ApiManager = {
v2,
v2Config,
v2Config
};
const install = (Vue) => {
+35
View File
@@ -0,0 +1,35 @@
/**
* Halo 数据看板插件
* @link https://www.halo.run/store/apps/app-rtnbbgfk
*/
import {
getPersonalToken
} from '@/utils/token.js'
import HttpHandler from '@/common/http/request.js'
import qs from 'qs'
import {
getAppConfigs
} from '@/config/index.js'
export default {
/**
* 获取图表统计数据
* @description - 标签、分类、文章发布趋势、评论活跃用户、获取热门文章top10
*/
getChartData: () => {
return HttpHandler.Get(`/apis/api.data.statistics.xhhao.com/v1alpha1/chart/data`,{})
},
/**
* 获取Github配置信息
*/
getGithubConfig:()=>{
return HttpHandler.Get('/apis/api.data.statistics.xhhao.com/v1alpha1/github/config',{})
},
/**
* 获取 Uptime Kuma 状态页面数据
*/
getUptimeStatus:()=>{
return HttpHandler.Get('/apis/api.data.statistics.xhhao.com/v1alpha1/github/config',{})
}
}