Skip to content

Update Dropzone.js to 5.9.2 #51

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

Merged
merged 7 commits into from
Aug 17, 2021
Merged

Update Dropzone.js to 5.9.2 #51

merged 7 commits into from
Aug 17, 2021

Conversation

yuxiaoy1
Copy link
Collaborator

This PR contains changes of three parts:

  • Load the latest CDN resources by default, which keeps consistent with the dropzone.js documentation, and the static files(dropzone.min.js and dropzone.min.css) has been updated to latest version(5.9.2 currently) as well.
  • Fix some typos.
  • Simplify some code.

Supplement #49

@@ -26,7 +26,7 @@
class _Dropzone(object):

@staticmethod
def load(js_url='', css_url='', version='5.2.0'):
def load(js_url='', css_url='', version='latest'):
Copy link
Member

Choose a reason for hiding this comment

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

I think it's may not a good idea to use latest as the default value since we provide built-in resources with a fixed version. We have to sync the local resource inside the extension to the latest version. Otherwise, the user may meet inconsistent results when disable/enable the DROPZONE_SERVE_LOCAL config.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Yes, I also think of this after submit the PR, I will drop the code relevant.

@greyli greyli changed the title Load the latest CDN resources by default Update Dropzone.js to 5.9.2 Aug 17, 2021
@greyli greyli merged commit a5a768f into helloflask:master Aug 17, 2021
@yuxiaoy1 yuxiaoy1 deleted the load-latest-cdn branch August 17, 2021 13:20
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