Skip to content

Commit fa6e4e6

Browse files
authored
Colors theme: fix daygraph request (#2399)
* fix daygraph request * fix month and year graph * layout fixes
1 parent 4edff33 commit fa6e4e6

8 files changed

Lines changed: 12 additions & 20 deletions

File tree

packages/modules/web_themes/colors/source/src/components/batteryList/BatteryList.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ Hagen */
1818
{{ batteryState }}
1919
</WbBadge>
2020
</template>
21-
<div class="px-3 subgrid grid-12">
21+
<div class="subgrid grid-12">
2222
<InfoItem heading="Ladestand:" class="grid-left grid-col-4">
2323
<BatterySymbol
2424
color="var(--color-battery)"
@@ -40,7 +40,7 @@ Hagen */
4040
v-for="[key, battery] in batteries"
4141
:key="key"
4242
:bat="battery"
43-
class="px-4"
43+
class="px-0"
4444
/>
4545
</WbWidgetFlex>
4646
</template>

packages/modules/web_themes/colors/source/src/components/counterList/CounterList.vue

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,7 @@
66
>
77
<span>Zähler</span>
88
</template>
9-
<div
10-
v-for="(counter, index) in counters"
11-
:key="index"
12-
class="subgrid pb-2 px-4"
13-
>
9+
<div v-for="(counter, index) in counters" :key="index" class="subgrid pb-2">
1410
<ClCounter :counter="counter" />
1511
</div>
1612
</WBWidgetFlex>

packages/modules/web_themes/colors/source/src/components/inverterList/InverterList.vue

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,7 @@
1111
{{ formatWatt(sourceSummary.pv.power) }}
1212
</WbBadge>
1313
</template>
14-
<div
15-
v-for="[key, pvsystem] in pvSystems"
16-
:key="key"
17-
class="subgrid pb-2 px-4"
18-
>
14+
<div v-for="[key, pvsystem] in pvSystems" :key="key" class="subgrid pb-2">
1915
<IlInverter :inverter="pvsystem" />
2016
</div>
2117
</WBWidgetFlex>

packages/modules/web_themes/colors/source/src/components/powerGraph/model.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ export const dayGraph = reactive({
172172
graphData.waitForData = true
173173
sendCommand({
174174
command: 'getDailyLog',
175-
data: { day: dateString },
175+
data: { date: dateString },
176176
})
177177
}
178178
},
@@ -208,7 +208,7 @@ export const monthGraph = reactive({
208208
graphData.waitForData = true
209209
sendCommand({
210210
command: 'getMonthlyLog',
211-
data: { month: dateString },
211+
data: { date: dateString },
212212
})
213213
},
214214
deactivate() {
@@ -256,7 +256,7 @@ export const yearGraph = reactive({
256256
graphData.waitForData = true
257257
sendCommand({
258258
command: 'getYearlyLog',
259-
data: { year: dateString },
259+
data: { date: dateString },
260260
})
261261
},
262262
deactivate() {

packages/modules/web_themes/colors/source/src/components/shared/WbWidgetFlex.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
<slot name="buttons" />
1717
</div>
1818
</div>
19-
<div class="grid12 pb-3">
19+
<div class="grid12 pb-3 px-3">
2020
<slot />
2121
</div>
2222
</div>

packages/modules/web_themes/colors/web/assets/index-B1IFxNDg.js renamed to packages/modules/web_themes/colors/web/assets/index-B-oIXkFa.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/modules/web_themes/colors/web/assets/index-R7WEwZeK.css renamed to packages/modules/web_themes/colors/web/assets/index-BmACv-mh.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/modules/web_themes/colors/web/index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,9 @@
2424
<link rel="apple-touch-icon" sizes="60x60" href="/openWB/web/img/favicons/apple-touch-icon-60x60.png">
2525
<link rel="manifest" href="/openWB/web/manifest.json">
2626
<title>openWB</title>
27-
<script type="module" crossorigin src="/openWB/web/themes/colors/assets/index-B1IFxNDg.js"></script>
27+
<script type="module" crossorigin src="/openWB/web/themes/colors/assets/index-B-oIXkFa.js"></script>
2828
<link rel="modulepreload" crossorigin href="/openWB/web/themes/colors/assets/vendor-CmSLe-Fc.js">
29-
<link rel="stylesheet" crossorigin href="/openWB/web/themes/colors/assets/index-R7WEwZeK.css">
29+
<link rel="stylesheet" crossorigin href="/openWB/web/themes/colors/assets/index-BmACv-mh.css">
3030
</head>
3131

3232
<body>

0 commit comments

Comments
 (0)