Commit Graph

41 Commits

Author SHA1 Message Date
Paulus Schoutsen e3d78d6dc5
Convert ha-gallery to TS (#11102)
* Convert ha-gallery to TS

* Prepare gallery to be design portal

* Import card in introduction

* Clean up demo IDs

* Convert demo-cards

* TypeScript conversion of demo-card

* Fix default demo
2022-01-05 12:49:05 -08:00
Bram Kragten bc92c0b052
Upgrade to Lit 2 (#9199) 2021-05-18 07:37:53 -07:00
Bram Kragten 9f032a61a9
Add compatibility for Lit 2.0 (#8878) 2021-05-07 13:16:14 -07:00
Joakim Sørensen a1d07e5a00
Sort imports (#8104) 2021-01-13 17:17:12 +01:00
Bram Kragten 7428731eac
Fix ES5 build, fix virtualizer polyfill (#7451) 2020-10-22 22:43:15 +02:00
Philip Allgaier 52b2fd046b
Improved automation & script menus + show errors in toast (#7371)
* Improved automation & script menus + show errors in toast

* Changes from review

* Re-added old error display

* Toast back to default duration + remove action
2020-10-19 19:55:36 +02:00
Bram Kragten 5937be695f
Bump Lit, use cache for query (#7245) 2020-10-06 15:55:55 +02:00
Bram Kragten f8c5eeab5d
Replace all private properties with internalProperty decorator (#6386) 2020-07-14 21:38:36 -07:00
Bram Kragten 82f80db558
Update typescript, prettier, tslint -> eslint (#5536)
* Update typescript, prettier, tslint -> eslint

* Organize imports

* Use glob for eslint fix react import
2020-04-14 09:05:45 -07:00
Zack Arnett 0f2eae4091
Delete Card Action: Undo in Toast (#5405)
* Adding insert card and delete undo

* Fix Toast style

* Localize

* Optional

* Comments
2020-04-02 23:36:08 +02:00
Bram Kragten e2de660bec
Only cache default lovelace and handle config updates (#5000)
* Only cache default lovelace and handle config updates

* Update partial-panel-resolver.ts
2020-02-27 14:01:37 +01:00
Bram Kragten 04f8f0f74f Render should always return a html template (#4612) 2020-01-27 08:34:22 -08:00
Paulus Schoutsen 1eee186e79 Fix toast on Firefox (#3239) 2019-06-02 16:13:10 +02:00
Bram Kragten e595637a10 Show toast when Lovelace config was updated from a different place (#3218)
* Refresh other lovelace UI's when making a change

* Move to toast with refresh button

* Change to `hass-notification`

* Reload on reconnect

- Fix for duration = 0
- Reload on reconnect

* Listen to ready of connection

* Update src/managers/notification-manager.ts

Co-Authored-By: Paulus Schoutsen <paulus@home-assistant.io>

* use showToast, listen connection-status,  noCancelOnOutsideClick -> option

* Remove unused import
2019-05-27 14:54:14 -07:00
Paulus Schoutsen e02d11a51f
Pimp script editor (#3192)
* Pimp script editor

* Use property for define

* Show toasts
2019-05-12 21:28:25 -07:00
yosilevy ecd33fd93c RTL toast fix (#2646)
* RTL toast fix

* Removed reflectToAttribute
2019-02-01 09:40:45 -08:00
Paulus Schoutsen a58a324073
Format html (#2006)
* Upgrade prettier

* Format files with prettier
2018-11-07 09:56:43 +01:00
Ian Richardson c0c7c0f41a Remove .js from imports (#1948)
* Remove .js from lovelace

Also cleaned up some trailing whitespace

* Go big or go home

* More removals

* Revert changes to gallery webpack

* Revert changes to webpack.config.js
2018-11-02 12:26:03 +01:00
Paulus Schoutsen 34bfc12647
Prettier 💎 (#1737)
* Add prettier

* Apply Prettier
2018-10-11 12:22:11 +02:00
Paulus Schoutsen 283668ef18
Fix disconnected notification (#1569) 2018-08-13 21:22:23 +02:00
Paulus Schoutsen 63c7c55843
Cleanups (#1566)
* Cleanup core.js

* Add ha-toast

* Lint

* Remove unused import
2018-08-13 15:48:54 +02:00
Paulus Schoutsen 1b2b62f04c
Reorg root (#1559)
* Extract element from entrypoint

* Reorg root

* Extract more

* Lint

* Extract connection

* Extract notification

* Lint

* Also split out more info dialog

* Consolidate dynamic element creation
2018-08-11 08:45:11 +02:00
Paulus Schoutsen bdf26bbccd
Tweaks (#1489)
* Tweaks

* Lint

* No need for copy plugin

* Allow handling more complex service calls

* Missed a state

* Add locks

* Lint

* Add cover entity

* Make generic entity constructor

* Light to handle homeassistant.X services

* Lint

* Fix translations

* final tweaks
2018-07-22 11:41:56 +02:00
c727 fa11fbc85d Localize notification toasts (#1243)
* Localize notification toasts

* Use correct placeholder syntax

* Lint

* Use original string
2018-06-01 10:07:33 -04:00
c727 5a16095270 P3: Remove get is() (#1180) 2018-05-16 07:06:07 -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
Adam Mills 1ab551116e
Fix login form with translations (#612)
* Revert "Fix not showing login form (#564)"

This reverts commit d2faeaffe7.

* Don't lose translation resources on logout

* Fix lint
2017-11-11 18:16:15 -05:00
Adam Mills fb0b1286d2 Convert remaining elements to ES6 classes (#538)
* Convert remaining elements to ES6 classes

* Use native DOM methods for tests

* Fix Polymer 2 debounce call
2017-10-29 21:47:03 -07:00
Paulus Schoutsen a1057681f1 Initial getting rid of HA-JS (#180)
Getting rid of HA-JS
2017-01-29 18:34:45 -08:00
Paulus Schoutsen 117c33cf5a Fill bottom screen with toast 2016-12-05 22:14:07 -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 617be99db9 Move style into template and fix polylint 2016-07-19 01:40:04 -07:00
Paulus Schoutsen 406c382a3f Move style into templates 2016-07-19 01:19:44 -07:00
Paulus Schoutsen 111b6c6f48 More ES6->ES5 conversion 2016-07-17 23:18:48 -07:00
Paulus Schoutsen 8af4e6eb3f Migrate behavior to global object 2016-05-28 11:16:40 -07:00
Paulus Schoutsen 4f8e2d5687 Remove HA instance singleton 2016-05-28 01:32:39 -07:00
Paulus Schoutsen 99822647ef Allow closing notification by tapping backdrop 2016-04-07 21:33:43 -07:00
Paulus Schoutsen f4d80f4977 Upgrade to babel 6 2015-12-13 23:53:35 -08:00
Paulus Schoutsen f1bad9e5f6 Home Assistant JS now returns class 2015-08-12 22:19:02 -07:00
Paulus Schoutsen 15cb01cb5b FIx ESlint warnings 2015-08-12 20:49:06 -07:00
Paulus Schoutsen 8e143c2e44 ES6 Polymer version 2015-07-12 17:31:41 -07:00