394 Commits

Author SHA1 Message Date
Paulus Schoutsen
25f5bf0042
Fix ingress add-on not started dialog showing twice (#4716)
* Fix ingress add-on not started dialog showing twice

* logging not allowed
2020-02-01 08:11:30 -08:00
Joakim Sørensen
3215437bb8
Fixes add-on audio selector (#4648)
* Fixes addon audio selector

* Set device as property

* Use getAttribute

* Keep device as attribute

Co-authored-by: Paulus Schoutsen <paulus@home-assistant.io>
2020-01-31 23:03:30 -08:00
Joakim Sørensen
036eedc69d
Add styles to addon-header (#4632)
* Add styles to addon-header

* Update hassio/src/addon-view/hassio-addon-info.ts

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

Co-authored-by: Paulus Schoutsen <paulus@home-assistant.io>
2020-01-28 14:37:53 -08:00
Joakim Sørensen
7937714ce6
Fixes add-on install button (#4635)
* Fixes add-on install button

* Set the default

* linting issue
2020-01-28 14:37:42 -08:00
Joakim Sørensen
6e624b394b Corrects add-on link (#4634)
* Fixes the addon url

* quote it

* Don't link the extra space

* puerly for testing

* Don't link the extra space
2020-01-28 11:39:42 -08:00
Joakim Sørensen
1cb10694e7 Fixes status switch spacing (#4633)
* fix switch spacing

* Fix alignment
2020-01-28 11:37:33 -08:00
Bram Kragten
04f8f0f74f Render should always return a html template (#4612) 2020-01-27 08:34:22 -08:00
Joakim Sørensen
523dc881bb Convert Hass.io panel to TS/Lit (#4398)
* Convert system

* Convert dashboard

* Remove logging statement

* Convert addon view (base) and log

* Convert addon-view info

* Remove unintended file in commit

* Convert ansi-to-html

* Fix log update reloading

* Convert addon-view config

* Convert addon-view network

* Add inn missing haStyle

* Convert addon-view audio

* convert dialog-hassio-markdown

* Convert dialog-hassio-snapshot

* Convert entrypoint

* Convert hassio-style

* Lint hassio-addon-audio

* Lint hassio-addon-audio

* Lint hassio-addon-config

* Remove file that should not have been comitted

* Linting of the rest

* Cleanup

* Cleanup config

* Required changes after rebase

* Change property/method clasification

* use ? for _inputDevices and _outputDevices

* Use undefined instead of null for addon property

* Use ? for addons property

* Async addon audio

* Corrects typo in Error

* Wrap async calls in try/catch

* Remove npm task

* Fix async constant/functions

* Reintroduce noDevice

* We don't use the data of the POST no need to store and pass it

* Update hassio/src/addon-view/hassio-addon-info.ts

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

* Update hassio/src/addon-view/hassio-addon-config.ts

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

* Update hassio/src/addon-view/hassio-addon-audio.ts

Co-Authored-By: Bram Kragten <mail@bramkragten.nl>

* Update hassio/src/addon-view/hassio-addon-audio.ts

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

* Apply review comments

* Simplify selected item change

* Change back to attr

* Apply lessons learned to addon-config

* Send event on config change

* Extract error msg

* Apply lessons learned to addon-info

* Apply lessons learned to addon-logs

* Fix shorthand linting issue

* Prefix private with _

* reset error

* Apply lessons learned to addon-network

* Revert package.json change

* Apply lessons learned to addon-view

* Fixes Unnecessary 'await' issue

* rename content -> addoninfo

* Update hassio/src/addon-view/hassio-addon-config.ts

Co-Authored-By: Bram Kragten <mail@bramkragten.nl>

* Update hassio/src/addon-view/hassio-addon-config.ts

Co-Authored-By: Bram Kragten <mail@bramkragten.nl>

* Update hassio/src/addon-view/hassio-addon-config.ts

Co-Authored-By: Bram Kragten <mail@bramkragten.nl>

* Update hassio/src/addon-view/hassio-addon-info.ts

Co-Authored-By: Bram Kragten <mail@bramkragten.nl>

* Update hassio/src/addon-view/hassio-addon-info.ts

Co-Authored-By: Bram Kragten <mail@bramkragten.nl>

* Update hassio/src/addon-view/hassio-addon-info.ts

Co-Authored-By: Bram Kragten <mail@bramkragten.nl>

* Update hassio/src/addon-view/hassio-addon-info.ts

Co-Authored-By: Bram Kragten <mail@bramkragten.nl>

* Update hassio/src/addon-view/hassio-addon-info.ts

Co-Authored-By: Bram Kragten <mail@bramkragten.nl>

* Update hassio/src/addon-view/hassio-addon-info.ts

Co-Authored-By: Bram Kragten <mail@bramkragten.nl>

* Update hassio/src/addon-view/hassio-addon-network.ts

Co-Authored-By: Bram Kragten <mail@bramkragten.nl>

* Update hassio/src/addon-view/hassio-addon-logs.ts

Co-Authored-By: Bram Kragten <mail@bramkragten.nl>

* Update hassio/src/addon-view/hassio-addon-info.ts

Co-Authored-By: Bram Kragten <mail@bramkragten.nl>

* Update hassio/src/addon-view/hassio-addon-info.ts

Co-Authored-By: Bram Kragten <mail@bramkragten.nl>

* Update hassio/src/addon-view/hassio-addon-info.ts

Co-Authored-By: Bram Kragten <mail@bramkragten.nl>

* Update hassio/src/addon-view/hassio-addon-info.ts

Co-Authored-By: Bram Kragten <mail@bramkragten.nl>

* Update hassio/src/addon-view/hassio-addon-info.ts

Co-Authored-By: Bram Kragten <mail@bramkragten.nl>

* Update hassio/src/addon-view/hassio-addon-info.ts

Co-Authored-By: Bram Kragten <mail@bramkragten.nl>

* Fix syntax issues

* Fix error handling issues

* Use forEach and not map

* Use private for _error

* Update hassio/src/addon-view/hassio-addon-info.ts

Co-Authored-By: Bram Kragten <mail@bramkragten.nl>

* Update hassio/src/addon-view/hassio-addon-info.ts

Co-Authored-By: Bram Kragten <mail@bramkragten.nl>

* Use classMap

* remove unneded limitations

* it can be null

* Update hassio/src/system/hassio-supervisor-log.ts

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

* split hassio.ts

* Update datahandling

* Return result

* Use map instead of forEach

* Unnecessary 'await'.

* Move setSupervisorOption to data/hassio/supervisor

* Unnecessary 'await'

* Move fetchSupervisorLogs to data/hassio/supervisor

* Move fetchHassioHardwareInfo to data/hassio/hardware

* change error property

Co-authored-by: Paulus Schoutsen <paulus@home-assistant.io>
Co-authored-by: Bram Kragten <mail@bramkragten.nl>
2020-01-26 20:37:20 +01:00
Paulus Schoutsen
5ff8fe68ba Alert user when add-on not started (#4485) 2020-01-17 17:02:56 +01:00
Joakim Sørensen
a2f8e5f3e7 Hide protection mode toggle if not usable (#4392) 2020-01-02 10:20:21 +01:00
Bram Kragten
8a39d18323 Bump TypeScript to 3.7 (#4282)
* Bump TypeScript to 3.7

* Update prettier to support ts 3.7

* Prettier

* More prettier

* Even more prettier
2019-11-27 13:51:03 -08:00
Josh McCarty
1e7497ad33 Revise hassio update card design (#4041)
* Revise hassio update card design

See https://github.com/home-assistant/home-assistant-polymer/issues/3916

* Remove available text; use secondary text color instead of yellow/orange

* Less bold text for update header
2019-10-22 23:06:18 +02:00
Paulus Schoutsen
70d6c6b902
Refactor Webpack build scripts (#4093)
* Refactor Webpack build scripts

* Add Gallery too

* Fix icons

* Update travis
2019-10-21 15:02:54 -07:00
Ian Richardson
0078b48e3c
card level themes (#4057)
* card level themes

weather-forecast
shopping-list
plant-status
markdown
alarm-panel

* fix markdown

* address comments

also added picture cards

* update updated

* address comments

* address comments
2019-10-21 12:38:06 -05:00
Phi Dong
4dbf5327bd Update snapshot actions to be a list (#4045)
* Update snapshot actions to be a list

* Update text of delete button to warning color
2019-10-19 18:03:22 +02:00
Bram Kragten
d05dc2e4dc
Bring back babel (#3974)
* Bring back babel

* bump preset env

* Remove empty TS properties in mixins
2019-10-19 14:06:04 +02:00
Bram Kragten
05a258c886
Add hassio supervisor and os update notice (#3798)
* Add hassio supervisor and os update notice

* Cleanup

* Update hassio-dashboard.ts

* Fix styling

* Check if system has HassOs

* Remove unused import
2019-09-26 13:47:34 +02:00
Bram Kragten
a1b9a092d0 Bring back babel for ES5 builds (#3797)
* Bring back babel for ES5 builds

* Remove ts from babel
2019-09-23 13:15:12 -07:00
Ian Richardson
5e28e1b320 Switch paper-toggle-button to mwc-switch (#3683)
* Switch paper-toggle-button to mwc-switch

Closes https://github.com/home-assistant/home-assistant-polymer/issues/3352

* ha-switch

* apply not-checked theming

Thanks @bramkragten!

* address review comments
2019-09-21 11:59:27 +02:00
Paulus Schoutsen
1a5ae99c42 Update ESLint 2019-09-08 23:51:30 -07:00
Paulus Schoutsen
594ee7ce9b Update build scripts 2019-09-08 23:39:37 -07:00
Paulus Schoutsen
fe31f532b6
Update ESLint (#3664) 2019-09-08 23:38:58 -07:00
Paulus Schoutsen
203b14613f
Show a notification dot on toggle menu button in narrow mode (#3323)
* Show a notification dot on toggle menu button in narrow mode

* Fix lint

* Move menu button to sidebar

* Fix height sidebar
2019-06-30 15:02:53 -07:00
Paulus Schoutsen
ae82eabaec Fix link colors in hassio addon view 2019-06-25 13:08:11 -07:00
Paulus Schoutsen
98c419ff03
Switch to woff2 fonts (#3296) 2019-06-21 12:48:20 -07:00
Paulus Schoutsen
21ed717287
Link to beta release notes for beta release in hassio (#3243) 2019-06-04 08:47:40 -07:00
Timmo
46f3add520 🔨 Fix hassio new add-on repository height (#3191) 2019-05-12 11:14:18 +02: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
289611363e
Use named export for events mixin (#3166) 2019-05-07 17:47:44 -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
73ef03e33f
Use signed path for camera snapshot (#3138) 2019-04-29 11:27:40 -07:00
Paulus Schoutsen
2624c1544b
Disable the show in sidebar toggle when HA < 0.92 (#3124)
* Hide the show in sidebar toggle on 0.92

* Update hassio/src/addon-view/hassio-addon-info.js

Co-Authored-By: balloob <paulus@home-assistant.io>
2019-04-27 22:02:47 -07:00
Pascal Vizeli
c260591d4d
Hass.io update labels (#3114)
* Hass.io update labels

* Update hassio-addon-info.js
2019-04-24 08:58:35 +02:00
Pascal Vizeli
ad40d9927b Hass.io: Support automated panel integration (#3113)
* Hass.io: Support automated panel integration

* Update hassio-addon-info.js

* fix lint
2019-04-23 12:24:06 +02:00
Paulus Schoutsen
6ed2d288e6
addon -> add-on (#3094) 2019-04-15 10:53:53 -07:00
Paulus Schoutsen
bbae3291e1
Support ingress custom panels (#3085)
* Support ingress custom panels

* Fix types

* Add disabled placeholder to network card
2019-04-11 11:42:52 -07:00
Paulus Schoutsen
5dbd5c7395 Fix hassio unavailable dashboard & update card 2019-04-10 15:38:33 -07:00
Paulus Schoutsen
671e564037 Fix hassio dashboard available maybe 2019-04-10 15:00:19 -07:00
Paulus Schoutsen
4d7bb0df7d Fix hassio loading 2019-04-10 12:46:42 -07:00
Paulus Schoutsen
26a39b1bb8 Hassio fixes 2019-04-10 12:32:21 -07:00
Paulus Schoutsen
fe73213643 Fix hassio 2019-04-09 16:31:07 -07:00
Pascal Vizeli
eda168247c
Add description support to UI (#3079) 2019-04-09 22:53:10 +02:00
Paulus Schoutsen
4d2390daf4
Hass.io snapshots -> Lit (#3078)
* Hass.io snapshots

* Fix rootnav
2019-04-09 13:05:56 -07:00
Paulus Schoutsen
5b861bb4c6 Fix hassio in prod? 2019-04-09 00:17:34 -07:00
Paulus Schoutsen
1c17210948 Clean up even more (#3074) 2019-04-09 00:15:46 +02:00
Paulus Schoutsen
8df9ac9dfa
Fix paper-icon-button fail (#3069) 2019-04-07 23:50:58 -07:00
Paulus Schoutsen
70072786a1
Clean up hassio tabs page (#3068)
* Clean up hassio tabs page

* Make load optional

* Fix bug
2019-04-07 11:58:51 -07:00
Paulus Schoutsen
cda29fcd07 Clean up hassio panel (#3067)
* Clean up hassio panel

* Extract dialog manager code

* Convert markdown dialog to show-dialog

* Extract snapshot dialog
2019-04-07 17:45:56 +02:00
Paulus Schoutsen
cadcd845cc Add guard for addon 2019-04-06 12:32:45 -07:00
Paulus Schoutsen
b07f95f956 Add hassio ingress support (#3062)
* Add hassio ingress support

* Remove logging

* Better integrate

* Add badge

* FIx type
2019-04-06 09:28:08 +02:00