mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-23 17:26:42 +00:00
Align gallery code + fix icon in entity-icon demo (#7754)
This commit is contained in:
parent
c53ec6e12d
commit
e7e192ffe3
@ -73,13 +73,7 @@ const CONFIGS = [
|
|||||||
|
|
||||||
class DemoAlarmPanelEntity extends PolymerElement {
|
class DemoAlarmPanelEntity extends PolymerElement {
|
||||||
static get template() {
|
static get template() {
|
||||||
return html`
|
return html` <demo-cards id="demos" configs="[[_configs]]"></demo-cards> `;
|
||||||
<demo-cards
|
|
||||||
id="demos"
|
|
||||||
hass="[[hass]]"
|
|
||||||
configs="[[_configs]]"
|
|
||||||
></demo-cards>
|
|
||||||
`;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static get properties() {
|
static get properties() {
|
||||||
@ -88,7 +82,6 @@ class DemoAlarmPanelEntity extends PolymerElement {
|
|||||||
type: Object,
|
type: Object,
|
||||||
value: CONFIGS,
|
value: CONFIGS,
|
||||||
},
|
},
|
||||||
hass: Object,
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -55,13 +55,7 @@ const CONFIGS = [
|
|||||||
|
|
||||||
class DemoConditional extends PolymerElement {
|
class DemoConditional extends PolymerElement {
|
||||||
static get template() {
|
static get template() {
|
||||||
return html`
|
return html` <demo-cards id="demos" configs="[[_configs]]"></demo-cards> `;
|
||||||
<demo-cards
|
|
||||||
id="demos"
|
|
||||||
hass="[[hass]]"
|
|
||||||
configs="[[_configs]]"
|
|
||||||
></demo-cards>
|
|
||||||
`;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static get properties() {
|
static get properties() {
|
||||||
@ -70,7 +64,6 @@ class DemoConditional extends PolymerElement {
|
|||||||
type: Object,
|
type: Object,
|
||||||
value: CONFIGS,
|
value: CONFIGS,
|
||||||
},
|
},
|
||||||
hass: Object,
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -20,10 +20,10 @@ const CONFIGS = [
|
|||||||
`,
|
`,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
heading: "With Name",
|
heading: "With Name (defined in card)",
|
||||||
config: `
|
config: `
|
||||||
- type: button
|
- type: button
|
||||||
name: Bedroom
|
name: Custom Name
|
||||||
entity: light.bed_light
|
entity: light.bed_light
|
||||||
`,
|
`,
|
||||||
},
|
},
|
||||||
@ -32,7 +32,7 @@ const CONFIGS = [
|
|||||||
config: `
|
config: `
|
||||||
- type: button
|
- type: button
|
||||||
entity: light.bed_light
|
entity: light.bed_light
|
||||||
icon: mdi:hotel
|
icon: mdi:tools
|
||||||
`,
|
`,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -71,13 +71,7 @@ const CONFIGS = [
|
|||||||
|
|
||||||
class DemoButtonEntity extends PolymerElement {
|
class DemoButtonEntity extends PolymerElement {
|
||||||
static get template() {
|
static get template() {
|
||||||
return html`
|
return html` <demo-cards id="demos" configs="[[_configs]]"></demo-cards> `;
|
||||||
<demo-cards
|
|
||||||
id="demos"
|
|
||||||
hass="[[hass]]"
|
|
||||||
configs="[[_configs]]"
|
|
||||||
></demo-cards>
|
|
||||||
`;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static get properties() {
|
static get properties() {
|
||||||
@ -86,7 +80,6 @@ class DemoButtonEntity extends PolymerElement {
|
|||||||
type: Object,
|
type: Object,
|
||||||
value: CONFIGS,
|
value: CONFIGS,
|
||||||
},
|
},
|
||||||
hass: Object,
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -163,13 +163,7 @@ const CONFIGS = [
|
|||||||
|
|
||||||
class DemoMap extends PolymerElement {
|
class DemoMap extends PolymerElement {
|
||||||
static get template() {
|
static get template() {
|
||||||
return html`
|
return html` <demo-cards id="demos" configs="[[_configs]]"></demo-cards> `;
|
||||||
<demo-cards
|
|
||||||
id="demos"
|
|
||||||
hass="[[hass]]"
|
|
||||||
configs="[[_configs]]"
|
|
||||||
></demo-cards>
|
|
||||||
`;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static get properties() {
|
static get properties() {
|
||||||
@ -178,7 +172,6 @@ class DemoMap extends PolymerElement {
|
|||||||
type: Object,
|
type: Object,
|
||||||
value: CONFIGS,
|
value: CONFIGS,
|
||||||
},
|
},
|
||||||
hass: Object,
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -150,13 +150,7 @@ const CONFIGS = [
|
|||||||
|
|
||||||
class DemoHuiMediControlCard extends PolymerElement {
|
class DemoHuiMediControlCard extends PolymerElement {
|
||||||
static get template() {
|
static get template() {
|
||||||
return html`
|
return html` <demo-cards id="demos" configs="[[_configs]]"></demo-cards> `;
|
||||||
<demo-cards
|
|
||||||
id="demos"
|
|
||||||
hass="[[hass]]"
|
|
||||||
configs="[[_configs]]"
|
|
||||||
></demo-cards>
|
|
||||||
`;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static get properties() {
|
static get properties() {
|
||||||
@ -165,7 +159,6 @@ class DemoHuiMediControlCard extends PolymerElement {
|
|||||||
type: Object,
|
type: Object,
|
||||||
value: CONFIGS,
|
value: CONFIGS,
|
||||||
},
|
},
|
||||||
hass: Object,
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -57,13 +57,7 @@ const CONFIGS = [
|
|||||||
|
|
||||||
class DemoHuiMediaPlayerRows extends PolymerElement {
|
class DemoHuiMediaPlayerRows extends PolymerElement {
|
||||||
static get template() {
|
static get template() {
|
||||||
return html`
|
return html` <demo-cards id="demos" configs="[[_configs]]"></demo-cards> `;
|
||||||
<demo-cards
|
|
||||||
id="demos"
|
|
||||||
hass="[[hass]]"
|
|
||||||
configs="[[_configs]]"
|
|
||||||
></demo-cards>
|
|
||||||
`;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static get properties() {
|
static get properties() {
|
||||||
@ -72,7 +66,6 @@ class DemoHuiMediaPlayerRows extends PolymerElement {
|
|||||||
type: Object,
|
type: Object,
|
||||||
value: CONFIGS,
|
value: CONFIGS,
|
||||||
},
|
},
|
||||||
hass: Object,
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user