revisit 0.0.13__py2.py3-none-any.whl → 0.0.15__py2.py3-none-any.whl
Sign up to get free protection for your applications and to get access to all the features.
- revisit/revisit.py +9 -5
- revisit/static/widget.css +1 -0
- revisit/static/widget.js +2 -1
- {revisit-0.0.13.dist-info → revisit-0.0.15.dist-info}/METADATA +2 -1
- revisit-0.0.15.dist-info/RECORD +10 -0
- revisit-0.0.13.dist-info/RECORD +0 -10
- {revisit-0.0.13.dist-info → revisit-0.0.15.dist-info}/WHEEL +0 -0
revisit/revisit.py
CHANGED
@@ -450,22 +450,26 @@ def widget(study: _WrappedStudyConfig, revisitPath: str):
|
|
450
450
|
extracted_paths = []
|
451
451
|
|
452
452
|
for component in study.root.components.values():
|
453
|
-
|
453
|
+
print(component.root)
|
454
|
+
actual_component = component.root
|
455
|
+
if hasattr(actual_component, 'root'):
|
456
|
+
actual_component = actual_component.root
|
457
|
+
if hasattr(actual_component, 'path'):
|
454
458
|
|
455
|
-
fileName =
|
459
|
+
fileName = actual_component.path.split('/')[-1]
|
456
460
|
|
457
|
-
if
|
461
|
+
if actual_component.type == 'react-component':
|
458
462
|
dest = f"{revisitPath}/src/public/__revisit-widget/assets/{fileName}"
|
459
463
|
else:
|
460
464
|
dest = f"{revisitPath}/public/__revisit-widget/assets/{fileName}"
|
461
465
|
|
462
466
|
extracted_paths.append({
|
463
|
-
"src":
|
467
|
+
"src": actual_component.path,
|
464
468
|
"dest": dest
|
465
469
|
})
|
466
470
|
|
467
471
|
newPath = f"__revisit-widget/assets/{fileName}"
|
468
|
-
|
472
|
+
actual_component.path = newPath
|
469
473
|
|
470
474
|
uiConfig = study.root.uiConfig
|
471
475
|
if uiConfig.helpTextPath is not None:
|
revisit/static/widget.css
CHANGED
@@ -1 +1,2 @@
|
|
1
1
|
.revisit_notebook_widget button{background:#f0f0f0;border-radius:5px;border:1px solid #ccc;cursor:pointer;font-family:Roboto,sans-serif;font-size:1em;margin:5px;padding:5px 10px;transition:box-shadow .25s ease-in-out;&:hover{background:#e0e0e0;box-shadow:0 0 5px #ccc}&:active{background:#d0d0d0;box-shadow:0 0 5px #ccc inset}}.revisit_notebook_widget iframe{border:0;margin:0;width:100%}.revisit_notebook_widget{.sequence{width:100%;display:flex}.sequenceComponent{display:flex;padding-left:4px;padding-right:4px;padding-bottom:2px;&:hover{background:#0000001a}}.sequenceComponentIndividual{background:#000;width:5px;height:20px;margin-top:5px}}
|
2
|
+
/*# sourceMappingURL=data:application/json;base64,ewogICJ2ZXJzaW9uIjogMywKICAic291cmNlcyI6IFsiLi4vLi4vLi4vanMvd2lkZ2V0LmNzcyJdLAogICJzb3VyY2VzQ29udGVudCI6IFsiLnJldmlzaXRfbm90ZWJvb2tfd2lkZ2V0IGJ1dHRvbiB7XG5cdGJhY2tncm91bmQ6ICNmMGYwZjA7XG5cdGJvcmRlci1yYWRpdXM6IDVweDtcblx0Ym9yZGVyOiAxcHggc29saWQgI2NjYztcblx0Y3Vyc29yOiBwb2ludGVyO1xuXHRmb250LWZhbWlseTogXCJSb2JvdG9cIiwgc2Fucy1zZXJpZjtcblx0Zm9udC1zaXplOiAxZW07XG5cdG1hcmdpbjogNXB4O1xuXHRwYWRkaW5nOiA1cHggMTBweDtcblx0dHJhbnNpdGlvbjogYm94LXNoYWRvdyAwLjI1cyBlYXNlLWluLW91dDtcblxuXHQmOmhvdmVyIHtcblx0XHRiYWNrZ3JvdW5kOiAjZTBlMGUwO1xuXHRcdGJveC1zaGFkb3c6IDAgMCA1cHggMCAjY2NjO1xuXHR9XG5cblx0JjphY3RpdmUge1xuXHRcdGJhY2tncm91bmQ6ICNkMGQwZDA7XG5cdFx0Ym94LXNoYWRvdzogMCAwIDVweCAwICNjY2MgaW5zZXQ7XG5cblx0fVxufVxuXG4ucmV2aXNpdF9ub3RlYm9va193aWRnZXQgaWZyYW1lIHtcblx0Ym9yZGVyOiAwO1xuXHRtYXJnaW46IDA7XG5cdHdpZHRoOiAxMDAlO1xufVxuXG4ucmV2aXNpdF9ub3RlYm9va193aWRnZXQge1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