revisit 0.0.14__tar.gz → 0.0.16__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.16}/PKG-INFO +1 -1
- {revisit-0.0.14 → revisit-0.0.16}/pyproject.toml +1 -1
- {revisit-0.0.14 → revisit-0.0.16}/src/revisit/revisit.py +8 -5
- {revisit-0.0.14 → revisit-0.0.16}/.gitignore +0 -0
- {revisit-0.0.14 → revisit-0.0.16}/README.md +0 -0
- {revisit-0.0.14 → revisit-0.0.16}/src/revisit/StudyConfigSchema.json +0 -0
- {revisit-0.0.14 → revisit-0.0.16}/src/revisit/__init__.py +0 -0
- {revisit-0.0.14 → revisit-0.0.16}/src/revisit/models.py +0 -0
- {revisit-0.0.14 → revisit-0.0.16}/src/revisit/static/widget.css +0 -0
- {revisit-0.0.14 → revisit-0.0.16}/src/revisit/static/widget.js +0 -0
- {revisit-0.0.14 → revisit-0.0.16}/src/revisit/widget.py +0 -0
@@ -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:
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|