1
0
mirror of https://github.com/home-assistant/frontend.git synced 2026-05-08 17:28:46 +01:00

Use local and optimized images in gallery (#1506)

This commit is contained in:
c727
2018-07-23 15:40:58 +02:00
committed by Paulus Schoutsen
parent 0aee48cb2c
commit a899fb1df8
11 changed files with 15 additions and 15 deletions
Binary file not shown.

After

Width:  |  Height:  |  Size: 111 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 14 KiB

After

Width:  |  Height:  |  Size: 10 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 76 KiB

After

Width:  |  Height:  |  Size: 26 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 115 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 13 KiB

After

Width:  |  Height:  |  Size: 5.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 20 KiB

After

Width:  |  Height:  |  Size: 8.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 115 KiB

+1 -1
View File
@@ -126,7 +126,7 @@ const CONFIGS = [
style:
height: 30px
margin: 4px 0
background: center / contain url("images/divider.png") no-repeat
background: center / contain url("/images/divider.png") no-repeat
`
},
];
@@ -8,7 +8,7 @@ const CONFIGS = [
heading: 'State on',
config: `
- type: picture-entity
image: https://images.pexels.com/photos/1027508/pexels-photo-1027508.jpeg
image: /images/kitchen.png
entity: light.kitchen_lights
`
},
@@ -16,7 +16,7 @@ const CONFIGS = [
heading: 'State off',
config: `
- type: picture-entity
image: https://images.pexels.com/photos/775219/pexels-photo-775219.jpeg
image: /images/bed.png
entity: light.bed_light
`
},
@@ -24,7 +24,7 @@ const CONFIGS = [
heading: 'Entity unavailable',
config: `
- type: picture-entity
image: https://images.pexels.com/photos/276724/pexels-photo-276724.jpeg
image: /images/living_room.png
entity: light.non_existing
`
},
@@ -39,7 +39,7 @@ const CONFIGS = [
heading: 'Hidden info',
config: `
- type: picture-entity
image: https://images.pexels.com/photos/1027508/pexels-photo-1027508.jpeg
image: /images/kitchen.png
entity: light.kitchen_lights
show_info: false
`
@@ -8,7 +8,7 @@ const CONFIGS = [
heading: 'Title, dialog, toggle',
config: `
- type: picture-glance
image: https://images.pexels.com/photos/276724/pexels-photo-276724.jpeg
image: /images/living_room.png
title: Living room
entities:
- switch.decorative_lights
@@ -21,7 +21,7 @@ const CONFIGS = [
heading: 'Title, dialog, no toggle',
config: `
- type: picture-glance
image: https://images.pexels.com/photos/276724/pexels-photo-276724.jpeg
image: /images/living_room.png
title: Living room
entities:
- binary_sensor.movement_backyard
@@ -32,7 +32,7 @@ const CONFIGS = [
heading: 'Title, no dialog, toggle',
config: `
- type: picture-glance
image: https://images.pexels.com/photos/276724/pexels-photo-276724.jpeg
image: /images/living_room.png
title: Living room
entities:
- switch.decorative_lights
@@ -43,7 +43,7 @@ const CONFIGS = [
heading: 'No title, dialog, toggle',
config: `
- type: picture-glance
image: https://images.pexels.com/photos/276724/pexels-photo-276724.jpeg
image: /images/living_room.png
entities:
- switch.decorative_lights
- light.ceiling_lights
@@ -55,7 +55,7 @@ const CONFIGS = [
heading: 'No title, dialog, no toggle',
config: `
- type: picture-glance
image: https://images.pexels.com/photos/276724/pexels-photo-276724.jpeg
image: /images/living_room.png
entities:
- binary_sensor.movement_backyard
- binary_sensor.basement_floor_wet
@@ -65,7 +65,7 @@ const CONFIGS = [
heading: 'No title, no dialog, toggle',
config: `
- type: picture-glance
image: https://images.pexels.com/photos/276724/pexels-photo-276724.jpeg
image: /images/living_room.png
entities:
- switch.decorative_lights
- light.ceiling_lights
+4 -4
View File
@@ -10,7 +10,7 @@ const CONFIGS = [
- type: vertical-stack
cards:
- type: picture-entity
image: https://images.pexels.com/photos/1027508/pexels-photo-1027508.jpeg
image: /images/kitchen.png
entity: light.kitchen_lights
- type: glance
entities:
@@ -25,7 +25,7 @@ const CONFIGS = [
- type: horizontal-stack
cards:
- type: picture-entity
image: https://images.pexels.com/photos/1027508/pexels-photo-1027508.jpeg
image: /images/kitchen.png
entity: light.kitchen_lights
- type: glance
entities:
@@ -42,7 +42,7 @@ const CONFIGS = [
- type: horizontal-stack
cards:
- type: picture-entity
image: https://images.pexels.com/photos/1027508/pexels-photo-1027508.jpeg
image: /images/kitchen.png
entity: light.kitchen_lights
- type: glance
entities:
@@ -50,7 +50,7 @@ const CONFIGS = [
- device_tracker.demo_home_boy
- device_tracker.demo_paulus
- type: picture-entity
image: https://images.pexels.com/photos/775219/pexels-photo-775219.jpeg
image: /images/bed.png
entity: light.bed_light
`
},