0
0

添加了一个可视化仓库功能

This commit is contained in:
xubing
2025-12-02 12:52:41 +08:00
parent b94305476f
commit fb8e31babb
13 changed files with 740 additions and 396 deletions

14
src/panels/views/ProjectView.ts Normal file → Executable file
View File

@@ -1,4 +1,3 @@
// src/panels/views/ProjectView.ts
import { BaseView } from './BaseView';
import { ProjectViewData } from '../types/ViewTypes';
@@ -96,7 +95,10 @@ export class ProjectView extends BaseView {
</style>
</head>
<body>
<h2><span class="satellite-icon">🛰️</span>数字卫星构建平台</h2>
<div class="header">
<h2><span class="satellite-icon">🛰️</span>数字卫星构建平台</h2>
<button class="back-btn" onclick="openRepoConfig()">⚙️ 仓库配置</button>
</div>
<table class="table">
<thead>
@@ -126,6 +128,12 @@ export class ProjectView extends BaseView {
<script>
const vscode = acquireVsCodeApi();
function openRepoConfig() {
vscode.postMessage({
type: 'openRepoConfig'
});
}
function configureProject(projectId, projectName, isConfigured) {
if (isConfigured) {
// 已配置的项目直接打开
@@ -296,4 +304,4 @@ export class ProjectView extends BaseView {
</body>
</html>`;
}
}
}