Skip to content

Commit

Permalink
fix soc display in middle graph
Browse files Browse the repository at this point in the history
  • Loading branch information
cshagen committed Jan 1, 2025
1 parent 17af9e3 commit 7ba232d
Show file tree
Hide file tree
Showing 7 changed files with 18 additions and 18 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -313,6 +313,6 @@ function getIndex(topic: string): number | undefined {
return undefined
}
} catch (e) {
console.warn('Parser error in getIndex for topic ' + topic + ': '+ e)
console.warn('Parser error in getIndex for topic ' + topic + ': ' + e)
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,6 @@ function getIndex(topic: string): number | undefined {
return undefined
}
} catch (e) {
console.warn('Parser error in getIndex for topic ' + topic + ': '+ e)
console.warn('Parser error in getIndex for topic ' + topic + ': ' + e)
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -85,16 +85,16 @@ const vName = computed(() => {
case 2:
return 'Speicher'
case 1:
if (vehicles[topVehicles.value[1]]) {
if (vehicles[topVehicles.value[1]] != undefined) {
return vehicles[topVehicles.value[1]].name
} else {
return 'oops'
return '???'
}
default:
if (vehicles[topVehicles.value[0]]) {
if (vehicles[topVehicles.value[0]] != undefined) {
return vehicles[topVehicles.value[0]].name
} else {
return 'hhhm'
return '???'
}
}
})
Expand All @@ -113,10 +113,10 @@ const cpColor = computed(() => {
})
const nameX = computed(() => {
switch (props.order) {
case 1:
return props.width - 3
case 0:
return 3
case 1:
return props.width - 3
case 2:
return props.width / 2
default:
Expand Down Expand Up @@ -151,9 +151,9 @@ const nameY = computed(() => {
const textPosition = computed(() => {
switch (props.order) {
case 0:
return 'end'
case 1:
return 'start'
case 1:
return 'end'
case 2:
return 'middle'
default:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,6 @@ function getIndex(topic: string): number | undefined {
return undefined
}
} catch (e) {
console.warn('Parser error in getIndex for topic ' + topic + ': '+ e)
console.warn('Parser error in getIndex for topic ' + topic + ': ' + e)
}
}

This file was deleted.

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion packages/modules/web_themes/colors/web/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
<link rel="apple-touch-icon" sizes="60x60" href="/openWB/web/img/favicons/apple-touch-icon-60x60.png">
<link rel="manifest" href="/openWB/web/manifest.json">
<title>openWB</title>
<script type="module" crossorigin src="/openWB/web/themes/colors/assets/index-B_SRXrzq.js"></script>
<script type="module" crossorigin src="/openWB/web/themes/colors/assets/index-DU7jlsFU.js"></script>
<link rel="modulepreload" crossorigin href="/openWB/web/themes/colors/assets/vendor-CyQtMzsz.js">
<link rel="stylesheet" crossorigin href="/openWB/web/themes/colors/assets/index-C3oaxYqI.css">
</head>
Expand Down

0 comments on commit 7ba232d

Please sign in to comment.