1、将每个代码仓库进行了隔离。2、优化了每个页面的ui对齐。3、增加了飞行器页面的所属项目显示。4、切换页面时对项目进行扫描,实时更新项目的结构,避免复制导致ui不显示的bug
This commit is contained in:
@@ -141,16 +141,16 @@ class ContainerView extends BaseView_1.BaseView {
|
||||
</head>
|
||||
<body>
|
||||
<div class="header">
|
||||
<h2>📋 容器管理 - <span style="color: var(--vscode-textLink-foreground);">${aircraft?.name || '未知飞行器'}</span></h2>
|
||||
<h2>📦 容器管理 - <span style="color: var(--vscode-textLink-foreground);">${aircraft?.name || '未知飞行器'}</span></h2>
|
||||
<button class="back-btn" onclick="goBackToAircrafts()">← 返回飞行器管理</button>
|
||||
</div>
|
||||
|
||||
<table class="table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th width="40%">容器</th>
|
||||
<th width="40%">打开</th>
|
||||
<th width="20%">操作</th>
|
||||
<th width="43%" style="padding-left: 50px;">容器</th>
|
||||
<th width="43%">打开</th>
|
||||
<th width="14%" style="padding-left: 45px;">操作</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@@ -164,13 +164,13 @@ class ContainerView extends BaseView_1.BaseView {
|
||||
</table>
|
||||
|
||||
<div class="config-section">
|
||||
<h3 class="section-title">📦 容器云仓库</h3>
|
||||
<h3 class="section-title">📚 容器云仓库</h3>
|
||||
<div class="url-input-section">
|
||||
<h4>🔗 获取容器仓库</h4>
|
||||
<div style="display: flex; gap: 10px; margin-top: 10px; align-items: center;">
|
||||
<button class="btn-new" onclick="openRepoSelectForContainer()">获取仓库</button>
|
||||
<span style="font-size: 12px; color: var(--vscode-descriptionForeground);">
|
||||
从仓库配置中选择 Git 仓库,选择分支后可将容器代码克隆到当前飞行器下(以分支名作为容器名称)
|
||||
从仓库配置中选择 Git 仓库,选择分支后可将完整容器克隆到本地
|
||||
</span>
|
||||
</div>
|
||||
<div id="branchSelectionContainer"></div>
|
||||
@@ -240,18 +240,11 @@ class ContainerView extends BaseView_1.BaseView {
|
||||
);
|
||||
}
|
||||
|
||||
// 新增上传功能
|
||||
function uploadContainer(containerId, containerName) {
|
||||
showConfirmDialog(
|
||||
'上传容器仓库',
|
||||
'确定将此容器目录(包括所有子文件夹和文件)上传到一个新的 Git 仓库分支吗?',
|
||||
function() {
|
||||
vscode.postMessage({
|
||||
type: 'openRepoSelectForContainerUpload',
|
||||
containerId: containerId
|
||||
});
|
||||
}
|
||||
);
|
||||
vscode.postMessage({
|
||||
type: 'openRepoSelectForContainerUpload',
|
||||
containerId: containerId
|
||||
});
|
||||
}
|
||||
|
||||
// ======== Git 仓库 & 分支树 - ContainerView 作用域 ========
|
||||
|
||||
Reference in New Issue
Block a user