1
0
mirror of https://github.com/home-assistant/frontend.git synced 2026-05-30 03:53:30 +01:00
Commit Graph

49 Commits

Author SHA1 Message Date
Bram Kragten 89ecc8bd2f Change preload to modulepreload (#8600) 2021-03-09 11:39:08 -08:00
Paulus Schoutsen e50fd80b2e Add particles to onboarding (#8567) 2021-03-09 15:30:29 +01:00
Bram Kragten f251d4267f Revert "Allow viewport scaling (zooming) of frontend" (#8353)
This reverts commit da9faccada.
2021-02-19 18:06:36 +01:00
Kendell R 0494a9d410 Update skeleton height for compact header (#7827)
Co-authored-by: Bram Kragten <mail@bramkragten.nl>
2020-11-27 19:23:41 +01:00
Paulus Schoutsen 0049be7feb Allow developing with @web/dev-server (#7782) 2020-11-23 13:05:18 +01:00
Joakim Sørensen d09c4898c1 Remove logs and fix dark theme during onboarding restore (#7579) 2020-11-09 22:50:16 +01:00
Bram Kragten f6ff652ca4 Fix es5 build (#7319) 2020-10-14 22:20:39 +02:00
David Beitey da9faccada Allow viewport scaling (zooming) of frontend (#7180)
The inclusion of the `user-scalable=no` value in the viewport meta tag
prevented viewport scaling, disabling the ability to zoom the webpage.
This most typically affects mobile devices, given the nature of the
`<meta name="viewport">` tag.

Removing the restriction allows a user to zoom in to see small and fine
detail in the UI -- such as zooming in on particular areas of a home
security camera streams or other images, inspecting detail in state and
other graphs, and so on.

For users with accessibility requirements, such as low vision
conditions, being able to zoom the frontend means they can enlarge UI
elements to suit them (MDN explains several accessibility concerns at
https://developer.mozilla.org/en-US/docs/Web/HTML/Element/meta/name#Accessibility_concerns_with_viewport_scaling)

This change has no effect on users that choose not to use it (for
example, only those that engage zooming such as via pinch-to-zoom on
mobile devices will see the change) -- the frontend remains the same
otherwise.  Elements of the frontend that do use pinch-to-zoom (e.g. the
Map) continue to work as expected, with pinches on that screen area
being captured by the map.
2020-10-05 13:29:07 +02:00
Bram Kragten 810d2a1ceb Fix onboarding dark mode (#6910)
Fixes #6882
2020-09-10 13:11:27 +02:00
Paulus Schoutsen 9149bb9333 Remove deprecated HTML support (#6858) 2020-09-08 15:41:17 +02:00
Bram Kragten 80224e6974 Fix onboarding styling (#6819) 2020-09-07 19:48:19 +02:00
Bram Kragten e5c386c39a Fix white flash in dark mode (#6815) 2020-09-07 18:19:28 +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 271eb614cd Use primary-background-color when it exists (#6594) 2020-08-11 13:22:46 +02:00
Joakim Sørensen 49683326e6 Reorder to not break jinja templates (#6564) 2020-08-07 15:59:22 +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 4ca13c409b Introduce dark mode and primary color picker (#6430)
Co-authored-by: Paulus Schoutsen <balloob@gmail.com>
2020-08-03 02:07:12 +02:00
Bram Kragten ca4f573be0 Add support for safe area insets (#6473) 2020-07-30 18:27:27 +02:00
Paulus Schoutsen 454ddf366a Use dynamic import for cast/demo to show latest build (#6202) 2020-06-22 10:24:54 -07:00
Paulus Schoutsen 8c0c0592e2 Move Jinja directives to own script block (#6166) 2020-06-15 16:18:58 +02:00
Paulus Schoutsen d6c85719c9 Fix preload Roboto on older devices (#6165) 2020-06-14 21:08:10 -07:00
Paulus Schoutsen 67ac3b4ba3 Drop Custom Elements ES5 adapter (#6107) 2020-06-05 11:04:19 +02:00
Paulus Schoutsen 6c8aedfb8b Fix feature detection for module browsers that do not support dynamic… (#6069) 2020-05-28 12:28:58 -07:00
Paulus Schoutsen aa9a354746 Preload (#6062) 2020-05-27 12:54:52 -07:00
Paulus Schoutsen 050cdf3783 Integrate compatibility into other entrypoints (#6029) 2020-05-25 19:36:22 +02:00
Paulus Schoutsen 7e281f66c2 Rollup (#5995) 2020-05-22 23:05:47 -07:00
Bram Kragten 0a92c28bac Split up mdi icons (#4379) 2020-05-05 16:40:11 +02:00
Bram Kragten 8f2a7c95b3 Fix more info header color and page background color (#5716) 2020-05-02 19:51:10 +02:00
Bram Kragten 4f70ec7dc2 Set correct lang attribute (#5479)
* Set correct lang attribute

* Update lit-localize-lite-mixin.ts

* Update translations-mixin.ts

* Remove lang=""

* Move logic out of mixin
2020-04-08 12:36:06 +02: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
Paulus Schoutsen a59f0086b5 Fix proper script closing tag (#3405) 2019-07-21 12:20:37 -07:00
Paulus Schoutsen f32eb971a4 Properly close script tag 2019-07-21 11:30:57 -07:00
Paulus Schoutsen cdd007cc54 Ensure load order (#3346) 2019-07-10 09:27:25 -07:00
Paulus Schoutsen 2929db5ba4 Fix fonts precaching (#3338)
* Fix font urls

* Don't zopfli nonexisting fonts
2019-07-10 08:18:04 -07:00
Thomas Lovén cbdb222f72 Import extra_html_url using js instead of deprecated link tags (#3288)
* import extra_html_url using js instead of deprecated link tags

* Import modules instead

* Address comment

* Rename variables for es5 scripts

* Address comments
2019-06-21 20:55:53 -07:00
Paulus Schoutsen 98c419ff03 Switch to woff2 fonts (#3296) 2019-06-21 12:48:20 -07:00
Tor Arne Vestbø a396a4e666 Pass credentials (cookies e.g.) when loading JavaScript assets (#3259)
The behavior of 'crossorigin' without a value is the same as
anonymous, which means user credentials such as cookies,
client-side SSL certificates or HTTP authentication will
not be passed on.

We want the preload links to work even when they are behind
a proxy that requires an authentication cookie, such as
Cloudflare Access (CF_Authorization), so we need to explicitly
send credentials with the "use-credentials" value.

ES modules are always fetched with CORS, with anonymous being
the default. Some browsers (Chromium) will realize that the
request is to the same origin, and send credentials anyways,
while others (Safari) will not, so we need to explicitly send
credentials to make sure they load in all cases.

See https://jakearchibald.com/2017/es-modules-in-browsers/
2019-06-10 13:41:59 -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
Robbie Trencheny eaa2ce1462 Ask users if they want to install iOS app (#3100) 2019-04-18 20:54:52 -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 23ca1b972d Fix router (#2943)
* Fix router

* Fix demo

* Extract update routes

* Lint
2019-03-15 23:15:16 -07:00
Paulus Schoutsen 28d3f445f6 Align theme color 2019-01-23 15:51:56 -08:00
Paulus Schoutsen 22eb6c6a8d Remove special char 2018-11-30 16:24:13 +01: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 13ff59ec89 Fix hass icons 2018-08-24 21:59:53 +02:00
Paulus Schoutsen a960084438 Include ES5 version of hass-icons (#1574) 2018-08-16 13:39:43 +02:00
Paulus Schoutsen a9f29a3151 Fix custom panel include (#1539) 2018-08-04 15:15:44 +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