diff --git a/packages/modules/web_themes/koala/source/src/components/ConsumerCard.vue b/packages/modules/web_themes/koala/source/src/components/ConsumerCard.vue new file mode 100644 index 0000000000..5d0b9e50d7 --- /dev/null +++ b/packages/modules/web_themes/koala/source/src/components/ConsumerCard.vue @@ -0,0 +1,178 @@ + + + + + diff --git a/packages/modules/web_themes/koala/source/src/components/ConsumerInformation.vue b/packages/modules/web_themes/koala/source/src/components/ConsumerInformation.vue new file mode 100644 index 0000000000..951e4e31d6 --- /dev/null +++ b/packages/modules/web_themes/koala/source/src/components/ConsumerInformation.vue @@ -0,0 +1,44 @@ + + + + + diff --git a/packages/modules/web_themes/koala/source/src/components/ConsumerMessage.vue b/packages/modules/web_themes/koala/source/src/components/ConsumerMessage.vue new file mode 100644 index 0000000000..38974ef37d --- /dev/null +++ b/packages/modules/web_themes/koala/source/src/components/ConsumerMessage.vue @@ -0,0 +1,43 @@ + + + diff --git a/packages/modules/web_themes/koala/source/src/components/ConsumerModeButtons.vue b/packages/modules/web_themes/koala/source/src/components/ConsumerModeButtons.vue new file mode 100644 index 0000000000..d36bca3106 --- /dev/null +++ b/packages/modules/web_themes/koala/source/src/components/ConsumerModeButtons.vue @@ -0,0 +1,72 @@ + + + + + diff --git a/packages/modules/web_themes/koala/source/src/components/ConsumerSettings.vue b/packages/modules/web_themes/koala/source/src/components/ConsumerSettings.vue new file mode 100644 index 0000000000..b7907c11fd --- /dev/null +++ b/packages/modules/web_themes/koala/source/src/components/ConsumerSettings.vue @@ -0,0 +1,148 @@ + + + + + diff --git a/packages/modules/web_themes/koala/source/src/css/quasar.variables.scss b/packages/modules/web_themes/koala/source/src/css/quasar.variables.scss index d322c95a1d..5dc0689677 100644 --- a/packages/modules/web_themes/koala/source/src/css/quasar.variables.scss +++ b/packages/modules/web_themes/koala/source/src/css/quasar.variables.scss @@ -56,6 +56,7 @@ $vehicle-fill: #4f99af; $charge-plan-link-button: #6b757d; $diagram-icon: #717171; $table-hover: #f9f8f8; +$consumer: #7D42F5; // Light theme (default) :root { --q-primary: #{$primary}; @@ -96,6 +97,7 @@ $table-hover: #f9f8f8; --q-diagram-icon: #{$diagram-icon}; --q-table-hover: #{$table-hover}; --q-tab-icon: #{$grey-7}; + --q-consumer: #{$consumer}; // Main background background-color: var(--q-background-1); @@ -287,6 +289,7 @@ $dark-table-hover: #ffffff12; --q-diagram-icon: #{$white}; --q-table-hover: #{$dark-table-hover}; --q-tab-icon: #{$grey-7}; + --q-consumer: #{$consumer}; // Main background background-color: var(--q-background-1); diff --git a/packages/modules/web_themes/koala/source/src/pages/IndexPage.vue b/packages/modules/web_themes/koala/source/src/pages/IndexPage.vue index f41073f613..640d812f61 100644 --- a/packages/modules/web_themes/koala/source/src/pages/IndexPage.vue +++ b/packages/modules/web_themes/koala/source/src/pages/IndexPage.vue @@ -17,9 +17,9 @@ - + + + @@ -39,10 +39,14 @@ > - - + + + + @@ -55,7 +59,7 @@ import ChartCarousel from 'src/components/ChartCarousel.vue'; import ChargePointInformation from 'src/components/ChargePointInformation.vue'; import BatteryInformation from 'src/components/BatteryInformation.vue'; import VehicleInformation from 'src/components/VehicleInformation.vue'; -// import SmartHomeInformation from 'src/components/SmartHomeInformation.vue'; +import ConsumerInformation from 'src/components/ConsumerInformation.vue'; defineOptions({ name: 'IndexPage', @@ -67,6 +71,10 @@ const mqttStore = useMqttStore(); const accessBatteryAllowed = computed(() => { return mqttStore.batteryConfigured && mqttStore.batteryIds.length > 0; }); + +const consumersAvailable = computed(() => { + return mqttStore.consumerIds.length > 0; +});