revisit 0.0.14__py2.py3-none-any.whl → 0.0.16__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
CHANGED
@@ -450,22 +450,25 @@ def widget(study: _WrappedStudyConfig, revisitPath: str):
|
|
450
450
|
extracted_paths = []
|
451
451
|
|
452
452
|
for component in study.root.components.values():
|
453
|
-
|
453
|
+
actual_component = component.root
|
454
|
+
if hasattr(actual_component, 'root'):
|
455
|
+
actual_component = actual_component.root
|
456
|
+
if hasattr(actual_component, 'path'):
|
454
457
|
|
455
|
-
fileName =
|
458
|
+
fileName = actual_component.path.split('/')[-1]
|
456
459
|
|
457
|
-
if
|
460
|
+
if actual_component.type == 'react-component':
|
458
461
|
dest = f"{revisitPath}/src/public/__revisit-widget/assets/{fileName}"
|
459
462
|
else:
|
460
463
|
dest = f"{revisitPath}/public/__revisit-widget/assets/{fileName}"
|
461
464
|
|
462
465
|
extracted_paths.append({
|
463
|
-
"src":
|
466
|
+
"src": actual_component.path,
|
464
467
|
"dest": dest
|
465
468
|
})
|
466
469
|
|
467
470
|
newPath = f"__revisit-widget/assets/{fileName}"
|
468
|
-
|
471
|
+
actual_component.path = newPath
|
469
472
|
|
470
473
|
uiConfig = study.root.uiConfig
|
471
474
|
if uiConfig.helpTextPath is not None:
|
@@ -1,10 +1,10 @@
|
|
1
1
|
revisit/StudyConfigSchema.json,sha256=xtzwZifuPJoiHASx0o8PHqBuh5L30mjBlhQ5eqsYm10,132168
|
2
2
|
revisit/__init__.py,sha256=QCvYt8m9QwpjcK4dv6GlLMUDCzRXGy16cua1r2biNCg,255
|
3
3
|
revisit/models.py,sha256=FRy8IlUAtDS3gdmZwwvqR935lbViTPnnr7k0CAkDkzI,134084
|
4
|
-
revisit/revisit.py,sha256=
|
4
|
+
revisit/revisit.py,sha256=JhlIKjaXfQmmqmSii7WSJSjJ5F1smoOBwZmk_nuMVOk,27015
|
5
5
|
revisit/widget.py,sha256=VvFqRvvvn86fW8ASe1pxaAvh5ZLvvSRThI5XtlCdgcg,915
|
6
6
|
revisit/static/widget.css,sha256=GlTPXc8vQmM78wYzPsTppy3r_zOqG7sqY1hKSmmmZNk,2769
|
7
7
|
revisit/static/widget.js,sha256=g1wG7qkotTDfDJ3F91jluJGQknDvYR3aL5DTrsOdY5w,1358091
|
8
|
-
revisit-0.0.
|
9
|
-
revisit-0.0.
|
10
|
-
revisit-0.0.
|
8
|
+
revisit-0.0.16.dist-info/METADATA,sha256=m1PxawsvA6wKBBdXTKy-BJmjKiGCOXRbUw2sSp5jOBs,8943
|
9
|
+
revisit-0.0.16.dist-info/WHEEL,sha256=tkmg4JIqwd9H8mL30xA7crRmoStyCtGp0VWshokd1Jc,105
|
10
|
+
revisit-0.0.16.dist-info/RECORD,,
|
File without changes
|