refactor(alpine): restructure components and remove unused utilities for better modularity and maintainability
这个提交包含在:
+264
-6
@@ -22,30 +22,289 @@ spec:
|
||||
label: logo图片链接
|
||||
help: 配置后,将展示在导航栏左侧。
|
||||
accepts:
|
||||
- "image/png"
|
||||
- "image/png"
|
||||
- $formkit: text
|
||||
name: title
|
||||
label: 站点标题
|
||||
help: 配置后,将展示站点标题。
|
||||
value: 'Terminal'
|
||||
value: "Terminal"
|
||||
- group: index
|
||||
label: 首页设置
|
||||
formSchema:
|
||||
- $formkit: text
|
||||
name: index_notice_title
|
||||
label: 首页公告标题
|
||||
value: 'Hello Halo!'
|
||||
value: "Hello Halo!"
|
||||
- $formkit: textarea
|
||||
name: index_notice_content
|
||||
label: 首页公告内容
|
||||
value: '一款 Terminal 风格的 Halo 主题。'
|
||||
value: "A Terminal-style Halo theme."
|
||||
- group: activity
|
||||
label: 活动栏
|
||||
formSchema:
|
||||
- $formkit: array
|
||||
name: activity_items
|
||||
label: 导航入口
|
||||
help: 按列表顺序渲染左侧 Activity Bar;可拖拽调整顺序。内置入口会自动处理图标、链接和激活状态,自定义入口才需要填写链接地址。
|
||||
itemLabels:
|
||||
- type: text
|
||||
label: $value.label
|
||||
- type: text
|
||||
label: $value.type
|
||||
value:
|
||||
- enabled: true
|
||||
type: home
|
||||
position: up
|
||||
label: 首页
|
||||
icon: folder
|
||||
url: /
|
||||
external: false
|
||||
- enabled: true
|
||||
type: search
|
||||
position: up
|
||||
label: 搜索
|
||||
icon: search
|
||||
url: ""
|
||||
external: false
|
||||
- enabled: true
|
||||
type: archive
|
||||
position: up
|
||||
label: 归档
|
||||
icon: archive
|
||||
url: /archives
|
||||
external: false
|
||||
- enabled: true
|
||||
type: categories
|
||||
position: up
|
||||
label: 分类
|
||||
icon: script-text
|
||||
url: /categories
|
||||
external: false
|
||||
- enabled: true
|
||||
type: tags
|
||||
position: up
|
||||
label: 标签
|
||||
icon: label
|
||||
url: /tags
|
||||
external: false
|
||||
- enabled: true
|
||||
type: login
|
||||
position: down
|
||||
label: 登录
|
||||
icon: user
|
||||
url: /console
|
||||
external: false
|
||||
children:
|
||||
- $formkit: switch
|
||||
name: enabled
|
||||
label: 启用入口
|
||||
value: true
|
||||
- $formkit: select
|
||||
name: type
|
||||
label: 入口类型
|
||||
value: custom
|
||||
options:
|
||||
- label: 首页
|
||||
value: home
|
||||
- label: 搜索
|
||||
value: search
|
||||
- label: 归档
|
||||
value: archive
|
||||
- label: 分类
|
||||
value: categories
|
||||
- label: 标签
|
||||
value: tags
|
||||
- label: 登录
|
||||
value: login
|
||||
- label: 自定义
|
||||
value: custom
|
||||
- $formkit: text
|
||||
name: label
|
||||
label: 显示名称
|
||||
help: 用于鼠标悬浮提示和无障碍标签;建议自定义入口必填。
|
||||
- $formkit: select
|
||||
name: icon
|
||||
label: 图标
|
||||
value: file
|
||||
help: 内置入口已有默认图标;自定义入口可在这里选择同风格图标。
|
||||
options:
|
||||
- label: 文件夹
|
||||
value: folder
|
||||
- label: 首页
|
||||
value: home
|
||||
- label: 搜索
|
||||
value: search
|
||||
- label: 归档
|
||||
value: archive
|
||||
- label: 文档
|
||||
value: script-text
|
||||
- label: 文章
|
||||
value: article
|
||||
- label: 打开的书
|
||||
value: book-open
|
||||
- label: 文件
|
||||
value: file
|
||||
- label: 文件变体
|
||||
value: file-alt
|
||||
- label: 多文件
|
||||
value: file-multiple
|
||||
- label: 便签
|
||||
value: note
|
||||
- label: 多便签
|
||||
value: notes
|
||||
- label: 标签
|
||||
value: label
|
||||
- label: 标签变体
|
||||
value: label-alt
|
||||
- label: 用户
|
||||
value: user
|
||||
- label: 用户组
|
||||
value: users
|
||||
- label: 联系人
|
||||
value: contact
|
||||
- label: Git 分支
|
||||
value: git-branch
|
||||
- label: Git 提交
|
||||
value: git-commit
|
||||
- label: Git 合并
|
||||
value: git-merge
|
||||
- label: Pull Request
|
||||
value: git-pull-request
|
||||
- label: GitHub
|
||||
value: github
|
||||
- label: 链接
|
||||
value: link
|
||||
- label: 外链
|
||||
value: external-link
|
||||
- label: 打开
|
||||
value: open
|
||||
- label: 代码
|
||||
value: code
|
||||
- label: 命令
|
||||
value: command
|
||||
- label: 缺陷
|
||||
value: bug
|
||||
- label: 调试
|
||||
value: debug
|
||||
- label: 服务器
|
||||
value: server
|
||||
- label: 云
|
||||
value: cloud
|
||||
- label: 显示器
|
||||
value: monitor
|
||||
- label: 笔记本
|
||||
value: device-laptop
|
||||
- label: 仪表盘
|
||||
value: dashboard
|
||||
- label: 分析
|
||||
value: analytics
|
||||
- label: 图表
|
||||
value: chart
|
||||
- label: 柱状图
|
||||
value: chart-bar
|
||||
- label: 看板
|
||||
value: kanban
|
||||
- label: 时间线
|
||||
value: timeline
|
||||
- label: 邮件
|
||||
value: mail
|
||||
- label: 消息
|
||||
value: message
|
||||
- label: 聊天
|
||||
value: chat
|
||||
- label: 评论
|
||||
value: comment
|
||||
- label: 通知
|
||||
value: notification
|
||||
- label: 日历
|
||||
value: calendar
|
||||
- label: 时钟
|
||||
value: clock
|
||||
- label: 书签
|
||||
value: bookmark
|
||||
- label: 收藏
|
||||
value: heart
|
||||
- label: 灵感
|
||||
value: lightbulb
|
||||
- label: 防护
|
||||
value: shield
|
||||
- label: 锁
|
||||
value: lock
|
||||
- label: 图片
|
||||
value: image
|
||||
- label: 图库
|
||||
value: image-gallery
|
||||
- label: 相机
|
||||
value: camera
|
||||
- label: 音乐
|
||||
value: music
|
||||
- label: 视频
|
||||
value: video
|
||||
- label: 购物袋
|
||||
value: shopping-bag
|
||||
- label: 购物车
|
||||
value: cart
|
||||
- label: 钱包
|
||||
value: wallet
|
||||
- label: 地图
|
||||
value: map
|
||||
- label: 图钉
|
||||
value: pin
|
||||
- label: 旗帜
|
||||
value: flag
|
||||
- label: 电源
|
||||
value: power
|
||||
- label: 上传
|
||||
value: upload
|
||||
- label: 下载
|
||||
value: download
|
||||
- label: 编辑
|
||||
value: edit
|
||||
- label: 删除
|
||||
value: trash
|
||||
- label: 加号
|
||||
value: plus
|
||||
- label: 关闭
|
||||
value: close
|
||||
- label: 滑杆
|
||||
value: sliders
|
||||
- label: 滑杆 2
|
||||
value: sliders-2
|
||||
- label: 可见
|
||||
value: visible
|
||||
- label: 查看
|
||||
value: eye
|
||||
- label: 隐藏
|
||||
value: eye-closed
|
||||
- $formkit: text
|
||||
name: url
|
||||
label: 链接地址
|
||||
help: 搜索入口可留空;其他入口留空时不会跳转。
|
||||
- $formkit: select
|
||||
name: position
|
||||
label: 所在位置
|
||||
value: up
|
||||
options:
|
||||
- label: 上方
|
||||
value: up
|
||||
- label: 下方
|
||||
value: down
|
||||
- $formkit: select
|
||||
name: external
|
||||
label: 打开方式
|
||||
value: false
|
||||
options:
|
||||
- label: 当前窗口
|
||||
value: false
|
||||
- label: 新窗口
|
||||
value: true
|
||||
- group: footer
|
||||
label: 页脚设置
|
||||
formSchema:
|
||||
- $formkit: text
|
||||
name: footer_powered_text
|
||||
label: 页脚文本
|
||||
value: 'FillCode'
|
||||
value: "FillCode"
|
||||
- $formkit: text
|
||||
name: footer_powered_link
|
||||
label: 页脚文本链接
|
||||
@@ -64,4 +323,3 @@ spec:
|
||||
name: footer_gongan_link
|
||||
label: 公安备案跳转链接
|
||||
value: https://www.beian.gov.cn/
|
||||
|
||||
|
||||
在新议题中引用
屏蔽一个用户