Site updated at 2016-11-13 11:57:21 UTC
This commit is contained in:
parent
3bab881d0a
commit
18a1a7981c
1303 changed files with 223057 additions and 226 deletions
4
demo/core.js
Normal file
4
demo/core.js
Normal file
File diff suppressed because one or more lines are too long
1
demo/data.js
Normal file
1
demo/data.js
Normal file
File diff suppressed because one or more lines are too long
BIN
demo/favicon-192x192.png
Normal file
BIN
demo/favicon-192x192.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 15 KiB |
BIN
demo/favicon-apple-180x180.png
Normal file
BIN
demo/favicon-apple-180x180.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 15 KiB |
BIN
demo/favicon.ico
Normal file
BIN
demo/favicon.ico
Normal file
Binary file not shown.
After Width: | Height: | Size: 18 KiB |
5
demo/frontend.html
Normal file
5
demo/frontend.html
Normal file
File diff suppressed because one or more lines are too long
BIN
demo/images/config_philips_hue.jpg
Normal file
BIN
demo/images/config_philips_hue.jpg
Normal file
Binary file not shown.
After Width: | Height: | Size: 8.8 KiB |
BIN
demo/images/thrones.jpg
Normal file
BIN
demo/images/thrones.jpg
Normal file
Binary file not shown.
After Width: | Height: | Size: 45 KiB |
108
demo/index.html
Normal file
108
demo/index.html
Normal file
|
@ -0,0 +1,108 @@
|
|||
<!doctype html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>Home Assistant Demo</title>
|
||||
<meta name="description" content="Open-source home automation platform running on Python 3 and Polymer.">
|
||||
<link rel='manifest' href='/demo/manifest.json' />
|
||||
<link rel='shortcut icon' href='/demo/favicon.ico' />
|
||||
<link rel='icon' type='image/png'
|
||||
href='/demo/favicon-192x192.png' sizes='192x192'>
|
||||
<link rel='apple-touch-icon' sizes='180x180'
|
||||
href='/demo/favicon-apple-180x180.png'>
|
||||
<meta name='apple-mobile-web-app-capable' content='yes'>
|
||||
<meta name='mobile-web-app-capable' content='yes'>
|
||||
<meta name='viewport' content='width=device-width,
|
||||
user-scalable=no' />
|
||||
<meta name='theme-color' content='#03a9f4'>
|
||||
<style>
|
||||
body {
|
||||
font-family: 'Roboto', 'Noto', sans-serif;
|
||||
font-weight: 300;
|
||||
-webkit-font-smoothing: antialiased;
|
||||
text-rendering: optimizeLegibility;
|
||||
}
|
||||
|
||||
#ha-init-skeleton {
|
||||
display: -webkit-flex;
|
||||
display: flex;
|
||||
-webkit-flex-direction: column;
|
||||
-webkit-justify-content: center;
|
||||
-webkit-align-items: center;
|
||||
flex-direction: column;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
text-align: center;
|
||||
position: fixed;
|
||||
top: 0;
|
||||
left: 0;
|
||||
right: 0;
|
||||
bottom: 0;
|
||||
margin-bottom: 83px;
|
||||
font-family: Roboto, sans-serif;
|
||||
font-size: 0pt;
|
||||
transition: font-size 2s;
|
||||
}
|
||||
|
||||
#ha-init-skeleton paper-spinner {
|
||||
height: 28px;
|
||||
margin-top: 16px;
|
||||
}
|
||||
|
||||
#ha-init-skeleton a {
|
||||
color: #03A9F4;
|
||||
text-decoration: none;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
#ha-init-skeleton.error {
|
||||
font-size: 16px;
|
||||
}
|
||||
|
||||
#ha-init-skeleton.error img,
|
||||
#ha-init-skeleton.error paper-spinner {
|
||||
display: none;
|
||||
}
|
||||
</style>
|
||||
<script>
|
||||
function initError() {
|
||||
document
|
||||
.getElementById('ha-init-skeleton')
|
||||
.classList.add('error');
|
||||
};
|
||||
window.noAuth = true;
|
||||
window.Polymer = {lazyRegister: true, useNativeCSSProperties: true, dom: 'shady'}
|
||||
</script>
|
||||
</head>
|
||||
<body fullbleed>
|
||||
<div id='ha-init-skeleton'>
|
||||
<img src='/static/favicon-192x192.png' height='192'>
|
||||
<paper-spinner active></paper-spinner>
|
||||
Home Assistant had trouble<br>connecting to the server.<br><br><a href='/demo/'>TRY AGAIN</a>
|
||||
</div>
|
||||
<script>
|
||||
var webComponentsSupported = (
|
||||
'registerElement' in document &&
|
||||
'import' in document.createElement('link') &&
|
||||
'content' in document.createElement('template'));
|
||||
if (!webComponentsSupported) {
|
||||
var script = document.createElement('script')
|
||||
script.async = true
|
||||
script.onerror = initError;
|
||||
script.src = '/demo/webcomponents-lite.min.js'
|
||||
document.head.appendChild(script)
|
||||
}
|
||||
</script>
|
||||
<home-assistant auth='no_password_set' icons='demo'></home-assistant>
|
||||
<script src='/demo/data.js'></script>
|
||||
<script src='/demo/core.js'></script>
|
||||
<link rel='import' href='/demo/frontend.html' onerror='initError()' async />
|
||||
<link rel='import' href='/static/mdi-demo.html' async />
|
||||
<script>
|
||||
var _gaq=[['_setAccount','UA-57927901-1'],['_trackPageview']];
|
||||
(function(d,t){var g=d.createElement(t),s=d.getElementsByTagName(t)[0];
|
||||
g.src=('https:'==location.protocol?'//ssl':'//www')+'.google-analytics.com/ga.js';
|
||||
s.parentNode.insertBefore(g,s)}(document,'script'));
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
13
demo/manifest.json
Normal file
13
demo/manifest.json
Normal file
|
@ -0,0 +1,13 @@
|
|||
{
|
||||
"name": "Home Assistant",
|
||||
"short_name": "Assistant",
|
||||
"start_url": "/demo/",
|
||||
"display": "standalone",
|
||||
"icons": [
|
||||
{
|
||||
"src": "\/static\/favicon-192x192.png",
|
||||
"sizes": "192x192",
|
||||
"type": "image\/png"
|
||||
}
|
||||
]
|
||||
}
|
1
demo/panels/ha-panel-dev-event.html
Normal file
1
demo/panels/ha-panel-dev-event.html
Normal file
File diff suppressed because one or more lines are too long
2
demo/panels/ha-panel-dev-info.html
Normal file
2
demo/panels/ha-panel-dev-info.html
Normal file
|
@ -0,0 +1,2 @@
|
|||
<html><head><meta charset="UTF-8"></head><body><dom-module id="ha-panel-dev-info"><template><style include="iron-positioning ha-style">:host{background-color:#fff;-ms-user-select:initial;-webkit-user-select:initial;-moz-user-select:initial}.content{padding:24px}.about{text-align:center;line-height:2em}.version{@apply(--paper-font-headline)}.develop{@apply(--paper-font-subhead)}.about a{color:var(--dark-primary-color)}.error-log-intro{margin-top:16px;border-top:1px solid var(--light-primary-color);padding-top:16px}paper-icon-button{float:right}.error-log{@apply(--paper-font-code1)
|
||||
clear: both;white-space:pre-wrap}</style><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><div class="content fit"><div class="about"><p class="version"><a href="https://home-assistant.io"><img src="/static/icons/favicon-192x192.png" height="192"></a><br>Home Assistant<br>[[hassVersion]]</p><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: <a href="https://github.com/balloob/home-assistant" target="_blank">server</a> — <a href="https://github.com/balloob/home-assistant-polymer" target="_blank">frontend-ui</a> — <a href="https://github.com/balloob/home-assistant-js" target="_blank">frontend-core</a></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>, <a href="https://optimizely.github.io/nuclear-js/" target="_blank">NuclearJS [[nuclearVersion]]</a><br>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><div class="error-log">[[errorLog]]</div></div></app-header-layout></template></dom-module><script>Polymer({is:"ha-panel-dev-info",behaviors:[window.hassBehavior],properties:{hass:{type:Object},narrow:{type:Boolean,value:!1},showMenu:{type:Boolean,value:!1},hassVersion:{type:String,bindNuclear:function(r){return r.configGetters.serverVersion}},polymerVersion:{type:String,value:Polymer.version},nuclearVersion:{type:String,value:"1.3.0"},errorLog:{type:String,value:""}},attached:function(){this.refreshErrorLog()},refreshErrorLog:function(r){r&&r.preventDefault(),this.errorLog="Loading error log…",this.hass.errorLogActions.fetchErrorLog().then(function(r){this.errorLog=r||"No errors have been reported."}.bind(this))}})</script></body></html>
|
1
demo/panels/ha-panel-dev-service.html
Normal file
1
demo/panels/ha-panel-dev-service.html
Normal file
File diff suppressed because one or more lines are too long
1
demo/panels/ha-panel-dev-state.html
Normal file
1
demo/panels/ha-panel-dev-state.html
Normal file
File diff suppressed because one or more lines are too long
2
demo/panels/ha-panel-dev-template.html
Normal file
2
demo/panels/ha-panel-dev-template.html
Normal file
File diff suppressed because one or more lines are too long
4
demo/panels/ha-panel-history.html
Normal file
4
demo/panels/ha-panel-history.html
Normal file
File diff suppressed because one or more lines are too long
1
demo/panels/ha-panel-iframe.html
Normal file
1
demo/panels/ha-panel-iframe.html
Normal file
|
@ -0,0 +1 @@
|
|||
<html><head><meta charset="UTF-8"></head><body><dom-module id="ha-panel-iframe"><template><style include="ha-style">iframe{border:0;width:100%;height:calc(100% - 64px)}</style><app-toolbar><ha-menu-button narrow="[[narrow]]" show-menu="[[showMenu]]"></ha-menu-button><div main-title="">[[panel.title]]</div></app-toolbar><iframe src="[[panel.config.url]]" sandbox="allow-forms allow-popups allow-pointer-lock allow-same-origin allow-scripts"></iframe></template></dom-module><script>Polymer({is:"ha-panel-iframe",properties:{panel:{type:Object},narrow:{type:Boolean},showMenu:{type:Boolean}}})</script></body></html>
|
4
demo/panels/ha-panel-logbook.html
Normal file
4
demo/panels/ha-panel-logbook.html
Normal file
File diff suppressed because one or more lines are too long
4
demo/panels/ha-panel-map.html
Normal file
4
demo/panels/ha-panel-map.html
Normal file
File diff suppressed because one or more lines are too long
BIN
demo/webcam.jpg
Normal file
BIN
demo/webcam.jpg
Normal file
Binary file not shown.
After Width: | Height: | Size: 51 KiB |
12
demo/webcomponents-lite.min.js
vendored
Normal file
12
demo/webcomponents-lite.min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
Loading…
Add table
Add a link
Reference in a new issue