Skip to content

Makes IfcPreview component usable in modules#1010

Merged
aaronzi merged 1 commit intoeclipse-basyx:mainfrom
aaronzi:main
Jan 29, 2026
Merged

Makes IfcPreview component usable in modules#1010
aaronzi merged 1 commit intoeclipse-basyx:mainfrom
aaronzi:main

Conversation

@aaronzi
Copy link
Member

@aaronzi aaronzi commented Jan 29, 2026

This pull request improves the deployment flexibility of the IfcPreview.vue component by dynamically computing the base path for static assets (such as WASM files and web workers). This ensures that asset loading works correctly across different deployment environments and base URLs.

Deployment flexibility and asset path handling:

  • Added a staticBasePath computed property to determine the correct base path for static assets, using either the environment store's base path or the default base URL depending on the deployment mode. (aas-web-ui/src/components/Plugins/IfcPreview.vue)
  • Updated the IFC loader and fragments manager initialization to use staticBasePath when specifying the paths for WASM files and the worker script, ensuring assets are correctly located regardless of deployment configuration. (aas-web-ui/src/components/Plugins/IfcPreview.vue)

Imports and store usage:

  • Imported computed from Vue and useEnvStore from the environment store to support the new dynamic asset path logic. (aas-web-ui/src/components/Plugins/IfcPreview.vue)

@aaronzi aaronzi merged commit 000af66 into eclipse-basyx:main Jan 29, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant