实现小游戏与小程序项目创建发布

This commit is contained in:
2026-08-09 13:31:06 +08:00
parent a6fe14a8d6
commit 493b31cff0
26 changed files with 1827 additions and 39 deletions

View File

@@ -324,7 +324,17 @@ export function ProjectConfiguration() {
<Button type="button" variant="outline" onClick={() => setDeleteDialogOpen(true)} className="h-12 border border-foreground/15 bg-accent-soft px-5 font-semibold text-foreground shadow-soft"><Trash2 className="mr-2 h-5 w-5" /></Button>
<div className="ml-auto flex flex-wrap items-start justify-end gap-3">
<Button onClick={() => void submit()} disabled={saving} className="project-save-button h-12 border border-brand/20 bg-brand px-6 font-semibold text-primary-foreground"><Check className="mr-2 h-5 w-5" />{saving ? '保存中…' : draft.initialized ? '保存项目配置' : '确认并完成初始化'}</Button>
<ProjectPublishAction key={activeProject.id} project={activeProject} />
{draft.projectType === 'mini_game' || draft.projectType === 'mini_program' ? (
<ProjectPublishAction
key={activeProject.id}
project={activeProject}
projectType={draft.projectType}
/>
) : (
<p className="max-w-sm self-center text-right text-xs font-medium leading-5 text-muted-foreground [text-wrap:pretty]">
</p>
)}
</div>
</div>
</div>