Commit Graph

105 Commits (271eb614cd31d2bc24107cdc41b64b9adf64d05c)

Author SHA1 Message Date
Adam Mills 7acab579b4 Use new lokalise builtin unzip for download (#900) 2018-02-17 19:49:14 -08:00
Boyi C c6030e6edc Replace Google Charts with Chart.js (#429)
* chartjs test

* [WIP] Modified for Chart.js

* Tweaking styles ( tooltips and lines )

* Almost done
TODO:
Change tooltips to HTML tag
Improve color function

* More work on Tooltips

* Improve update logic
Fix linting

* resolve conflict

* [WIP]
Create new tooltip mode hack.
Add axis padding to top and botton to prevent axis cutoff

* TODO: cleanup

* FIXME: tooltip in history graph not working correctly
reorganize some code

* fix build problem

* Fix color and tooltip issue
Fix label max width for timeline chart

* update dep

* Fix strange color after build due to `uglify` bug with reference the minified version.
Make line chart behavior more similar to Google Charts.
Make the chart honor to `unknown` and other state by manually calculate point value.

* fix bugs

* Remove label for only one data in timeline chart.
Fix bug for infinite loop in some cases

* Add HTML legend to chart.

* Fix isSingleDevice bug due to calculation.
Add isSingleDevice property support.

* fix for lint

* Replace innerHTML code with polymer node.

* Replace tooltip with HTML code

* fix tooltip style

* move default tooltip mode to plugin

* LINTING

* fix
Move localize history data to Timeline Chart.
Fix timeline static color.
Rework on chart resize.

* Bug fix:
Chart may disappear on some case.
Timeline chart calculation issue.
Change timeline chart hidden logic.

* fix tooltip
rework for resize event

* lint

* element

* Replace `var` to `let`.
Move import and ChartJs injection code to `ha-chart-scripts.html`.

* lint: convert more let to const

* fix font
fix undef

* update bower.json

* move

* Load chart code on demand
2018-02-09 22:39:15 -08:00
Andrey b16bc88eb5 Switch to Zopfli compression (#744)
* Switch to Zopfli compression

* Lint
2017-12-22 21:12:54 -08:00
Adam Mills e0a63a2ee3
Panel translation fragments (#691)
* Move flatten to separate gulp task

* Split translation fragments into separate files

* Load translation fragments when switching panels

* Fix gulpfile lint

* Move app-location to home-assistant.html

* Compute panel navigation in home-assistant.html

* Only pass down panelUrl from home-assistant.html

* Store panelUrl on hass

* Store computed panel on hass object

* Revert "Store computed panel on hass object"

This reverts commit 0f150b1faa2b91588a432ab346821b633b349d1a.

IMO this didn't really make the code cleaner. Just wanted to see how it
would look. Keeping it here as a reverted commit in case we do want to
use it.
2017-12-05 09:12:42 -05:00
Adam Mills 8cf0c0e94d Fix build attempting to include translationMaster (#628)
* Fix build attempting to include translationMaster

* Use full gulp path to run with no extra setup
2017-11-14 20:36:46 -08:00
Paulus Schoutsen 3701683d4b
Pre-construct frontend index.html (#609)
* Pre-construct frontend index.html

* Only preload things that matter

* Fix entry point in dev mode

* Template Service worker url

* Update referenced service worker
2017-11-11 13:30:14 -08:00
Adam Mills 508b5d6d77
Minify translations downloaded from Lokalise (#611) 2017-11-11 15:33:47 -05:00
Andrey 583abedd34 Support serving ES6 JS to clients (#596)
* Support serving ES6 JS to clients

* Make es6 default dir and es5 a special dir

* Fix package building

* Fix build_frontend script
2017-11-10 09:05:37 -08:00
Adam Mills 86128d54b4 Auto deploy base translations with Travis (#599) 2017-11-09 19:15:55 -08:00
Adam Mills f81429702c
Replace existing translations on upload (#597) 2017-11-09 13:42:45 -05:00
Adam Mills 5722b6bbdb
Accept Lokalise token from environment (#598) 2017-11-08 23:59:10 -05:00
Adam Mills aa389bf206 Safety check for translations upload script (#573) 2017-11-05 20:11:12 -08:00
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