feat(app): 搭建菜单栏应用骨架与模块化源码目录

- 入口改为 MenuBarExtra 常驻形态,无 Dock 图标
- 源码按 App / Features / Core / UI / Resources 分层组织
- 新增 MenuPanelView 菜单栏弹出面板占位视图
- Core/Monitors、Core/Models 预留采样器与数据模型位置
- 各模块目录附 README 说明;说明文件加入 Target 成员例外
- 预留 kymoTests / kymoUITests 测试目录

说明文件存放于同步源码目录内,已通过 PBXFileSystemSynchronizedBuildFileExceptionSet
排除出编译与资源拷贝,保证构建产物干净。
This commit is contained in:
2026-10-29 16:33:43 +08:00
parent aec5354d8b
commit b1a9a96baf
16 changed files with 115 additions and 2 deletions
View File
+28
View File
@@ -0,0 +1,28 @@
//
// MenuPanelView.swift
// kymo
//
// Created by Airnan on 2026/10/29.
//
import SwiftUI
/// 菜单栏弹出面板:后续将在这里展示 CPU / 内存 / 磁盘 / 网络等实时监控数据。
struct MenuPanelView: View {
var body: some View {
VStack(alignment: .leading, spacing: 12) {
Label("Kymo 资源监控", systemImage: "gauge")
.font(.headline)
Text("监控面板开发中,敬请期待…")
.font(.subheadline)
.foregroundStyle(.secondary)
}
.padding(16)
.frame(width: 280, alignment: .leading)
}
}
#Preview {
MenuPanelView()
}
+11
View File
@@ -0,0 +1,11 @@
# Features
按「特性(Feature)」垂直拆分的业务模块,每个子目录自包含其视图、视图模型与子组件。
| 子目录 | 职责 | 状态 |
| --- | --- | --- |
| `MenuBar/` | 菜单栏状态项与弹出监控面板 | 骨架已就绪 |
| `Dashboard/` | 监控总览面板(图表化展示) | 规划中 |
| `Settings/` | 设置窗口:刷新频率、显示项、开机自启等 | 规划中 |
新增 Feature 的原则:只依赖 `Core` 与 `UI`,不横向依赖其他 Feature。
View File