读取 git 仓库数据(如有)并显示

This commit is contained in:
2026-03-30 23:27:50 +08:00
parent e505c03952
commit b7d4d9e8a1
9 changed files with 148 additions and 7 deletions

View File

@@ -1,13 +1,13 @@
import { ElectronAPI } from '@electron-toolkit/preload'
import { settingsDto, checkIDEsResultDto } from '@my-type/settings'
import { ElectronAPI } from "@electron-toolkit/preload";
import { settingsDto, checkIDEsResultDto } from "@my-type/settings";
import { checkIDEsVersionDto } from "../my-type/settings";
import { IdeProjectsDto } from "../my-type/ide-projects";
import { GitProjectDto, IdeProjectsDto } from "../my-type/ide-projects";
// 此处只有签名
declare global {
interface Window {
electron: ElectronAPI
electron: ElectronAPI;
api: {
_saveSettings: (settings: settingsDto) => Promise<boolean>
_updateSettings: () => Promise<settingsDto>
@@ -17,7 +17,7 @@ declare global {
_maximize: () => Promise<void>
_closeWindow: () => Promise<void>
_exit: () => Promise<void>
}
};
codeLaunchpad: {
_getIDEs: () => Promise<checkIDEsResultDto>
_checkIDEs: () => Promise<checkIDEsResultDto>
@@ -26,6 +26,7 @@ declare global {
_getVSCodeProjects: () => Promise<IdeProjectsDto>
_getJetBrainsProjects: () => Promise<IdeProjectsDto>
_openProject: (ide: string, path: string) => Promise<boolean>
}
_getProjectGitInfo: (path: string) => Promise<GitProjectDto | null>
};
}
}