feat: 纯血鸿蒙 ArkTS 工程(harmonyos 分支)

- 新增 harmonyos/ 目录:完整 ArkTS 项目
  - GraphDatabase.ets:@ohos.data.relationalStore 图数据库
  - Index.ets:Tabs 导航(星图|聊天|设置)
  - GraphPage.ets:WebView 星图(Three.js 3D)
  - ChatPage.ets:聊天 + HTTP AI API 调用
  - SettingsPage.ets:@ohos.data.preferences 配置
  - graph.html:Three.js 力导向星图可视化
- 删除:ui/ TUI 代码、core/migrate.py 多用户迁移、trulymem_entry.py
- 配置:build-profile.json5, module.json5, permissions
This commit is contained in:
root
2026-04-28 12:38:21 +08:00
parent 14bbcfde3d
commit 7c2441682c
17 changed files with 1485 additions and 0 deletions

View File

@ -0,0 +1,43 @@
import GraphPage from './GraphPage';
import ChatPage from './ChatPage';
import SettingsPage from './SettingsPage';
import { GraphDatabase } from '../model/GraphDatabase';
@Entry
@Component
struct Index {
@State currentIndex: number = 0;
private db: GraphDatabase = new GraphDatabase();
aboutToAppear() {
this.db.init(getContext(this));
}
build() {
Column() {
Tabs({ index: this.currentIndex, barPosition: BarPosition.End }) {
TabContent() {
GraphPage({ db: this.db })
}
.tabBar('🌌 星图')
TabContent() {
ChatPage({ db: this.db })
}
.tabBar('💬 聊天')
TabContent() {
SettingsPage()
}
.tabBar('⚙ 设置')
}
.width('100%')
.height('100%')
.onChange((index: number) => {
this.currentIndex = index;
})
}
.width('100%')
.height('100%')
}
}