revisit 0.0.14__tar.gz → 0.0.15__tar.gz
Sign up to get free protection for your applications and to get access to all the features.
- {revisit-0.0.14 → revisit-0.0.15}/PKG-INFO +1 -1
- {revisit-0.0.14 → revisit-0.0.15}/pyproject.toml +1 -1
- {revisit-0.0.14 → revisit-0.0.15}/src/revisit/revisit.py +9 -5
- {revisit-0.0.14 → revisit-0.0.15}/.gitignore +0 -0
- {revisit-0.0.14 → revisit-0.0.15}/README.md +0 -0
- {revisit-0.0.14 → revisit-0.0.15}/src/revisit/StudyConfigSchema.json +0 -0
- {revisit-0.0.14 → revisit-0.0.15}/src/revisit/__init__.py +0 -0
- {revisit-0.0.14 → revisit-0.0.15}/src/revisit/models.py +0 -0
- {revisit-0.0.14 → revisit-0.0.15}/src/revisit/static/widget.css +0 -0
- {revisit-0.0.14 → revisit-0.0.15}/src/revisit/static/widget.js +0 -0
- {revisit-0.0.14 → revisit-0.0.15}/src/revisit/widget.py +0 -0
@@ -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:
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|