Add frontend workspace UI and refactor plan

This commit is contained in:
fenghp
2026-06-09 10:07:22 +08:00
parent 307249499c
commit 8692edd2dd
61 changed files with 7877 additions and 70 deletions
+28
View File
@@ -0,0 +1,28 @@
export interface ServiceStatus {
baseUrl: string
running: boolean
connected: boolean
message: string
tokenFile: string
configFile?: string
started?: boolean
}
export interface MacTfsBridge {
getToken(): Promise<string>
getServiceStatus(): Promise<ServiceStatus>
selectDirectory(): Promise<string | null>
}
declare global {
interface Window {
mactfs?: MacTfsBridge
}
}
/**
* 返回 preload 暴露的 macTFS 桥接对象,避免组件直接依赖 Electron 细节。
*/
export function getMactfsBridge() {
return window.mactfs
}