Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change cdn to npm package POC #114

Merged
merged 4 commits into from
Aug 27, 2024

Conversation

YayunHuang
Copy link
Contributor

@YayunHuang YayunHuang commented Aug 27, 2024

Blocked by

What's in this PR?

Ref: MUP-161

change cdns in download-python-package.js:

  • jszip
  • file-saver
  • localforage(this one also use in upload.js so didn't remove cdn file)

@pkong-ds
Copy link
Collaborator

Please rebase

@YayunHuang YayunHuang force-pushed the 161-change-cdn-to-npm-package-poc branch from 1820dd4 to 6532db6 Compare August 27, 2024 08:34
@YayunHuang
Copy link
Contributor Author

@pkong-ds rebased

src/pages/download/index.astro Show resolved Hide resolved
Comment on lines +44 to +46
var dataurlkey = await allStorage();
dataurlkey.forEach(function (value, key) {
file = dataURLtoFile(value, key.substring(3, key.length) + ".png");
var file = dataURLtoFile(value, key.substring(3, key.length) + ".png");
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

const/let does not work?

Copy link
Contributor Author

@YayunHuang YayunHuang Aug 27, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can work, but other places in this file all using var 😅, I can update them all at once when changing .js to .ts`

@YayunHuang YayunHuang force-pushed the 161-change-cdn-to-npm-package-poc branch from 6532db6 to a342675 Compare August 27, 2024 08:47
Copy link
Collaborator

@pkong-ds pkong-ds left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@pkong-ds pkong-ds merged commit e1e93bf into oursky:main Aug 27, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants