Update frontend
This commit is contained in:
parent
62c11dde17
commit
8fcfb9136c
14 changed files with 63 additions and 14 deletions
|
@ -80,10 +80,13 @@ class IndexView(HomeAssistantView):
|
|||
ui_url = '/static/home-assistant-polymer/src/home-assistant.html'
|
||||
map_url = ('/static/home-assistant-polymer/src/layouts/'
|
||||
'partial-map.html')
|
||||
dev_url = ('/static/home-assistant-polymer/src/entry-points/'
|
||||
'dev-tools.html')
|
||||
else:
|
||||
core_url = '/static/core-{}.js'.format(version.CORE)
|
||||
ui_url = '/static/frontend-{}.html'.format(version.UI)
|
||||
map_url = '/static/partial-map-{}.html'.format(version.MAP)
|
||||
dev_url = '/static/dev-tools-{}.html'.format(version.DEV)
|
||||
|
||||
# auto login if no password was set
|
||||
if self.hass.config.api.api_password is None:
|
||||
|
@ -99,6 +102,6 @@ class IndexView(HomeAssistantView):
|
|||
# pylint: disable=no-member
|
||||
resp = template.render(
|
||||
core_url=core_url, ui_url=ui_url, map_url=map_url, auth=auth,
|
||||
icons_url=icons_url, icons=mdi_version.VERSION)
|
||||
dev_url=dev_url, icons_url=icons_url, icons=mdi_version.VERSION)
|
||||
|
||||
return self.Response(resp, mimetype='text/html')
|
||||
|
|
|
@ -68,6 +68,7 @@
|
|||
window.noAuth = {{ auth }};
|
||||
window.deferredLoading = {
|
||||
map: '{{ map_url }}',
|
||||
dev: '{{ dev_url }}',
|
||||
};
|
||||
</script>
|
||||
</head>
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
"""DO NOT MODIFY. Auto-generated by build_frontend script."""
|
||||
CORE = "190f3331fdbf7118e11c4ae1de3c197a"
|
||||
UI = "a3bdf93df6b926a99bb427f8af684541"
|
||||
CORE = "c29efd019c0137142f894517c14395fa"
|
||||
UI = "0f88d61182d79e446d7aef8637232c3c"
|
||||
MAP = "248e12589e3e3d10357adb46b1797ff3"
|
||||
DEV = "325e002bdc2beee673101975a30b4118"
|
||||
|
|
File diff suppressed because one or more lines are too long
Binary file not shown.
43
homeassistant/components/frontend/www_static/dev-tools.html
Normal file
43
homeassistant/components/frontend/www_static/dev-tools.html
Normal file
File diff suppressed because one or more lines are too long
BIN
homeassistant/components/frontend/www_static/dev-tools.html.gz
Normal file
BIN
homeassistant/components/frontend/www_static/dev-tools.html.gz
Normal file
Binary file not shown.
File diff suppressed because one or more lines are too long
Binary file not shown.
|
@ -1 +1 @@
|
|||
Subproject commit 78c8e680b2deea335c2dc6f7e68e62df55c97a81
|
||||
Subproject commit b1b776543afc80a018337945065e8dc1f0bcc408
|
Binary file not shown.
|
@ -29,7 +29,7 @@
|
|||
|
||||
|
||||
/* eslint-disable quotes, comma-spacing */
|
||||
var PrecacheConfig = [["/","c92b07b3335c166ffcc72a2da1d36909"],["/devEvent","c92b07b3335c166ffcc72a2da1d36909"],["/devInfo","c92b07b3335c166ffcc72a2da1d36909"],["/devService","c92b07b3335c166ffcc72a2da1d36909"],["/devState","c92b07b3335c166ffcc72a2da1d36909"],["/devTemplate","c92b07b3335c166ffcc72a2da1d36909"],["/history","c92b07b3335c166ffcc72a2da1d36909"],["/logbook","c92b07b3335c166ffcc72a2da1d36909"],["/map","c92b07b3335c166ffcc72a2da1d36909"],["/states","c92b07b3335c166ffcc72a2da1d36909"],["/static/core-190f3331fdbf7118e11c4ae1de3c197a.js","a881d94e39b965460813e25368fa8452"],["/static/frontend-a3bdf93df6b926a99bb427f8af684541.html","d00203ab83ec4b7c07b8d8c91b71b0d5"],["/static/mdi-758957b7ea989d6beca60e218ea7f7dd.html","4c32b01a3a5b194630963ff7ec4df36f"],["/static/partial-map-248e12589e3e3d10357adb46b1797ff3.html","cb27761f19029e2b26941d9e499696ca"],["static/favicon-192x192.png","419903b8422586a7e28021bbe9011175"],["static/fonts/roboto/Roboto-Bold.ttf","d329cc8b34667f114a95422aaad1b063"],["static/fonts/roboto/Roboto-Light.ttf","7b5fb88f12bec8143f00e21bc3222124"],["static/fonts/roboto/Roboto-Medium.ttf","fe13e4170719c2fc586501e777bde143"],["static/fonts/roboto/Roboto-Regular.ttf","ac3f799d5bbaf5196fab15ab8de8431c"],["static/images/card_media_player_bg.png","a34281d1c1835d338a642e90930e61aa"],["static/webcomponents-lite.min.js","b0f32ad3c7749c40d486603f31c9d8b1"]];
|
||||
var PrecacheConfig = [["/","922446b01a9c1e381acaeb3f04048330"],["/devEvent","922446b01a9c1e381acaeb3f04048330"],["/devInfo","922446b01a9c1e381acaeb3f04048330"],["/devService","922446b01a9c1e381acaeb3f04048330"],["/devState","922446b01a9c1e381acaeb3f04048330"],["/devTemplate","922446b01a9c1e381acaeb3f04048330"],["/history","922446b01a9c1e381acaeb3f04048330"],["/logbook","922446b01a9c1e381acaeb3f04048330"],["/map","922446b01a9c1e381acaeb3f04048330"],["/states","922446b01a9c1e381acaeb3f04048330"],["/static/core-c29efd019c0137142f894517c14395fa.js","2ea2ea4ce341279c9296893846094519"],["/static/dev-tools-be59c11285ab5dfe04d4d206706e51fa.html","ce3335fd8e5a67b8a69703b760b1fd9b"],["/static/frontend-0f88d61182d79e446d7aef8637232c3c.html","fca0cc2792cbb33fe682987576054fc9"],["/static/mdi-758957b7ea989d6beca60e218ea7f7dd.html","4c32b01a3a5b194630963ff7ec4df36f"],["/static/partial-map-248e12589e3e3d10357adb46b1797ff3.html","cb27761f19029e2b26941d9e499696ca"],["static/favicon-192x192.png","419903b8422586a7e28021bbe9011175"],["static/fonts/roboto/Roboto-Bold.ttf","d329cc8b34667f114a95422aaad1b063"],["static/fonts/roboto/Roboto-Light.ttf","7b5fb88f12bec8143f00e21bc3222124"],["static/fonts/roboto/Roboto-Medium.ttf","fe13e4170719c2fc586501e777bde143"],["static/fonts/roboto/Roboto-Regular.ttf","ac3f799d5bbaf5196fab15ab8de8431c"],["static/images/card_media_player_bg.png","a34281d1c1835d338a642e90930e61aa"],["static/webcomponents-lite.min.js","b0f32ad3c7749c40d486603f31c9d8b1"]];
|
||||
/* eslint-enable quotes, comma-spacing */
|
||||
var CacheNamePrefix = 'sw-precache-v1--' + (self.registration ? self.registration.scope : '') + '-';
|
||||
|
||||
|
|
Binary file not shown.
|
@ -12,6 +12,8 @@ cp build/frontend.html ..
|
|||
gzip build/frontend.html -c -k -9 > ../frontend.html.gz
|
||||
cp build/partial-map.html ..
|
||||
gzip build/partial-map.html -c -k -9 > ../partial-map.html.gz
|
||||
cp build/dev-tools.html ..
|
||||
gzip build/dev-tools.html -c -k -9 > ../dev-tools.html.gz
|
||||
cp build/_core_compiled.js ../core.js
|
||||
gzip build/_core_compiled.js -c -k -9 > ../core.js.gz
|
||||
|
||||
|
@ -26,10 +28,12 @@ if [ $(command -v md5) ]; then
|
|||
echo 'CORE = "'`md5 -q www_static/core.js`'"' >> version.py
|
||||
echo 'UI = "'`md5 -q www_static/frontend.html`'"' >> version.py
|
||||
echo 'MAP = "'`md5 -q www_static/partial-map.html`'"' >> version.py
|
||||
echo 'DEV = "'`md5 -q www_static/dev-tools.html`'"' >> version.py
|
||||
elif [ $(command -v md5sum) ]; then
|
||||
echo 'CORE = "'`md5sum www_static/core.js | cut -c-32`'"' >> version.py
|
||||
echo 'UI = "'`md5sum www_static/frontend.html | cut -c-32`'"' >> version.py
|
||||
echo 'MAP = "'`md5sum www_static/partial-map.html | cut -c-32`'"' >> version.py
|
||||
echo 'DEV = "'`md5sum www_static/dev-tools.html | cut -c-32`'"' >> version.py
|
||||
else
|
||||
echo 'Could not find an MD5 utility'
|
||||
fi
|
||||
|
|
Loading…
Add table
Reference in a new issue