-
-
Notifications
You must be signed in to change notification settings - Fork 518
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Replace storybook with histoire (#5154)
- Loading branch information
Showing
40 changed files
with
8,890 additions
and
54,087 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
import { defineSetupVue3 } from "@histoire/plugin-vue"; | ||
import "bootstrap/dist/css/bootstrap.min.css"; | ||
import "bootstrap"; | ||
import smoothscroll from "smoothscroll-polyfill"; | ||
import VueNumber from "vue-number-animation"; | ||
import i18n from "./js/i18n"; | ||
import "./css/app.css"; | ||
import { watchThemeChanges } from "./js/theme"; | ||
|
||
smoothscroll.polyfill(); | ||
watchThemeChanges(); | ||
|
||
export const setupVue3 = defineSetupVue3(({ app }) => { | ||
app.use(i18n); | ||
app.use(VueNumber); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<script setup> | ||
import BatteryIcon from "./BatteryIcon.vue"; | ||
</script> | ||
|
||
<template> | ||
<Story :layout="{ type: 'grid', width: 150 }"> | ||
<Variant title="empty"> <BatteryIcon :soc="10" /> </Variant> | ||
<Variant title="quarter"> <BatteryIcon :soc="30" /> </Variant> | ||
<Variant title="half"> <BatteryIcon :soc="50" /> </Variant> | ||
<Variant title="three quarter"> <BatteryIcon :soc="70" /> </Variant> | ||
<Variant title="full"> <BatteryIcon :soc="90" /> </Variant> | ||
</Story> | ||
</template> |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,118 @@ | ||
<script setup> | ||
import Energyflow from "./Energyflow.vue"; | ||
</script> | ||
|
||
<template> | ||
<Story :layout="{ type: 'grid', width: 800 }"> | ||
<Variant title="grid and pv"> | ||
<Energyflow | ||
gridConfigured | ||
pvConfigured | ||
:pvPower="7300" | ||
:gridPower="-2300" | ||
:homePower="800" | ||
:loadpointsPower="4200" | ||
:activeLoadpointsCount="3" | ||
siteTitle="Home" | ||
/> | ||
</Variant> | ||
<Variant title="battery and grid"> | ||
<Energyflow | ||
gridConfigured | ||
pvConfigured | ||
batteryConfigured | ||
:pvPower="0" | ||
:gridPower="1200" | ||
:homePower="2000" | ||
:batteryPower="800" | ||
:batterySoC="77" | ||
siteTitle="Home" | ||
/> | ||
</Variant> | ||
<Variant title="battery charging"> | ||
<Energyflow | ||
gridConfigured | ||
pvConfigured | ||
batteryConfigured | ||
:pvPower="5000" | ||
:gridPower="-1300" | ||
:homePower="800" | ||
:loadpointsPower="1400" | ||
:activeLoadpointsCount="1" | ||
:batteryPower="-1500" | ||
:batterySoC="75" | ||
siteTitle="Home" | ||
/> | ||
</Variant> | ||
<Variant title="grid, pv and battery"> | ||
<Energyflow | ||
gridConfigured | ||
pvConfigured | ||
batteryConfigured | ||
:pvPower="1000" | ||
:gridPower="700" | ||
:homePower="3300" | ||
:batteryPower="1500" | ||
:batterySoC="30" | ||
siteTitle="Home" | ||
/> | ||
</Variant> | ||
<Variant title="battery thresholds"> | ||
<Energyflow | ||
gridConfigured | ||
pvConfigured | ||
batteryConfigured | ||
:pvPower="8700" | ||
:gridPower="-500" | ||
:loadpointsPower="7500" | ||
:activeLoadpointsCount="2" | ||
:batteryPower="-700" | ||
:batterySoC="95" | ||
siteTitle="Home" | ||
/> | ||
</Variant> | ||
<Variant title="pv thresholds"> | ||
<Energyflow | ||
gridConfigured | ||
pvConfigured | ||
batteryConfigured | ||
:pvPower="300" | ||
:gridPower="5500" | ||
:homePower="1000" | ||
:loadpointsPower="5600" | ||
:activeLoadpointsCount="2" | ||
:batteryPower="800" | ||
:batterySoC="76" | ||
siteTitle="Home" | ||
/> | ||
</Variant> | ||
<Variant title="grid only"> | ||
<Energyflow | ||
gridConfigured | ||
pvConfigured | ||
batteryConfigured | ||
:pvPower="0" | ||
:gridPower="6500" | ||
:homePower="1000" | ||
:loadpointsPower="5500" | ||
:activeLoadpointsCount="1" | ||
:batteryPower="0" | ||
:batterySoC="0" | ||
siteTitle="Home" | ||
/> | ||
</Variant> | ||
<Variant title="low power"> | ||
<Energyflow | ||
gridConfigured | ||
pvConfigured | ||
batteryConfigured | ||
:pvPower="700" | ||
:gridPower="-300" | ||
:homePower="300" | ||
:batteryPower="-100" | ||
:batterySoC="55" | ||
siteTitle="Home" | ||
/> | ||
</Variant> | ||
</Story> | ||
</template> |
Oops, something went wrong.