2015-11-10 09:14:57 +01:00
< link rel = "import" href = "../../bower_components/polymer/polymer.html" >
< link rel = "import" href = "../../bower_components/paper-icon-button/paper-icon-button.html" >
2016-07-31 07:48:39 +02:00
< link rel = "import" href = "../../bower_components/app-layout/app-header-layout/app-header-layout.html" >
< link rel = "import" href = "../../bower_components/app-layout/app-header/app-header.html" >
< link rel = "import" href = "../../bower_components/app-layout/app-toolbar/app-toolbar.html" >
< link rel = "import" href = "../../src/components/ha-menu-button.html" >
2016-08-02 18:06:22 +02:00
< link rel = "import" href = "../../src/resources/ha-style.html" >
2016-07-19 11:25:26 +02:00
2016-07-17 08:19:49 +02:00
< dom-module id = "ha-panel-dev-info" >
2016-07-18 08:18:48 +02:00
< template >
2016-07-31 07:48:39 +02:00
< style include = "iron-positioning ha-style" >
:host {
2016-07-18 08:18:48 +02:00
background-color: white;
-ms-user-select: initial;
-webkit-user-select: initial;
-moz-user-select: initial;
}
2015-11-10 09:14:57 +01:00
2016-07-31 07:48:39 +02:00
.content {
2017-01-06 11:21:16 +01:00
padding: 16px;
2016-07-31 07:48:39 +02:00
}
2016-07-18 08:18:48 +02:00
.about {
text-align: center;
line-height: 2em;
}
2015-11-10 09:14:57 +01:00
2016-07-18 08:18:48 +02:00
.version {
@apply(--paper-font-headline);
}
2015-11-10 09:14:57 +01:00
2016-07-18 08:18:48 +02:00
.develop {
@apply(--paper-font-subhead);
}
2015-11-10 09:14:57 +01:00
2016-07-18 08:18:48 +02:00
.about a {
color: var(--dark-primary-color);
}
2015-11-10 09:14:57 +01:00
2016-07-18 08:18:48 +02:00
.error-log-intro {
margin-top: 16px;
border-top: 1px solid var(--light-primary-color);
padding-top: 16px;
}
2015-11-10 09:14:57 +01:00
2016-07-18 08:18:48 +02:00
paper-icon-button {
float: right;
}
.error-log {
@apply(--paper-font-code1)
clear: both;
white-space: pre-wrap;
}
< / style >
2015-11-10 09:14:57 +01:00
2016-07-31 07:48:39 +02:00
< app-header-layout has-scrolling-region >
< app-header fixed >
< app-toolbar >
< ha-menu-button narrow = '[[narrow]]' show-menu = '[[showMenu]]' > < / ha-menu-button >
< div main-title > About< / div >
< / app-toolbar >
< / app-header >
2015-11-10 09:14:57 +01:00
< div class = 'content fit' >
< div class = 'about' >
< p class = 'version' >
2016-07-17 08:19:49 +02:00
< a href = 'https://home-assistant.io' > < img src = "/static/icons/favicon-192x192.png" height = "192" / > < / a > < br / >
2015-11-29 03:13:14 +01:00
Home Assistant< br / >
2017-01-30 03:34:45 +01:00
[[hass.config.core.version]]
2015-11-10 09:14:57 +01:00
< / p >
2016-10-03 19:10:16 +02:00
< p >
2017-01-30 03:34:45 +01:00
Path to configuration.yaml: [[hass.config.core.config_dir]]
2016-10-03 19:10:16 +02:00
< / p >
2015-11-10 09:14:57 +01:00
< p class = 'develop' >
< a href = 'https://home-assistant.io/developers/credits/' target = '_blank' >
Developed by a bunch of awesome people.
< / a >
< / p >
< p >
Published under the MIT license< br / >
Source:
2016-10-08 15:19:18 +02:00
< a href = 'https://github.com/home-assistant/home-assistant' target = '_blank' > server< / a > —
< a href = 'https://github.com/home-assistant/home-assistant-polymer' target = '_blank' > frontend-ui< / a > —
< a href = 'https://github.com/home-assistant/home-assistant-js' target = '_blank' > frontend-core< / a >
2015-11-10 09:14:57 +01:00
< / p >
< p >
Built using
< a href = 'https://www.python.org' > Python 3< / a > ,
< a href = 'https://www.polymer-project.org' target = '_blank' > Polymer [[polymerVersion]]< / a > ,
Icons by < a href = 'https://www.google.com/design/icons/' target = '_blank' > Google< / a > and < a href = 'https://MaterialDesignIcons.com' target = '_blank' > MaterialDesignIcons.com< / a > .
< / p >
< / div >
< p class = 'error-log-intro' >
The following errors have been logged this session:
< paper-icon-button icon = 'mdi:refresh' on-tap = 'refreshErrorLog' > < / paper-icon-button >
< / p >
2016-04-08 09:10:39 +02:00
< div class = 'error-log' > [[errorLog]]< / div >
2015-11-10 09:14:57 +01:00
< / div >
2016-07-31 07:48:39 +02:00
< / app-header-layout >
< / template >
2015-11-10 09:14:57 +01:00
< / dom-module >
2016-07-12 17:59:07 +02:00
< script >
Polymer({
2016-07-17 08:19:49 +02:00
is: 'ha-panel-dev-info',
2016-07-12 17:59:07 +02:00
properties: {
hass: {
type: Object,
},
narrow: {
type: Boolean,
value: false,
},
showMenu: {
type: Boolean,
value: false,
},
polymerVersion: {
type: String,
value: Polymer.version,
},
errorLog: {
type: String,
value: '',
},
},
attached: function () {
this.refreshErrorLog();
},
refreshErrorLog: function (ev) {
if (ev) ev.preventDefault();
this.errorLog = 'Loading error log…';
2017-01-30 03:34:45 +01:00
this.hass.callApi('GET', 'error_log').then(
2016-07-12 17:59:07 +02:00
function (log) {
this.errorLog = log || 'No errors have been reported.';
}.bind(this));
},
});
< / script >