feat: install progress

This commit is contained in:
Joel
2024-10-22 17:21:25 +08:00
parent 0e52971997
commit 5fddb23516
9 changed files with 272 additions and 73 deletions

View File

@ -149,7 +149,11 @@ const PluginPage = ({
<span className="system-xs-regular">Drop plugin package here to install</span>
</div>
{currentFile && (
<InstallFromLocalPackage file={currentFile} onClose={removeFile ?? (() => { })} />
<InstallFromLocalPackage
file={currentFile}
onClose={removeFile ?? (() => { })}
onSuccess={() => { }}
/>
)}
<input
ref={fileUploader}

View File

@ -94,11 +94,13 @@ const InstallPluginDropdown = () => {
</PortalToFollowElemContent>
</div>
{selectedAction === 'marketplace' && <InstallFromMarketplace onClose={() => setSelectedAction(null)} />}
{selectedAction === 'github' && <InstallFromGitHub onClose={() => setSelectedAction(null)}/>}
{selectedAction === 'github' && <InstallFromGitHub onClose={() => setSelectedAction(null)} />}
{selectedAction === 'local' && selectedFile
&& (<InstallFromLocalPackage
file={selectedFile}
onClose={() => setSelectedAction(null)}/>
onClose={() => setSelectedAction(null)}
onSuccess={() => { }}
/>
)
}
</PortalToFollowElem>