mirror of
https://github.com/home-assistant/supervisor.git
synced 2025-07-23 09:06:29 +00:00
Bump frontend to a567312b (#3313)
This commit is contained in:
parent
7764decc37
commit
b23a89e6fb
@ -1 +1 @@
|
||||
Subproject commit d05c76356fa3459dcdfc486a7987ba51af02b901
|
||||
Subproject commit a567312bdbda4df91bb2a6854dcbe058508f553f
|
@ -1,14 +1,14 @@
|
||||
|
||||
function loadES5() {
|
||||
var el = document.createElement('script');
|
||||
el.src = '/api/hassio/app/frontend_es5/entrypoint.ab1549ac.js';
|
||||
el.src = '/api/hassio/app/frontend_es5/entrypoint.5c1d740c.js';
|
||||
document.body.appendChild(el);
|
||||
}
|
||||
if (/.*Version\/(?:11|12)(?:\.\d+)*.*Safari\//.test(navigator.userAgent)) {
|
||||
loadES5();
|
||||
} else {
|
||||
try {
|
||||
new Function("import('/api/hassio/app/frontend_latest/entrypoint.0225e84d.js')")();
|
||||
new Function("import('/api/hassio/app/frontend_latest/entrypoint.c3df9a39.js')")();
|
||||
} catch (err) {
|
||||
loadES5();
|
||||
}
|
||||
|
Binary file not shown.
1
supervisor/api/panel/frontend_es5/04581308.js
Normal file
1
supervisor/api/panel/frontend_es5/04581308.js
Normal file
File diff suppressed because one or more lines are too long
BIN
supervisor/api/panel/frontend_es5/04581308.js.gz
Normal file
BIN
supervisor/api/panel/frontend_es5/04581308.js.gz
Normal file
Binary file not shown.
File diff suppressed because one or more lines are too long
Binary file not shown.
File diff suppressed because one or more lines are too long
Binary file not shown.
2
supervisor/api/panel/frontend_es5/1ef9c702.js
Normal file
2
supervisor/api/panel/frontend_es5/1ef9c702.js
Normal file
File diff suppressed because one or more lines are too long
10
supervisor/api/panel/frontend_es5/1ef9c702.js.LICENSE.txt
Normal file
10
supervisor/api/panel/frontend_es5/1ef9c702.js.LICENSE.txt
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/frontend_es5/1ef9c702.js.gz
Normal file
BIN
supervisor/api/panel/frontend_es5/1ef9c702.js.gz
Normal file
Binary file not shown.
1
supervisor/api/panel/frontend_es5/2d83cf09.js
Normal file
1
supervisor/api/panel/frontend_es5/2d83cf09.js
Normal file
File diff suppressed because one or more lines are too long
BIN
supervisor/api/panel/frontend_es5/2d83cf09.js.gz
Normal file
BIN
supervisor/api/panel/frontend_es5/2d83cf09.js.gz
Normal file
Binary file not shown.
1
supervisor/api/panel/frontend_es5/39d29b96.js
Normal file
1
supervisor/api/panel/frontend_es5/39d29b96.js
Normal file
File diff suppressed because one or more lines are too long
BIN
supervisor/api/panel/frontend_es5/39d29b96.js.gz
Normal file
BIN
supervisor/api/panel/frontend_es5/39d29b96.js.gz
Normal file
Binary file not shown.
1
supervisor/api/panel/frontend_es5/3a2e08bf.js
Normal file
1
supervisor/api/panel/frontend_es5/3a2e08bf.js
Normal file
File diff suppressed because one or more lines are too long
BIN
supervisor/api/panel/frontend_es5/3a2e08bf.js.gz
Normal file
BIN
supervisor/api/panel/frontend_es5/3a2e08bf.js.gz
Normal file
Binary file not shown.
File diff suppressed because one or more lines are too long
Binary file not shown.
File diff suppressed because one or more lines are too long
@ -1,29 +0,0 @@
|
||||
/**
|
||||
* @license
|
||||
* Copyright 2018 Google LLC
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
||||
/**
|
||||
* @license
|
||||
* Copyright 2019 Google LLC
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
||||
/**
|
||||
* @license
|
||||
* Copyright 2020 Google LLC
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
||||
/**
|
||||
* @license
|
||||
* Copyright 2020 Google LLC
|
||||
* SPDX-License-Identifier: BSD-3-Clause
|
||||
*/
|
||||
|
||||
/**
|
||||
* @license
|
||||
* Copyright 2021 Google LLC
|
||||
* SPDX-LIcense-Identifier: Apache-2.0
|
||||
*/
|
Binary file not shown.
1
supervisor/api/panel/frontend_es5/728d863f.js
Normal file
1
supervisor/api/panel/frontend_es5/728d863f.js
Normal file
File diff suppressed because one or more lines are too long
BIN
supervisor/api/panel/frontend_es5/728d863f.js.gz
Normal file
BIN
supervisor/api/panel/frontend_es5/728d863f.js.gz
Normal file
Binary file not shown.
1
supervisor/api/panel/frontend_es5/75af0819.js
Normal file
1
supervisor/api/panel/frontend_es5/75af0819.js
Normal file
File diff suppressed because one or more lines are too long
BIN
supervisor/api/panel/frontend_es5/75af0819.js.gz
Normal file
BIN
supervisor/api/panel/frontend_es5/75af0819.js.gz
Normal file
Binary file not shown.
1
supervisor/api/panel/frontend_es5/94873099.js
Normal file
1
supervisor/api/panel/frontend_es5/94873099.js
Normal file
@ -0,0 +1 @@
|
||||
!function(){"use strict";var n,t,e={14971:function(n,t,e){var r,o,i=e(93217),u=e(9902),a=e.n(u),f=(e(58556),e(62173)),c=function(n,t,e){if("input"===n){if("type"===t&&"checkbox"===e||"checked"===t||"disabled"===t)return;return""}},s={renderMarkdown:function(n,t){var e,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return r||(r=Object.assign({},(0,f.getDefaultWhiteList)(),{input:["type","disabled","checked"],"ha-icon":["icon"],"ha-svg-icon":["path"]})),i.allowSvg?(o||(o=Object.assign({},r,{svg:["xmlns","height","width"],path:["transform","stroke","d"],img:["src"]})),e=o):e=r,(0,f.filterXSS)(a()(n,t),{whiteList:e,onTagAttr:c})}};(0,i.Jj)(s)}},r={};function o(n){var t=r[n];if(void 0!==t)return t.exports;var i=r[n]={exports:{}};return e[n].call(i.exports,i,i.exports,o),i.exports}o.m=e,o.x=function(){var n=o.O(void 0,[191,468],(function(){return o(14971)}));return n=o.O(n)},n=[],o.O=function(t,e,r,i){if(!e){var u=1/0;for(s=0;s<n.length;s++){e=n[s][0],r=n[s][1],i=n[s][2];for(var a=!0,f=0;f<e.length;f++)(!1&i||u>=i)&&Object.keys(o.O).every((function(n){return o.O[n](e[f])}))?e.splice(f--,1):(a=!1,i<u&&(u=i));if(a){n.splice(s--,1);var c=r();void 0!==c&&(t=c)}}return t}i=i||0;for(var s=n.length;s>0&&n[s-1][2]>i;s--)n[s]=n[s-1];n[s]=[e,r,i]},o.n=function(n){var t=n&&n.__esModule?function(){return n.default}:function(){return n};return o.d(t,{a:t}),t},o.d=function(n,t){for(var e in t)o.o(t,e)&&!o.o(n,e)&&Object.defineProperty(n,e,{enumerable:!0,get:t[e]})},o.f={},o.e=function(n){return Promise.all(Object.keys(o.f).reduce((function(t,e){return o.f[e](n,t),t}),[]))},o.u=function(n){return{191:"2dbdaab4",468:"4a274bef"}[n]+".js"},o.o=function(n,t){return Object.prototype.hasOwnProperty.call(n,t)},o.p="/api/hassio/app/frontend_es5/",function(){var n={971:1};o.f.i=function(t,e){n[t]||importScripts(o.p+o.u(t))};var t=self.webpackChunkhome_assistant_frontend=self.webpackChunkhome_assistant_frontend||[],e=t.push.bind(t);t.push=function(t){var r=t[0],i=t[1],u=t[2];for(var a in i)o.o(i,a)&&(o.m[a]=i[a]);for(u&&u(o);r.length;)n[r.pop()]=1;e(t)}}(),t=o.x,o.x=function(){return Promise.all([o.e(191),o.e(468)]).then(t)};o.x()}();
|
BIN
supervisor/api/panel/frontend_es5/94873099.js.gz
Normal file
BIN
supervisor/api/panel/frontend_es5/94873099.js.gz
Normal file
Binary file not shown.
File diff suppressed because one or more lines are too long
Binary file not shown.
1
supervisor/api/panel/frontend_es5/a159a744.js
Normal file
1
supervisor/api/panel/frontend_es5/a159a744.js
Normal file
File diff suppressed because one or more lines are too long
BIN
supervisor/api/panel/frontend_es5/a159a744.js.gz
Normal file
BIN
supervisor/api/panel/frontend_es5/a159a744.js.gz
Normal file
Binary file not shown.
File diff suppressed because one or more lines are too long
Binary file not shown.
1
supervisor/api/panel/frontend_es5/b2364803.js
Normal file
1
supervisor/api/panel/frontend_es5/b2364803.js
Normal file
File diff suppressed because one or more lines are too long
BIN
supervisor/api/panel/frontend_es5/b2364803.js.gz
Normal file
BIN
supervisor/api/panel/frontend_es5/b2364803.js.gz
Normal file
Binary file not shown.
File diff suppressed because one or more lines are too long
Binary file not shown.
1
supervisor/api/panel/frontend_es5/bdc263bc.js
Normal file
1
supervisor/api/panel/frontend_es5/bdc263bc.js
Normal file
File diff suppressed because one or more lines are too long
BIN
supervisor/api/panel/frontend_es5/bdc263bc.js.gz
Normal file
BIN
supervisor/api/panel/frontend_es5/bdc263bc.js.gz
Normal file
Binary file not shown.
File diff suppressed because one or more lines are too long
Binary file not shown.
1
supervisor/api/panel/frontend_es5/d936e799.js
Normal file
1
supervisor/api/panel/frontend_es5/d936e799.js
Normal file
File diff suppressed because one or more lines are too long
BIN
supervisor/api/panel/frontend_es5/d936e799.js.gz
Normal file
BIN
supervisor/api/panel/frontend_es5/d936e799.js.gz
Normal file
Binary file not shown.
@ -1 +0,0 @@
|
||||
!function(){"use strict";var n,t,r={14971:function(n,t,r){var e,o,i=r(93217),u=r(9902),a=r.n(u),f=(r(58556),r(62173)),s={renderMarkdown:function(n,t){var r,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return e||(e=Object.assign({},(0,f.getDefaultWhiteList)(),{"ha-icon":["icon"],"ha-svg-icon":["path"]})),i.allowSvg?(o||(o=Object.assign({},e,{svg:["xmlns","height","width"],path:["transform","stroke","d"],img:["src"]})),r=o):r=e,(0,f.filterXSS)(a()(n,t),{whiteList:r})}};(0,i.Jj)(s)}},e={};function o(n){var t=e[n];if(void 0!==t)return t.exports;var i=e[n]={exports:{}};return r[n].call(i.exports,i,i.exports,o),i.exports}o.m=r,o.x=function(){var n=o.O(void 0,[191,468],(function(){return o(14971)}));return n=o.O(n)},n=[],o.O=function(t,r,e,i){if(!r){var u=1/0;for(c=0;c<n.length;c++){r=n[c][0],e=n[c][1],i=n[c][2];for(var a=!0,f=0;f<r.length;f++)(!1&i||u>=i)&&Object.keys(o.O).every((function(n){return o.O[n](r[f])}))?r.splice(f--,1):(a=!1,i<u&&(u=i));if(a){n.splice(c--,1);var s=e();void 0!==s&&(t=s)}}return t}i=i||0;for(var c=n.length;c>0&&n[c-1][2]>i;c--)n[c]=n[c-1];n[c]=[r,e,i]},o.n=function(n){var t=n&&n.__esModule?function(){return n.default}:function(){return n};return o.d(t,{a:t}),t},o.d=function(n,t){for(var r in t)o.o(t,r)&&!o.o(n,r)&&Object.defineProperty(n,r,{enumerable:!0,get:t[r]})},o.f={},o.e=function(n){return Promise.all(Object.keys(o.f).reduce((function(t,r){return o.f[r](n,t),t}),[]))},o.u=function(n){return{191:"2dbdaab4",468:"4a274bef"}[n]+".js"},o.o=function(n,t){return Object.prototype.hasOwnProperty.call(n,t)},o.p="/api/hassio/app/frontend_es5/",function(){var n={971:1};o.f.i=function(t,r){n[t]||importScripts(o.p+o.u(t))};var t=self.webpackChunkhome_assistant_frontend=self.webpackChunkhome_assistant_frontend||[],r=t.push.bind(t);t.push=function(t){var e=t[0],i=t[1],u=t[2];for(var a in i)o.o(i,a)&&(o.m[a]=i[a]);for(u&&u(o);e.length;)n[e.pop()]=1;r(t)}}(),t=o.x,o.x=function(){return Promise.all([o.e(191),o.e(468)]).then(t)};o.x()}();
|
Binary file not shown.
File diff suppressed because one or more lines are too long
Binary file not shown.
1
supervisor/api/panel/frontend_es5/e0edb111.js
Normal file
1
supervisor/api/panel/frontend_es5/e0edb111.js
Normal file
File diff suppressed because one or more lines are too long
BIN
supervisor/api/panel/frontend_es5/e0edb111.js.gz
Normal file
BIN
supervisor/api/panel/frontend_es5/e0edb111.js.gz
Normal file
Binary file not shown.
File diff suppressed because one or more lines are too long
Binary file not shown.
1
supervisor/api/panel/frontend_es5/e620b45a.js
Normal file
1
supervisor/api/panel/frontend_es5/e620b45a.js
Normal file
File diff suppressed because one or more lines are too long
BIN
supervisor/api/panel/frontend_es5/e620b45a.js.gz
Normal file
BIN
supervisor/api/panel/frontend_es5/e620b45a.js.gz
Normal file
Binary file not shown.
File diff suppressed because one or more lines are too long
Binary file not shown.
2
supervisor/api/panel/frontend_es5/entrypoint.5c1d740c.js
Normal file
2
supervisor/api/panel/frontend_es5/entrypoint.5c1d740c.js
Normal file
File diff suppressed because one or more lines are too long
BIN
supervisor/api/panel/frontend_es5/entrypoint.5c1d740c.js.gz
Normal file
BIN
supervisor/api/panel/frontend_es5/entrypoint.5c1d740c.js.gz
Normal file
Binary file not shown.
File diff suppressed because one or more lines are too long
Binary file not shown.
File diff suppressed because one or more lines are too long
Binary file not shown.
File diff suppressed because one or more lines are too long
Binary file not shown.
File diff suppressed because one or more lines are too long
Binary file not shown.
1
supervisor/api/panel/frontend_es5/f8de176b.js
Normal file
1
supervisor/api/panel/frontend_es5/f8de176b.js
Normal file
File diff suppressed because one or more lines are too long
BIN
supervisor/api/panel/frontend_es5/f8de176b.js.gz
Normal file
BIN
supervisor/api/panel/frontend_es5/f8de176b.js.gz
Normal file
Binary file not shown.
@ -1,3 +1,3 @@
|
||||
{
|
||||
"entrypoint.js": "/api/hassio/app/frontend_es5/entrypoint.ab1549ac.js"
|
||||
"entrypoint.js": "/api/hassio/app/frontend_es5/entrypoint.5c1d740c.js"
|
||||
}
|
File diff suppressed because one or more lines are too long
Binary file not shown.
File diff suppressed because one or more lines are too long
1
supervisor/api/panel/frontend_latest/07efa125.js
Normal file
1
supervisor/api/panel/frontend_latest/07efa125.js
Normal file
File diff suppressed because one or more lines are too long
BIN
supervisor/api/panel/frontend_latest/07efa125.js.gz
Normal file
BIN
supervisor/api/panel/frontend_latest/07efa125.js.gz
Normal file
Binary file not shown.
File diff suppressed because one or more lines are too long
BIN
supervisor/api/panel/frontend_latest/16063186.js.gz
Normal file
BIN
supervisor/api/panel/frontend_latest/16063186.js.gz
Normal file
Binary file not shown.
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
BIN
supervisor/api/panel/frontend_latest/221f3c66.js.gz
Normal file
BIN
supervisor/api/panel/frontend_latest/221f3c66.js.gz
Normal file
Binary file not shown.
1
supervisor/api/panel/frontend_latest/221f3c66.js.map
Normal file
1
supervisor/api/panel/frontend_latest/221f3c66.js.map
Normal file
@ -0,0 +1 @@
|
||||
{"version":3,"file":"221f3c66.js","mappings":";;;;;AAmFA;AAMA;AAcA;AAGA","sources":["webpack://home-assistant-frontend/./hassio/src/hassio-my-redirect.ts"],"sourcesContent":["import { sanitizeUrl } from \"@braintree/sanitize-url\";\nimport { html, LitElement, TemplateResult } from \"lit\";\nimport { customElement, property, state } from \"lit/decorators\";\nimport { navigate } from \"../../src/common/navigate\";\nimport {\n createSearchParam,\n extractSearchParamsObject,\n} from \"../../src/common/url/search-params\";\nimport { Supervisor } from \"../../src/data/supervisor/supervisor\";\nimport \"../../src/layouts/hass-error-screen\";\nimport {\n ParamType,\n Redirect,\n Redirects,\n} from \"../../src/panels/my/ha-panel-my\";\nimport { HomeAssistant, Route } from \"../../src/types\";\n\nconst REDIRECTS: Redirects = {\n supervisor: {\n redirect: \"/hassio/dashboard\",\n },\n supervisor_logs: {\n redirect: \"/hassio/system\",\n },\n supervisor_info: {\n redirect: \"/hassio/system\",\n },\n supervisor_snapshots: {\n redirect: \"/hassio/backups\",\n },\n supervisor_backups: {\n redirect: \"/hassio/backups\",\n },\n supervisor_store: {\n redirect: \"/hassio/store\",\n },\n supervisor_addons: {\n redirect: \"/hassio/dashboard\",\n },\n supervisor_addon: {\n redirect: \"/hassio/addon\",\n params: {\n addon: \"string\",\n },\n },\n supervisor_ingress: {\n redirect: \"/hassio/ingress\",\n params: {\n addon: \"string\",\n },\n },\n supervisor_add_addon_repository: {\n redirect: \"/hassio/store\",\n params: {\n repository_url: \"url\",\n },\n },\n};\n\n@customElement(\"hassio-my-redirect\")\nclass HassioMyRedirect extends LitElement {\n @property({ attribute: false }) public hass!: HomeAssistant;\n\n @property({ attribute: false }) public supervisor!: Supervisor;\n\n @property({ attribute: false }) public route!: Route;\n\n @state() public _error?: TemplateResult | string;\n\n connectedCallback() {\n super.connectedCallback();\n const path = this.route.path.substr(1);\n const redirect = REDIRECTS[path];\n\n if (!redirect) {\n this._error = this.supervisor.localize(\n \"my.not_supported\",\n \"link\",\n html`<a\n target=\"_blank\"\n rel=\"noreferrer noopener\"\n href=\"https://my.home-assistant.io/faq.html#supported-pages\"\n >\n ${this.supervisor.localize(\"my.faq_link\")}\n </a>`\n );\n return;\n }\n\n let url: string;\n try {\n url = this._createRedirectUrl(redirect);\n } catch (err: any) {\n this._error = this.supervisor.localize(\"my.error\");\n return;\n }\n\n navigate(url, { replace: true });\n }\n\n protected render(): TemplateResult {\n if (this._error) {\n return html`<hass-error-screen\n .error=${this._error}\n ></hass-error-screen>`;\n }\n return html``;\n }\n\n private _createRedirectUrl(redirect: Redirect): string {\n const params = this._createRedirectParams(redirect);\n return `${redirect.redirect}${params}`;\n }\n\n private _createRedirectParams(redirect: Redirect): string {\n const params = extractSearchParamsObject();\n if (!redirect.params && !Object.keys(params).length) {\n return \"\";\n }\n const resultParams = {};\n Object.entries(redirect.params || {}).forEach(([key, type]) => {\n if (!params[key] || !this._checkParamType(type, params[key])) {\n throw Error();\n }\n resultParams[key] = params[key];\n });\n return `?${createSearchParam(resultParams)}`;\n }\n\n private _checkParamType(type: ParamType, value: string) {\n if (type === \"string\") {\n return true;\n }\n if (type === \"url\") {\n return value && value === sanitizeUrl(value);\n }\n return false;\n }\n}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n \"hassio-my-redirect\": HassioMyRedirect;\n }\n}\n"],"names":[],"sourceRoot":""}
|
Binary file not shown.
1
supervisor/api/panel/frontend_latest/39195f9e.js
Normal file
1
supervisor/api/panel/frontend_latest/39195f9e.js
Normal file
File diff suppressed because one or more lines are too long
BIN
supervisor/api/panel/frontend_latest/39195f9e.js.gz
Normal file
BIN
supervisor/api/panel/frontend_latest/39195f9e.js.gz
Normal file
Binary file not shown.
1
supervisor/api/panel/frontend_latest/4a48adaf.js
Normal file
1
supervisor/api/panel/frontend_latest/4a48adaf.js
Normal file
File diff suppressed because one or more lines are too long
BIN
supervisor/api/panel/frontend_latest/4a48adaf.js.gz
Normal file
BIN
supervisor/api/panel/frontend_latest/4a48adaf.js.gz
Normal file
Binary file not shown.
File diff suppressed because one or more lines are too long
BIN
supervisor/api/panel/frontend_latest/4c75bdcf.js.gz
Normal file
BIN
supervisor/api/panel/frontend_latest/4c75bdcf.js.gz
Normal file
Binary file not shown.
@ -1 +1 @@
|
||||
{"version":3,"file":"b9aba49f.js","mappings":";;;AAoCA;AACA;;AAEA;;AARA;;;;;;;;;;;;;;;;;;;AArBA","sources":["webpack://home-assistant-frontend/./hassio/src/dialogs/markdown/dialog-hassio-markdown.ts"],"sourcesContent":["import { css, CSSResultGroup, html, LitElement, TemplateResult } from \"lit\";\nimport { customElement, property, state } from \"lit/decorators\";\nimport { createCloseHeading } from \"../../../../src/components/ha-dialog\";\nimport \"../../../../src/components/ha-markdown\";\nimport { haStyleDialog } from \"../../../../src/resources/styles\";\nimport { HomeAssistant } from \"../../../../src/types\";\nimport { hassioStyle } from \"../../resources/hassio-style\";\nimport { HassioMarkdownDialogParams } from \"./show-dialog-hassio-markdown\";\n\n@customElement(\"dialog-hassio-markdown\")\nclass HassioMarkdownDialog extends LitElement {\n @property({ attribute: false }) public hass!: HomeAssistant;\n\n @property() public title!: string;\n\n @property() public content!: string;\n\n @state() private _opened = false;\n\n public showDialog(params: HassioMarkdownDialogParams) {\n this.title = params.title;\n this.content = params.content;\n this._opened = true;\n }\n\n public closeDialog() {\n this._opened = false;\n }\n\n protected render(): TemplateResult {\n if (!this._opened) {\n return html``;\n }\n return html`\n <ha-dialog\n open\n @closed=${this.closeDialog}\n .heading=${createCloseHeading(this.hass, this.title)}\n >\n <ha-markdown .content=${this.content || \"\"}></ha-markdown>\n </ha-dialog>\n `;\n }\n\n static get styles(): CSSResultGroup {\n return [\n haStyleDialog,\n hassioStyle,\n css`\n app-toolbar {\n margin: 0;\n padding: 0 16px;\n color: var(--primary-text-color);\n background-color: var(--secondary-background-color);\n }\n app-toolbar [main-title] {\n margin-left: 16px;\n }\n @media all and (max-width: 450px), all and (max-height: 500px) {\n app-toolbar {\n color: var(--text-primary-color);\n background-color: var(--primary-color);\n }\n ha-markdown {\n padding: 16px;\n }\n }\n `,\n ];\n }\n}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n \"dialog-hassio-markdown\": HassioMarkdownDialog;\n }\n}\n"],"names":[],"sourceRoot":""}
|
||||
{"version":3,"file":"4c75bdcf.js","mappings":";;;AAoCA;AACA;;AAEA;;AARA;;;;;;;;;;;;;;;;;;;AArBA","sources":["webpack://home-assistant-frontend/./hassio/src/dialogs/markdown/dialog-hassio-markdown.ts"],"sourcesContent":["import { css, CSSResultGroup, html, LitElement, TemplateResult } from \"lit\";\nimport { customElement, property, state } from \"lit/decorators\";\nimport { createCloseHeading } from \"../../../../src/components/ha-dialog\";\nimport \"../../../../src/components/ha-markdown\";\nimport { haStyleDialog } from \"../../../../src/resources/styles\";\nimport { HomeAssistant } from \"../../../../src/types\";\nimport { hassioStyle } from \"../../resources/hassio-style\";\nimport { HassioMarkdownDialogParams } from \"./show-dialog-hassio-markdown\";\n\n@customElement(\"dialog-hassio-markdown\")\nclass HassioMarkdownDialog extends LitElement {\n @property({ attribute: false }) public hass!: HomeAssistant;\n\n @property() public title!: string;\n\n @property() public content!: string;\n\n @state() private _opened = false;\n\n public showDialog(params: HassioMarkdownDialogParams) {\n this.title = params.title;\n this.content = params.content;\n this._opened = true;\n }\n\n public closeDialog() {\n this._opened = false;\n }\n\n protected render(): TemplateResult {\n if (!this._opened) {\n return html``;\n }\n return html`\n <ha-dialog\n open\n @closed=${this.closeDialog}\n .heading=${createCloseHeading(this.hass, this.title)}\n >\n <ha-markdown .content=${this.content || \"\"}></ha-markdown>\n </ha-dialog>\n `;\n }\n\n static get styles(): CSSResultGroup {\n return [\n haStyleDialog,\n hassioStyle,\n css`\n app-toolbar {\n margin: 0;\n padding: 0 16px;\n color: var(--primary-text-color);\n background-color: var(--secondary-background-color);\n }\n app-toolbar [main-title] {\n margin-left: 16px;\n }\n @media all and (max-width: 450px), all and (max-height: 500px) {\n app-toolbar {\n color: var(--text-primary-color);\n background-color: var(--primary-color);\n }\n ha-markdown {\n padding: 16px;\n }\n }\n `,\n ];\n }\n}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n \"dialog-hassio-markdown\": HassioMarkdownDialog;\n }\n}\n"],"names":[],"sourceRoot":""}
|
Binary file not shown.
File diff suppressed because one or more lines are too long
BIN
supervisor/api/panel/frontend_latest/6c045b3e.js.gz
Normal file
BIN
supervisor/api/panel/frontend_latest/6c045b3e.js.gz
Normal file
Binary file not shown.
File diff suppressed because one or more lines are too long
Binary file not shown.
@ -1 +0,0 @@
|
||||
{"version":3,"file":"71fef9f4.js","mappings":";;;;;AAgFA;AAMA;AAcA;AAGA","sources":["webpack://home-assistant-frontend/./hassio/src/hassio-my-redirect.ts"],"sourcesContent":["import { sanitizeUrl } from \"@braintree/sanitize-url\";\nimport { html, LitElement, TemplateResult } from \"lit\";\nimport { customElement, property, state } from \"lit/decorators\";\nimport { navigate } from \"../../src/common/navigate\";\nimport {\n createSearchParam,\n extractSearchParamsObject,\n} from \"../../src/common/url/search-params\";\nimport { Supervisor } from \"../../src/data/supervisor/supervisor\";\nimport \"../../src/layouts/hass-error-screen\";\nimport {\n ParamType,\n Redirect,\n Redirects,\n} from \"../../src/panels/my/ha-panel-my\";\nimport { HomeAssistant, Route } from \"../../src/types\";\n\nconst REDIRECTS: Redirects = {\n supervisor: {\n redirect: \"/hassio/dashboard\",\n },\n supervisor_logs: {\n redirect: \"/hassio/system\",\n },\n supervisor_info: {\n redirect: \"/hassio/system\",\n },\n supervisor_snapshots: {\n redirect: \"/hassio/backups\",\n },\n supervisor_backups: {\n redirect: \"/hassio/backups\",\n },\n supervisor_store: {\n redirect: \"/hassio/store\",\n },\n supervisor_addon: {\n redirect: \"/hassio/addon\",\n params: {\n addon: \"string\",\n },\n },\n supervisor_ingress: {\n redirect: \"/hassio/ingress\",\n params: {\n addon: \"string\",\n },\n },\n supervisor_add_addon_repository: {\n redirect: \"/hassio/store\",\n params: {\n repository_url: \"url\",\n },\n },\n};\n\n@customElement(\"hassio-my-redirect\")\nclass HassioMyRedirect extends LitElement {\n @property({ attribute: false }) public hass!: HomeAssistant;\n\n @property({ attribute: false }) public supervisor!: Supervisor;\n\n @property({ attribute: false }) public route!: Route;\n\n @state() public _error?: TemplateResult | string;\n\n connectedCallback() {\n super.connectedCallback();\n const path = this.route.path.substr(1);\n const redirect = REDIRECTS[path];\n\n if (!redirect) {\n this._error = this.supervisor.localize(\n \"my.not_supported\",\n \"link\",\n html`<a\n target=\"_blank\"\n rel=\"noreferrer noopener\"\n href=\"https://my.home-assistant.io/faq.html#supported-pages\"\n >\n ${this.supervisor.localize(\"my.faq_link\")}\n </a>`\n );\n return;\n }\n\n let url: string;\n try {\n url = this._createRedirectUrl(redirect);\n } catch (err: any) {\n this._error = this.supervisor.localize(\"my.error\");\n return;\n }\n\n navigate(url, { replace: true });\n }\n\n protected render(): TemplateResult {\n if (this._error) {\n return html`<hass-error-screen\n .error=${this._error}\n ></hass-error-screen>`;\n }\n return html``;\n }\n\n private _createRedirectUrl(redirect: Redirect): string {\n const params = this._createRedirectParams(redirect);\n return `${redirect.redirect}${params}`;\n }\n\n private _createRedirectParams(redirect: Redirect): string {\n const params = extractSearchParamsObject();\n if (!redirect.params && !Object.keys(params).length) {\n return \"\";\n }\n const resultParams = {};\n Object.entries(redirect.params || {}).forEach(([key, type]) => {\n if (!params[key] || !this._checkParamType(type, params[key])) {\n throw Error();\n }\n resultParams[key] = params[key];\n });\n return `?${createSearchParam(resultParams)}`;\n }\n\n private _checkParamType(type: ParamType, value: string) {\n if (type === \"string\") {\n return true;\n }\n if (type === \"url\") {\n return value && value === sanitizeUrl(value);\n }\n return false;\n }\n}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n \"hassio-my-redirect\": HassioMyRedirect;\n }\n}\n"],"names":[],"sourceRoot":""}
|
946
supervisor/api/panel/frontend_latest/778d286b.js
Normal file
946
supervisor/api/panel/frontend_latest/778d286b.js
Normal file
File diff suppressed because one or more lines are too long
BIN
supervisor/api/panel/frontend_latest/778d286b.js.gz
Normal file
BIN
supervisor/api/panel/frontend_latest/778d286b.js.gz
Normal file
Binary file not shown.
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