1
0
mirror of https://github.com/ialley-workshop-open/uni-halo.git synced 2026-11-13 22:11:42 +08:00

refactor: 清理配置文件注释并优化组件样式与逻辑

1. 移除appSettings.ts和appConfig.ts中的旧注释文档
2. 优化首页分类、文章页的箭头按钮样式与尺寸
3. 隐藏home页的多余"更多"按钮并统一右侧按钮样式
4. 重构快捷导航组件的逻辑,简化默认列表渲染
5. 优化文章卡片的布局样式、结构和代码组织
This commit is contained in:
小莫唐尼
2026-09-10 00:44:27 +08:00
parent 260d6965e3
commit eb19276a2d
6 changed files with 75 additions and 101 deletions
-7
View File
@@ -1,10 +1,3 @@
/**
* 应用配置默认值(源自旧项目 config/index.js 的 DefaultAppConfigs)
* 与 src/api/uni-halo.ts 的 getAppConfigs(plugin-uni-halo/getConfigs)配合,deepMerge 使用
* 页面/组件依赖其字段结构(pluginConfig.toolsPlugin.Authorization 等),改动需谨慎
* 2026-09-08 清理:与插件端 getConfigs 结构统一,移除已下线/无消费的默认字段
* (tokenConfig/pageTitle/bannerConfig/categoryConfig.type 等)
*/
import type { IAppConfig } from '@/api/types/uni-halo'
export const DefaultAppConfigs: IAppConfig = {
-7
View File
@@ -1,10 +1,3 @@
/**
* 应用设置默认值与类型(源自旧项目 utils/app.js 的 _DefaultAppSettings)
* 布局偏好字段命名与插件端 getConfigs.preferences 一致(2026-09-08 起去映射,以插件端字段为准)
* 2026-09-08 清理:banner/ad/gallery/links/about/article/contact 等无消费字段已移除,
* 仅保留偏好相关字段(与插件端 preferences 结构对齐)
*/
export interface IAppSettings {
/** 评论头像是否圆形(插件端字段 avatarRadius) */
avatarRadius: boolean