43 Commits

Author SHA1 Message Date
Adam Mills
90b80880ed Store current translations in git (#563)
* Store current translations in git

* Handle empty strings in translation downloads

* Use more consice filtering

* Skip empty keys on translation download
2017-11-04 16:44:07 -07:00
Adam Mills
6959b1849f Store language native names in git (#556)
* Don't delete the gitignore file

* Store translation native names in git
2017-11-03 21:31:22 -07:00
Adam Mills
fdf2fa3d3f Migrate to Lokalise for managing translations (#555) 2017-11-03 20:34:47 -07:00
Paulus Schoutsen
7e3d3b757c Update release script 2017-10-26 22:22:42 -07:00
Paulus Schoutsen
6e90b70b0c Make script/release executable 2017-10-26 22:17:14 -07:00
Andrey
7bd7f14913 Call build from bootstrap. Allow nonfingerprinted mdi. (#476) 2017-10-26 20:26:38 -07:00
Adam Mills
29fad98754 Core POC support for polymer i18n (#227)
* Core POC support for polymer i18n

* Move translation from core.js to html

* Replace fetch with XHR

* Convert translation pipeline to gulp

* Convert from polyglot to Polymer localize

* Pass through missing keys for custom panels

* Store promise to be reused

* Use cacheFirst sw handler for translations

* Write full filenames to translationFingerprints

* Precache en translation

* Convert home-assistant-main to ES6 class

* Create a localization mixin

* Cleanup

* Add polymer tags to annotate for linter

* Rename fingerprints to translationMetadata

* Build translation native names into metadata

* Add language selection UI to sidebar

* Provide separate message namespace argument

* Store language/resources on hass object

* Store translationMetadata on hass

* Move language selector to config panel

* Temporarily hide language selector

* Small cleanups

* Use dynamic-align for more flexible layout

* Migrate to fetch API

* Only send change events for user selection events

* Update for new linting rules

* Migrate build_frontend changes
2017-10-25 18:12:23 -07:00
Paulus Schoutsen
417d8e7ed8 Consolidate frontend (#468)
* Consolidate frontend

* Remove no longer needed cd

* Get Roboto from bower_components

* Remove external dependency from update_mdi.py

* Copy leaflet assets on build time

* Tweak Dockerfile

* Create Python package

* Set zip_safe to False

* Update build scripts

* Version bump to 20171021.0

* Fix service worker

* Version bump to 20171021.2

* Update docker ignore

* Tweak Dockerfile thanks to Adam
2017-10-24 19:36:30 -07:00
Paulus Schoutsen
512b07963b Add build using polymer-build (#344)
* Add build using polymer-build

* Use bundle strategies to tweak stripExcludes

* Only vulcanize hass.io panel

* Rename hassio panel generate script

* Remove hydrolysis

* Get it all somewhat working

* Fixes

* Allow ES2015 + fix minify JS

* Clarify we need to fix service worker minify

* Move service worker template out of tasks folder

* Fix broken CSS

* Wrap it up

* Fix maps
2017-08-02 21:31:04 -07:00
Paulus Schoutsen
35c4e1d5ae ES5 cleanup 2017-07-16 22:19:02 -07:00
Paulus Schoutsen
31af2968da Log error in vulcanize.js when one is raised 2017-07-01 15:01:45 -07:00
Paulus Schoutsen
c5a5f41d3c Fix hassio panel build 2017-05-19 14:54:26 -07:00
Paulus Schoutsen
44e925a9ff Load Hass.io panel from supervisor in prod 2017-05-11 23:43:19 -07:00
Paulus Schoutsen
ca82a411aa Add automation editor (#275)
* Add automation editor

* Build JS before running tests

* Add browser warning

* Re-order from/to in state
2017-05-09 09:37:10 -07:00
Adam Mills
5207629e87 Add Object.assign polyfill support (#210)
* Add Object.assign polyfill support

* Remove redundant polyfill check

* Use ES6 in compatibility.js
2017-02-14 12:01:32 -08:00
Paulus Schoutsen
95cbc85b7f Revert: Always cache all panels in service worker. 2016-10-02 15:27:58 -07:00
Paulus Schoutsen
0a4454c68f Always cache all panels in service worker. 2016-09-19 23:52:44 -07:00
Paulus Schoutsen
7d32ee0912 Add optimize-js to build toolchain 2016-09-19 21:09:29 -07:00
Robbie Trencheny
8439fafb7f Clean up event types to make them more human friendly 2016-08-17 14:39:53 -07:00
Robbie Trencheny
5bb5d6800c Improve readability, add data support to callbacks, remove notification from the type 2016-08-17 14:37:08 -07:00
Robbie Trencheny
b90b8f87bc Add callback support to push notifications (#90)
* Add callback support to push notifications

* Syntax fix

* Fix callbacks for initial push event

* Add JWT.

* Whoops, jwt was grabbed from the wrong spot
2016-08-16 23:57:42 -07:00
Paulus Schoutsen
af4af1e933 Restructure service worker stuff 2016-08-14 00:58:40 -07:00
Paulus Schoutsen
5efe930d6c Add HTML 5 push notifcations support (#89)
* Add push notification handling to service worker

* Add push registration to sidebar

* Whitelist manifest.json

* Remove unused property

* Catch if no url specified

* Fix eslint

* Fix bug

* Fix some bugs

* More Firefox proof

* Moar fixes

* Fix semi
2016-08-14 00:31:52 -07:00
Paulus Schoutsen
d7f79ff8fa Disable service worker in dev mode 2016-08-08 00:08:01 -07:00
Paulus Schoutsen
0255537ea6 Remove loading box component 2016-07-31 14:43:07 -07:00
Paulus Schoutsen
697f9397de Make local dir work again 2016-07-30 11:21:07 -07:00
Paulus Schoutsen
fe6fa5cab6 Tweak vulcanize script 2016-07-23 10:02:08 -07:00
Paulus Schoutsen
22a3ecca85 Whitelist service worker url 2016-07-20 23:38:48 -07:00
Paulus Schoutsen
9239a56958 Use hydrolysis for optimal panel built size 2016-07-19 02:27:46 -07:00
Paulus Schoutsen
4029f16e97 Reorg into panels (#75) 2016-07-16 23:19:49 -07:00
Paulus Schoutsen
f7ecdd9ce2 Migrate to Rollup + Buble 2016-07-13 23:04:26 -07:00
Paulus Schoutsen
7be7cf463c Update service worker script 2016-07-13 19:10:45 -07:00
Paulus Schoutsen
b1b776543a Tweak dependency tree 2016-07-12 09:13:19 -07:00
Paulus Schoutsen
e7ee8c54bd Defer loading of dev tools 2016-07-12 08:59:07 -07:00
Paulus Schoutsen
78c8e680b2 Extract partial map as standalone file 2016-07-12 00:09:06 -07:00
Paulus Schoutsen
ec7dfb28e8 Move HA-JS to git submodule 2016-06-14 01:26:02 -07:00
Paulus Schoutsen
16e3ac15bb Experimental rollup support 2016-05-28 23:22:24 -07:00
Paulus Schoutsen
439545b4f8 Optimize loading core 2016-05-28 18:32:42 -07:00
Paulus Schoutsen
0be98873d7 Use sw-precache to generate service worker 2016-05-27 21:44:37 -07:00
Paulus Schoutsen
25a7759be0 Minify CSS 2016-05-07 08:06:21 -07:00
Paulus Schoutsen
097f85cab2 Update dependencies 2016-05-06 23:34:52 -07:00
Paulus Schoutsen
d9232df18b Add local roboto 2016-04-08 00:09:52 -07:00
Paulus Schoutsen
ac34b5fc26 Move minify script 2015-10-25 19:01:27 -07:00