Commit Graph

529 Commits (use-5minute-lts-data-in-history-graphs)

Author SHA1 Message Date
Bram Kragten 76daeb7e55
Fix wait for not loaded panel (#9478) 2021-06-30 11:50:49 +02:00
Bram Kragten acd5e1c081
Fix back button too wide on mobile (#9333) 2021-06-01 12:12:00 -07:00
Joakim Sørensen 59f3f819a6
Revert name change from selectedTheme to selectedThemeSettings (#9273) 2021-05-27 10:21:58 +02:00
Joakim Sørensen 21a3a8c594
Navigate cleanup (#9202) 2021-05-25 17:46:36 +02:00
Philip Allgaier 7f75ca81f1
Add support for custom themes to use dark mode (#8347) 2021-05-25 13:26:35 +02:00
Bram Kragten 0a478ee1da
Fix tabs styling (#9241) 2021-05-25 12:05:20 +02:00
Paulus Schoutsen 1b9286db76
Fix lit warnings (#9204)
Co-authored-by: Bram Kragten <mail@bramkragten.nl>
2021-05-18 15:01:43 -07:00
Bram Kragten bc92c0b052
Upgrade to Lit 2 (#9199) 2021-05-18 07:37:53 -07:00
Paulus Schoutsen 07bab7b264
Drop app-route (#9196) 2021-05-17 16:05:58 -07:00
Paulus Schoutsen 37cc6709d4
If we have a link, make it a link (#9181) 2021-05-15 12:25:28 +02:00
Joakim Sørensen 6dc7e852ae
Use hass-tabs-subpage-data-table for supervisor snapshots (#9103)
* Use hass-tabs-subpage-data-table for supervisor snapshots

* comments

* type

* cleanup

* change translations

* Update hassio/src/dialogs/snapshot/dialog-hassio-create-snapshot.ts

Co-authored-by: Bram Kragten <mail@bramkragten.nl>

* reset

* fix after rebase

* internalProperty -> state

Co-authored-by: Bram Kragten <mail@bramkragten.nl>
2021-05-10 18:17:16 +02:00
Bram Kragten 9f032a61a9
Add compatibility for Lit 2.0 (#8878) 2021-05-07 13:16:14 -07:00
Bram Kragten 5754f4463d
Bump babel and eslint (#9049) 2021-04-30 12:15:31 -07:00
Bram Kragten 26c4591baa
Keep root state when replacing, fix subpages for menu button on mobile (#8837) 2021-04-07 12:25:17 +02:00
Bram Kragten 4511c8f30c
Don't show back button when no history (#8822)
* Don't show back button when no history

* Update src/translations/en.json

Co-authored-by: Philip Allgaier <mail@spacegaier.de>

Co-authored-by: Philip Allgaier <mail@spacegaier.de>
2021-04-06 08:59:08 -07:00
Bram Kragten 7f7d89c745
Hopefully fix some back button issues (#8708) 2021-03-29 11:29:43 +02:00
Bram Kragten 0393970a80
Generalize filtering in datatable sub page (#8734) 2021-03-28 18:29:55 +02:00
Joakim Sørensen 153d68a9cd
Custom error page when failing to load Supervisor panel (#8465) 2021-03-10 14:11:03 +01:00
Bram Kragten 2e76b306c4
Add guard for when default url is not available (#8593) 2021-03-09 11:56:26 +01:00
Joakim Sørensen bea20d0495
🌐 Add MVP for translation in the Supervisor panel (#8425)
Co-authored-by: Bram Kragten <mail@bramkragten.nl>
2021-03-02 00:37:39 +01:00
Bram Kragten c8717bfa32
Add my panel (#8349) 2021-02-08 14:48:54 +01:00
chriss158 c3f50ba0fb
Fix no disconnect after 5 minute timeout (#8339) 2021-02-07 14:33:44 +01:00
Bram Kragten 7e06bd53b6
Change remote ui portal to account page (#8193) 2021-01-18 16:47:14 +01:00
Joakim Sørensen a1d07e5a00
Sort imports (#8104) 2021-01-13 17:17:12 +01:00
Philip Allgaier f4d07828e7
Minor follow-up tweaks for PR 7947 (#7955) 2020-12-29 22:52:20 +01:00
Bram Kragten 8a42e65c6a
Add link to the community forums to find more blueprints (#7947)
* Add link to the community forums to find more blueprints

* Apply suggestions from code review

Co-authored-by: Paulus Schoutsen <balloob@gmail.com>

Co-authored-by: Paulus Schoutsen <balloob@gmail.com>
2020-12-12 20:38:10 +01:00
Paulus Schoutsen 7de7d1d926
Fix init page message color (#7780)
Co-authored-by: Bram Kragten <mail@bramkragten.nl>
2020-11-25 15:22:22 +01:00
Paulus Schoutsen 6d4569c89d
Drop webpackChunkName (#7778) 2020-11-23 10:39:40 +01:00
Ryan Meek 216fce74f8
Header/sidebar sizing (#7470)
Co-authored-by: Zack Barett <zackbarett@hey.com>
Co-authored-by: Bram Kragten <mail@bramkragten.nl>
2020-11-11 10:47:06 +01:00
Philip Allgaier 8275ac5853
Ensure "next" and "prev" buttons always have ARIA label (#7588)
Co-authored-by: Bram Kragten <mail@bramkragten.nl>
2020-11-10 11:39:09 +01:00
Ryan Meek 3c4b0d4a74
Compact header (#7369)
Co-authored-by: Paulus Schoutsen <paulus@home-assistant.io>
Co-authored-by: Bram Kragten <mail@bramkragten.nl>
2020-10-21 14:18:33 +02:00
Philip Allgaier 47f0d74812
New "clickable" property for <ha-data-table> (#7351) 2020-10-15 15:57:05 +02:00
Donnie c219f64322
Rename 'quick open dialog' to 'quick bar' (#7286) 2020-10-12 10:18:18 +02:00
Donnie 8d516ed12a
Add "quick open" style dialog for selecting entities and running reload commands (#7230)
Co-authored-by: Zack Barett <zackbarett@hey.com>
Co-authored-by: Bram Kragten <mail@bramkragten.nl>
2020-10-08 13:20:57 +02:00
Bram Kragten 5937be695f
Bump Lit, use cache for query (#7245) 2020-10-06 15:55:55 +02:00
Bram Kragten de95c92e2d
Sidebar tweaks (#6994) 2020-09-14 23:46:40 +02:00
Bram Kragten 26fbc07cac
Add edit sidebar button to profile (#6943) 2020-09-12 00:04:25 +02:00
Bram Kragten 7fa9f10c30
Don't add space on the bottom when not showing tabs (#6913) 2020-09-10 17:24:01 +02:00
Joakim Sørensen bd66bd6cf0
Add color to hass-error-screen (#6803) 2020-09-06 18:29:22 +02:00
Zack Arnett e63a78bcdb
Media Browser Panel (#6772)
Co-authored-by: Bram Kragten <mail@bramkragten.nl>
2020-09-04 23:01:20 +02:00
Bram Kragten 41195dcef0
Remove animation delay from paper tooltip (#6716) 2020-08-30 10:03:04 +02:00
Joakim Sørensen 47e9531972
Use media query for darkmode on login and onboarding (#6625)
Co-authored-by: Bram Kragten <mail@bramkragten.nl>
2020-08-24 18:29:16 +02:00
Joakim Sørensen 16b8b6698c
Fixes display issues with the new darkmode (#6532)
Co-authored-by: Bram Kragten <mail@bramkragten.nl>
2020-08-06 17:51:14 +02:00
Bram Kragten ca4f573be0
Add support for safe area insets (#6473) 2020-07-30 18:27:27 +02:00
Bram Kragten f8c5eeab5d
Replace all private properties with internalProperty decorator (#6386) 2020-07-14 21:38:36 -07:00
Bram Kragten 90e14762e3
Fix double toolbars on error/loading in dev tools (#6380) 2020-07-14 21:58:40 +02:00
Bram Kragten e2cba90f8d
Fix entity filter menu on mobile (#6366)
Fixes #6364
2020-07-13 16:18:23 +02:00
Yosi Levy 7d1835e59c
Localization updates (#6359) 2020-07-11 18:07:22 +02:00
Yosi Levy c7127b65bf
Rtl updates 2 (#6340) 2020-07-07 09:24:09 +02:00
Bram Kragten 0f2e9f66b1
Add option to disable suspend connection when hidden (#6304)
Co-authored-by: Paulus Schoutsen <balloob@gmail.com>
2020-07-02 19:30:27 +02:00
Bram Kragten 1f15094da7
More scrolling restore fixes, and fix custom panel iframe check (#6290) 2020-07-01 11:35:38 +02:00
Bram Kragten b881adb853
Add restoreScroll decorator (#6289) 2020-07-01 11:04:17 +02:00
Bram Kragten 4ce9c71521
Restore scrollposition on subpages after reconnecting (#6288) 2020-06-30 09:34:17 -07:00
Bram Kragten 43fbf97e10
Restore focus when returning to tab (#6276) 2020-06-29 14:52:04 -07:00
Paulus Schoutsen 71faaf2ab1
Handle setTimeout called when tab is shown (#6257)
Co-authored-by: Bram Kragten <mail@bramkragten.nl>
2020-06-29 14:29:05 -07:00
Paulus Schoutsen e4d55e6842
Skip disconnect of custom panels and iframe panels (#6248) 2020-06-26 12:53:36 -07:00
Paulus Schoutsen 7637d36146
Fix demo suspend once and for all (#6219) 2020-06-23 11:07:01 -07:00
Paulus Schoutsen ee14d206c8
Only use suspend logic in app (#6212) 2020-06-23 08:51:41 -07:00
Paulus Schoutsen 3b779bf423
Add ha circular progress (#6205) 2020-06-22 14:51:36 -07:00
Paulus Schoutsen 4e71c2c500
Remove iron-media-query (#6206) 2020-06-22 10:25:01 -07:00
Paulus Schoutsen d0ba5696d1
Tiny cleanup (#6207) 2020-06-22 10:24:12 -07:00
Bram Kragten 33af3de4a3
Disconnect panel after 5 minutes hidden (#6152) 2020-06-12 20:44:22 +02:00
Bram Kragten 407f305d21
Fix for earlier loading the frontend (#6094) 2020-06-03 18:16:49 +02:00
Bram Kragten d0a53d1760
Handle starting the frontend before finished loading integrations (#6068)
Co-authored-by: J. Nick Koston <nick@koston.org>
2020-05-28 21:09:26 -07:00
Paulus Schoutsen aa9a354746
Preload (#6062) 2020-05-27 12:54:52 -07:00
Paulus Schoutsen af23110074
Move legacy styles to their own files (#6033) 2020-05-25 10:16:01 +02:00
Paulus Schoutsen 2153bc536c
Clean up service worker code and fix 404 (#5855) 2020-05-13 13:17:47 -07:00
Bram Kragten a27428ebcd Simplify enter handling 2020-05-09 21:17:55 +02:00
Bram Kragten db906ad4d0
Bump material (#5812) 2020-05-09 20:59:53 +02:00
Bram Kragten 3febf059ec
Codesplit Supervisor panel icons (#5809) 2020-05-08 13:10:24 +02:00
Bram Kragten 0a92c28bac
Split up mdi icons (#4379) 2020-05-05 16:40:11 +02:00
Joakim Sørensen 108233f3b8
Adds mainPage to hass-tabs-subpage (#5724) 2020-05-02 20:19:17 +02:00
Joakim Sørensen 6847830575
Use hass-tabs-subpage in add-on view (#5483) 2020-05-01 11:34:52 +02:00
Paulus Schoutsen 7c6ba1a782
Translation fixes (#5634) 2020-04-26 21:09:05 +02:00
Bram Kragten c468aab9b2
Fix some imports (#5619) 2020-04-24 15:49:25 +02:00
Bram Kragten 2503fabe1d
Add min width to toolbar icon to prevent tabs jumping (#5590) 2020-04-24 10:36:14 +02:00
Bram Kragten 1dfb632fc4
New layout for integration config (#5580)
* WIP

* Add filter message to device and entities page

* Lokalize

* Missed 2

* Fixed in #5581

* Change to hash
2020-04-22 11:51:50 +02:00
Paulus Schoutsen 82442bb5ec
Fix cast translations (#5582) 2020-04-21 15:02:00 -07:00
Paulus Schoutsen d45a674652
Ask specific translations (#5560) 2020-04-18 17:14:25 -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
Paulus Schoutsen 0c1714ef78
Reload frontend if backend changes (#5489)
* Reload frontend if backend changes

* Better implementation

* Store ha version
2020-04-10 11:55:53 +02:00
Paulus Schoutsen cb255ef137
Add icons when adding integration (#5500)
* Add icons when adding integration

* Remove margin from search input and put in parent
2020-04-09 14:44:08 +02:00
Bram Kragten a8f9f7ac7a
Datatable fab padding (#5432)
* Add padding for fab

* Add hasFab property

* Simplify

* Remove query

* Change to empty row
2020-04-03 17:46:19 +02:00
Bram Kragten 45384205eb
Also fix for wide (#5417) 2020-04-02 17:47:20 +02:00
Bram Kragten 9e2606f1c8
Data table display fixes (#5415) 2020-04-02 16:39:59 +02:00
Bram Kragten 5dcea51712 Fix default path for demo 2020-03-30 21:20:06 +02:00
Bram Kragten 8a6bd04543
Add default dashboard selection to profile page (#5360)
* Add default dashboard selection to profile page

* Comments

* Console.bye
2020-03-30 16:08:36 +02:00
Bram Kragten 5a2e08647f
Add area config page (#5343)
* Add area config page

* Comments

* Update ha-config-area-page.ts

* Update ha-config-area-page.ts
2020-03-30 14:21:36 +02:00
Paulus Schoutsen 2741bb8b38
Fix calculating title if panels not loaded yet (#5262) 2020-03-18 20:32:35 +01:00
Aidan Timson 9ee647329b
Fix Wrong Index for Filtered Tabs (#5221)
* Fix wrong index for filtered tabs

* Set active tab to actual tab and use path

* Update src/layouts/hass-tabs-subpage.ts

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

* Update src/layouts/hass-tabs-subpage.ts

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

Co-authored-by: Paulus Schoutsen <paulus@home-assistant.io>
Co-authored-by: Bram Kragten <mail@bramkragten.nl>
2020-03-17 20:44:07 +01:00
Bram Kragten 35f17fc1d4
Add no data row when data table empty (#5113) 2020-03-11 08:42:52 +01:00
Paulus Schoutsen 1a3b747d17
Style fixes to lovelace config dashboard (#5055)
* Style fixes to lovelace config dashboard

* Add standard panel and show which is default

* Update dialog-lovelace-dashboard-detail.ts

* Updated lovelace icon

* Comments and adapt to backend changes
2020-03-05 11:52:16 -08:00
Bram Kragten 8abbc71e91
Only rebuild when current panel changed (#5071)
* Only rebuild when current panel changed

* Oops

* Update yarn.lock

* copy dep to repo

* Update deep-equal.ts

* Comments
2020-03-05 12:59:18 +01:00
Bram Kragten 7e48b21767
Remove states-ui and allow setting (local) default lovelace panel (#5043)
* Remove states-ui and allow setting (local) default lovelace panel

* Remove from demo

* Delete ha-cards.js

* Add default for yaml defined dashboards

* Update ha-config-lovelace-dashboards.ts
2020-03-03 16:27:35 +01:00
Bram Kragten 5646045e9e
Add UI to create and manage Lovelace dashboards and resources (#5012)
* Add UI to create and manage Lovelace dashboards and resources

* update, comments, fixes

* Align icons with seach icon and checkboxes

* Fix

* Remove js and html resource types

* Allow it for existing ones
2020-02-28 21:58:50 +01: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 7903541689
Add toolbars and mobile headers + layout tweaks (#4803)
* Add toolbars and mobile headers + layout tweaks

* Comments
2020-02-13 19:53:48 +01:00
Bram Kragten 1912bda60d
Fix flex issues on google and alexa settings page (#4674) 2020-01-30 17:18:27 +01:00
Bram Kragten cdbd51f6f7 Update hass-tabs-subpage.ts 2020-01-28 22:44:21 +01:00
Bram Kragten 1c9eab7ca0
Change config navigation to tabs (#4630)
* Change config navigation to tabs

* Update ha-menu-button.ts

* Icons

* update

* Review comments

* configSections -> object instead of array
2020-01-28 21:48:21 +01:00
Bram Kragten 04f8f0f74f Render should always return a html template (#4612) 2020-01-27 08:34:22 -08:00
Bram Kragten 22792c70c5
Change config panel navigation (#4377)
* Change config panel navigation

* Show active + don't show toolbar?

* Update ha-panel-config.ts

* Change color of menu toolbar

* Update ha-config-router.ts

* Review comments
2020-01-12 17:57:38 +01:00
David Cramer f0808c1f54 Add ha-subppage toolbar css styles (#4409) 2020-01-02 20:55:43 +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
Paulus Schoutsen 7f10bcbfd1 Drop Babel 2019-09-08 23:39:22 -07:00
Paulus Schoutsen f7bb85d332
Do not use toggleAttribute (#3484) 2019-08-12 12:52:59 -07:00
Paulus Schoutsen 70b06861d1
Add file for custom card support (#3440) 2019-07-30 11:47:01 -07:00
Paulus Schoutsen 87293e4b15
Add more labels (#3422) 2019-07-25 10:14:05 -07:00
Paulus Schoutsen 56c08a1d07
Close the drawer when picking a panel when in forced narrow mode (#3402) 2019-07-21 11:07:26 -07:00
Paulus Schoutsen 4555bd4240
Add a force mobile mode on desktop (#3394)
* Add a force mobile mode

* Fix columns on LL

* Update text

* Move it above the push notifications

* Hide notification count when sidebar expanded and count=0
2019-07-20 17:30:25 -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 42e75e7cdf
Move notifications to the sidebar (#3317)
* Move notifications to the sidebar

* Close when navigating

* Lint
2019-06-28 14:23:29 -07:00
Paulus Schoutsen 58e6be12af
Add developer tools panel (#3313) 2019-06-28 08:34:29 -07:00
Paulus Schoutsen 2c3cc1fbc7
experimental sidebar (#3306)
* experimental sidebar

* Change default docked sidebar to true

* remove delay

* Push things down

* Speed up animation

* Always open on big screens

* Move things around

* Final tweaks

* Lint

* Don't open on hover logo
2019-06-27 15:23:05 -07:00
Paulus Schoutsen b2b18cb814
Convert cloud dashboard to use Lit router (#3223) 2019-05-28 14:31:51 -07:00
Paulus Schoutsen 7f47079750
Notify about remote portal (#3211)
* Notify about remote portal

* Update text
2019-05-23 13:16:50 -07:00
Paulus Schoutsen fcdb1b48a2
Isolate hass state from base el (#3157) 2019-05-03 20:26:01 -07:00
Robbie Trencheny d05b1ef9cc Add connection events to bus (#3117)
* Add connection events

* Fix types

* Fix order
2019-04-24 10:56:53 -07:00
Robbie Trencheny f4cfbc6678 Initial haptics support (#3099)
* Initial haptics support

* Move window stuff into types.ts

* Fire haptic events instead of expecting a messageHandler

* Style fixes, linting fixes

* Only allow whitelisted haptics

* Make requested changes
2019-04-22 09:24:30 -07:00
Paulus Schoutsen cbe5355d38 Small fixes 2019-04-09 14:26:30 -07:00
Paulus Schoutsen 1c17210948 Clean up even more (#3074) 2019-04-09 00:15:46 +02: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 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
Paulus Schoutsen 75f5325048
Simplify hass subpage (#3039) 2019-04-02 11:50:50 -07:00
Paulus Schoutsen 06b70e2653
Fix route changing on every hass change (#2988) 2019-03-21 12:22:32 -07:00
Paulus Schoutsen 6e504020bf Fix panels race 2019-03-18 10:50:45 -07:00
Paulus Schoutsen fb16156f8d
Fix routetail + config subrouting (#2951)
* Fix routetail + config subrouting

* Do not update panel when loading a new one

* Fix init skeleton not removed during loading
2019-03-16 23:15:00 -07:00
Paulus Schoutsen 23ca1b972d
Fix router (#2943)
* Fix router

* Fix demo

* Extract update routes

* Lint
2019-03-15 23:15:16 -07:00
Paulus Schoutsen 2349e2f251
Config panel routing (#2928)
* Config panel routing

* Abstract routing

* Convert partial-panel-resolver

* decorator

* Remove showMenu

* Tweaks to make it faster

* Rename update method

* Less aggressive loading
2019-03-14 15:16:46 -07:00
Paulus Schoutsen 8785b03fd8
Menu button simplify (#2930)
* Simplify the hass-menu button

* Purge showMenu boolean
2019-03-14 13:54:46 -07:00
Paulus Schoutsen 9a00c65e3b
Fix fetch translation (#2909) 2019-03-11 16:26:59 -07:00
Jason Hu f809bf0550
Save user language setting to backend (#2784)
* Save user language setting to backend

* Remove hass.selectedLanguage

* Lint

* Address code review comment

* Refactoring translation

* Code review

* Add back selectedLanguage and local app storage

* Move getTranslations to data/frontend.ts

* Fix mock hass

* Rewrite translations-mixin

* revert no need changes

* Final tweak
2019-03-08 02:49:58 -08:00
Jason Hu 34c6356a47 Display service call error message (#2874) 2019-03-01 23:09:57 -08:00
Paulus Schoutsen 6d2e480ed5
Convert ha-url-sync to TS (#2824)
* Convert ha-url-sync

* Change url-sync to be a mixin
2019-02-25 11:11:33 -08:00
yosilevy dede819a12 Removed toast (entities turn on/off and OK service calls) (#2822)
* Removed toast when entities turn on/off and services are SUCCESSFULLY called. Still will show on service error.

* Removed unused import

* Removed translations
2019-02-23 11:28:31 -06:00
Paulus Schoutsen c7500a504d Remove duplicate file 2019-02-22 22:31:39 -08:00
yosilevy 70b2ff3365 Fixed arrow in sub-page to use new arrows and fixed new button icon issues (#2807)
* Fixed arrow in sub-page to use new arrows and fixed new button icon placement problem

* Changed icon to text + added localization
2019-02-22 20:39:39 -08:00
Yosi Levy 5824e0b706 Merge branch 'dev' of https://github.com/home-assistant/home-assistant-polymer into RTL-arrow-components 2019-02-19 20:01:30 +02:00
Paulus Schoutsen c7796e9557
Allow picking users (#2768)
* Allow picking users

* Update ha-user-badge.ts
2019-02-16 11:58:07 -08:00
Yosi Levy 5d58dfab3e New arrow and chevron next+prev components 2019-02-13 19:56:12 +00: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 e1c2cf770a
Convert lit ts layout (#2742)
* Convert layout to TS/Lit

* Further cleanup

* Apply suggestions from code review

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

* Simplify error screen
2019-02-12 22:41:36 -08:00
yosilevy 9d6c0773c5 Rtl configuration fixes (#2720)
* RTL fixes to config pages

* Disconnect toast RTL

* RTL user editor - force LTR (only the user box - not the action box)

* Many RTL fixes in configuration. Keeping scrollbar in RTL so it's not obstructed. Added missing localization.

* Update disconnect-toast-mixin.ts
2019-02-11 14:40:09 -08:00
Paulus Schoutsen 039bc587cc
Add decorators (#2711)
* Add decorators

* Lint
2019-02-09 10:47:39 -08:00
Paulus Schoutsen acce6f0b2f
Fix sidebar issues (#2667) 2019-02-03 10:58:57 -08:00
Paulus Schoutsen 69aff1e204
Don't include some UI elements from base bundle (#2665) 2019-02-02 22:06:53 -08:00
Paulus Schoutsen 79183bb6ea
Cleanups (#2658)
* Import voice dialog only when needed

* Import ha-sidebar when we have first painted the page.

* Add css on LitElement for custom cards

* Import polyfill on first update

* Cleanup of imports

* TS conversion more info mixin

* Migrate auth mixin to TS

* Lint
2019-02-02 13:23:48 -08:00
Paulus Schoutsen 2afc8607c6
Fix RTL issues (#2648)
* Convert home-assistant-main to Lit/TS

* different approach

* LRT RTL

* Lint

* RTL fix for generic entity row

* Remove fetching from selectedLanguage

* RTL the RTL languages in the picker

* Fix drawer adjust to RTL
2019-02-01 12:22:11 -08:00
yosilevy ecd33fd93c RTL toast fix (#2646)
* RTL toast fix

* Removed reflectToAttribute
2019-02-01 09:40:45 -08:00
Paulus Schoutsen 175693ba4e
Allow editting entity registry (#2630)
* Allow editting entity registry

* Slight simplify

* Style fixes

* Correctly set submitting

* Apply suggestions from code review

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

* Fix invalid type

* Add config section to entity registry

* Trim

* Fix trimming
2019-01-30 13:02:41 -08:00
Paulus Schoutsen a090b291aa
Fix entity names in notification (#2612) 2019-01-28 19:36:11 -08:00
Paulus Schoutsen fa3889b549 Fix call to localize in mixin 2019-01-28 09:29:45 -08:00
Paulus Schoutsen 89630a5c7f Convert ha-sidebar to TS/Lit 2019-01-27 23:23:07 -08:00
Paulus Schoutsen 13adee09da
Fix demo routing (#2599) 2019-01-27 16:55:47 -08:00
Paulus Schoutsen c3f473c3e7
Remove Lit localize mixin (#2597)
* Remove some localize mixins form Lit Elements

* Remove litLocalizeMixin

* Revert unwanted changes
2019-01-27 16:52:15 -08:00
Paulus Schoutsen 0a09eabce3
Simplify localize (#2593)
* Simplify localize

* Delete unused file
2019-01-27 15:19:59 -08:00
Paulus Schoutsen d6887758a9
Convert <home-assistant> to Lit/TS (#2586)
* Convert home-assistant element to Lit/TS

* Fix disconnect toast

* Lint
2019-01-27 10:41:35 -08:00
Paulus Schoutsen 6b8e90ce67
Convert ha-init-page to lit/ts (#2583) 2019-01-26 22:51:07 -08:00
Paulus Schoutsen 547f829f5b
Fix panels with subpaths (#2528) 2019-01-21 21:16:34 -08:00
Bram Kragten 9a86b06092 No idea, but it seems to work? (#2526) 2019-01-21 09:17:51 -08:00
Paulus Schoutsen 0e1eaa18df
Convert Panel Resolver to Lit/TS (#2520)
* TS Panel Resolver

* Clean ups
2019-01-21 00:24:20 -08:00
Paulus Schoutsen b261e779e5
More tweaks (#2519)
* More tweaks

* Update webpack.config.js
2019-01-20 23:57:43 -08:00
Paulus Schoutsen 3b66d58f91
Fix demo translations (#2511)
* Fix demo translations

* Comment out some more panels

* Fix reference
2019-01-20 11:24:39 -08:00
Paulus Schoutsen bb71fe0bec
Add demo (#2502)
* Add demo

* Fix stuff

* Lint

* Typescript and demo card

* More fixes

* Allow switching through configs

* Lint

* Lint2

* Add two demo configs

* Lint

* Lint
2019-01-18 21:24:32 -08:00
Paulus Schoutsen 1c86fbd52c
Set preferred panel right away (#2465) 2019-01-13 09:31:33 -08:00
Paulus Schoutsen b0d32b5674
upgrade lit (#2458)
* upgrade lit

* Lint
2019-01-12 23:32:53 -08:00
Paulus Schoutsen e5bf842801
Fix service button element (#2343) 2018-12-17 09:36:55 +01:00
Paulus Schoutsen f9182e5453
Revert lovelace as default (#2237)
* Revert lovelace as default

* Better text
2018-12-10 08:57:51 +01:00
Bram Kragten 0f895fd3a1
Make Lovelace the default! (#2181)
* Make Lovelace the default!

* Move states panel to panels
2018-12-05 14:14:53 +01:00
Ronen Hayun 57b5db4f43 Move computeRTL to a separate file and add RTL support in state-info (#2165)
* RTL support (POC)

* restore yarn.lock

* Move computeRTL to a separate file and add RTL support in state-info

* Move import to top after failed CI

* Replace var to const

* Change HassEntity to HomeAssistant object

* Support RTL in state info and state card display

* Support for RTL in more-info-controls:

* Update src/common/util/compute_rtl.ts

Co-Authored-By: rhayun <ronen.hayun@gmail.com>

* remove default from export

* prefix all computeRTL with underscroe for privately uses
2018-12-03 10:54:29 +01:00
cdce8p 1cc6e09953 Add html to LitElement.prototype (#2120) 2018-11-26 23:27:00 +01:00
Paulus Schoutsen 8ad5280501
Document types in fireEvent (#2108)
* Document types in fireEvent

* Fix more types for fireEvent

* Adjust new code to new fireEvent
2018-11-25 20:47:29 +01:00
Ronen Hayun 5da16db81b RTL support (POC) (#2014)
* RTL support (POC)

* restore yarn.lock
2018-11-20 13:10:40 +01:00
Paulus Schoutsen a58a324073
Format html (#2006)
* Upgrade prettier

* Format files with prettier
2018-11-07 09:56:43 +01:00
Zack Arnett f489d88be4 Revert RTL PR (#1975)
* Revert RTL PR

* Missed this change
2018-11-03 19:15:51 +01:00
Ronen Hayun 0922314134 POC for RTL support (#1966)
* POC for RTL support

* POC for RTL support

* POC for RTL support
2018-11-03 13:21:58 +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 17ac6f96a0
Update deps (#1678)
* Update deps

* Lint

* Fix lint
2018-09-19 15:15:16 +02:00
Paulus Schoutsen 7e0ff14f28
Merge overview into integrations (#1672)
* Merge overview into integrations

* Lint
2018-09-19 11:11:00 +02:00
PhracturedBlue 494e3dc62c Fix authorization and display issues in mailbox view (#1610)
* Mailbox: Fix authorization issues.  Remove backdrop

* Fix linting issues

* Use HA Dialog system.  Fix authorization

* Add back missing backdrop

* Linting errors

* Use callApi.  Add error checking and spinner

* linting error

* more linting errors

* minor requested fixes

* Use let/const.  Fix lint issues

* Remove blob test that can never fail

* More let vs var fixes

* More minor requested fixes

* Rework code to use fetchWithAuth

* Async tweaks

* Lint

* Fix onboarding

* Add credentials for onboarding

* Lint
2018-09-11 11:33:57 +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 bbb50b1397
Better handle auth (#1637)
* Better handle auth

* Lint
2018-09-07 19:40:56 +02:00
Jason Hu e16b3db0d4 Ask "save to login" after hassConnected (#1631) 2018-09-03 13:07:34 +02:00
Paulus Schoutsen 2bd5dc21a8
Fix refresh user (#1618)
* Fix refresh user

* Lint
2018-08-31 12:28:32 +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
Jason Hu 7cc3fc728b Add ha-mfa-modules-card and setup flow (#1590)
* Add ha-mfa-modules-card and setup flow

* Add hass-refresh-current-user event

* Address code review comment
2018-08-24 19:35:33 +02:00
Paulus Schoutsen 283668ef18
Fix disconnected notification (#1569) 2018-08-13 21:22:23 +02:00
Paulus Schoutsen 310299367b
Ask to store auth (#1568)
* Ask to store auth

* Reorg auth
2018-08-13 21:10:39 +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 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
Paulus Schoutsen 229d167f89
Add current user to hass object (#1451)
* Add current user to hass object

* Add enter key support to login form
2018-07-17 09:25:46 +02:00
quthla c39b6bb665 Fix Lovelace (#1420) 2018-07-08 17:19:55 +02:00
Paulus Schoutsen c201a9073f
Fix opening menu triggers column change (#1400) 2018-07-03 14:47:36 -04:00
Paulus Schoutsen ad4814dfad
Use ha-icon when user can set icon (#1399) 2018-07-03 14:33:43 -04:00
c727 51f169aa13
Love: Add reload button to error screen (#1360)
* Love: Add reload button to error screen

* Move slot

* Feedback
2018-06-29 05:13:10 +02:00
Paulus Schoutsen 654e74294d
Default view (#1349)
* Do not rebuild config twice on tab change

* Allow setting default page
2018-06-27 14:18:58 -04:00
Paulus Schoutsen 1f8f6f52bc
Rename experimental UI to lovelace (#1307)
* Rename experimental UI to lovelace

* Lint
2018-06-20 14:18:18 -04:00
Paulus Schoutsen 4acfa2ba88
Show an error screen when panel cannot be resolved (#1303)
* Show an error screen when panel cannot be resolved

* Lint
2018-06-19 15:50:52 -04:00