给项目页面、飞行器页面
This commit is contained in:
@@ -24,6 +24,7 @@ class ProjectView extends BaseView_1.BaseView {
|
||||
</span>
|
||||
</td>
|
||||
<td>
|
||||
${isConfigured ? `<button class="btn-upload" onclick="uploadProject('${project.id}', '${project.name}')" style="margin-right: 5px;">上传</button>` : ''}
|
||||
<button class="btn-delete" onclick="deleteProject('${project.id}')">删除</button>
|
||||
</td>
|
||||
</tr>
|
||||
@@ -212,7 +213,6 @@ class ProjectView extends BaseView_1.BaseView {
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<!-- 项目云仓库 -->
|
||||
<div class="config-section">
|
||||
<h3 class="section-title">📚 项目云仓库</h3>
|
||||
<div class="url-input-section">
|
||||
@@ -288,6 +288,20 @@ class ProjectView extends BaseView_1.BaseView {
|
||||
}
|
||||
);
|
||||
}
|
||||
|
||||
// 新增上传功能
|
||||
function uploadProject(projectId, projectName) {
|
||||
showConfirmDialog(
|
||||
'上传项目仓库',
|
||||
'确定将此项目目录(包括所有子文件夹和文件)上传到一个新的 Git 仓库分支吗?',
|
||||
function() {
|
||||
vscode.postMessage({
|
||||
type: 'openRepoSelectForProjectUpload',
|
||||
projectId: projectId
|
||||
});
|
||||
}
|
||||
);
|
||||
}
|
||||
|
||||
// 项目名称编辑功能
|
||||
document.addEventListener('DOMContentLoaded', function() {
|
||||
|
||||
Reference in New Issue
Block a user