28 Commits

Author SHA1 Message Date
Adam Mills
fb0b1286d2 Convert remaining elements to ES6 classes (#538)
* Convert remaining elements to ES6 classes

* Use native DOM methods for tests

* Fix Polymer 2 debounce call
2017-10-29 21:47:03 -07:00
Paulus Schoutsen
bb83687d93 Polymer 2 prepare (#309)
* Remove unused paper-range-slider

* Update app-storage

* Upgrade paper-slider to 2.0

* Upgrade paper-scroll-header-panel

* Update paper-card

* Update slots

* Working upgrades

* More slots

* Upgrade app-layout

* More slot upgrades

* Vaadin components to Polymer hybrid ones

* Polymer 2 fixes

* Update polymer to 1.9.2

* Lint
2017-06-18 11:29:20 -07:00
Paulus Schoutsen
4b38a16848 Fix logbook 2017-04-27 00:50:31 -07:00
Anders Melchiorsen
5357fc25d8 Rewrite _currentDate to work in all time zones (#266)
* Rewrite _currentDate to work in all time zones

The method toISOString() returns a timestamp in UTC. Thus, midnight in the CET
timezone (UTC+1) was converted into yesterday@2300 and then that date was used
as the current date.

This made the logbook and history start with yesterday's data, at least for
locations east of UTC.

The new version avoids this by using methods that work in local time.

* Remove an embarrassing amount of lint

* Rewrite to be more concise

Proposed by @armills.
2017-04-25 19:56:23 -07:00
Paulus Schoutsen
67b59f1976 Shadow dom fixes (#241)
* Fix color picker

* Fix map panel CSS

* Convert logbook to use vaadin date picker

* Fix logbook clear date

* Migrate history panel to use vaadin date picker

* Remove pikaday

* Lint

* history panel: disable on loading
2017-03-19 21:55:52 -07:00
Paulus Schoutsen
11ced71eb2 Fix: Reverse logbook order 2017-02-11 18:44:19 -08:00
Paulus Schoutsen
06edb22651 Fix dates on history and logbook 2017-01-30 09:06:08 -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
Michaël Arnauts
5d6cd514ab Tweak panel padding so they match with eachother (#171) 2017-01-06 11:21:16 +01:00
Michaël Arnauts
57071f7250 Fix locale for non-english users (#170)
* Take navigator.languages into account when determining the preferred language

* Lookup language only once, use it also for other date/time functions

* Show the date picker value in localized date

* Show the date picker value in localized date (in history)
2017-01-05 14:38:27 +01:00
Michaël Arnauts
cc64fc9809 Don't capitalize entity names in the UI, causes the UI to use the specified friendly_name from the configuration. (#164) 2016-12-27 21:28:44 +01:00
Adam Mills
744198cdc9 Use native date formatting functions if available (#87)
With the removal of moment.js, dates and times are no longer formatted
using the native locale. This allows the browser to format if the
functionality is available (Everyone but Safari).

Also included is a correction in relativeTime. Times in the future were
being displaed incorrectly -xxx seconds, and the in/ago verbage was
reintroduced.
2016-08-10 13:30:06 -07:00
Paulus Schoutsen
c4b17a24a3 Fix imports thanks to polymer-lint 2016-08-02 09:06:22 -07:00
Paulus Schoutsen
7ae4b50167 Remove moment in favor of fecha 2016-07-31 19:05:44 -07:00
Paulus Schoutsen
0255537ea6 Remove loading box component 2016-07-31 14:43:07 -07:00
Paulus Schoutsen
057adee010 Migrate panels to app elements 2016-07-30 22:48:39 -07:00
Adam Mills
b3efdd9efa Additional comments for pikaday field binding 2016-07-27 14:27:27 -04:00
Adam Mills
77e8c78d62 travis fixes 2016-07-26 14:05:06 -04:00
Adam Mills
0a0a24e5eb History and Logbook panel fixes 2016-07-26 13:57:56 -04:00
Adam Mills
1203312ac3 Fix indentation 2016-07-25 18:31:20 -04:00
Adam Mills
eb7dc87971 Use local timezone for log and history dates 2016-07-25 12:02:36 -04:00
Paulus Schoutsen
c263545bda Fix eslint 2016-07-23 10:47:35 -07:00
Paulus Schoutsen
de754bb903 Fix logbook open panel 2016-07-23 08:27:10 -07:00
Paulus Schoutsen
35edf041ae More re-org 2016-07-19 23:33:03 -07:00
Paulus Schoutsen
8c3f760683 Lint panels 2016-07-19 02:25:26 -07:00
Paulus Schoutsen
111b6c6f48 More ES6->ES5 conversion 2016-07-17 23:18:48 -07:00
Paulus Schoutsen
ff0e24fecb Lint fixes 2016-07-17 21:24:55 -07:00
Paulus Schoutsen
4029f16e97 Reorg into panels (#75) 2016-07-16 23:19:49 -07:00