Hi!
Habe das SHC-Widget noch ein wenig angepasst.
Jetzt sehen auch die Props-Einstellungen besser aus:
Code
uid: Livisi_SHC-Card
tags:
- Livisi
- System
props:
parameters:
- label: Titel
name: title
required: false
type: TEXT
- label: Bild (Daymodus) ohne Suffix in static/icons
required: false
type: TEXT
- label: Bild (Darkmodus) ohne Suffix in static/icons
name: bild_night
required: false
type: TEXT
- context: item
label: Item für Betriebsstatus
name: item_1
required: false
type: TEXT
- label: Betriebsstatus F7-Icon (ohne F7:)
name: icon_1
required: false
type: TEXT
- label: Betriebsstatus TEXT
name: text_1
required: false
type: TEXT
- context: item
label: Item für CPU-Last
name: item_2
required: false
type: TEXT
- label: CPU-Last F7-Icon (ohne F7:)
name: icon_2
required: false
type: TEXT
- label: CPU-Last TEXT
name: text_2
required: false
type: TEXT
- context: item
label: Item für RAM-Belegung
name: item_3
required: false
type: TEXT
- label: RAM-Belegung F7-Icon (ohne F7:)
name: icon_3
required: false
type: TEXT
- label: RAM-Belegung TEXT
name: text_3
required: false
type: TEXT
- context: item
label: Item für HD-Belegung
name: item_4
required: false
type: TEXT
- label: HD-Belegung F7-Icon (ohne F7:)
name: icon_4
required: false
type: TEXT
- label: HD-Belegung TEXT
name: text_4
required: false
type: TEXT
parameterGroups: []
timestamp: Feb 13, 2023, 6:26:28 AM
component: f7-card
config:
style:
border-radius: 20px
box-shadow: var(--f7-card-expandable-box-shadow)
slots:
default:
- component: oh-link
config:
style:
height: 140px
border-radius: 20px
display: flex
flex-direction: column
align-items: start
justify-content: flex-start
slots:
default:
- component: oh-link
config:
text: =props.title
style:
color: "=themeOptions.dark === 'dark' ? 'white' : 'grey'"
margin: 0px 20px
font-size: 18px
font-weight: bold
- component: oh-link
config:
text: = props.text_1 + ' ' +items[props.item_1].state
iconF7: "=props.icon_1 ? props.icon_1 : ''"
iconSize: 18
color: "=themeOptions.dark === 'dark' ? 'white' : 'black'"
style:
margin: 10px 20px
font-size: 15px
font-weight: bold
- component: oh-link
config:
text: "=props.text_2 ? props.text_2 + ' ' + items[props.item_2].state : items[props.item_2].state"
iconF7: "=props.icon_2 ? props.icon_2 : ''"
iconSize: 18
color: "=themeOptions.dark === 'dark' ? 'white' : 'black'"
style:
margin: 0px 20px
font-size: 15px
font-weight: bold
- component: oh-link
config:
text: "=props.text_3 ? props.text_3 + ' ' + items[props.item_3].state : items[props.item_3].state"
iconF7: "=props.icon_3 ? props.icon_3 : ''"
iconSize: 18
color: "=themeOptions.dark === 'dark' ? 'white' : 'black'"
style:
margin: 0px 20px
font-size: 15px
font-weight: bold
- component: oh-link
config:
text: "=props.text_4 ? props.text_4 + ' ' + items[props.item_4].state : items[props.item_4].state"
iconF7: "=props.icon_4 ? props.icon_4 : ''"
iconSize: 18
color: "=themeOptions.dark === 'dark' ? 'white' : 'black'"
style:
margin: 0px 20px
font-size: 15x
font-weight: bold
- component: oh-image
config:
style:
height: 120px
left: 170px
opacity: 1
position: absolute
top: 10px
url: "=themeOptions.dark === 'dark' ? '/static/icons/' + props.bild_night + '.png' : '/static/icons/' + props.bild_day + '.png'"
Alles anzeigen