Commit Graph

480 Commits (Rename-supervisor-entry)

Author SHA1 Message Date
Bram Kragten 3254478d05 Remove wct-browser-legacy (#3686) 2019-09-11 12:46:57 -06:00
Paulus Schoutsen 4aeca70f49
Upgrade HAWS to 4.4.0 (#3682) 2019-09-10 21:27:44 -07:00
Paulus Schoutsen abc849f623
Remove Polymer CLI (#3681) 2019-09-10 13:08:21 -07:00
Bram Kragten e6671299fe
Filter html from translations (#3665)
* Filter html from translations

* Error when html found
2019-09-10 20:18:57 +02:00
Bram Kragten 8c5beb0042
Replace paper-fab with ha-fab (#3678)
* Replace paper-fab with ha-fab

...which is based on mwc-fab

* comment
2019-09-10 20:17:11 +02:00
Paulus Schoutsen 594ee7ce9b Update build scripts 2019-09-08 23:39:37 -07:00
Paulus Schoutsen 7f10bcbfd1 Drop Babel 2019-09-08 23:39:22 -07:00
Paulus Schoutsen fe31f532b6
Update ESLint (#3664) 2019-09-08 23:38:58 -07:00
Bram Kragten 7e7158b816 Pick unused entities for lovelace cards (#3614)
* Pick unused entities for lovelace cards

* Type

* Table layout for unused entities

* properties

* remove unused import

* mwc-button

Need to find a way to set the color

* add icons to pick view dialog

* Comments

* Lint

* Restore unused entities for yaml mode

* Remove _elements

* decorators, types, comments

* flexbox + comments

* remove unused import
2019-09-08 13:43:28 -07:00
dependabot[bot] e19c210af2 Bump jquery from 3.3.1 to 3.4.0 (#3652)
Bumps [jquery](https://github.com/jquery/jquery) from 3.3.1 to 3.4.0.
- [Release notes](https://github.com/jquery/jquery/releases)
- [Commits](https://github.com/jquery/jquery/compare/3.3.1...3.4.0)

Signed-off-by: dependabot[bot] <support@github.com>
2019-09-08 11:58:11 -07:00
dependabot[bot] 205e12150f Bump lodash.template from 4.4.0 to 4.5.0 (#3653)
Bumps [lodash.template](https://github.com/lodash/lodash) from 4.4.0 to 4.5.0.
- [Release notes](https://github.com/lodash/lodash/releases)
- [Commits](https://github.com/lodash/lodash/compare/4.4.0...4.5.0)

Signed-off-by: dependabot[bot] <support@github.com>
2019-09-08 11:55:03 -07:00
Paulus Schoutsen 11ac8e4b08
Convert preact to tsx (#3643) 2019-09-08 11:54:17 -07:00
Thomas Lovén cdfc3f8faf Use new round sliders for light card (#3634)
* Use new round sliders for light card

* Remove _roundSliderstyle
2019-09-08 11:47:36 -07:00
dependabot[bot] 535308bf96 Bump js-yaml from 3.13.0 to 3.13.1 (#3649)
Bumps [js-yaml](https://github.com/nodeca/js-yaml) from 3.13.0 to 3.13.1.
- [Release notes](https://github.com/nodeca/js-yaml/releases)
- [Changelog](https://github.com/nodeca/js-yaml/blob/master/CHANGELOG.md)
- [Commits](https://github.com/nodeca/js-yaml/compare/3.13.0...3.13.1)

Signed-off-by: dependabot[bot] <support@github.com>
2019-09-08 11:44:27 -07:00
Mauricio Bonani b473c9c2aa Upgrade MDI icons to 4.3.95 (#3639)
* Upgrade MDI icons to 4.3.95

* Upgrade MDI icons to 4.3.95
2019-09-06 14:37:51 -05:00
Bram Kragten 1bc2e6fc17 Use tslib and importHelpers (#3559) 2019-09-01 22:00:32 -07:00
Mauricio Bonani 15a88385c2 Upgrade MDI icons to 4.2.95 (#3533)
* Upgrade MDI icons to 4.2.95

* Upgrade MDI icons to 4.2.95
2019-08-28 13:42:18 -07:00
Paulus Schoutsen cdcafe9e6f
Run markdown in web worker (#3524)
* Run markdown in web worker

* Set global object
2019-08-24 12:48:57 -07:00
Paulus Schoutsen a66960fa00 Add context to comment 2019-08-24 12:42:38 -07:00
Paulus Schoutsen 512b76f450 Update MDI 2019-08-21 14:12:43 -07:00
Mauricio Bonani 07b8518162 Upgrade MDI icons to 4.0.96 (#3490)
* Upgrade MDI icons to 4.0.96

* Upgrade MDI icons to 4.0.96
2019-08-15 08:45:35 -07:00
Paulus Schoutsen b3525abf21
Upgrade lit-html (#3485) 2019-08-15 08:45:17 -07:00
Paulus Schoutsen 8533f9372f Upgrade MDI icons to 3.9.97 2019-08-09 11:40:23 -07:00
Paulus Schoutsen 2da844a1fb Home Assistant Cast 2019-08-04 22:25:43 -07:00
Paulus Schoutsen 6abbe72e4d
Lovelace cleanups (#3427)
* Improvements

* Add types CAF

* Fix demo switching

* Do not set background color in hui-view
2019-07-26 11:06:16 -07:00
Mauricio Bonani 266c80320b Upgrade mdi to 3.7.95 (#3299)
* Update yarn.lock

* Update package.json
2019-06-22 18:18:28 -07:00
Paulus Schoutsen ae51300446
Revert Polymer to 3.1 (#3297)
* Revert Polymer to 3.1

* Only install 1 polymer
2019-06-22 12:36:30 -07:00
Paulus Schoutsen 98c419ff03
Switch to woff2 fonts (#3296) 2019-06-21 12:48:20 -07:00
Mauricio Bonani 7002ab27c0 Upgrade mdi to 3.6.95 (#3291)
* Update package.json

* Update yarn.lock
2019-06-20 14:45:43 -07:00
Paulus Schoutsen 1b441a752e
Manage Alexa entities (#3269)
* Reorg cloud components

* Allow managing Alexa entities in the UI

* Use observer

* Update mwc version

* Tweak some UI
2019-06-13 11:57:56 -07:00
Paulus Schoutsen 7b0fb949fd
Upgrade some deps (#3266)
* Upgrade some deps

* Fix linting
2019-06-12 17:29:16 -07:00
Paulus Schoutsen 575eb22608
Add UI to set/update core config (#3208)
* Add UI to set/update core config

* Types

* Disable editor in config.yaml mode

* Fix type
2019-05-21 20:12:07 -07:00
Timmo a89f0bd1cd Add Search to Hassio add-on store (#3108)
*  Add search to hassio add-ons

* 👕 Fix linter error

* 👕 Lint fixes

* 🔥 Remove search from dashboard for this PR

* 🔥 Remove search from dasboard in this PR

* 🔨 Suggested changes

* 🔨 Change to fireEvent

* 🔨 Convert definition

* 🔥 Fix imports

* 🔥 Revert styling test

* 🔨 Fix search

* 🔨 CSS fix

* 🔨 Add smaller message to show no results found in repo

* 🔨 Fixes

* 🔨 CSS fixes

* 🔨 Add types

* 🎨 Max width

* 🔨 Fix margin jump

* 🔨 Add working memoizeOne

* 👕 Fix linting / error on build
2019-05-12 11:13:16 +02:00
Paulus Schoutsen 32e68c1a4b
Use areas when generating Lovelace config (#3175)
* Use areas when generating Lovelace config

* Add missing return type
2019-05-08 16:34:53 -07:00
Paulus Schoutsen 82e8ca2754
Alow setting up integrations during onboarding (#3163)
* Allow setting up integrations during onboarding

* Fix compress static

* Don't compress static files in CI

* Remove unused file

* Fix static compress disabled in CI build

* Work with new integration step

* Import fix

* Lint

* Upgrade HAWS to 4.1.1
2019-05-07 22:27:10 -07:00
Paulus Schoutsen 6c41c7b1ab
Gulpify build pipeline (#3145)
* Gulpify build pipeline

* Update build frontend script

* Fixes

* Limit service worker to latest build

* Use shorthand

* Fix hassio build
2019-05-02 11:35:46 -07:00
Paulus Schoutsen 81b232f01e Stop experimenting in dev for hassio 2019-04-09 14:26:18 -07:00
Paulus Schoutsen 3e6be45f1f Revert webpack upgrade for hassio fix? 2019-04-09 13:58:48 -07:00
Paulus Schoutsen be6d89bb7a
Revert a tsconfig change (#3075) 2019-04-08 17:08:59 -07:00
Paulus Schoutsen 8c222bb467
Remove unnecessary resolutions (#3056)
* Remove vaadin-lumo-styles resolution

* Remove iron-overlay-behavior resolution

* Remove polymer and shadycss resolutions

* Add lumo-styles back to resolution
2019-04-03 23:07:35 -07:00
Paulus Schoutsen 3947adbab4
Upgrade workbox to v4 (#3053)
* Upgrade workbox to v4

* Update dmeo config
2019-04-02 15:38:14 -07:00
Paulus Schoutsen 0c406335f5
Upgrade deps (#3038)
* Upgrade deps

* Revert workbox back to 3

* Fix var name
2019-04-02 12:14:10 -07:00
Paulus Schoutsen 22e5792a8f
Upgrade mwc (#3031) 2019-03-27 21:24:46 -07:00
yosilevy b3f9432ae1 Tab fix in yaml-editor edit card (#3008)
* Fixed tabs not working in yaml editor in edit card

* Improved docs

* Fixed comments

* Added dependencies

* Added typescript mapping

* Fixed data type issue + removed depednency since it breaks the UI. Non final.

* Added iron-overlay-behavior package

* Added dependency

* Update iron-overlay-behavior

* Lint
2019-03-27 21:10:07 -07:00
Ian Richardson 9a4215b5d5 Upgrade mdi to 3.5.92 (#3007) 2019-03-26 14:59:37 -07:00
Paulus Schoutsen ef18f9eac9
Upgrade lit element to 2.1.0 (#2990)
* UPgrade lit element

* Fix yarn resolving

* Upgrade mwc
2019-03-21 14:56:57 -07:00
Paulus Schoutsen 1d1c981601
Upgrade HAWS" (#2967) 2019-03-18 19:42:38 -07:00
Paulus Schoutsen 19804a713d
Stream HLS (#2913)
* Stream HLS

* Lint
2019-03-11 22:40:41 -07:00
Paulus Schoutsen 1c6bf8b94a
Upgrade home-assistant-js-websocket to 3.3.0 (#2887) 2019-03-06 09:52:28 -08:00
Paulus Schoutsen 1c6235546a
Swap out babel-minify for terser (#2885) 2019-03-05 13:10:35 -08:00
Paulus Schoutsen 90a1f7e51c
Convert map card to Lit/TS (#2826)
* Convert map card to Lit/TS

* Address comments
2019-02-25 11:10:22 -08:00
Paulus Schoutsen 1b8c567fd7
Use mwc-button instead of paper-button (#2744)
* Convert from paper-button to mwc-button

* Fixes

* Bye paper-button

* Fixes

* Final fixes

* Fix rebase conversion
2019-02-12 23:08:29 -08:00
Paulus Schoutsen abbfea0b6a
Person: Pick device tracker (#2726)
* Allow picking devices to track

* Tweak translation

* Update translation
2019-02-12 11:52:30 -08:00
Paulus Schoutsen 039bc587cc
Add decorators (#2711)
* Add decorators

* Lint
2019-02-09 10:47:39 -08:00
Paulus Schoutsen 7773589e2c
Update Lit (#2692) 2019-02-06 10:59:47 -08:00
Paulus Schoutsen 4921686bdf
Hash translation files (#2652)
* Hash translation files

* Fix rebuild while develop runs
2019-02-02 09:42:22 -08:00
Bram Kragten d76ffd343e Rename to hui-yaml-editor 2019-01-28 20:41:09 +01:00
Bram Kragten 7a8c9d7c12 Add code editor to YAML editor 2019-01-28 16:03:21 +01:00
Paulus Schoutsen c20fae289c
Update fecha (#2579) 2019-01-26 20:24:24 -08:00
Paulus Schoutsen 8db111c2fb
Update lint tools (#2576)
* Update lint

* Prettier Hass.io

* Update prettier
2019-01-26 19:34:07 -08:00
Paulus Schoutsen 1ffeace8f9
Upgrade build tools (#2575)
* Upgrade webpack

* Upgrade babel

* Upgrade build tools

* Add missing dependency
2019-01-26 15:05:01 -08:00
Paulus Schoutsen 85e900bf68
Update marked to 0.6.0 (#2574) 2019-01-26 15:04:21 -08:00
Paulus Schoutsen 6f9b7a1f60
Update lit-element to rc5 (#2572) 2019-01-26 15:02:50 -08:00
Paulus Schoutsen 3ba9189612
Upgrade Lit Element to RC3 (#2504) 2019-01-18 21:24:51 -08:00
Bram Kragten 3263d84def Deep clone config (#2496) 2019-01-17 11:07:05 -08:00
Paulus Schoutsen b0d32b5674
upgrade lit (#2458)
* upgrade lit

* Lint
2019-01-12 23:32:53 -08:00
Paulus Schoutsen 023d8ad893
Upgrade deps (#2156)
* Update TypeScript

* Update webcomponentsjs and shadycss

* Upgrade vaadin
2018-11-30 13:45:50 +01:00
Bram Kragten 90cea56a1e
Check if config is compatible with UI editor (#2137)
* Check config on loading UI editor

* Clean up

* Add theme and reload editor on reopen

* Reload config element on card type change

* Clean

* Clean

* Add superstruct for config validation

* Take content logic out off return edit-card

* Reverse  logic to prevent unnecessary yaml load
2018-11-29 15:00:30 +01:00
Paulus Schoutsen c20a285003
Pin Lit-HTML and Lit-Element (#2070) 2018-11-20 13:01:21 +01:00
Paulus Schoutsen 1f0c7297ce
Upgrade Lit (#2032) 2018-11-10 20:36:25 +01:00
Paulus Schoutsen a26a37233b Use non-forked version of fecha 2018-11-07 10:48:49 +01:00
Paulus Schoutsen 92af45d7fd Lint 2018-11-06 11:51:33 +01:00
Paulus Schoutsen cdb2093ea6
Ts all the tests (#1998)
* Convert tests to TypeScript

* Add types for tests

* Rename files to TS

* Fix up test imports

* Fix TSC errors

* Liiiint

* Add types to util method signatures

* Some more types
2018-11-06 10:09:09 +01:00
Paulus Schoutsen 1ca242405b
Convert auth to TS (#1976)
* Convert auth to TS

* Lint

* Update HA-JS-WS to 3.2.0

* Migrate ws collections to TS

* Upgrade to latest HAWS

* Bump HAWS

* Lint

* Add types to WS calls
2018-11-04 10:01:33 +01:00
Paulus Schoutsen de5f02d706
Update TypeScript to latest (#1924) 2018-10-30 11:05:56 +01:00
Paulus Schoutsen 6f7ddef4a4
Update mdi icons (#1922) 2018-10-30 11:04:25 +01:00
Paulus Schoutsen d78b5fac73
Update vaadin components (#1923) 2018-10-30 11:04:17 +01:00
Paulus Schoutsen 7cf65ba066
Update testing tools (#1925) 2018-10-30 11:04:06 +01:00
Paulus Schoutsen 91966f676a
Update polymer (#1921) 2018-10-30 09:25:04 +01:00
Paulus Schoutsen a4fa0ae64b
Handle no operation mode (#1901)
* Handle no operation mode

* Upgrade HAWS so we can use correct types

* Lint
2018-10-28 20:07:05 +01:00
Paulus Schoutsen 17b4f873e7
Enforce prettier for TypeScript (#1860) 2018-10-26 09:37:47 +02:00
Zack Arnett 741c0c08b9 Thermostat Card LoveLace (#1814)
* POC/WIP: Thermostat Card

* Fix jQuery imports

* Cleaning out testing code and working on reviews

* Colors Dynamic + mode dynamic

* Minor changes

* adding html prefix

* Dynamic Text size and colors - getting somwhere slowly.

* Review Changes - Working version (i think)

* Updating Gallery Entry

* Travies Review

* Remove provide plugin, move CSS to JS

* Add provideHass to demo

* Demo fixes

* tweak margins

* Travis changes

* Style Tweaks

* Update to client Width range
2018-10-26 09:30:58 +02:00
Thomas Lovén f146a1d80f
Lovelace: Allow press-and-hold on picture-elements elements. (#1745)
* Allow press-and-hold on picture-elements elements.
2018-10-17 22:16:17 +02:00
Paulus Schoutsen 1cfcacfa9a Update translations 2018-10-17 14:06:20 +02:00
Paulus Schoutsen e020fd1154
👋 decorators (#1790) 2018-10-17 13:58:24 +02:00
Paulus Schoutsen a7684d7206
Add some decorators (#1784)
* Add some decorators

* Disable sort keys

* Add babel plugins

* Update typescript to 7.1
2018-10-16 23:30:13 +02:00
Paulus Schoutsen e7a49192bd
Type check as part of lint (#1780)
* Type check as part of lint

* Lint

* Validate service exist for call-service action

* Fix for of
2018-10-16 17:21:05 +02:00
Paulus Schoutsen 97e1aae9c0
Introduce TypeScript (#1773) 2018-10-15 19:07:08 +02:00
Paulus Schoutsen 3949b47e51
Introduce object rest spread (#1763) 2018-10-14 19:03:25 +02:00
Paulus Schoutsen 3bcd0ddc46
Migrate Babel 6 -> 7 (#1762)
* Migrate Babel 6 -> 7

* Update babel-eslint
2018-10-13 11:25:03 +02:00
Paulus Schoutsen ca93c2cfcd Convert glance card to lit (#1760)
* Convert glance card to lit

* Guard for hass before config

* Lint

* better click listening

* Move config check

* Format HTML
2018-10-12 22:18:38 -07:00
Paulus Schoutsen 34bfc12647
Prettier 💎 (#1737)
* Add prettier

* Apply Prettier
2018-10-11 12:22:11 +02:00
Paulus Schoutsen af2cb1be1a
Update Lit to 0.6.2 (#1748) 2018-10-07 21:32:50 +02:00
Paulus Schoutsen 1b70b6e88c
Introduce Lit Element (#1738) 2018-10-07 11:07:02 +02:00
Paulus Schoutsen 3d8a8cc77b
Fix minifier (#1683) 2018-09-20 00:08:25 +02:00
Paulus Schoutsen 17ac6f96a0
Update deps (#1678)
* Update deps

* Lint

* Fix lint
2018-09-19 15:15:16 +02:00
Paulus Schoutsen c546d8787d
Add last used to token on profile page (#1659) 2018-09-12 13:12:26 +02:00
Paulus Schoutsen d729e3c567 Update HAWS to 3.1.2 2018-09-10 13:25:50 +02:00
Alessandro Staniscia d32d334a2e Review Docker management (#1113)
* Review Docker management ( linked with #934 )

*  fix comment by @balloob

* Explicit remove of  package-lock.json

* moved on feature branch, merge docker scripts, added documetation

* Used alphine as requested by @balloob on https://github.com/home-assistant/home-assistant-polymer/pull/947 and followed the @mcspr comment https://github.com/home-assistant/home-assistant-polymer/issues/934

* Remove package-lock from gitignore, we don't use npm

* Update for new build instructions
2018-09-10 11:58:18 +02:00
Paulus Schoutsen 0d7979a72f
Add revoke token to (external) auth (#1639)
* Add revoke token to external auth

* Lint

* Update to HAWS 3.1.1

* Fix constant
2018-09-07 20:37:06 +02:00
Paulus Schoutsen ae8724d699
Compress using zopfli (#1636) 2018-09-05 11:41:03 +02:00
Paulus Schoutsen 45cdb5a3e4
Use new version of HAWS (#1612)
* Use new version of HAWS

* Fix init page

* Lint

* Fix tests

* Update gitignore

* Clear old tokens, use new key to store
2018-08-31 09:45:58 +02:00
Paulus Schoutsen f443942e03
Authorize onboarding (#1603)
* Tweak onboarding + authorize

* Authorize/Onboarding pimp

* More tweaks

* Comments
2018-08-27 22:10:15 +02:00
Paulus Schoutsen f435c38aa5
Upgrade websocket lib to 2.1 (#1583) 2018-08-20 11:49:24 +02:00
Paulus Schoutsen 6cbca6d88a
Use webpack plugin to generate HTML (#1521)
* Use webpack plugin to generate HTML

* Generate index.html

* Remove unused packages
2018-07-26 09:30:03 +02:00
c727 54860d7762 Add more features to gallery (#1477)
* Add more features to gallery

* Feedback

* Fix margin

* Use array-style config

* Split into DemoCards and DemoCard

* Move padding

* Use min-height
2018-07-19 22:57:51 +02:00
Paulus Schoutsen 56907fb922
Add gallery (#1475)
* Add gallery

* Add build script

* Lint

* Remove cache
2018-07-19 15:24:30 +02:00
Paulus Schoutsen 75502bac6e
Bump min version for latest to use async/await (#1312)
* Bump min version for latest to use async/await

* Use async functions

* Load async support for es5

* Lint
2018-06-21 13:57:01 -04:00
Paulus Schoutsen 18b52b53cb
Upgrade deps (#1311)
* Update polyfills

* Upgrade deps
2018-06-21 10:43:24 -04:00
Paulus Schoutsen 13c8a00e97
Cleanup deps (#1288)
* Upgrade uglify-js

* Remove unused deps

* Add views
2018-06-16 22:32:05 -04:00
Thibault Cohen 58a0f6aab9 Add scheduler panel (#1146)
* Add scheduler panel

* Rename scheduler to calendar

* Continue

* First working version

* Fix lint errors

* Fix comments

* Fix calendar display

* Continue fixing comments

* Continue fixing comments 2

* Continue fixing comments 3

* Fix UI to work with the new PRs

* Use preact-compat instead of react

* Fix tests

* Move css file in a panels specific folder

* Fix tests

* Add Event details dialog

* Improve date format

* Remove event details

* Continue

* Continue calendar

* continue

* Continue

* Cleaning

* Fix PR comments

* Lint

* Clean useless import and css

* Fix PR comments

* Fix PR comments

* Fix PR comments

* Clean Event handler

* Fix week view

* Continue
2018-06-15 11:17:46 -04:00
Paulus Schoutsen 4d48a63141
Further simplify build (#1256)
* Remove manual copy

* Use Webpack to create gzip versions
2018-06-04 07:06:12 -04:00
Paulus Schoutsen 8133102bcb
Re-add service worker caching (#1247)
* Re-add service worker caching

* Lint
2018-06-03 07:38:22 -04:00
Paulus Schoutsen 71196b9704
Load icons via JS (#1211) 2018-05-26 11:50:03 -04:00
Boyi C 4d50ab937a Some tweak for timeline chart (#1201)
* Some tweak for timeline chart

* remove comments
2018-05-21 07:50:29 -04:00
Paulus Schoutsen 365d660e79 Lint 2018-05-18 17:57:26 -04:00
cdce8p 34ec3e0ae5 Fix yarn dev script (#1186)
* Fix yarn dev script

* Removed yarn dev

* Update bootstrap
2018-05-18 15:17:50 -04:00
Paulus Schoutsen 81fbda49bd Upgrade to home-assistant-js-websocket@2.0.1" 2018-05-18 13:36:38 -04:00
Paulus Schoutsen e57d9f7751
Add websocket helpers to polymer (#1187)
* Add websocket helpers to polymer

* Lint

* Upgrade to home-assistant-js-websocket@2.0.0
2018-05-18 13:25:01 -04:00
Paulus Schoutsen bc27f854f1
More cleanup (#1185)
* More cleanup

* Set up correct urls authorize.html

* Fix polymer lint

* Remove reference to bower

* Tweak uglify settings
2018-05-17 17:51:07 -04:00
Paulus Schoutsen cb0db95abe
Build hassio panel (#1184)
* Fix hass.io panel

* Add develop scripts

* Build hassio on Travis
2018-05-16 23:03:48 -04:00
Paulus Schoutsen f70c0aea6c
Org files (#1183)
* Organize files

* Import EventsMixin

* Import NavigateMixin

* Dissolve window.hassMixins

* Apply ElementMixin when we use it

* Update tests to point at right dir

* Eslint

* Clean

* Update mixins inside hassio

* Update lint command"

* Fix polymer lint
2018-05-16 13:47:34 -04:00
Paulus Schoutsen 23a2a479a5
Remove rollup (#1179)
* Remove rollup

* Fix build

* Add copy webpack plugin

* Touch service worker

* Remove unused ha-config-js-.js
2018-05-16 07:54:29 -04:00
Paulus Schoutsen 96d7ec7cda
Embed the preact code directly (#1177)
* Embed the preact code directly

* Do not transform object rest spread

* Lint

* Ignore preact from lint
2018-05-15 17:56:32 -04:00
Paulus Schoutsen a4afc2e37a
Polymer 3 modulize (#1154)
* Version bump to 20180510.1

* Fix hass util

* Fix translations

* Bye paper-time-input

* Add webpack config

* Add webpack to package.json

* Fix translation import

* Disable web animations polyfill bad import

* Disable importHref import

* Update webpack config to build authorize.js

* Build translations json

* Build frontend correctly

* Run eslint --fix

* Load markdown JS on demand (#1155)

* Add HTML imports (#1160)

* Fix localize (#1161)

* Fix Roboto in build (#1162)

* Load web animations polyfill (#1163)

* P3: Fix chart js (#1164)

* P3: Fix Chart JS

* Update timeline package

* P3: panel resolver (#1165)

* WIP

* Initial importing of panels

* Fix panel resolver

* Fix automation and script editor (#1166)

* Expose Polymer and Polymer.Element on window (#1167)

* Remove unused import

* eslint --fix

* Es5 build (#1168)

* Build for ES5

* Fix build_frontend

* Remove stale comment

* Migrate to use paper-material-styles (#1170)

* Send parsed date to history/logbook (#1171)

* Fork app storage behavior (#1172)

* Add paper input with type time (#1173)

* Fix authorize

* Lint

* Sort imports

* Lint

* Remove eslint-html

* Do not lint authorize.html

* Fix polymer lint

* Try chrome 62 for wct

* P3: Add patched iconset (#1175)

* Add patched iconset

* Lint

* Test with latest Chrome again

* Use less window.hassUtil

* Teporarily use my fecha fork

* Import correct intl.messageFormat

* Update wct-browser-legacy to 1.0.0

* Include polyfill in right place

* Fix IntlMessageFormat

* Fix test not having a global scope

* Rollup <_<

* Fork app-localize-behavior

* Disable wct tests

* Lint
2018-05-15 13:31:47 -04:00
Paulus Schoutsen 89333aa55e Update to home-assistant-js-websocket@1.2.1 2018-05-10 17:38:03 -04:00
Paulus Schoutsen 3b7a206cec
Add an authorize page for authentication (#1147)
* Use authorize page if auth provider

* Add webcomponent polyfill

* More fixes

* ES5 fix

* Lint

* Use redirect_uri

* upgrade uglify to fix tests?

* Update browsers used for testing
2018-05-10 14:25:36 -04:00
Paulus Schoutsen 912969111f
Move all of hassUtil to JS (#1153)
* Move all of hassUtil to JS

* Fix tests
2018-05-09 21:33:31 -04:00
Paulus Schoutsen 06502cb93a
Fix a bunch of lint errors (#1044)
* Fix a bunch of lint errors

* Add behavior jsdoc

* Convert ha-markdown to polymer element

* Update lint command
2018-03-29 16:57:15 -07:00
Adam Mills 7acab579b4 Use new lokalise builtin unzip for download (#900) 2018-02-17 19:49:14 -08:00
Paulus Schoutsen f83a9d7339
Dev dependencies (#897)
* Upgrade eslint

* Upgrade rollup

* Upgrade mocha

* Upgrade gulp

* Upgrade more gulp

* Upgrade frontend stuff
2018-02-16 09:03:13 -08:00
Andrey 21ee9b297d Switch to babel env preset (#859) 2018-02-01 16:18:47 -08:00
Paulus Schoutsen 9c2f6e591d
Run Hass.io panel in an iframe (#678)
* Run Hass.io in an iframe

* Update hass.io build script

* Lint

* Lint

* Fix build script

* Lint
2018-01-21 00:39:56 -08:00
Paulus Schoutsen 783f356679
Add timer card and badge (#810)
* Add timer card and badge

* Disable interval on disconnect

* Tests!

* One more test case

* Remove padStart

* Remove state from timer state card
2018-01-19 09:26:06 -08:00
Andrey b16bc88eb5 Switch to Zopfli compression (#744)
* Switch to Zopfli compression

* Lint
2017-12-22 21:12:54 -08:00
Adam Mills a723c62f4f Separate more JS util logic to be unit tested (#705)
* Move featureClassNames to js util

* Add tests for featureClassNames

* Strip empty feature class names

* Move canToggleDomain to js util

* Add tests for canToggleDomain

* Refactor canToggleDomain to ensure boolean return

* Switch to chai assert for richer syntax options

* Move canToggleState to js util

* Tests for canToggleState

* Enable linting for mocha tests

* Move stateCardType to js util

* Add tests for stateCardType

* Move stateMoreInfoType to js util

* Tests for stateMoreInfoType

* Include mdn Array includes polyfill
2017-12-03 20:56:16 -08:00
Paulus Schoutsen 10ddb7faac
Minify once, reduce build warnings (#692)
* Minify once, reduce build warnings

* Remove rollup-plugin-uglify

* address comment
2017-11-26 17:20:55 -08:00
Paulus Schoutsen 3d90d1d016
Tweak index.html (#657) 2017-11-20 21:52:35 -08:00
Adam Mills 70c082716f MVP tests for hass-util.html (#629)
* MVP tests for hass-util.html

* MVP util.js to allow individual JS function export

* Use mocha to unit test js logic

* Isolate mocha test directory

* Move mocha opts to separate file

* Default export of util function

* Use reify for mocha tests instead of babel
2017-11-15 21:42:54 -08:00
Adam Mills 3ff9fe1041 Build ES5/ES6 in parallel to share gulp deps (#615)
* Build ES5/ES6 in parallel to share gulp deps

* Rollup es5 files into build-temp-es5

* Use correct ES5 path for compatibility.js
2017-11-15 18:05:52 -08:00
Paulus Schoutsen 3701683d4b
Pre-construct frontend index.html (#609)
* Pre-construct frontend index.html

* Only preload things that matter

* Fix entry point in dev mode

* Template Service worker url

* Update referenced service worker
2017-11-11 13:30:14 -08:00
Adam Mills 508b5d6d77
Minify translations downloaded from Lokalise (#611) 2017-11-11 15:33:47 -05:00
Andrey adac8e55d7 Updates packages and clean gulp/ JS (#610) 2017-11-11 11:32:22 -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
Adam Mills 29fad98754 Core POC support for polymer i18n (#227)
* Core POC support for polymer i18n

* Move translation from core.js to html

* Replace fetch with XHR

* Convert translation pipeline to gulp

* Convert from polyglot to Polymer localize

* Pass through missing keys for custom panels

* Store promise to be reused

* Use cacheFirst sw handler for translations

* Write full filenames to translationFingerprints

* Precache en translation

* Convert home-assistant-main to ES6 class

* Create a localization mixin

* Cleanup

* Add polymer tags to annotate for linter

* Rename fingerprints to translationMetadata

* Build translation native names into metadata

* Add language selection UI to sidebar

* Provide separate message namespace argument

* Store language/resources on hass object

* Store translationMetadata on hass

* Move language selector to config panel

* Temporarily hide language selector

* Small cleanups

* Use dynamic-align for more flexible layout

* Migrate to fetch API

* Only send change events for user selection events

* Update for new linting rules

* Migrate build_frontend changes
2017-10-25 18:12:23 -07:00
Paulus Schoutsen 417d8e7ed8 Consolidate frontend (#468)
* Consolidate frontend

* Remove no longer needed cd

* Get Roboto from bower_components

* Remove external dependency from update_mdi.py

* Copy leaflet assets on build time

* Tweak Dockerfile

* Create Python package

* Set zip_safe to False

* Update build scripts

* Version bump to 20171021.0

* Fix service worker

* Version bump to 20171021.2

* Update docker ignore

* Tweak Dockerfile thanks to Adam
2017-10-24 19:36:30 -07:00
Adam Mills f24cb3eed5 Only generate fingerprints for non-dev SW (#453) 2017-10-11 23:36:04 -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
Paulus Schoutsen 632f2bdaa7 Update dependencies (#412) 2017-08-27 14:09:02 -07:00
Paulus Schoutsen 9b9cba86c2 Fix Hass.io build script (#405) 2017-08-21 22:44:20 -07:00
Paulus Schoutsen f02d42d79c Automation update (#382)
* Add missing triggers

* Move onChangeEvent to generic util

* Generate dev service worker in dev mode

* Add actions

* Lint

* Add condition support

* Add condition actions
2017-08-09 00:44:17 -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
Paulus Schoutsen 572f92fd1e Migrate to Polymer 2 (#370)
* Update bower.json to point at Polymer 2

* No longer use babel to run node scripts

* Refer to CSS from static dir

* Fix some panel bugs
2017-08-03 23:40:16 -07:00
Paulus Schoutsen 512b07963b 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
2017-08-02 21:31:04 -07:00
Adam Mills 2c69e001ee MVP Gulp introduction (#334)
* Install gulp as dev dependency

* Placeholder gulpfile

* Replace rollup invocations with gulp

* Consolidate duplicated code

* Big cleanup of gulpfile

* Without cache test

* Revert "Without cache test"

This reverts commit 0e3881d8d7.
2017-07-13 09:08:26 -07:00
Paulus Schoutsen ca82a411aa Add automation editor (#275)
* Add automation editor

* Build JS before running tests

* Add browser warning

* Re-order from/to in state
2017-05-09 09:37:10 -07:00
Paulus Schoutsen eb4588938b Update dependencies 2017-04-18 20:44:55 -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
Beat 7f69540a92 added missing executor (#250)
Executing a JS script fails on some systems (good thing I replaced my default program for JS on windows!). It's bad practice.
2017-03-31 09:00:37 -07:00
Paulus Schoutsen 7b3a0aa5d6 Update dependencies 2017-03-14 22:07:11 -07:00
Paulus Schoutsen 14ea3e3af4 Upgrade dependencies 2017-02-15 22:24:20 -08:00
Adam Mills 5207629e87 Add Object.assign polyfill support (#210)
* Add Object.assign polyfill support

* Remove redundant polyfill check

* Use ES6 in compatibility.js
2017-02-14 12:01:32 -08:00
Paulus Schoutsen e570c961e8 Lint 2017-02-13 23:34:43 -08:00
Paulus Schoutsen a3528a1eb1 Update Home Assistant JS Websocket 2017-02-01 00:09:50 -08:00
Paulus Schoutsen 1e2ffae63f Cleanup package.json 2017-01-30 09:15:11 -08:00
Paulus Schoutsen a1057681f1 Initial getting rid of HA-JS (#180)
Getting rid of HA-JS
2017-01-29 18:34:45 -08:00
Robbie Trencheny 2f71369dae Update package.json to reflect new Apache 2.0 license 2017-01-28 12:18:40 -08:00
Paulus Schoutsen 9aa7a2a162 Update packages 2017-01-20 22:46:09 -08:00
Paulus Schoutsen e2a03cb6fd Update dependencies 2016-12-04 12:45:28 -08:00
Paulus Schoutsen 24dd4357d8 Migrate to use websocket client (#158)
* Migrate to websocket client HA-JS

* Bump dependency to 0.1.4

* Upgrade HA-JS

* Fix missing import
2016-11-26 23:41:51 -08:00
Paulus Schoutsen 0df7f83ebd Upgrade dependencies 2016-11-26 17:43:55 -08:00
Paulus Schoutsen 51bfd5b596 Yarn upgrade 2016-10-21 20:48:41 -07:00
Eric Hagan 1990caf454 Adding uglify-js dependency to package.json (#135) 2016-10-20 22:19:06 -07:00
Paulus Schoutsen 75d760fc3e Upgrade rollup 2016-10-13 23:59:53 -07:00
Frank db109f5dda Correct URL's for the hass repo's (#121) 2016-10-08 08:19:18 -05:00
Paulus Schoutsen 7d32ee0912 Add optimize-js to build toolchain 2016-09-19 21:09:29 -07:00
Paulus Schoutsen 8394f10ca4 Update dependencies 2016-09-18 00:03:07 -07:00
Paulus Schoutsen afcfb4311a Update package.json 2016-09-07 21:48:30 -07:00
Paulus Schoutsen c0c0b2c2f3 Update packages 2016-08-21 15:30:51 -07:00
Paulus Schoutsen af4af1e933 Restructure service worker stuff 2016-08-14 00:58:40 -07:00
Paulus Schoutsen 5efe930d6c Add HTML 5 push notifcations support (#89)
* Add push notification handling to service worker

* Add push registration to sidebar

* Whitelist manifest.json

* Remove unused property

* Catch if no url specified

* Fix eslint

* Fix bug

* Fix some bugs

* More Firefox proof

* Moar fixes

* Fix semi
2016-08-14 00:31:52 -07:00
Paulus Schoutsen 3a8e758a31 Update packages 2016-08-08 00:38:26 -07:00
Paulus Schoutsen 1e4a049efe Update sw-precache to 4.0 2016-08-08 00:29:31 -07:00
Paulus Schoutsen d7f79ff8fa Disable service worker in dev mode 2016-08-08 00:08:01 -07:00
Paulus Schoutsen c4b17a24a3 Fix imports thanks to polymer-lint 2016-08-02 09:06:22 -07:00
Paulus Schoutsen aedafa7d5e Fix travis (#76) 2016-07-21 23:09:22 -07:00
Paulus Schoutsen 9239a56958 Use hydrolysis for optimal panel built size 2016-07-19 02:27:46 -07:00
Paulus Schoutsen 8c3f760683 Lint panels 2016-07-19 02:25:26 -07:00
Paulus Schoutsen 362ac33386 Add polymer linting to tests 2016-07-19 01:45:51 -07:00
Paulus Schoutsen 43940d067a Remove last ES6 2016-07-18 21:28:42 -07:00
Paulus Schoutsen 111b6c6f48 More ES6->ES5 conversion 2016-07-17 23:18:48 -07:00
Paulus Schoutsen 4029f16e97 Reorg into panels (#75) 2016-07-16 23:19:49 -07:00
Paulus Schoutsen f7ecdd9ce2 Migrate to Rollup + Buble 2016-07-13 23:04:26 -07:00
Paulus Schoutsen 78c8e680b2 Extract partial map as standalone file 2016-07-12 00:09:06 -07:00
Paulus Schoutsen 6b226c02da Update versions 2016-07-11 22:07:17 -07:00
Paulus Schoutsen 0e6dc25fcd Update build steps 2016-06-14 18:22:45 -07:00
Paulus Schoutsen ec7dfb28e8 Move HA-JS to git submodule 2016-06-14 01:26:02 -07:00
Paulus Schoutsen 3c291d2c98 Update HA-JS 2016-06-13 23:37:44 -07:00
Paulus Schoutsen 19eb3fa193 Update webpack2 beta 2016-06-11 18:05:44 -07:00
Paulus Schoutsen 07a1663b6c Update packages 2016-05-28 23:26:10 -07:00
Paulus Schoutsen 439545b4f8 Optimize loading core 2016-05-28 18:32:42 -07:00
Paulus Schoutsen 96be0e5b8b Remove lodash 2016-05-28 11:14:25 -07:00
Paulus Schoutsen 0be98873d7 Use sw-precache to generate service worker 2016-05-27 21:44:37 -07:00
Paulus Schoutsen 77f4dd1fed Update demo data 2016-05-16 21:54:15 -07:00
Paulus Schoutsen 097f85cab2 Update dependencies 2016-05-06 23:34:52 -07:00
Paulus Schoutsen 40027eaac6 Webpack 2 2016-04-28 16:30:38 +02:00
Paulus Schoutsen 3af16b2650 Update eslint config 2016-04-28 16:19:27 +02:00
Paulus Schoutsen 11311809c1 Update HA-JS version 2016-04-20 09:10:27 -07:00
Paulus Schoutsen a21547abfb Upgrade HA-JS with iso8601 2016-04-16 10:04:16 -07:00
Paulus Schoutsen cc50f55e05 Update packages 2016-04-16 02:06:43 -07:00
Paulus Schoutsen c41c89231d Migrate to home-assistant org 2016-04-12 20:59:29 -07:00
Paulus Schoutsen 8c3522bb40 Update HA-JS 2016-04-12 00:23:31 -07:00
Paulus Schoutsen 4ab308a9d2 Redesign media player card (thanks @DesignFirst) 2016-04-12 00:22:18 -07:00
Paulus Schoutsen a127c74a53 Add media player card 2016-04-10 01:31:28 -07:00
Paulus Schoutsen d9232df18b Add local roboto 2016-04-08 00:09:52 -07:00
Paulus Schoutsen b149c97e2c Update packages 2016-04-07 20:48:51 -07:00
Paulus Schoutsen 32c7cad314 Update node version to 5.10.1 2016-04-07 20:48:46 -07:00
Paulus Schoutsen 567d8e6fba Update packages 2016-04-01 00:35:53 -07:00
Paulus Schoutsen 646eaa96a1 Update packages 2016-03-27 08:37:29 -07:00
Paulus Schoutsen 51d3e9b92d Update ESLint + fix errors 2016-03-27 08:35:01 -07:00
Paulus Schoutsen 0fed700045 Update package.json 2016-03-12 10:39:01 -08:00
Paulus Schoutsen c580a9eb89 Update and fix linting 2016-02-28 00:31:45 -08:00
Paulus Schoutsen 0b608c586c Remove non-ES2015 2016-02-28 00:29:49 -08:00
Paulus Schoutsen 7df224335d Update lodash to v4 2016-02-28 00:02:16 -08:00
Paulus Schoutsen 78c036f443 Update HA-JS demo data 2016-02-27 18:10:05 -08:00
Paulus Schoutsen 81ae753eb0 Update packages 2016-02-27 14:31:48 -08:00
Paulus Schoutsen 75cc118cb1 Update HA-JS with delete state support 2016-02-15 01:00:56 -08:00
Paulus Schoutsen 4d3c0e6a4c Update packages 2016-02-07 00:13:39 -08:00
Paulus Schoutsen d70dd0b2d0 Allow overwriting default view by specifying group.default_view 2016-02-06 23:01:34 -08:00
Paulus Schoutsen 700d6d3738 Update HA-js with url-sync fix 2016-02-06 22:06:24 -08:00
Paulus Schoutsen 6b4d60c7ef Update demo 2016-01-30 00:57:30 -08:00
Paulus Schoutsen 472f485a7e Chrome url sync bugfix 2016-01-25 23:55:36 -08:00
Paulus Schoutsen 485ad9f033 Fixes for view url-sync 2016-01-25 22:45:49 -08:00
Paulus Schoutsen 917f9d8519 Update HAJS to hide hidden entities in views 2016-01-25 17:56:35 -08:00
Paulus Schoutsen 83ac27db0f Upgrade HA-JS 2016-01-24 22:30:59 -08:00
Paulus Schoutsen 66a7e370d4 Section -> View Groups 2016-01-24 21:47:49 -08:00
Paulus Schoutsen 811de0a3fa Add support for sections 2016-01-24 14:12:11 -08:00
Sean Dague 98522ab191 use lastUpdated to graph thermostat history
This allows us to use lastUpdated in the thermostat graphs. Currently
this will produce the same result as lastChanged, however once the
history module is updated to expose all the updates for the thermostat
domain.
2016-01-22 20:35:26 -05:00
Paulus Schoutsen 0b99a5933c Update packages 2016-01-13 23:47:36 -08:00
Paulus Schoutsen cdc1437944 Update eslint 2016-01-13 23:47:28 -08:00
Paulus Schoutsen a60ebb040c Upgrade home-assistant-js 2016-01-13 11:40:55 -08:00
Paulus Schoutsen f4d80f4977 Upgrade to babel 6 2015-12-13 23:53:35 -08:00
Paulus Schoutsen 044a6d9810 Update HA-JS version 2015-12-06 14:02:08 -08:00
Paulus Schoutsen 300f3582a6 Add support for locks 2015-11-29 22:48:55 -08:00
Paulus Schoutsen f29b1062b3 Update HA-JS version 2015-11-28 18:19:04 -08:00
Paulus Schoutsen 4284e20d1b Update Home Assistant JS to latest 2015-11-10 00:07:57 -08:00
Paulus Schoutsen 348e985451 Update linting packages 2015-11-10 00:07:41 -08:00
Paulus Schoutsen b04e285061 Move voice recog to dialog 2015-11-04 23:52:21 -08:00
Paulus Schoutsen 45990299d1 Upgrade HA-JS with NuclearJS 1.2 2015-11-01 23:43:31 -08:00