1
0
mirror of https://github.com/ialley-workshop-open/uni-halo.git synced 2026-07-27 04:20:43 +08:00

chore: 清理旧文件并重构项目基础结构

- 删除大量废弃的旧代码、依赖和配置文件
- 新增基础项目配置、工具函数、页面模板和请求库
- 重构目录结构,统一项目规范
- 添加commitlint、husky等代码规范工具
This commit is contained in:
小莫唐尼
2026-06-11 02:13:47 +08:00
parent de142c4729
commit 3945ee611d
587 changed files with 34429 additions and 120475 deletions
+39
View File
@@ -0,0 +1,39 @@
import { http } from '@/http/alova'
/**
* 获取 uni-halo 插件配置
* @returns uni-halo 插件配置响应参数
*/
export function queryUniHaloPluginConfigs() {
return http.Get(`/apis/api.uni.uhalo.pro/v1alpha1/plugins/plugin-uni-halo/getConfigs`, {
meta: {
isHalo: true,
},
})
}
/**
* 获取 uni-halo 插件二维码信息
* @param key 二维码key
* @returns uni-halo 插件二维码信息响应参数
*/
export function queryQRCodeInfo(key: string) {
return http.Get(`/apis/api.uni.uhalo.pro/v1alpha1/plugins/plugin-uni-halo/getQRCodeInfo/${key}`, {
meta: {
isHalo: true,
},
})
}
/**
* 获取 uni-halo 插件二维码图片
* @param metadataName 文章idmetadata.name 值
* @returns uni-halo 插件二维码图片响应参数
*/
export function queryQRCodeImg(metadataName: string) {
return http.Get(`/apis/api.uni.uhalo.pro/v1alpha1/plugins/plugin-uni-halo/getQRCodeImg/${metadataName}`, {
meta: {
isHalo: true,
},
})
}