1
mirror of https://github.com/home-assistant/frontend synced 2024-08-19 13:25:07 +02:00
Commit Graph

65 Commits

Author SHA1 Message Date
Paulus Schoutsen
912969111f
Move all of hassUtil to JS (#1153)
* Move all of hassUtil to JS

* Fix tests
2018-05-09 21:33:31 -04:00
Paulus Schoutsen
4c6d9602ae
Remove zoom plugin (#1104) 2018-04-27 14:09:25 -04:00
c727
a983a5dbc5 Weather card without chart (#1117)
* Weather card without chart

* Lint

* Add iron-icon

* Add night icon and translation

* More translations

* Lint

* Feedback

* More Flexbox KungFu

* Finishing

* Use hass lang instead of browser lang

* Add more info card

* Lint

* Improve support for other providers

* Support non-daily forcasts

* Here we go
2018-04-26 17:16:02 -04:00
Boyi C
f21db486eb Update timeline to 0.1.5, improve drawing for small element. (#1121) 2018-04-26 16:34:55 -04:00
NovapaX
51f4028343 Fix scrollable clipping controls because of webkit-overflow-scrolling: touch; (#1065)
* change labeled slider

* fix `-webkit-overflow-scrolling: touch` clipping positioned elements

* Revert "change labeled slider"

This reverts commit fc34cb712b.
2018-04-03 16:47:26 -07:00
Boyi C
9dc33de49f Update chartjs to 2.7.2 (#963)
* Update chartjs to 2.7.2

* lint

* lint
2018-03-03 17:43:27 -08:00
Paulus Schoutsen
9f27f75397 Upgrade chartjs timeline to 0.1.4 2018-02-20 09:05:15 -08:00
Tabakhase
72a0b3520d Bring back zoom in charts using chartjs-plugin-zoom (#890)
* add chartjs-plugin-zoom + hammerjs

* adds a "unzoom" button for chartjs-plugin-zoom

* limits chartjs zoom and pan area by scanning all axis
2018-02-18 08:12:30 -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
Paulus Schoutsen
c1e7f4cc77 Add iron-label to bower.json 2017-12-03 17:10:21 -08:00
Paulus Schoutsen
0707528bd7
Entity dropdown improvement (#674)
* Ignore hass changes while dropdown is open

* Upgrade vaadin-combo-box

* Fix styling on dev-service panel

* Fix styling for ha-entity-dropdown

* Fix height vaadin-combo-box dropdown

* Rename ha-entity-dropdown to ha-entity-picker

* More entity improvement (#675)

* Update script and automation editor to use entity picker

* Add entity and service picker to service dev panel

* Lint
2017-11-25 16:00:43 -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
Lukas Barth
27ce63bb0c WIP: add an input_datetime (#418)
* Initial work on input_datetime

* Properly format date and time

* Linting

* Use dom-if

* Converting to Polymer 2 class

* Some linting

* Cache domain, linting

* More linting

* Use on-value-changed instead of value observer.

Also, fix off-by-one b/c of 0-indexed months. Thanks, JavaScript.
2017-10-24 23:17:26 -07:00
Andrey
29acf77eb5 Upgrade packages (#444) 2017-10-05 21:22:41 -07:00
Paulus Schoutsen
a3e28f717a Update webcomponentsjs to 1.0.10
Fixes #428
2017-09-12 21:09:01 -07:00
Boyi C
7333a00384 Use local font-robot file for development (#419)
Use font-roboto-local to replace font-roboto on development, to reduce page load time.
2017-09-06 07:16:06 -07:00
Paulus Schoutsen
e81326cb65 Fix build 2017-08-06 10:55:46 -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
35c4e1d5ae ES5 cleanup 2017-07-16 22:19:02 -07:00
Paulus Schoutsen
49afc18818 Update iron-list and iron-bower 2017-07-06 21:18:02 -07:00
Paulus Schoutsen
10d5a05d1f Use app-route for routing (#328)
* Use app-route for routing

* Fix bower

* Fix default route

* Add back button support back
2017-07-06 21:06:07 -07:00
Andrey
bac1142bc6 Update iron-resizable-behavior to 2.0.1 (#321) 2017-07-02 11:00:18 -07:00
Paulus Schoutsen
af8b10e06a Fix bower dependency resolution (#317) 2017-06-25 21:50:21 -07:00
Paulus Schoutsen
8b6db691ef Road to polymer 2 pt 2 (#310)
* Remove default-primary-color var

* Swap out paper-menu for paper-listbox
2017-06-18 19:30:18 -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
Andrey
9aa188079e upgrade paper-slider and remove min-max hack (#252) 2017-04-02 17:37:39 -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
5d223c8da4 Add initial group config panel (#218)
* Add initial group config

* Tweak labels for group form
2017-02-20 21:54:11 -08:00
Paulus Schoutsen
44ed827145 Upgrade to Polymer 1.8 2017-02-08 20:50:28 -08:00
Paulus Schoutsen
cc768b290a Update bower deps 2017-01-20 22:57:08 -08:00
Paulus Schoutsen
b5c3575cb5 Upgrade to polymer 1.7.1 2016-12-15 23:16:17 -08:00
Paulus Schoutsen
336e974fe6 Make map panel pure JS solution 2016-12-08 22:11:02 -08:00
Paulus Schoutsen
f3081ed48f Fix paper-slider to 1.0.11 2016-10-22 11:21:50 -07:00
Paulus Schoutsen
51bfd5b596 Yarn upgrade 2016-10-21 20:48:41 -07:00
Justin Weberg
d3980dc8b6 Improve ha-panel-dev-serivce.html (#130)
* Initial Commit

* Update dropdown variables

* Move available service list to a dropdown menu

* Fix dropdown width

* Add localstorage for panel state

* clean up

* Remove dropdown in favor of combo boxes

* travis fix

* Fix travis

* Fix Travis

* Fix combo box and remove neon-animations

* Remove styling for sidebar.

* Set max width on ha-form

* Increase max-width to 500px

* Update ha-panel-dev-service.html
2016-10-21 20:40:01 -07:00
Justin Weberg
22386a5035 Polymer 1.7 (#113)
* Update paper-range-slider in Bower.json

* Changed Content to slot in ha-card.html

* Update bower.json for Polymer 1.7

* Revert "Update paper-range-slider in Bower.json"

This reverts commit 0c305bd2fe.

* change :root to html
2016-10-02 15:23:06 -07:00
Justin Weberg
1a456dc098 Climate range slider (#111)
* Update paper-range-slider in Bower.json

* Revert "Update paper-range-slider in Bower.json"

This reverts commit 0c305bd2fe.

* update paper-range-slider in bower.json

* Update styling for temp-slider and temp-range-slider

* Fix slider colors for production

* Moved class to parent container
2016-10-02 14:41:08 -07:00
Justin Weberg
ba588fc779 Climate range slider (#104)
🎉
2016-09-09 11:33:07 -06:00
Paulus Schoutsen
87421f9136 Fix bower.json 2016-08-21 16:58:12 -07:00
Paulus Schoutsen
c0c0b2c2f3 Update packages 2016-08-21 15:30:51 -07:00
Robbie Trencheny
2c61fb2b72 Resolve app-layout to ~0.10.2 2016-08-17 22:27:53 -07:00
Paulus Schoutsen
d237cb48c3 Update to Polymer 1.6.1 2016-08-08 00:27:10 -07:00
Paulus Schoutsen
7ae4b50167 Remove moment in favor of fecha 2016-07-31 19:05:44 -07:00
Paulus Schoutsen
56650a25df Merge navigation and panel modules in HA-JS 2016-07-31 14:19:27 -07:00
Paulus Schoutsen
057adee010 Migrate panels to app elements 2016-07-30 22:48:39 -07:00
Paulus Schoutsen
57f40725d9 Fix some install dependencies 2016-07-18 20:24:20 -07:00
Paulus Schoutsen
f7ecdd9ce2 Migrate to Rollup + Buble 2016-07-13 23:04:26 -07:00
Paulus Schoutsen
6b226c02da Update versions 2016-07-11 22:07:17 -07:00
Paulus Schoutsen
439545b4f8 Optimize loading core 2016-05-28 18:32:42 -07:00