Skip to content

Commit

Permalink
feat(Deploy): add link to deploy status
Browse files Browse the repository at this point in the history
  • Loading branch information
hatemhosny committed Mar 22, 2024
1 parent 3622227 commit 8c49c58
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/livecodes/UI/assets.ts
Original file line number Diff line number Diff line change
Expand Up @@ -544,7 +544,7 @@ export const createAddAssetContainer = ({

if (deploy) {
const deployNotice = document.createElement('p');
deployNotice.textContent = 'The asset should be available on this URL soon.';
deployNotice.textContent = 'The asset should be available on this URL soon (~1 min).';
deployNotice.classList.add('description', 'center');
outputElement.appendChild(deployNotice);
} else {
Expand Down
11 changes: 10 additions & 1 deletion src/livecodes/deploy/deploy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -180,13 +180,22 @@ export const deployedConfirmation = (deployResult: DeployResult, sourcePublished
Edit in LiveCodes
</a>
</p>
<p>
Check
<a
href="https://github.com/${username}/${repo}/actions"
target="_blank"
>
deployment status
</a>
</p>
</div>
`;
const msg = `
<div id="deploy-container" class="modal-container">
<div class="modal-title">Deployed Successfully!</div>
<p>
Your project has been deployed successfully to GitHub Pages, and will shortly be available on: <br />
Your project has been deployed successfully to GitHub Pages, and will shortly be available (~1&nbsp;min) on: <br />
<a href="${url}" target="_blank">${url}</a>
</p>
<div id="deploy-qrcode" class="qrcode-container">Generating...</div>
Expand Down

0 comments on commit 8c49c58

Please sign in to comment.