-
-
Notifications
You must be signed in to change notification settings - Fork 193
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
Async dash bio #430
Async dash bio #430
Changes from 5 commits
97c9840
0b2ca02
f1fd259
28f761b
82082a1
bb2a315
8ee0e74
c451173
bb9dd7e
b1eea20
89d6027
24300c0
59814e1
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,9 @@ | ||
{ | ||
"presets": ["@babel/env", "@babel/react"] | ||
} | ||
"presets": [ | ||
"@babel/env", | ||
"@babel/react" | ||
], | ||
"plugins": [ | ||
"@babel/plugin-syntax-dynamic-import" | ||
] | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -32,8 +32,41 @@ | |
|
||
_this_module = _sys.modules[__name__] | ||
|
||
async_resources = [ | ||
'alignment', | ||
'circos', | ||
'ideogram', | ||
'moleculeviewer2', | ||
'moleculeviewer3', | ||
'needle', | ||
'onco', | ||
'sequence', | ||
'speck' | ||
] | ||
|
||
_js_dist = [] | ||
|
||
_js_dist.extend([{ | ||
'relative_package_path': 'async~{}.js'.format(async_resource), | ||
'external_url': ( | ||
'https://unpkg.com/dash-bio@{}' | ||
'/dash_bio/async~{}.js' | ||
).format(__version__, async_resource), | ||
'namespace': 'dash_bio', | ||
'async': True | ||
} for async_resource in async_resources]) | ||
|
||
_js_dist = [ | ||
_js_dist.extend([{ | ||
'relative_package_path': 'async~{}.js.map'.format(async_resource), | ||
'external_url': ( | ||
'https://unpkg.com/dash-bio@{}' | ||
'/dash_bio/async~{}.js.map' | ||
).format(__version__, async_resource), | ||
'namespace': 'dash_bio', | ||
'dynamic': True | ||
} for async_resource in async_resources]) | ||
|
||
_js_dist.extend([ | ||
{ | ||
'relative_package_path': 'bundle.js', | ||
'external_url': ( | ||
|
@@ -42,7 +75,7 @@ | |
).format(__version__), | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Hey not new in this PR, but There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🔎 Interesting, due to how There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Someone using the remotely hosted code for an old version will have a nasty surprise after this update.. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @alexcjohnson Good catch! Surprised we haven't run into it before. |
||
'namespace': package_name | ||
} | ||
] | ||
]) | ||
|
||
_css_dist = [] | ||
|
||
|
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not for this PR, but at some point - like perhaps, whenever we get around to fully generating
__init__.py
- this all seems ripe for abstracting into the dash core, likeMay still need some tweaking to handle edge cases like
async: 'eager'|'lazy'
, but we should at least be able to auto-detect sourcemaps (which may not exist in release versions plotly/dash#910) and set them alldynamic: True
regardless of the resource setting.