plugin.data-statistics.js 859 B

1234567891011121314151617181920212223242526272829303132333435
  1. /**
  2. * Halo 数据看板插件
  3. * @link https://www.halo.run/store/apps/app-rtnbbgfk
  4. */
  5. import {
  6. getPersonalToken
  7. } from '@/utils/token.js'
  8. import HttpHandler from '@/common/http/request.js'
  9. import qs from 'qs'
  10. import {
  11. getAppConfigs
  12. } from '@/config/index.js'
  13. export default {
  14. /**
  15. * 获取图表统计数据
  16. * @description - 标签、分类、文章发布趋势、评论活跃用户、获取热门文章top10
  17. */
  18. getChartData: () => {
  19. return HttpHandler.Get(`/apis/api.data.statistics.xhhao.com/v1alpha1/chart/data`,{})
  20. },
  21. /**
  22. * 获取Github配置信息
  23. */
  24. getGithubConfig:()=>{
  25. return HttpHandler.Get('/apis/api.data.statistics.xhhao.com/v1alpha1/github/config',{})
  26. },
  27. /**
  28. * 获取 Uptime Kuma 状态页面数据
  29. */
  30. getUptimeStatus:()=>{
  31. return HttpHandler.Get('/apis/api.data.statistics.xhhao.com/v1alpha1/github/config',{})
  32. }
  33. }