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
2019-03-07 10:51:57 -08:00
2019-05-02 11:35:46 -07:00
2019-05-02 22:41:58 -07:00
2018-06-01 09:55:00 -04:00
2019-04-30 12:16:41 -07:00
2019-06-04 08:48:37 -07:00
2018-05-17 17:51:07 -04:00
2019-01-26 19:34:07 -08:00
2018-09-19 15:15:16 +02:00
2019-01-23 11:06:24 -08:00
2019-05-02 11:35:46 -07:00
2019-04-30 12:16:41 -07:00
2018-05-16 23:03:48 -04:00
2017-01-22 16:21:16 -08:00
2019-05-02 11:35:46 -07:00
2018-09-19 15:15:16 +02:00
2018-09-10 11:58:18 +02:00
2019-06-04 08:48:41 -07:00
2019-04-08 17:08:59 -07:00
2019-01-26 19:34:07 -08:00
2019-05-02 22:41:58 -07:00
2019-05-22 19:36:07 -07:00

Home Assistant Polymer Build Status

This is the repository for the official Home Assistant frontend.

Screenshot of the frontend

Development

  • Initial setup: script/setup
  • Development: Instructions
  • Production build: script/build_frontend
  • Gallery: cd gallery && script/develop_gallery
  • Hass.io: Instructions

Frontend development

Classic environment

A complete guide can be found at the following link. It describes a short guide for the build of project.

Docker environment

It is possible to compile the project and/or run commands in the development environment having only the Docker pre-installed in the system. On the root of project you can do:

  • sh ./script/docker_run.sh build Build all the project with one command
  • sh ./script/docker_run.sh bash Open an interactive shell (the same environment generated by the classic environment) where you can run commands. This bash work on your project directory and any change on your file is automatically present within your build bash.

Note: if you have installed npm in addition to the docker, you can use the commands npm run docker_build and npm run bash to get a full build or bash as explained above

License

Home Assistant is open-source and Apache 2 licensed. Feel free to browse the repository, learn and reuse parts in your own projects.

Languages
TypeScript 98.8%
JavaScript 1.1%