Commit Graph
87 Commits
Author SHA1 Message Date
Andrey b7d2b2fcfd Remove src/translations/ from polymer build (only used in gulp). Remove unused zwave-node-options.html (#613) 2017-11-11 13:07:22 -08:00
Andrey adac8e55d7 Updates packages and clean gulp/ JS (#610) 2017-11-11 11:32:22 -08:00
Andrey 152df2297a Change serving of JS-version dependent files to frontend_es5 and frontend_latest (#608) 2017-11-10 21:44:03 -08:00
Andrey 583abedd34 Support serving ES6 JS to clients (#596)
* Support serving ES6 JS to clients

* Make es6 default dir and es5 a special dir

* Fix package building

* Fix build_frontend script
2017-11-10 09:05:37 -08:00
Andrey 798a2bbd34 Merge pull request #566 from andrey-git/caching
Fix rules for SW runtime file caching.
2017-11-05 21:57:54 +02:00
Andrey 0dc3bc7926 Update gen-service-worker.js 2017-11-05 21:51:30 +02:00
andrey-git 3025b6049f Update rules 2017-11-05 20:59:46 +02:00
andrey-git db9dc653e0 Remove stale comment 2017-11-05 19:55:55 +02:00
andrey-git 2596d2ba52 Change networkFirst to networkOnly 2017-11-05 19:38:39 +02:00
andrey-git 904c3db3ea Fix rules for SW file caching. 2017-11-05 19:26:27 +02:00
Andrey c3a6495eb1 Don't load mdi icons with JS - it doesn't do anything. (#546) 2017-11-03 20:36:00 -07:00
Andrey d2e9918f88 Allow passive events (#551) 2017-11-02 20:54:41 -07:00
Andrey f08c45f5b4 Merge pull request #547 from andrey-git/sw
Make / and other fallback paths runtime cachable instead of pre-cached.
2017-11-02 08:59:15 +02:00
andrey-git 085f46b753 Make / and other fallback paths runtime cachable instead of pre-cached. 2017-11-02 00:23:25 +02:00
Andrey 3e86ba1222 Use dynamic-align on all dropdowns (#542)
* Use dynamic-align on all dropdowns

* Replace tab with spaces
2017-10-30 17:48:30 -07:00
Andrey 7479aeceee Merge pull request #532 from andrey-git/translations
Make translation utils properly handle null selected language.
2017-10-30 19:24:05 +02:00
andrey-git 386193ee44 Fall back to english on missing fingerprint. 2017-10-30 19:03:38 +02:00
andrey-git e9d84d2a69 Only parse JSON once 2017-10-28 11:55:30 +03:00
Andrey 7e40cfef09 Fix languages and themes top selection being cut off (#531) 2017-10-27 22:12:16 -07:00
Andrey 17402a1976 Turn ha-cards.html into ES6 class (#533) 2017-10-27 22:05:08 -07:00
andrey-git 1a7fa6041e Revert "Fix languages and themes top selection being cut off"
This reverts commit 70544f51ed.
2017-10-27 23:26:12 +03:00
andrey-git 794c82b8ba Make translation utils properly handle null selected language. 2017-10-27 23:24:55 +03:00
andrey-git 70544f51ed Fix languages and themes top selection being cut off 2017-10-27 23:07:24 +03:00
Andrey 7bd7f14913 Call build from bootstrap. Allow nonfingerprinted mdi. (#476) 2017-10-26 20:26:38 -07:00
Andrey ed233364ec Fix media player card (#471) 2017-10-20 09:03:29 -07:00
Andrey bc0d44ca81 Upgrade eslint to 4.8.0 (#445)
* Upgrade eslint

* Fix post-merge errors
2017-10-08 21:08:06 -07:00
Andrey 29acf77eb5 Upgrade packages (#444) 2017-10-05 21:22:41 -07:00
Andrey b0791abb9a Add support for history_graph component (#432)
* Add support for history_graph component

* Change dev 3s to intended 60s

* Address comments

* Make card header consistent
2017-10-05 09:15:17 -07:00
Andrey acf853f713 Change color of state-badge icon according to rgb or brightness (#436)
* Change color of state-badge icon according to rgb or brightness

* Remove unneeded edit

* Set minimum brightness at 15%. Clear previous timeout
2017-09-26 22:48:12 -07:00
Andrey a46e6b4cfa Switch ha-label-badge to Polymer2 class and add two css variables (#430) 2017-09-21 15:58:21 -07:00
Andrey 73289bca6d Fix customize config panel on FF (#425) 2017-09-11 20:12:40 -07:00
Andrey 4e4b59d3d4 Fix icon mdi: prefix to use auto-validate. (#423) 2017-09-09 19:47:26 -07:00
Andrey 684ac8fe69 Fix boolean config value not propagating (#421) 2017-09-09 10:33:15 -07:00
Andrey 047c0005d9 Customize config improvements (#417)
* Switch customize panel to dom-if

* Customize config improvements
2017-09-04 07:55:04 -07:00
Andrey 5bdbc49dc2 Improvements for customize config panel (#415)
* Don't save empty json values. Allow per-domain attributes.

* Fix typo
2017-08-29 09:44:05 -07:00
Andrey 206f624fb6 No longer fetch customui element (#414) 2017-08-29 00:07:56 -07:00
Andrey 0508a6bf2e Add customization config panel (#413) 2017-08-28 08:04:21 -07:00
Andrey b211894a31 Improvements for zwave group config (#398)
* Improvements for zwave group config

* Apply ha-config-section
2017-08-26 09:58:50 -07:00
Andrey 4755b0438c Make sure graphs extend till the intended end time (#378) 2017-08-06 09:31:07 -07:00
Andrey f57e2334c8 Polymer2 fixes (#376)
* Set all attributes together.

* Revert "Set all attributes together."

This reverts commit 00fe75ce4b78c17481bac45db0536169695f1f91.

* Set all attributes together.

* Workaround for justified on Polymer2
2017-08-05 14:02:49 -07:00
Andrey ebc0c776e2 Add theme-choosing UI to config panel (#363)
* Add theme-choosing UI to config panel

* Add Backend-selected option

* Use Object.assign to change hass

* Fix #368 - support theme-color update.
2017-08-04 23:09:25 -07:00
Andrey 7c489e69bb Make tests pass (#374)
* wct misbehaves on hyphen casing on FF

* Upgrade web-component-tester to 6.0.0

* Update some bower packages to prevent conflicts

* Pin webcomponentsjs to 1.0.4
2017-08-04 22:56:52 -07:00
Andrey b57c86a29c Add JS support for device-local theme name (#358)
* Add JS support for device-local theme name

* Keep themes in hass object

* Make it actually work

* Move themes from home-assistant-main to home-assistant
2017-07-29 10:31:51 -07:00
Andrey 9fafdd4525 Allow customUI on 'unavailable' state too. (#357) 2017-07-25 20:58:32 -07:00
Andrey 8bd0ab22f5 Move hidden attributes to hassUtil (#351)
* Move hidden attributes to hassUtil so they are acessible by custom components.

* Rename to LOGIC_STATE_ATTRIBUTES
2017-07-24 07:58:12 -07:00
Andrey 2ea5cbcc88 Fix history showing extra points. (#350) 2017-07-23 23:22:55 -07:00
Andrey 4c14e51079 Properly sort config entities (#353) 2017-07-23 23:18:30 -07:00
Andrey 6c45c5554a Move ha styles from html to body (#354) 2017-07-23 23:18:15 -07:00
Andrey acd708b057 Sort zwave nodes by name (#341) 2017-07-16 07:58:09 -07:00
Andrey 6ba8338e18 Disable sidebar swipe in kiosk mode (#338)
* Disable sidebar swipe in kiosk mode

* Generalize disableSwipe

* Wrap in iife
2017-07-16 07:52:34 -07:00
Andrey 7c079dc01f Initial themes support (#331)
* Initial themes support

* Fix after merge

* Now UI autoresponds to backend theme change

* Move style udating logic to hass-util

* Revert unneeded change

* Switch to ES5 syntax
2017-07-13 09:10:59 -07:00
Andrey b08170e7ff Add support for kiosk mode (#332)
* Add support for kiosk mode

* Implement kiosk mode as a panel
2017-07-13 09:10:30 -07:00
Andrey 12e3afb7b7 Fixes for dev-service panel (#337) 2017-07-13 09:09:26 -07:00
Andrey 6e30534e2d Fold binary_sensor state card into common code (#322)
* Fold binary_sensor state card into common code

* Check device_class per domain
2017-07-03 06:42:55 -07:00
Andrey bac1142bc6 Update iron-resizable-behavior to 2.0.1 (#321) 2017-07-02 11:00:18 -07:00
Andrey 70da89ae73 Add service descriptions in zwave panel (#306)
* Add support for service descriptions in call buttons. Use it in Zwave panel.

* Hide descriptions behind a tap on questionmark

* Sort nodes by name and not entity_id
2017-06-18 10:59:55 -07:00
Andrey 6a864106e0 Allow controlling badge margin via mixin (#289)
* Allow controlling badge margin via mixin

* Move margin-bottom from ha-label-badge to ha-badges-card
2017-06-08 20:22:12 -07:00
Andrey d1d412c69f Fix default_view icon title. (#290) 2017-05-22 10:38:47 -07:00
Andrey c0f119c853 Fix history timeline legend selection. (#276) 2017-05-09 22:49:01 -07:00
Andrey 928be4eed5 Allow climate platforms to specify temperature step (#270)
* Allow climate platforms to specify temperature step

* Update more-info-climate.html
2017-04-30 11:46:35 -07:00
Andrey 1ef050e76d Fix climate more-info aux toggle. (#265) 2017-04-23 16:15:39 -07:00
Andrey b66399c1f7 Use dead and sleep zwave icons (#257)
* Use dead and sleep zwave icons

* Use mdi:nfc as default zwave icon
2017-04-16 15:24:51 -07:00
Andrey 84c297ae71 Fix history panel (#259) 2017-04-16 15:24:28 -07:00
Andrey 1530c0c386 Allow custom 2nd line in state-info (#253)
* Allow custom 2nd line in state-info

* add tests for new functionality
2017-04-09 10:25:00 -07:00
Andrey 35c086a594 More tests for state-info.html (#256)
* Remove andrey-git keys. Add Android 7.0 emulator

* Use Chrome on Android 7.0

* Try a test that should fail on shadow dom.

* Change test

* try lightOrShadow

* More tests
2017-04-08 06:05:13 -07:00
Andrey 57512211d7 Add web-component-tester tests (#255)
* Use travis.yml from polymer

* Update .travis.yml

* Try wct tests

* Encrypt Sauce env

* More test config

* Update2

* try to remove souce_connect

* Try another config

* More browsers

* Clean tabs, test shadow dom.
2017-04-03 22:51:20 -07:00
Andrey e4fe4ec812 Treat default_view as special only with view:true (#251) 2017-04-02 17:38:50 -07:00
Andrey 9aa188079e upgrade paper-slider and remove min-max hack (#252) 2017-04-02 17:37:39 -07:00
Andrey 91049e8ed6 Don't propagate event from cover controls. (#248) 2017-03-29 00:17:03 -04:00
Andrey 16f0775af5 Allow using icon/name for default_view. Add hover-title whn using an icon. (#244) 2017-03-24 09:09:07 -07:00
Andrey cd9d52caec Allow badge size control via variables. (#246) 2017-03-23 23:44:08 -07:00
Andrey 58673280be Allow empty state name. (#247) 2017-03-23 23:39:57 -07:00
Andrey 215217f652 On Safari 10 constructor check is broken (#237)
* On Safari 10 constructor check is broken.

* Move useragent check

* Make custom element load unconditionally

* Update state-card-content.html
2017-03-14 21:57:11 -07:00
Andrey bdbeb1ca39 Refactor cover controls into a separate component. (#233)
* Refactor cover controls into a separate component.

* Remove extra include

* Remove unneeded css rules
2017-03-06 20:01:15 -08:00
Andrey 31b87075f9 Use friendly names in turned_on/turned_off notifications. (#224)
* Use friendly names in turned_on/turned_off notifications.

* Use el variable instead of binding this

* Use computeStateName
2017-03-02 20:00:43 -08:00
Andrey 354423387e Remember service data per service and not globally. (#226) 2017-03-01 23:28:52 -08:00
Andrey 2f640d9075 Allow line charts in more-info to be interactive. (#216) 2017-02-19 14:27:05 -08:00
Andrey f396c9acde Support multi-day history charts (#207)
* Support multi-day history charts

* Fix lint

* Reduce the periods to 1/3/7 days.

* Switch to end_time param instead of days

* Move async waiting from history-data to panel-history
2017-02-14 21:34:30 -08:00
Andrey 7c9c03a087 Make media_player hide image it can't load. (#208)
* Make media_player hide image it can't load.

* Add timeout for background image loading.
2017-02-13 22:07:56 -08:00
Andrey 05760f9c21 pretty-print object attributes in dev-state panel. (#195) 2017-02-07 11:51:51 -08:00
andrey-git 26c7cc38ca Allow using custom state cards. (#175)
* Allow using custom state cards from www/

* Use importHref

* Check if element loaded before loading it again dynamically.

* load custom_ui according to data provided at bootstrap via Nuclear

* Switch card custom UI to using local www path.

* Switch custom UI to use /local/ path
2017-02-01 00:20:57 -08:00
andrey-git f55154ddea fix input_slider with min>100 (#189)
* fix input_slider with min>100

* Don't update max twice

* Update state-card-input_slider.html

* Update state-card-input_slider.html
2017-02-01 00:17:05 -08:00
andrey-git 5159326a7b Show attribute in more-info of light and lock. (#179)
* Show attribute in more-info of light and lock.

* Use <ha-attributes> in weather card

* Inline functions from hass-util

Inline functions from hass-util now  that ha-attributes is the only user.

* Inline functions from hass-util

* Weathrer's FILTER_KEYS is no longer needed.

* Cache csv split
2017-01-25 09:30:02 -08:00
andrey-git c7d44320d5 Allow cleanup on closing more-info (#165)
* Remove camera's streaming source from camera's 'more info' when more-info is closed.

* Rename to isVisible

* Rename to isVisible

* Split dynamicContentUpdater

Split dynamicContentUpdater into two functions intended for 'normal' flow and 'hide' flow.

* Use hassUtil.resetDynamicContent

* Fix lint

* Fix lint

* Move isVisible to more-info-content

* Move isVisible to more-info-content

* Typo

* Avoid modifying the original state

* Put isVisible in the right place

* Inline resetDynamicContent

* Inline resetDynamicContent

* Fix lint
2017-01-09 01:35:21 +01:00
andrey-git aeb82117eb Change toggle touch target size to 48x48 by adding padding and compensating for it with margin. (#172) 2017-01-07 00:01:51 +01:00
andrey-git 029ed86395 Always show the brightness slider in more-info (#168)
* Always show the brightness slider in more-info

Always show the brightness slider in more-info if it is supported.
Even when the light is currently off.

* Lint fix

* Set brightness to 0 when light is off
2017-01-05 22:26:39 +01:00
andrey-git 04b510e4b5 Fix lint warnings. (#166) 2016-12-27 21:27:53 +01:00