mirror of
https://github.com/home-assistant/supervisor.git
synced 2025-07-24 09:36:31 +00:00
commit
3fcb1de419
@ -1 +1 @@
|
||||
Subproject commit ebb20abee0b3b227974684116ea2207d9ad33856
|
||||
Subproject commit 5ca63a80522a867557de20fe7bda0592e8f06e7e
|
@ -4,14 +4,14 @@ attrs==19.3.0
|
||||
cchardet==2.1.6
|
||||
colorlog==4.1.0
|
||||
cpe==1.2.1
|
||||
cryptography==2.9
|
||||
cryptography==2.9.2
|
||||
docker==4.2.0
|
||||
gitpython==3.1.1
|
||||
jinja2==2.11.2
|
||||
packaging==20.3
|
||||
ptvsd==4.3.2
|
||||
pulsectl==20.2.4
|
||||
pytz==2019.3
|
||||
pulsectl==20.4.3
|
||||
pytz==2020.1
|
||||
pyudev==0.22.0
|
||||
ruamel.yaml==0.15.100
|
||||
uvloop==0.14.0
|
||||
|
@ -1,5 +1,5 @@
|
||||
flake8==3.7.9
|
||||
pylint==2.4.4
|
||||
pylint==2.5.0
|
||||
pytest==5.4.1
|
||||
pytest-timeout==1.3.4
|
||||
pytest-aiohttp==0.3.0
|
||||
|
@ -166,6 +166,9 @@ class AddonManager(CoreSysAttributes):
|
||||
with suppress(HomeAssistantAPIError):
|
||||
await self.sys_ingress.update_hass_panel(addon)
|
||||
|
||||
# Cleanup Ingress dynamic port assignment
|
||||
self.sys_ingress.del_dynamic_port(slug)
|
||||
|
||||
# Cleanup discovery data
|
||||
for message in self.sys_discovery.list_messages:
|
||||
if message.addon != addon.slug:
|
||||
|
@ -64,7 +64,7 @@ class APIDiscovery(CoreSysAttributes):
|
||||
|
||||
# Access?
|
||||
if body[ATTR_SERVICE] not in addon.discovery:
|
||||
raise APIForbidden(f"Can't use discovery!")
|
||||
raise APIForbidden("Can't use discovery!")
|
||||
|
||||
# Process discovery message
|
||||
message = self.sys_discovery.send(addon, **body)
|
||||
@ -94,7 +94,7 @@ class APIDiscovery(CoreSysAttributes):
|
||||
|
||||
# Permission
|
||||
if message.addon != addon.slug:
|
||||
raise APIForbidden(f"Can't remove discovery message")
|
||||
raise APIForbidden("Can't remove discovery message")
|
||||
|
||||
self.sys_discovery.remove(message)
|
||||
return True
|
||||
|
2
supervisor/api/panel/264283c05b3002fb79ff.worker.js
Normal file
2
supervisor/api/panel/264283c05b3002fb79ff.worker.js
Normal file
File diff suppressed because one or more lines are too long
BIN
supervisor/api/panel/264283c05b3002fb79ff.worker.js.gz
Normal file
BIN
supervisor/api/panel/264283c05b3002fb79ff.worker.js.gz
Normal file
Binary file not shown.
1
supervisor/api/panel/264283c05b3002fb79ff.worker.js.map
Normal file
1
supervisor/api/panel/264283c05b3002fb79ff.worker.js.map
Normal file
File diff suppressed because one or more lines are too long
3
supervisor/api/panel/chunk.0f20b7eb2535b079dbfe.js
Normal file
3
supervisor/api/panel/chunk.0f20b7eb2535b079dbfe.js
Normal file
File diff suppressed because one or more lines are too long
16
supervisor/api/panel/chunk.0f20b7eb2535b079dbfe.js.LICENSE
Normal file
16
supervisor/api/panel/chunk.0f20b7eb2535b079dbfe.js.LICENSE
Normal file
@ -0,0 +1,16 @@
|
||||
/**
|
||||
@license
|
||||
Copyright 2018 Google Inc. All Rights Reserved.
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
*/
|
BIN
supervisor/api/panel/chunk.0f20b7eb2535b079dbfe.js.gz
Normal file
BIN
supervisor/api/panel/chunk.0f20b7eb2535b079dbfe.js.gz
Normal file
Binary file not shown.
1
supervisor/api/panel/chunk.0f20b7eb2535b079dbfe.js.map
Normal file
1
supervisor/api/panel/chunk.0f20b7eb2535b079dbfe.js.map
Normal file
File diff suppressed because one or more lines are too long
2
supervisor/api/panel/chunk.19d5bc1992ac27173ab6.js
Normal file
2
supervisor/api/panel/chunk.19d5bc1992ac27173ab6.js
Normal file
File diff suppressed because one or more lines are too long
BIN
supervisor/api/panel/chunk.19d5bc1992ac27173ab6.js.gz
Normal file
BIN
supervisor/api/panel/chunk.19d5bc1992ac27173ab6.js.gz
Normal file
Binary file not shown.
1
supervisor/api/panel/chunk.19d5bc1992ac27173ab6.js.map
Normal file
1
supervisor/api/panel/chunk.19d5bc1992ac27173ab6.js.map
Normal file
File diff suppressed because one or more lines are too long
2
supervisor/api/panel/chunk.1ff951c379cdd1f35962.js
Normal file
2
supervisor/api/panel/chunk.1ff951c379cdd1f35962.js
Normal file
File diff suppressed because one or more lines are too long
BIN
supervisor/api/panel/chunk.1ff951c379cdd1f35962.js.gz
Normal file
BIN
supervisor/api/panel/chunk.1ff951c379cdd1f35962.js.gz
Normal file
Binary file not shown.
1
supervisor/api/panel/chunk.1ff951c379cdd1f35962.js.map
Normal file
1
supervisor/api/panel/chunk.1ff951c379cdd1f35962.js.map
Normal file
File diff suppressed because one or more lines are too long
2
supervisor/api/panel/chunk.257952ea452437810f3f.js
Normal file
2
supervisor/api/panel/chunk.257952ea452437810f3f.js
Normal file
File diff suppressed because one or more lines are too long
BIN
supervisor/api/panel/chunk.257952ea452437810f3f.js.gz
Normal file
BIN
supervisor/api/panel/chunk.257952ea452437810f3f.js.gz
Normal file
Binary file not shown.
1
supervisor/api/panel/chunk.257952ea452437810f3f.js.map
Normal file
1
supervisor/api/panel/chunk.257952ea452437810f3f.js.map
Normal file
File diff suppressed because one or more lines are too long
3
supervisor/api/panel/chunk.2efa3db34abe2c94f3f1.js
Normal file
3
supervisor/api/panel/chunk.2efa3db34abe2c94f3f1.js
Normal file
File diff suppressed because one or more lines are too long
10
supervisor/api/panel/chunk.2efa3db34abe2c94f3f1.js.LICENSE
Normal file
10
supervisor/api/panel/chunk.2efa3db34abe2c94f3f1.js.LICENSE
Normal file
@ -0,0 +1,10 @@
|
||||
/**
|
||||
@license
|
||||
Copyright (c) 2015 The Polymer Project Authors. All rights reserved.
|
||||
This code may only be used under the BSD style license found at
|
||||
http://polymer.github.io/LICENSE.txt The complete set of authors may be found at
|
||||
http://polymer.github.io/AUTHORS.txt The complete set of contributors may be
|
||||
found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by Google as
|
||||
part of the polymer project is also subject to an additional IP rights grant
|
||||
found at http://polymer.github.io/PATENTS.txt
|
||||
*/
|
BIN
supervisor/api/panel/chunk.2efa3db34abe2c94f3f1.js.gz
Normal file
BIN
supervisor/api/panel/chunk.2efa3db34abe2c94f3f1.js.gz
Normal file
Binary file not shown.
1
supervisor/api/panel/chunk.2efa3db34abe2c94f3f1.js.map
Normal file
1
supervisor/api/panel/chunk.2efa3db34abe2c94f3f1.js.map
Normal file
File diff suppressed because one or more lines are too long
2
supervisor/api/panel/chunk.3bc6767cb58f54994cc9.js
Normal file
2
supervisor/api/panel/chunk.3bc6767cb58f54994cc9.js
Normal file
@ -0,0 +1,2 @@
|
||||
(self.webpackJsonp=self.webpackJsonp||[]).push([[2],{181:function(e,r,n){"use strict";n.r(r),n.d(r,"codeMirror",function(){return c}),n.d(r,"codeMirrorCss",function(){return i});var a=n(56),o=n.n(a),s=n(173),t=(n(174),n(175),n(12));o.a.commands.save=function(e){Object(t.a)(e.getWrapperElement(),"editor-save")};var c=o.a,i=s.a}}]);
|
||||
//# sourceMappingURL=chunk.3bc6767cb58f54994cc9.js.map
|
BIN
supervisor/api/panel/chunk.3bc6767cb58f54994cc9.js.gz
Normal file
BIN
supervisor/api/panel/chunk.3bc6767cb58f54994cc9.js.gz
Normal file
Binary file not shown.
1
supervisor/api/panel/chunk.3bc6767cb58f54994cc9.js.map
Normal file
1
supervisor/api/panel/chunk.3bc6767cb58f54994cc9.js.map
Normal file
@ -0,0 +1 @@
|
||||
{"version":3,"sources":["webpack:///./src/resources/codemirror.ts"],"names":["__webpack_require__","r","__webpack_exports__","d","codeMirror","codeMirrorCss","codemirror__WEBPACK_IMPORTED_MODULE_0__","codemirror__WEBPACK_IMPORTED_MODULE_0___default","n","codemirror_lib_codemirror_css__WEBPACK_IMPORTED_MODULE_1__","_common_dom_fire_event__WEBPACK_IMPORTED_MODULE_4__","_CodeMirror","commands","save","cm","fireEvent","getWrapperElement","_codeMirrorCss"],"mappings":"sFAAAA,EAAAC,EAAAC,GAAAF,EAAAG,EAAAD,EAAA,+BAAAE,IAAAJ,EAAAG,EAAAD,EAAA,kCAAAG,IAAA,IAAAC,EAAAN,EAAA,IAAAO,EAAAP,EAAAQ,EAAAF,GAAAG,EAAAT,EAAA,KAAAU,GAAAV,EAAA,KAAAA,EAAA,KAAAA,EAAA,KAQAW,IAAYC,SAASC,KAAO,SAACC,GAC3BC,YAAUD,EAAGE,oBAAqB,gBAE7B,IAAMZ,EAAkBO,IAClBN,EAAqBY","file":"chunk.3bc6767cb58f54994cc9.js","sourcesContent":["// @ts-ignore\nimport _CodeMirror, { Editor } from \"codemirror\";\n// @ts-ignore\nimport _codeMirrorCss from \"codemirror/lib/codemirror.css\";\nimport \"codemirror/mode/jinja2/jinja2\";\nimport \"codemirror/mode/yaml/yaml\";\nimport { fireEvent } from \"../common/dom/fire_event\";\n\n_CodeMirror.commands.save = (cm: Editor) => {\n fireEvent(cm.getWrapperElement(), \"editor-save\");\n};\nexport const codeMirror: any = _CodeMirror;\nexport const codeMirrorCss: any = _codeMirrorCss;\n"],"sourceRoot":""}
|
2
supervisor/api/panel/chunk.4caf65292b82df27c80d.js
Normal file
2
supervisor/api/panel/chunk.4caf65292b82df27c80d.js
Normal file
File diff suppressed because one or more lines are too long
BIN
supervisor/api/panel/chunk.4caf65292b82df27c80d.js.gz
Normal file
BIN
supervisor/api/panel/chunk.4caf65292b82df27c80d.js.gz
Normal file
Binary file not shown.
1
supervisor/api/panel/chunk.4caf65292b82df27c80d.js.map
Normal file
1
supervisor/api/panel/chunk.4caf65292b82df27c80d.js.map
Normal file
File diff suppressed because one or more lines are too long
3
supervisor/api/panel/chunk.4d87062420538817a606.js
Normal file
3
supervisor/api/panel/chunk.4d87062420538817a606.js
Normal file
File diff suppressed because one or more lines are too long
189
supervisor/api/panel/chunk.4d87062420538817a606.js.LICENSE
Normal file
189
supervisor/api/panel/chunk.4d87062420538817a606.js.LICENSE
Normal file
@ -0,0 +1,189 @@
|
||||
/**
|
||||
* @license
|
||||
* Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
||||
* This code may only be used under the BSD style license found at
|
||||
* http://polymer.github.io/LICENSE.txt
|
||||
* The complete set of authors may be found at
|
||||
* http://polymer.github.io/AUTHORS.txt
|
||||
* The complete set of contributors may be found at
|
||||
* http://polymer.github.io/CONTRIBUTORS.txt
|
||||
* Code distributed by Google as part of the polymer project is also
|
||||
* subject to an additional IP rights grant found at
|
||||
* http://polymer.github.io/PATENTS.txt
|
||||
*/
|
||||
|
||||
/**
|
||||
@license
|
||||
Copyright (c) 2019 The Polymer Project Authors. All rights reserved.
|
||||
This code may only be used under the BSD style license found at
|
||||
http://polymer.github.io/LICENSE.txt The complete set of authors may be found at
|
||||
http://polymer.github.io/AUTHORS.txt The complete set of contributors may be
|
||||
found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by Google as
|
||||
part of the polymer project is also subject to an additional IP rights grant
|
||||
found at http://polymer.github.io/PATENTS.txt
|
||||
*/
|
||||
|
||||
/**
|
||||
@license
|
||||
Copyright (c) 2015 The Polymer Project Authors. All rights reserved.
|
||||
This code may only be used under the BSD style license found at
|
||||
http://polymer.github.io/LICENSE.txt The complete set of authors may be found at
|
||||
http://polymer.github.io/AUTHORS.txt The complete set of contributors may be
|
||||
found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by Google as
|
||||
part of the polymer project is also subject to an additional IP rights grant
|
||||
found at http://polymer.github.io/PATENTS.txt
|
||||
*/
|
||||
|
||||
/**
|
||||
@license
|
||||
Copyright 2018 Google Inc. All Rights Reserved.
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
*/
|
||||
|
||||
/**
|
||||
@license
|
||||
Copyright (c) 2016 The Polymer Project Authors. All rights reserved.
|
||||
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
||||
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
||||
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
||||
Code distributed by Google as part of the polymer project is also
|
||||
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
||||
*/
|
||||
|
||||
/**
|
||||
@license
|
||||
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
||||
This code may only be used under the BSD style license found at
|
||||
http://polymer.github.io/LICENSE.txt The complete set of authors may be found at
|
||||
http://polymer.github.io/AUTHORS.txt The complete set of contributors may be
|
||||
found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by Google as
|
||||
part of the polymer project is also subject to an additional IP rights grant
|
||||
found at http://polymer.github.io/PATENTS.txt
|
||||
*/
|
||||
|
||||
/*! *****************************************************************************
|
||||
Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
|
||||
this file except in compliance with the License. You may obtain a copy of the
|
||||
License at http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
|
||||
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
|
||||
MERCHANTABLITY OR NON-INFRINGEMENT.
|
||||
|
||||
See the Apache Version 2.0 License for specific language governing permissions
|
||||
and limitations under the License.
|
||||
***************************************************************************** */
|
||||
|
||||
/**
|
||||
* @license
|
||||
* Copyright (c) 2018 The Polymer Project Authors. All rights reserved.
|
||||
* This code may only be used under the BSD style license found at
|
||||
* http://polymer.github.io/LICENSE.txt
|
||||
* The complete set of authors may be found at
|
||||
* http://polymer.github.io/AUTHORS.txt
|
||||
* The complete set of contributors may be found at
|
||||
* http://polymer.github.io/CONTRIBUTORS.txt
|
||||
* Code distributed by Google as part of the polymer project is also
|
||||
* subject to an additional IP rights grant found at
|
||||
* http://polymer.github.io/PATENTS.txt
|
||||
*/
|
||||
|
||||
/**
|
||||
* @license
|
||||
* Copyright 2019 Google Inc.
|
||||
*
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
* of this software and associated documentation files (the "Software"), to deal
|
||||
* in the Software without restriction, including without limitation the rights
|
||||
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
* copies of the Software, and to permit persons to whom the Software is
|
||||
* furnished to do so, subject to the following conditions:
|
||||
*
|
||||
* The above copyright notice and this permission notice shall be included in
|
||||
* all copies or substantial portions of the Software.
|
||||
*
|
||||
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||
* THE SOFTWARE.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @license
|
||||
* Copyright 2016 Google Inc.
|
||||
*
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
* of this software and associated documentation files (the "Software"), to deal
|
||||
* in the Software without restriction, including without limitation the rights
|
||||
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
* copies of the Software, and to permit persons to whom the Software is
|
||||
* furnished to do so, subject to the following conditions:
|
||||
*
|
||||
* The above copyright notice and this permission notice shall be included in
|
||||
* all copies or substantial portions of the Software.
|
||||
*
|
||||
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||
* THE SOFTWARE.
|
||||
*/
|
||||
|
||||
/**
|
||||
@license
|
||||
Copyright (c) 2014 The Polymer Project Authors. All rights reserved.
|
||||
This code may only be used under the BSD style license found at
|
||||
http://polymer.github.io/LICENSE.txt The complete set of authors may be found at
|
||||
http://polymer.github.io/AUTHORS.txt The complete set of contributors may be
|
||||
found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by Google as
|
||||
part of the polymer project is also subject to an additional IP rights grant
|
||||
found at http://polymer.github.io/PATENTS.txt
|
||||
*/
|
||||
|
||||
/**
|
||||
@license
|
||||
Copyright (c) 2015 The Polymer Project Authors. All rights reserved.
|
||||
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
||||
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
||||
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
||||
Code distributed by Google as part of the polymer project is also
|
||||
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
||||
*/
|
||||
|
||||
/**
|
||||
@license
|
||||
Copyright (c) 2016 The Polymer Project Authors. All rights reserved.
|
||||
This code may only be used under the BSD style license found at
|
||||
http://polymer.github.io/LICENSE.txt The complete set of authors may be found at
|
||||
http://polymer.github.io/AUTHORS.txt The complete set of contributors may be
|
||||
found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by Google as
|
||||
part of the polymer project is also subject to an additional IP rights grant
|
||||
found at http://polymer.github.io/PATENTS.txt
|
||||
*/
|
||||
|
||||
/*!
|
||||
* Fuse.js v3.4.4 - Lightweight fuzzy-search (http://fusejs.io)
|
||||
*
|
||||
* Copyright (c) 2012-2017 Kirollos Risk (http://kiro.me)
|
||||
* All Rights Reserved. Apache Software License 2.0
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*/
|
BIN
supervisor/api/panel/chunk.4d87062420538817a606.js.gz
Normal file
BIN
supervisor/api/panel/chunk.4d87062420538817a606.js.gz
Normal file
Binary file not shown.
1
supervisor/api/panel/chunk.4d87062420538817a606.js.map
Normal file
1
supervisor/api/panel/chunk.4d87062420538817a606.js.map
Normal file
File diff suppressed because one or more lines are too long
3
supervisor/api/panel/chunk.51ce215bae87da93ee3e.js
Normal file
3
supervisor/api/panel/chunk.51ce215bae87da93ee3e.js
Normal file
File diff suppressed because one or more lines are too long
34
supervisor/api/panel/chunk.51ce215bae87da93ee3e.js.LICENSE
Normal file
34
supervisor/api/panel/chunk.51ce215bae87da93ee3e.js.LICENSE
Normal file
@ -0,0 +1,34 @@
|
||||
/**
|
||||
@license
|
||||
Copyright (c) 2015 The Polymer Project Authors. All rights reserved.
|
||||
This code may only be used under the BSD style license found at
|
||||
http://polymer.github.io/LICENSE.txt The complete set of authors may be found at
|
||||
http://polymer.github.io/AUTHORS.txt The complete set of contributors may be
|
||||
found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by Google as
|
||||
part of the polymer project is also subject to an additional IP rights grant
|
||||
found at http://polymer.github.io/PATENTS.txt
|
||||
*/
|
||||
|
||||
/*!
|
||||
* The buffer module from node.js, for the browser.
|
||||
*
|
||||
* @author Feross Aboukhadijeh <feross@feross.org> <http://feross.org>
|
||||
* @license MIT
|
||||
*/
|
||||
|
||||
/**
|
||||
@license
|
||||
Copyright 2018 Google Inc. All Rights Reserved.
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
*/
|
BIN
supervisor/api/panel/chunk.51ce215bae87da93ee3e.js.gz
Normal file
BIN
supervisor/api/panel/chunk.51ce215bae87da93ee3e.js.gz
Normal file
Binary file not shown.
1
supervisor/api/panel/chunk.51ce215bae87da93ee3e.js.map
Normal file
1
supervisor/api/panel/chunk.51ce215bae87da93ee3e.js.map
Normal file
File diff suppressed because one or more lines are too long
3
supervisor/api/panel/chunk.52de50c0d097931e03e1.js
Normal file
3
supervisor/api/panel/chunk.52de50c0d097931e03e1.js
Normal file
File diff suppressed because one or more lines are too long
10
supervisor/api/panel/chunk.52de50c0d097931e03e1.js.LICENSE
Normal file
10
supervisor/api/panel/chunk.52de50c0d097931e03e1.js.LICENSE
Normal file
@ -0,0 +1,10 @@
|
||||
/**
|
||||
@license
|
||||
Copyright (c) 2015 The Polymer Project Authors. All rights reserved.
|
||||
This code may only be used under the BSD style license found at
|
||||
http://polymer.github.io/LICENSE.txt The complete set of authors may be found at
|
||||
http://polymer.github.io/AUTHORS.txt The complete set of contributors may be
|
||||
found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by Google as
|
||||
part of the polymer project is also subject to an additional IP rights grant
|
||||
found at http://polymer.github.io/PATENTS.txt
|
||||
*/
|
BIN
supervisor/api/panel/chunk.52de50c0d097931e03e1.js.gz
Normal file
BIN
supervisor/api/panel/chunk.52de50c0d097931e03e1.js.gz
Normal file
Binary file not shown.
1
supervisor/api/panel/chunk.52de50c0d097931e03e1.js.map
Normal file
1
supervisor/api/panel/chunk.52de50c0d097931e03e1.js.map
Normal file
File diff suppressed because one or more lines are too long
2
supervisor/api/panel/chunk.5ccd3af1aae983d5ac7d.js
Normal file
2
supervisor/api/panel/chunk.5ccd3af1aae983d5ac7d.js
Normal file
File diff suppressed because one or more lines are too long
BIN
supervisor/api/panel/chunk.5ccd3af1aae983d5ac7d.js.gz
Normal file
BIN
supervisor/api/panel/chunk.5ccd3af1aae983d5ac7d.js.gz
Normal file
Binary file not shown.
1
supervisor/api/panel/chunk.5ccd3af1aae983d5ac7d.js.map
Normal file
1
supervisor/api/panel/chunk.5ccd3af1aae983d5ac7d.js.map
Normal file
@ -0,0 +1 @@
|
||||
{"version":3,"sources":["webpack:///./hassio/src/ingress-view/hassio-ingress-view.ts"],"names":["customElement","HassioIngressView","property","this","_addon","html","_templateObject2","name","ingress_url","_templateObject","changedProps","_get","_getPrototypeOf","prototype","call","has","addon","route","path","substr","oldRoute","get","oldAddon","undefined","_fetchData","_callee","addonSlug","_yield$Promise$all","_yield$Promise$all2","regeneratorRuntime","wrap","_context","prev","next","Promise","all","fetchHassioAddonInfo","hass","Error","createHassioSession","sent","_slicedToArray","ingress","t0","console","error","alert","message","history","back","stop","css","_templateObject3","LitElement"],"mappings":"6/TAmBCA,YAAc,0CACTC,2iBACHC,kEAEAA,mEAEAA,4EAED,WACE,OAAKC,KAAKC,OAIHC,YAAPC,IAC0BH,KAAKC,OAAOG,KACpBJ,KAAKC,OAAOI,aALrBH,YAAPI,0CAUJ,SAAkBC,GAGhB,GAFAC,EAAAC,EApBEX,EAoBFY,WAAA,eAAAV,MAAAW,KAAAX,KAAmBO,GAEdA,EAAaK,IAAI,SAAtB,CAIA,IAAMC,EAAQb,KAAKc,MAAMC,KAAKC,OAAO,GAE/BC,EAAWV,EAAaW,IAAI,SAC5BC,EAAWF,EAAWA,EAASF,KAAKC,OAAO,QAAKI,EAElDP,GAASA,IAAUM,GACrBnB,KAAKqB,WAAWR,0FAIpB,SAAAS,EAAyBC,GAAzB,IAAAC,EAAAC,EAAAZ,EAAA,OAAAa,mBAAAC,KAAA,SAAAC,GAAA,cAAAA,EAAAC,KAAAD,EAAAE,MAAA,cAAAF,EAAAC,KAAA,EAAAD,EAAAE,KAAA,EAE0BC,QAAQC,IAAI,CAChCC,YAAqBjC,KAAKkC,KAAMX,GAAhC,MAAiD,WAC/C,MAAM,IAAIY,MAAM,iCAElBC,YAAoBpC,KAAKkC,MAAzB,MAAqC,WACnC,MAAM,IAAIC,MAAM,2CAPxB,UAAAX,EAAAI,EAAAS,KAAAZ,EAAAa,EAAAd,EAAA,IAEWX,EAFXY,EAAA,IAWec,QAXf,CAAAX,EAAAE,KAAA,cAYY,IAAIK,MAAM,wCAZtB,OAeInC,KAAKC,OAASY,EAflBe,EAAAE,KAAA,iBAAAF,EAAAC,KAAA,GAAAD,EAAAY,GAAAZ,EAAA,SAkBIa,QAAQC,MAARd,EAAAY,IACAG,MAAMf,EAAAY,GAAII,SAAW,mCACrBC,QAAQC,OApBZ,yBAAAlB,EAAAmB,SAAAzB,EAAAtB,KAAA,yRAwBA,WACE,OAAOgD,YAAPC,UA7D4BC","file":"chunk.5ccd3af1aae983d5ac7d.js","sourcesContent":["import {\n css,\n CSSResult,\n customElement,\n html,\n LitElement,\n property,\n PropertyValues,\n TemplateResult,\n} from \"lit-element\";\nimport {\n fetchHassioAddonInfo,\n HassioAddonDetails,\n} from \"../../../src/data/hassio/addon\";\nimport { createHassioSession } from \"../../../src/data/hassio/supervisor\";\nimport \"../../../src/layouts/hass-loading-screen\";\nimport \"../../../src/layouts/hass-subpage\";\nimport { HomeAssistant, Route } from \"../../../src/types\";\n\n@customElement(\"hassio-ingress-view\")\nclass HassioIngressView extends LitElement {\n @property() public hass!: HomeAssistant;\n\n @property() public route!: Route;\n\n @property() private _addon?: HassioAddonDetails;\n\n protected render(): TemplateResult {\n if (!this._addon) {\n return html` <hass-loading-screen></hass-loading-screen> `;\n }\n\n return html`\n <hass-subpage .header=${this._addon.name} hassio>\n <iframe src=${this._addon.ingress_url}></iframe>\n </hass-subpage>\n `;\n }\n\n protected updated(changedProps: PropertyValues) {\n super.firstUpdated(changedProps);\n\n if (!changedProps.has(\"route\")) {\n return;\n }\n\n const addon = this.route.path.substr(1);\n\n const oldRoute = changedProps.get(\"route\") as this[\"route\"] | undefined;\n const oldAddon = oldRoute ? oldRoute.path.substr(1) : undefined;\n\n if (addon && addon !== oldAddon) {\n this._fetchData(addon);\n }\n }\n\n private async _fetchData(addonSlug: string) {\n try {\n const [addon] = await Promise.all([\n fetchHassioAddonInfo(this.hass, addonSlug).catch(() => {\n throw new Error(\"Failed to fetch add-on info\");\n }),\n createHassioSession(this.hass).catch(() => {\n throw new Error(\"Failed to create an ingress session\");\n }),\n ]);\n\n if (!addon.ingress) {\n throw new Error(\"This add-on does not support ingress\");\n }\n\n this._addon = addon;\n } catch (err) {\n // eslint-disable-next-line\n console.error(err);\n alert(err.message || \"Unknown error starting ingress.\");\n history.back();\n }\n }\n\n static get styles(): CSSResult {\n return css`\n iframe {\n display: block;\n width: 100%;\n height: 100%;\n border: 0;\n }\n paper-icon-button {\n color: var(--text-primary-color);\n }\n `;\n }\n}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n \"hassio-ingress-view\": HassioIngressView;\n }\n}\n"],"sourceRoot":""}
|
3
supervisor/api/panel/chunk.5fb0086a3916d44eae35.js
Normal file
3
supervisor/api/panel/chunk.5fb0086a3916d44eae35.js
Normal file
File diff suppressed because one or more lines are too long
10
supervisor/api/panel/chunk.5fb0086a3916d44eae35.js.LICENSE
Normal file
10
supervisor/api/panel/chunk.5fb0086a3916d44eae35.js.LICENSE
Normal file
@ -0,0 +1,10 @@
|
||||
/**
|
||||
@license
|
||||
Copyright (c) 2015 The Polymer Project Authors. All rights reserved.
|
||||
This code may only be used under the BSD style license found at
|
||||
http://polymer.github.io/LICENSE.txt The complete set of authors may be found at
|
||||
http://polymer.github.io/AUTHORS.txt The complete set of contributors may be
|
||||
found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by Google as
|
||||
part of the polymer project is also subject to an additional IP rights grant
|
||||
found at http://polymer.github.io/PATENTS.txt
|
||||
*/
|
BIN
supervisor/api/panel/chunk.5fb0086a3916d44eae35.js.gz
Normal file
BIN
supervisor/api/panel/chunk.5fb0086a3916d44eae35.js.gz
Normal file
Binary file not shown.
1
supervisor/api/panel/chunk.5fb0086a3916d44eae35.js.map
Normal file
1
supervisor/api/panel/chunk.5fb0086a3916d44eae35.js.map
Normal file
File diff suppressed because one or more lines are too long
2
supervisor/api/panel/chunk.624517ff75204f1d595a.js
Normal file
2
supervisor/api/panel/chunk.624517ff75204f1d595a.js
Normal file
File diff suppressed because one or more lines are too long
BIN
supervisor/api/panel/chunk.624517ff75204f1d595a.js.gz
Normal file
BIN
supervisor/api/panel/chunk.624517ff75204f1d595a.js.gz
Normal file
Binary file not shown.
1
supervisor/api/panel/chunk.624517ff75204f1d595a.js.map
Normal file
1
supervisor/api/panel/chunk.624517ff75204f1d595a.js.map
Normal file
File diff suppressed because one or more lines are too long
3
supervisor/api/panel/chunk.707a732f960dd1bf2b4e.js
Normal file
3
supervisor/api/panel/chunk.707a732f960dd1bf2b4e.js
Normal file
File diff suppressed because one or more lines are too long
16
supervisor/api/panel/chunk.707a732f960dd1bf2b4e.js.LICENSE
Normal file
16
supervisor/api/panel/chunk.707a732f960dd1bf2b4e.js.LICENSE
Normal file
@ -0,0 +1,16 @@
|
||||
/**
|
||||
@license
|
||||
Copyright 2018 Google Inc. All Rights Reserved.
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
*/
|
BIN
supervisor/api/panel/chunk.707a732f960dd1bf2b4e.js.gz
Normal file
BIN
supervisor/api/panel/chunk.707a732f960dd1bf2b4e.js.gz
Normal file
Binary file not shown.
1
supervisor/api/panel/chunk.707a732f960dd1bf2b4e.js.map
Normal file
1
supervisor/api/panel/chunk.707a732f960dd1bf2b4e.js.map
Normal file
File diff suppressed because one or more lines are too long
2
supervisor/api/panel/chunk.80fa272b1dfe6ae40565.js
Normal file
2
supervisor/api/panel/chunk.80fa272b1dfe6ae40565.js
Normal file
File diff suppressed because one or more lines are too long
BIN
supervisor/api/panel/chunk.80fa272b1dfe6ae40565.js.gz
Normal file
BIN
supervisor/api/panel/chunk.80fa272b1dfe6ae40565.js.gz
Normal file
Binary file not shown.
1
supervisor/api/panel/chunk.80fa272b1dfe6ae40565.js.map
Normal file
1
supervisor/api/panel/chunk.80fa272b1dfe6ae40565.js.map
Normal file
File diff suppressed because one or more lines are too long
3
supervisor/api/panel/chunk.930ff51033b925ec9180.js
Normal file
3
supervisor/api/panel/chunk.930ff51033b925ec9180.js
Normal file
File diff suppressed because one or more lines are too long
10
supervisor/api/panel/chunk.930ff51033b925ec9180.js.LICENSE
Normal file
10
supervisor/api/panel/chunk.930ff51033b925ec9180.js.LICENSE
Normal file
@ -0,0 +1,10 @@
|
||||
/**
|
||||
@license
|
||||
Copyright (c) 2015 The Polymer Project Authors. All rights reserved.
|
||||
This code may only be used under the BSD style license found at
|
||||
http://polymer.github.io/LICENSE.txt The complete set of authors may be found at
|
||||
http://polymer.github.io/AUTHORS.txt The complete set of contributors may be
|
||||
found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by Google as
|
||||
part of the polymer project is also subject to an additional IP rights grant
|
||||
found at http://polymer.github.io/PATENTS.txt
|
||||
*/
|
BIN
supervisor/api/panel/chunk.930ff51033b925ec9180.js.gz
Normal file
BIN
supervisor/api/panel/chunk.930ff51033b925ec9180.js.gz
Normal file
Binary file not shown.
1
supervisor/api/panel/chunk.930ff51033b925ec9180.js.map
Normal file
1
supervisor/api/panel/chunk.930ff51033b925ec9180.js.map
Normal file
File diff suppressed because one or more lines are too long
3
supervisor/api/panel/chunk.9b52b3714af8aa55d380.js
Normal file
3
supervisor/api/panel/chunk.9b52b3714af8aa55d380.js
Normal file
File diff suppressed because one or more lines are too long
17
supervisor/api/panel/chunk.9b52b3714af8aa55d380.js.LICENSE
Normal file
17
supervisor/api/panel/chunk.9b52b3714af8aa55d380.js.LICENSE
Normal file
@ -0,0 +1,17 @@
|
||||
/**
|
||||
@license
|
||||
Copyright (c) 2015 The Polymer Project Authors. All rights reserved.
|
||||
This code may only be used under the BSD style license found at
|
||||
http://polymer.github.io/LICENSE.txt The complete set of authors may be found at
|
||||
http://polymer.github.io/AUTHORS.txt The complete set of contributors may be
|
||||
found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by Google as
|
||||
part of the polymer project is also subject to an additional IP rights grant
|
||||
found at http://polymer.github.io/PATENTS.txt
|
||||
*/
|
||||
|
||||
/*!
|
||||
* The buffer module from node.js, for the browser.
|
||||
*
|
||||
* @author Feross Aboukhadijeh <feross@feross.org> <http://feross.org>
|
||||
* @license MIT
|
||||
*/
|
BIN
supervisor/api/panel/chunk.9b52b3714af8aa55d380.js.gz
Normal file
BIN
supervisor/api/panel/chunk.9b52b3714af8aa55d380.js.gz
Normal file
Binary file not shown.
1
supervisor/api/panel/chunk.9b52b3714af8aa55d380.js.map
Normal file
1
supervisor/api/panel/chunk.9b52b3714af8aa55d380.js.map
Normal file
File diff suppressed because one or more lines are too long
3
supervisor/api/panel/chunk.a39fb4d3ed3ccadb5a51.js
Normal file
3
supervisor/api/panel/chunk.a39fb4d3ed3ccadb5a51.js
Normal file
File diff suppressed because one or more lines are too long
20
supervisor/api/panel/chunk.a39fb4d3ed3ccadb5a51.js.LICENSE
Normal file
20
supervisor/api/panel/chunk.a39fb4d3ed3ccadb5a51.js.LICENSE
Normal file
@ -0,0 +1,20 @@
|
||||
/**
|
||||
@license
|
||||
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
||||
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
||||
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
||||
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
||||
Code distributed by Google as part of the polymer project is also
|
||||
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
||||
*/
|
||||
|
||||
/**
|
||||
@license
|
||||
Copyright (c) 2015 The Polymer Project Authors. All rights reserved.
|
||||
This code may only be used under the BSD style license found at
|
||||
http://polymer.github.io/LICENSE.txt The complete set of authors may be found at
|
||||
http://polymer.github.io/AUTHORS.txt The complete set of contributors may be
|
||||
found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by Google as
|
||||
part of the polymer project is also subject to an additional IP rights grant
|
||||
found at http://polymer.github.io/PATENTS.txt
|
||||
*/
|
BIN
supervisor/api/panel/chunk.a39fb4d3ed3ccadb5a51.js.gz
Normal file
BIN
supervisor/api/panel/chunk.a39fb4d3ed3ccadb5a51.js.gz
Normal file
Binary file not shown.
1
supervisor/api/panel/chunk.a39fb4d3ed3ccadb5a51.js.map
Normal file
1
supervisor/api/panel/chunk.a39fb4d3ed3ccadb5a51.js.map
Normal file
File diff suppressed because one or more lines are too long
2
supervisor/api/panel/chunk.a87cb6b23bf028d87ce9.js
Normal file
2
supervisor/api/panel/chunk.a87cb6b23bf028d87ce9.js
Normal file
File diff suppressed because one or more lines are too long
BIN
supervisor/api/panel/chunk.a87cb6b23bf028d87ce9.js.gz
Normal file
BIN
supervisor/api/panel/chunk.a87cb6b23bf028d87ce9.js.gz
Normal file
Binary file not shown.
1
supervisor/api/panel/chunk.a87cb6b23bf028d87ce9.js.map
Normal file
1
supervisor/api/panel/chunk.a87cb6b23bf028d87ce9.js.map
Normal file
File diff suppressed because one or more lines are too long
3
supervisor/api/panel/chunk.af4e8649a8bf6cace848.js
Normal file
3
supervisor/api/panel/chunk.af4e8649a8bf6cace848.js
Normal file
File diff suppressed because one or more lines are too long
189
supervisor/api/panel/chunk.af4e8649a8bf6cace848.js.LICENSE
Normal file
189
supervisor/api/panel/chunk.af4e8649a8bf6cace848.js.LICENSE
Normal file
@ -0,0 +1,189 @@
|
||||
/**
|
||||
* @license
|
||||
* Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
||||
* This code may only be used under the BSD style license found at
|
||||
* http://polymer.github.io/LICENSE.txt
|
||||
* The complete set of authors may be found at
|
||||
* http://polymer.github.io/AUTHORS.txt
|
||||
* The complete set of contributors may be found at
|
||||
* http://polymer.github.io/CONTRIBUTORS.txt
|
||||
* Code distributed by Google as part of the polymer project is also
|
||||
* subject to an additional IP rights grant found at
|
||||
* http://polymer.github.io/PATENTS.txt
|
||||
*/
|
||||
|
||||
/**
|
||||
@license
|
||||
Copyright (c) 2019 The Polymer Project Authors. All rights reserved.
|
||||
This code may only be used under the BSD style license found at
|
||||
http://polymer.github.io/LICENSE.txt The complete set of authors may be found at
|
||||
http://polymer.github.io/AUTHORS.txt The complete set of contributors may be
|
||||
found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by Google as
|
||||
part of the polymer project is also subject to an additional IP rights grant
|
||||
found at http://polymer.github.io/PATENTS.txt
|
||||
*/
|
||||
|
||||
/**
|
||||
@license
|
||||
Copyright (c) 2015 The Polymer Project Authors. All rights reserved.
|
||||
This code may only be used under the BSD style license found at
|
||||
http://polymer.github.io/LICENSE.txt The complete set of authors may be found at
|
||||
http://polymer.github.io/AUTHORS.txt The complete set of contributors may be
|
||||
found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by Google as
|
||||
part of the polymer project is also subject to an additional IP rights grant
|
||||
found at http://polymer.github.io/PATENTS.txt
|
||||
*/
|
||||
|
||||
/**
|
||||
@license
|
||||
Copyright 2018 Google Inc. All Rights Reserved.
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
*/
|
||||
|
||||
/**
|
||||
@license
|
||||
Copyright (c) 2016 The Polymer Project Authors. All rights reserved.
|
||||
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
||||
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
||||
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
||||
Code distributed by Google as part of the polymer project is also
|
||||
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
||||
*/
|
||||
|
||||
/**
|
||||
@license
|
||||
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
||||
This code may only be used under the BSD style license found at
|
||||
http://polymer.github.io/LICENSE.txt The complete set of authors may be found at
|
||||
http://polymer.github.io/AUTHORS.txt The complete set of contributors may be
|
||||
found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by Google as
|
||||
part of the polymer project is also subject to an additional IP rights grant
|
||||
found at http://polymer.github.io/PATENTS.txt
|
||||
*/
|
||||
|
||||
/*! *****************************************************************************
|
||||
Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
|
||||
this file except in compliance with the License. You may obtain a copy of the
|
||||
License at http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
|
||||
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
|
||||
MERCHANTABLITY OR NON-INFRINGEMENT.
|
||||
|
||||
See the Apache Version 2.0 License for specific language governing permissions
|
||||
and limitations under the License.
|
||||
***************************************************************************** */
|
||||
|
||||
/**
|
||||
* @license
|
||||
* Copyright (c) 2018 The Polymer Project Authors. All rights reserved.
|
||||
* This code may only be used under the BSD style license found at
|
||||
* http://polymer.github.io/LICENSE.txt
|
||||
* The complete set of authors may be found at
|
||||
* http://polymer.github.io/AUTHORS.txt
|
||||
* The complete set of contributors may be found at
|
||||
* http://polymer.github.io/CONTRIBUTORS.txt
|
||||
* Code distributed by Google as part of the polymer project is also
|
||||
* subject to an additional IP rights grant found at
|
||||
* http://polymer.github.io/PATENTS.txt
|
||||
*/
|
||||
|
||||
/**
|
||||
* @license
|
||||
* Copyright 2019 Google Inc.
|
||||
*
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
* of this software and associated documentation files (the "Software"), to deal
|
||||
* in the Software without restriction, including without limitation the rights
|
||||
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
* copies of the Software, and to permit persons to whom the Software is
|
||||
* furnished to do so, subject to the following conditions:
|
||||
*
|
||||
* The above copyright notice and this permission notice shall be included in
|
||||
* all copies or substantial portions of the Software.
|
||||
*
|
||||
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||
* THE SOFTWARE.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @license
|
||||
* Copyright 2016 Google Inc.
|
||||
*
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
* of this software and associated documentation files (the "Software"), to deal
|
||||
* in the Software without restriction, including without limitation the rights
|
||||
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
* copies of the Software, and to permit persons to whom the Software is
|
||||
* furnished to do so, subject to the following conditions:
|
||||
*
|
||||
* The above copyright notice and this permission notice shall be included in
|
||||
* all copies or substantial portions of the Software.
|
||||
*
|
||||
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||
* THE SOFTWARE.
|
||||
*/
|
||||
|
||||
/**
|
||||
@license
|
||||
Copyright (c) 2014 The Polymer Project Authors. All rights reserved.
|
||||
This code may only be used under the BSD style license found at
|
||||
http://polymer.github.io/LICENSE.txt The complete set of authors may be found at
|
||||
http://polymer.github.io/AUTHORS.txt The complete set of contributors may be
|
||||
found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by Google as
|
||||
part of the polymer project is also subject to an additional IP rights grant
|
||||
found at http://polymer.github.io/PATENTS.txt
|
||||
*/
|
||||
|
||||
/**
|
||||
@license
|
||||
Copyright (c) 2015 The Polymer Project Authors. All rights reserved.
|
||||
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
||||
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
||||
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
||||
Code distributed by Google as part of the polymer project is also
|
||||
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
||||
*/
|
||||
|
||||
/**
|
||||
@license
|
||||
Copyright (c) 2016 The Polymer Project Authors. All rights reserved.
|
||||
This code may only be used under the BSD style license found at
|
||||
http://polymer.github.io/LICENSE.txt The complete set of authors may be found at
|
||||
http://polymer.github.io/AUTHORS.txt The complete set of contributors may be
|
||||
found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by Google as
|
||||
part of the polymer project is also subject to an additional IP rights grant
|
||||
found at http://polymer.github.io/PATENTS.txt
|
||||
*/
|
||||
|
||||
/*!
|
||||
* Fuse.js v3.4.4 - Lightweight fuzzy-search (http://fusejs.io)
|
||||
*
|
||||
* Copyright (c) 2012-2017 Kirollos Risk (http://kiro.me)
|
||||
* All Rights Reserved. Apache Software License 2.0
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*/
|
BIN
supervisor/api/panel/chunk.af4e8649a8bf6cace848.js.gz
Normal file
BIN
supervisor/api/panel/chunk.af4e8649a8bf6cace848.js.gz
Normal file
Binary file not shown.
1
supervisor/api/panel/chunk.af4e8649a8bf6cace848.js.map
Normal file
1
supervisor/api/panel/chunk.af4e8649a8bf6cace848.js.map
Normal file
File diff suppressed because one or more lines are too long
2
supervisor/api/panel/chunk.b2dd91c061286f3153d7.js
Normal file
2
supervisor/api/panel/chunk.b2dd91c061286f3153d7.js
Normal file
File diff suppressed because one or more lines are too long
BIN
supervisor/api/panel/chunk.b2dd91c061286f3153d7.js.gz
Normal file
BIN
supervisor/api/panel/chunk.b2dd91c061286f3153d7.js.gz
Normal file
Binary file not shown.
1
supervisor/api/panel/chunk.b2dd91c061286f3153d7.js.map
Normal file
1
supervisor/api/panel/chunk.b2dd91c061286f3153d7.js.map
Normal file
File diff suppressed because one or more lines are too long
2
supervisor/api/panel/chunk.bf3d759454e15125e26b.js
Normal file
2
supervisor/api/panel/chunk.bf3d759454e15125e26b.js
Normal file
File diff suppressed because one or more lines are too long
BIN
supervisor/api/panel/chunk.bf3d759454e15125e26b.js.gz
Normal file
BIN
supervisor/api/panel/chunk.bf3d759454e15125e26b.js.gz
Normal file
Binary file not shown.
1
supervisor/api/panel/chunk.bf3d759454e15125e26b.js.map
Normal file
1
supervisor/api/panel/chunk.bf3d759454e15125e26b.js.map
Normal file
@ -0,0 +1 @@
|
||||
{"version":3,"sources":["webpack:///./hassio/src/ingress-view/hassio-ingress-view.ts"],"names":["customElement","HassioIngressView","property","this","_addon","html","_templateObject2","name","ingress_url","_templateObject","changedProps","_get","_getPrototypeOf","prototype","call","has","addon","route","path","substr","oldRoute","get","oldAddon","undefined","_fetchData","_callee","addonSlug","_yield$Promise$all","_yield$Promise$all2","regeneratorRuntime","wrap","_context","prev","next","Promise","all","fetchHassioAddonInfo","hass","Error","createHassioSession","sent","_slicedToArray","ingress","t0","console","error","alert","message","history","back","stop","css","_templateObject3","LitElement"],"mappings":"6/TAmBCA,YAAc,0CACTC,2iBACHC,kEAEAA,mEAEAA,4EAED,WACE,OAAKC,KAAKC,OAIHC,YAAPC,IAC0BH,KAAKC,OAAOG,KACpBJ,KAAKC,OAAOI,aALrBH,YAAPI,0CAUJ,SAAkBC,GAGhB,GAFAC,EAAAC,EApBEX,EAoBFY,WAAA,eAAAV,MAAAW,KAAAX,KAAmBO,GAEdA,EAAaK,IAAI,SAAtB,CAIA,IAAMC,EAAQb,KAAKc,MAAMC,KAAKC,OAAO,GAE/BC,EAAWV,EAAaW,IAAI,SAC5BC,EAAWF,EAAWA,EAASF,KAAKC,OAAO,QAAKI,EAElDP,GAASA,IAAUM,GACrBnB,KAAKqB,WAAWR,0FAIpB,SAAAS,EAAyBC,GAAzB,IAAAC,EAAAC,EAAAZ,EAAA,OAAAa,mBAAAC,KAAA,SAAAC,GAAA,cAAAA,EAAAC,KAAAD,EAAAE,MAAA,cAAAF,EAAAC,KAAA,EAAAD,EAAAE,KAAA,EAE0BC,QAAQC,IAAI,CAChCC,YAAqBjC,KAAKkC,KAAMX,GAAhC,MAAiD,WAC/C,MAAM,IAAIY,MAAM,iCAElBC,YAAoBpC,KAAKkC,MAAzB,MAAqC,WACnC,MAAM,IAAIC,MAAM,2CAPxB,UAAAX,EAAAI,EAAAS,KAAAZ,EAAAa,EAAAd,EAAA,IAEWX,EAFXY,EAAA,IAWec,QAXf,CAAAX,EAAAE,KAAA,cAYY,IAAIK,MAAM,wCAZtB,OAeInC,KAAKC,OAASY,EAflBe,EAAAE,KAAA,iBAAAF,EAAAC,KAAA,GAAAD,EAAAY,GAAAZ,EAAA,SAkBIa,QAAQC,MAARd,EAAAY,IACAG,MAAMf,EAAAY,GAAII,SAAW,mCACrBC,QAAQC,OApBZ,yBAAAlB,EAAAmB,SAAAzB,EAAAtB,KAAA,yRAwBA,WACE,OAAOgD,YAAPC,UA7D4BC","file":"chunk.bf3d759454e15125e26b.js","sourcesContent":["import {\n css,\n CSSResult,\n customElement,\n html,\n LitElement,\n property,\n PropertyValues,\n TemplateResult,\n} from \"lit-element\";\nimport {\n fetchHassioAddonInfo,\n HassioAddonDetails,\n} from \"../../../src/data/hassio/addon\";\nimport { createHassioSession } from \"../../../src/data/hassio/supervisor\";\nimport \"../../../src/layouts/hass-loading-screen\";\nimport \"../../../src/layouts/hass-subpage\";\nimport { HomeAssistant, Route } from \"../../../src/types\";\n\n@customElement(\"hassio-ingress-view\")\nclass HassioIngressView extends LitElement {\n @property() public hass!: HomeAssistant;\n\n @property() public route!: Route;\n\n @property() private _addon?: HassioAddonDetails;\n\n protected render(): TemplateResult {\n if (!this._addon) {\n return html` <hass-loading-screen></hass-loading-screen> `;\n }\n\n return html`\n <hass-subpage .header=${this._addon.name} hassio>\n <iframe src=${this._addon.ingress_url}></iframe>\n </hass-subpage>\n `;\n }\n\n protected updated(changedProps: PropertyValues) {\n super.firstUpdated(changedProps);\n\n if (!changedProps.has(\"route\")) {\n return;\n }\n\n const addon = this.route.path.substr(1);\n\n const oldRoute = changedProps.get(\"route\") as this[\"route\"] | undefined;\n const oldAddon = oldRoute ? oldRoute.path.substr(1) : undefined;\n\n if (addon && addon !== oldAddon) {\n this._fetchData(addon);\n }\n }\n\n private async _fetchData(addonSlug: string) {\n try {\n const [addon] = await Promise.all([\n fetchHassioAddonInfo(this.hass, addonSlug).catch(() => {\n throw new Error(\"Failed to fetch add-on info\");\n }),\n createHassioSession(this.hass).catch(() => {\n throw new Error(\"Failed to create an ingress session\");\n }),\n ]);\n\n if (!addon.ingress) {\n throw new Error(\"This add-on does not support ingress\");\n }\n\n this._addon = addon;\n } catch (err) {\n // eslint-disable-next-line\n console.error(err);\n alert(err.message || \"Unknown error starting ingress.\");\n history.back();\n }\n }\n\n static get styles(): CSSResult {\n return css`\n iframe {\n display: block;\n width: 100%;\n height: 100%;\n border: 0;\n }\n paper-icon-button {\n color: var(--text-primary-color);\n }\n `;\n }\n}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n \"hassio-ingress-view\": HassioIngressView;\n }\n}\n"],"sourceRoot":""}
|
3
supervisor/api/panel/chunk.c6b146bc72a8670a51b9.js
Normal file
3
supervisor/api/panel/chunk.c6b146bc72a8670a51b9.js
Normal file
File diff suppressed because one or more lines are too long
10
supervisor/api/panel/chunk.c6b146bc72a8670a51b9.js.LICENSE
Normal file
10
supervisor/api/panel/chunk.c6b146bc72a8670a51b9.js.LICENSE
Normal file
@ -0,0 +1,10 @@
|
||||
/**
|
||||
@license
|
||||
Copyright (c) 2015 The Polymer Project Authors. All rights reserved.
|
||||
This code may only be used under the BSD style license found at
|
||||
http://polymer.github.io/LICENSE.txt The complete set of authors may be found at
|
||||
http://polymer.github.io/AUTHORS.txt The complete set of contributors may be
|
||||
found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by Google as
|
||||
part of the polymer project is also subject to an additional IP rights grant
|
||||
found at http://polymer.github.io/PATENTS.txt
|
||||
*/
|
BIN
supervisor/api/panel/chunk.c6b146bc72a8670a51b9.js.gz
Normal file
BIN
supervisor/api/panel/chunk.c6b146bc72a8670a51b9.js.gz
Normal file
Binary file not shown.
1
supervisor/api/panel/chunk.c6b146bc72a8670a51b9.js.map
Normal file
1
supervisor/api/panel/chunk.c6b146bc72a8670a51b9.js.map
Normal file
File diff suppressed because one or more lines are too long
3
supervisor/api/panel/chunk.cc42ad88b4acb29d1b37.js
Normal file
3
supervisor/api/panel/chunk.cc42ad88b4acb29d1b37.js
Normal file
File diff suppressed because one or more lines are too long
20
supervisor/api/panel/chunk.cc42ad88b4acb29d1b37.js.LICENSE
Normal file
20
supervisor/api/panel/chunk.cc42ad88b4acb29d1b37.js.LICENSE
Normal file
@ -0,0 +1,20 @@
|
||||
/**
|
||||
@license
|
||||
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
||||
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
||||
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
||||
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
||||
Code distributed by Google as part of the polymer project is also
|
||||
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
||||
*/
|
||||
|
||||
/**
|
||||
@license
|
||||
Copyright (c) 2015 The Polymer Project Authors. All rights reserved.
|
||||
This code may only be used under the BSD style license found at
|
||||
http://polymer.github.io/LICENSE.txt The complete set of authors may be found at
|
||||
http://polymer.github.io/AUTHORS.txt The complete set of contributors may be
|
||||
found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by Google as
|
||||
part of the polymer project is also subject to an additional IP rights grant
|
||||
found at http://polymer.github.io/PATENTS.txt
|
||||
*/
|
BIN
supervisor/api/panel/chunk.cc42ad88b4acb29d1b37.js.gz
Normal file
BIN
supervisor/api/panel/chunk.cc42ad88b4acb29d1b37.js.gz
Normal file
Binary file not shown.
1
supervisor/api/panel/chunk.cc42ad88b4acb29d1b37.js.map
Normal file
1
supervisor/api/panel/chunk.cc42ad88b4acb29d1b37.js.map
Normal file
File diff suppressed because one or more lines are too long
3
supervisor/api/panel/chunk.cd3638711ccab048746b.js
Normal file
3
supervisor/api/panel/chunk.cd3638711ccab048746b.js
Normal file
File diff suppressed because one or more lines are too long
10
supervisor/api/panel/chunk.cd3638711ccab048746b.js.LICENSE
Normal file
10
supervisor/api/panel/chunk.cd3638711ccab048746b.js.LICENSE
Normal file
@ -0,0 +1,10 @@
|
||||
/**
|
||||
@license
|
||||
Copyright (c) 2015 The Polymer Project Authors. All rights reserved.
|
||||
This code may only be used under the BSD style license found at
|
||||
http://polymer.github.io/LICENSE.txt The complete set of authors may be found at
|
||||
http://polymer.github.io/AUTHORS.txt The complete set of contributors may be
|
||||
found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by Google as
|
||||
part of the polymer project is also subject to an additional IP rights grant
|
||||
found at http://polymer.github.io/PATENTS.txt
|
||||
*/
|
BIN
supervisor/api/panel/chunk.cd3638711ccab048746b.js.gz
Normal file
BIN
supervisor/api/panel/chunk.cd3638711ccab048746b.js.gz
Normal file
Binary file not shown.
1
supervisor/api/panel/chunk.cd3638711ccab048746b.js.map
Normal file
1
supervisor/api/panel/chunk.cd3638711ccab048746b.js.map
Normal file
File diff suppressed because one or more lines are too long
2
supervisor/api/panel/chunk.f2c973e64a56e2fab7c5.js
Normal file
2
supervisor/api/panel/chunk.f2c973e64a56e2fab7c5.js
Normal file
File diff suppressed because one or more lines are too long
BIN
supervisor/api/panel/chunk.f2c973e64a56e2fab7c5.js.gz
Normal file
BIN
supervisor/api/panel/chunk.f2c973e64a56e2fab7c5.js.gz
Normal file
Binary file not shown.
1
supervisor/api/panel/chunk.f2c973e64a56e2fab7c5.js.map
Normal file
1
supervisor/api/panel/chunk.f2c973e64a56e2fab7c5.js.map
Normal file
File diff suppressed because one or more lines are too long
Some files were not shown because too many files have changed in this diff Show More
Loading…
x
Reference in New Issue
Block a user