@bimenergy/vip-export-display

Component for inspecting and exporting to VIP Energy.

Usage no npm install needed!

<script type="module">
  import bimenergyVipExportDisplay from 'https://cdn.skypack.dev/@bimenergy/vip-export-display';
</script>

README

Vip-export-display

Component for inspecting and exporting to VIP Energy.

General example

<VipExportDisplay
  i18n={i18next} // An i18next instance
  building={building} // A BIM Energy building that exists locally before rendering
  project={project} // A BIM Energy project that exists locally before rendering
  zones={zones} // BIM Energy zones that exists locally before rendering
  parts={buildingPartsList} // Optional way to provide existing list of building parts
  token={sessionStore.session('TOKEN')} // User's authorization token (since fetches are performed in this component)
/>

Breaking changes version 2.0.0

The building parts list is now generated locally, no token needed, for easier debugging. That means the project and zones for the building need to be provided via props.

The export to VIP Energy is still done by the server like before. User token must be provided:

STORYBOOK_TOKEN=myUserToken npm run storybook