Add build using polymer-build (#344)
* Add build using polymer-build * Use bundle strategies to tweak stripExcludes * Only vulcanize hass.io panel * Rename hassio panel generate script * Remove hydrolysis * Get it all somewhat working * Fixes * Allow ES2015 + fix minify JS * Clarify we need to fix service worker minify * Move service worker template out of tasks folder * Fix broken CSS * Wrap it up * Fix maps
This commit is contained in:
@@ -1,13 +0,0 @@
|
||||
Host:
|
||||
- Use feature detection
|
||||
|
||||
Supervisor:
|
||||
- logs
|
||||
- toggle beta channel (/options)
|
||||
|
||||
Network:
|
||||
- show
|
||||
- update
|
||||
|
||||
Home Assistant:
|
||||
- Logs
|
||||
@@ -8,13 +8,12 @@
|
||||
<link rel="import" href="./ha-entity-marker.html">
|
||||
|
||||
<dom-module id="ha-panel-map">
|
||||
<!-- this is somehow magically working with bundling, leave it for now -->
|
||||
<link
|
||||
rel="stylesheet"
|
||||
href="../../bower_components/leaflet/dist/leaflet.css"
|
||||
/>
|
||||
<template>
|
||||
<link
|
||||
id='stylesheet'
|
||||
rel="stylesheet"
|
||||
href="../../bower_components/leaflet/dist/leaflet.css"
|
||||
/>
|
||||
|
||||
<style include="ha-style">
|
||||
#map {
|
||||
height: calc(100% - 64px);
|
||||
@@ -58,7 +57,11 @@ Polymer({
|
||||
// The link tag is resolved relative to the _current_ url instead of the
|
||||
// source HTML file. Vulcanized this is taken care off. Fix it in dev.
|
||||
if (window.HASS_DEV) {
|
||||
this.$.stylesheet.href = '/static/home-assistant-polymer/bower_components/leaflet/dist/leaflet.css';
|
||||
var style = document.createElement('link');
|
||||
style.setAttribute(
|
||||
'href', '/static/home-assistant-polymer/bower_components/leaflet/dist/leaflet.css');
|
||||
style.setAttribute('rel', 'stylesheet');
|
||||
this.shadowRoot.appendChild(style);
|
||||
}
|
||||
var map = this._map = window.L.map(this.$.map);
|
||||
map.setView([51.505, -0.09], 13);
|
||||
|
||||
Reference in New Issue
Block a user