26 Commits

Author SHA1 Message Date
Bram Kragten
1bccbd4173
Use browser default time and number formatting with polyfills if needed (#9481)
Co-authored-by: Paulus Schoutsen <balloob@gmail.com>
2021-09-29 23:34:52 +00:00
Philip Allgaier
605172a0bc
Align internal and fecha date/time formatting (#9380) 2021-09-06 10:22:01 +02:00
Bram Kragten
5dad18c85f
Make time inputs the same through the UI (#9766) 2021-08-12 22:52:26 +02:00
Bram Kragten
dc50e54afc
Add period selection to energy dashboard (#9756) 2021-08-11 01:22:27 +02:00
Bram Kragten
e797c01761
Update lint rules (#9563)
Updated deps

Added `unused-imports`, prefer arrow, and import order
2021-07-15 12:08:04 +02:00
Bram Kragten
0ef3421fa2
Bump chartjs to version 3 (#9401) 2021-06-18 11:15:07 +02:00
Philip Allgaier
70a1edd1dd
Allow users to select time format for UI rendering (#9042)
Co-authored-by: Bram Kragten <mail@bramkragten.nl>
2021-05-20 16:23:53 +02:00
Josh McCarty
f43c420d59
Create number formatting options on the profile panel (#7925) 2021-03-28 18:32:48 +02:00
Philip Allgaier
0dd9b21c2d
Add minutes to hourly weather forecast time display (#8182)
Co-authored-by: Bram Kragten <mail@bramkragten.nl>
2021-01-26 16:14:34 +01:00
Philip Allgaier
fe13853b8b
Allow timestamp attribute formatting + central timestamp formats (#8162) 2021-01-22 20:24:31 +01:00
Jaroslav Hanslík
b8777539d7
Fixed localization of relative time (#7256) 2020-10-08 15:53:59 +02:00
Bram Kragten
bc4c9cc40d
Adjust tags just scanned time display (#6663) 2020-08-24 16:48:00 +02:00
Jelle Raaijmakers
8ce120b74d
Round values for relative time instead of flooring (#6225) 2020-07-09 11:19:59 -07:00
Bram Kragten
636429ccfa
Bump fecha (#5728) 2020-05-06 12:58:53 +02:00
Ruslan Sayfutdinov
c977f22047
Show seconds in the UI (#4765) 2020-02-06 10:38:38 -08:00
Bram Kragten
8a39d18323 Bump TypeScript to 3.7 (#4282)
* Bump TypeScript to 3.7

* Update prettier to support ts 3.7

* Prettier

* More prettier

* Even more prettier
2019-11-27 13:51:03 -08:00
Paulus Schoutsen
0a09eabce3
Simplify localize (#2593)
* Simplify localize

* Delete unused file
2019-01-27 15:19:59 -08:00
Paulus Schoutsen
a7ab652dd3
Add support for timestamp device class (#2087) 2018-11-23 19:38:28 +01:00
Paulus Schoutsen
92af45d7fd Lint 2018-11-06 11:51:33 +01:00
Paulus Schoutsen
cdb2093ea6
Ts all the tests (#1998)
* Convert tests to TypeScript

* Add types for tests

* Rename files to TS

* Fix up test imports

* Fix TSC errors

* Liiiint

* Add types to util method signatures

* Some more types
2018-11-06 10:09:09 +01:00
Paulus Schoutsen
34bfc12647
Prettier 💎 (#1737)
* Add prettier

* Apply Prettier
2018-10-11 12:22:11 +02:00
Paulus Schoutsen
17ac6f96a0
Update deps (#1678)
* Update deps

* Lint

* Fix lint
2018-09-19 15:15:16 +02:00
c727
4c3e039423 Use separate duration for relative time (#1463) 2018-07-18 09:50:31 +02:00
c727
1a3966e55f Localize ha-relative-time (#1241)
* Localize relative time

* Add mixin

* Pass hass to ha-relative-time

* Remove debug

* Add hass

* Add hass everywhere

* Remove value from translation file

* Add quotes to attributes

* Lint

* Fix in hassio file

* Use current placeholder syntax

* Use correct syntax

* Move to ui.components
2018-06-01 09:55:00 -04:00
c727
2f6bb9af0c
Correct relative time logic (#1231) 2018-05-30 13:18:14 +02:00
Paulus Schoutsen
f70c0aea6c
Org files (#1183)
* Organize files

* Import EventsMixin

* Import NavigateMixin

* Dissolve window.hassMixins

* Apply ElementMixin when we use it

* Update tests to point at right dir

* Eslint

* Clean

* Update mixins inside hassio

* Update lint command"

* Fix polymer lint
2018-05-16 13:47:34 -04:00