795 Commits

Author SHA1 Message Date
Adam Mills
a723c62f4f Separate more JS util logic to be unit tested (#705)
* Move featureClassNames to js util

* Add tests for featureClassNames

* Strip empty feature class names

* Move canToggleDomain to js util

* Add tests for canToggleDomain

* Refactor canToggleDomain to ensure boolean return

* Switch to chai assert for richer syntax options

* Move canToggleState to js util

* Tests for canToggleState

* Enable linting for mocha tests

* Move stateCardType to js util

* Add tests for stateCardType

* Move stateMoreInfoType to js util

* Tests for stateMoreInfoType

* Include mdn Array includes polyfill
2017-12-03 20:56:16 -08:00
Paulus Schoutsen
10ddb7faac
Minify once, reduce build warnings (#692)
* Minify once, reduce build warnings

* Remove rollup-plugin-uglify

* address comment
2017-11-26 17:20:55 -08:00
Paulus Schoutsen
3d90d1d016
Tweak index.html (#657) 2017-11-20 21:52:35 -08:00
Adam Mills
70c082716f MVP tests for hass-util.html (#629)
* MVP tests for hass-util.html

* MVP util.js to allow individual JS function export

* Use mocha to unit test js logic

* Isolate mocha test directory

* Move mocha opts to separate file

* Default export of util function

* Use reify for mocha tests instead of babel
2017-11-15 21:42:54 -08:00
Adam Mills
3ff9fe1041 Build ES5/ES6 in parallel to share gulp deps (#615)
* Build ES5/ES6 in parallel to share gulp deps

* Rollup es5 files into build-temp-es5

* Use correct ES5 path for compatibility.js
2017-11-15 18:05:52 -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
adac8e55d7 Updates packages and clean gulp/ JS (#610) 2017-11-11 11:32:22 -08: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
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
Adam Mills
f24cb3eed5 Only generate fingerprints for non-dev SW (#453) 2017-10-11 23:36:04 -07:00
Andrey
bc0d44ca81 Upgrade eslint to 4.8.0 (#445)
* Upgrade eslint

* Fix post-merge errors
2017-10-08 21:08:06 -07:00
Andrey
29acf77eb5 Upgrade packages (#444) 2017-10-05 21:22:41 -07:00
Paulus Schoutsen
632f2bdaa7 Update dependencies (#412) 2017-08-27 14:09:02 -07:00
Paulus Schoutsen
9b9cba86c2 Fix Hass.io build script (#405) 2017-08-21 22:44:20 -07:00
Paulus Schoutsen
f02d42d79c Automation update (#382)
* Add missing triggers

* Move onChangeEvent to generic util

* Generate dev service worker in dev mode

* Add actions

* Lint

* Add condition support

* Add condition actions
2017-08-09 00:44:17 -07:00
Andrey
7c489e69bb Make tests pass (#374)
* wct misbehaves on hyphen casing on FF

* Upgrade web-component-tester to 6.0.0

* Update some bower packages to prevent conflicts

* Pin webcomponentsjs to 1.0.4
2017-08-04 22:56:52 -07:00
Paulus Schoutsen
572f92fd1e Migrate to Polymer 2 (#370)
* Update bower.json to point at Polymer 2

* No longer use babel to run node scripts

* Refer to CSS from static dir

* Fix some panel bugs
2017-08-03 23:40:16 -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
Adam Mills
2c69e001ee MVP Gulp introduction (#334)
* Install gulp as dev dependency

* Placeholder gulpfile

* Replace rollup invocations with gulp

* Consolidate duplicated code

* Big cleanup of gulpfile

* Without cache test

* Revert "Without cache test"

This reverts commit 0e3881d8d79b81faa514669fa2836e415dcc5c95.
2017-07-13 09:08:26 -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
Paulus Schoutsen
eb4588938b Update dependencies 2017-04-18 20:44:55 -07:00
Andrey
57512211d7 Add web-component-tester tests (#255)
* Use travis.yml from polymer

* Update .travis.yml

* Try wct tests

* Encrypt Sauce env

* More test config

* Update2

* try to remove souce_connect

* Try another config

* More browsers

* Clean tabs, test shadow dom.
2017-04-03 22:51:20 -07:00
Beat
7f69540a92 added missing executor (#250)
Executing a JS script fails on some systems (good thing I replaced my default program for JS on windows!). It's bad practice.
2017-03-31 09:00:37 -07:00
Paulus Schoutsen
7b3a0aa5d6 Update dependencies 2017-03-14 22:07:11 -07:00
Paulus Schoutsen
14ea3e3af4 Upgrade dependencies 2017-02-15 22:24:20 -08: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
e570c961e8 Lint 2017-02-13 23:34:43 -08:00
Paulus Schoutsen
a3528a1eb1 Update Home Assistant JS Websocket 2017-02-01 00:09:50 -08:00
Paulus Schoutsen
1e2ffae63f Cleanup package.json 2017-01-30 09:15:11 -08:00
Paulus Schoutsen
a1057681f1 Initial getting rid of HA-JS (#180)
Getting rid of HA-JS
2017-01-29 18:34:45 -08:00
Robbie Trencheny
2f71369dae Update package.json to reflect new Apache 2.0 license 2017-01-28 12:18:40 -08:00
Paulus Schoutsen
9aa7a2a162 Update packages 2017-01-20 22:46:09 -08:00
Paulus Schoutsen
e2a03cb6fd Update dependencies 2016-12-04 12:45:28 -08:00
Paulus Schoutsen
24dd4357d8 Migrate to use websocket client (#158)
* Migrate to websocket client HA-JS

* Bump dependency to 0.1.4

* Upgrade HA-JS

* Fix missing import
2016-11-26 23:41:51 -08:00
Paulus Schoutsen
0df7f83ebd Upgrade dependencies 2016-11-26 17:43:55 -08:00
Paulus Schoutsen
51bfd5b596 Yarn upgrade 2016-10-21 20:48:41 -07:00
Eric Hagan
1990caf454 Adding uglify-js dependency to package.json (#135) 2016-10-20 22:19:06 -07:00
Paulus Schoutsen
75d760fc3e Upgrade rollup 2016-10-13 23:59:53 -07:00
Frank
db109f5dda Correct URL's for the hass repo's (#121) 2016-10-08 08:19:18 -05:00
Paulus Schoutsen
7d32ee0912 Add optimize-js to build toolchain 2016-09-19 21:09:29 -07:00
Paulus Schoutsen
8394f10ca4 Update dependencies 2016-09-18 00:03:07 -07:00
Paulus Schoutsen
afcfb4311a Update package.json 2016-09-07 21:48:30 -07:00
Paulus Schoutsen
c0c0b2c2f3 Update packages 2016-08-21 15:30:51 -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
3a8e758a31 Update packages 2016-08-08 00:38:26 -07:00
Paulus Schoutsen
1e4a049efe Update sw-precache to 4.0 2016-08-08 00:29:31 -07:00
Paulus Schoutsen
d7f79ff8fa Disable service worker in dev mode 2016-08-08 00:08:01 -07:00