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:
+1
-1
@@ -16,7 +16,7 @@ import v2Config from './v2/all.config.js'
|
||||
|
||||
const ApiManager = {
|
||||
v2,
|
||||
v2Config,
|
||||
v2Config
|
||||
};
|
||||
|
||||
const install = (Vue) => {
|
||||
|
||||
@@ -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',{})
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user