Bump frontend to e91d1777 (#3326)

This commit is contained in:
Joakim Sørensen 2021-11-29 15:45:14 +01:00 committed by GitHub
parent 2f56cab953
commit 2066aefd6d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
192 changed files with 495 additions and 375 deletions

@ -1 +1 @@
Subproject commit a567312bdbda4df91bb2a6854dcbe058508f553f
Subproject commit e91d1777d02c6c62e17885d38f2898e0fbc79415

View File

@ -1,14 +1,14 @@
function loadES5() {
var el = document.createElement('script');
el.src = '/api/hassio/app/frontend_es5/entrypoint.5c1d740c.js';
el.src = '/api/hassio/app/frontend_es5/entrypoint.a4a53e85.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.c3df9a39.js')")();
new Function("import('/api/hassio/app/frontend_latest/entrypoint.8cf3bbb6.js')")();
} catch (err) {
loadES5();
}

File diff suppressed because one or more lines are too long

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

File diff suppressed because one or more lines are too long

Binary file not shown.

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

Binary file not shown.

View File

@ -1,3 +1,3 @@
{
"entrypoint.js": "/api/hassio/app/frontend_es5/entrypoint.5c1d740c.js"
"entrypoint.js": "/api/hassio/app/frontend_es5/entrypoint.a4a53e85.js"
}

Binary file not shown.

View File

@ -1 +1 @@
{"version":3,"file":"98c2c903.js","mappings":";AAkBA;AACA;AACA;AANA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AATA","sources":["webpack://home-assistant-frontend/./src/components/ha-markdown.ts"],"sourcesContent":["import { css, CSSResultGroup, html, LitElement, TemplateResult } from \"lit\";\nimport { customElement, property } from \"lit/decorators\";\nimport \"./ha-markdown-element\";\n\n@customElement(\"ha-markdown\")\nclass HaMarkdown extends LitElement {\n @property() public content?;\n\n @property({ type: Boolean }) public allowSvg = false;\n\n @property({ type: Boolean }) public breaks = false;\n\n protected render(): TemplateResult {\n if (!this.content) {\n return html``;\n }\n\n return html`<ha-markdown-element\n .content=${this.content}\n .allowSvg=${this.allowSvg}\n .breaks=${this.breaks}\n ></ha-markdown-element>`;\n }\n\n static get styles(): CSSResultGroup {\n return css`\n :host {\n display: block;\n }\n ha-markdown-element {\n -ms-user-select: text;\n -webkit-user-select: text;\n -moz-user-select: text;\n }\n ha-markdown-element > *:first-child {\n margin-top: 0;\n }\n ha-markdown-element > *:last-child {\n margin-bottom: 0;\n }\n ha-markdown-element a {\n color: var(--primary-color);\n }\n ha-markdown-element img {\n max-width: 100%;\n }\n ha-markdown-element code,\n pre {\n background-color: var(--markdown-code-background-color, none);\n border-radius: 3px;\n }\n ha-markdown-element svg {\n background-color: var(--markdown-svg-background-color, none);\n color: var(--markdown-svg-color, none);\n }\n ha-markdown-element code {\n font-size: 85%;\n padding: 0.2em 0.4em;\n }\n ha-markdown-element pre code {\n padding: 0;\n }\n ha-markdown-element pre {\n padding: 16px;\n overflow: auto;\n line-height: 1.45;\n font-family: var(--code-font-family, monospace);\n }\n ha-markdown-element h2 {\n font-size: 1.5em;\n font-weight: bold;\n }\n `;\n }\n}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n \"ha-markdown\": HaMarkdown;\n }\n}\n"],"names":[],"sourceRoot":""}
{"version":3,"file":"04808d2c.js","mappings":";AAkBA;AACA;AACA;AANA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AATA","sources":["webpack://home-assistant-frontend/./src/components/ha-markdown.ts"],"sourcesContent":["import { css, CSSResultGroup, html, LitElement, TemplateResult } from \"lit\";\nimport { customElement, property } from \"lit/decorators\";\nimport \"./ha-markdown-element\";\n\n@customElement(\"ha-markdown\")\nclass HaMarkdown extends LitElement {\n @property() public content?;\n\n @property({ type: Boolean }) public allowSvg = false;\n\n @property({ type: Boolean }) public breaks = false;\n\n protected render(): TemplateResult {\n if (!this.content) {\n return html``;\n }\n\n return html`<ha-markdown-element\n .content=${this.content}\n .allowSvg=${this.allowSvg}\n .breaks=${this.breaks}\n ></ha-markdown-element>`;\n }\n\n static get styles(): CSSResultGroup {\n return css`\n :host {\n display: block;\n }\n ha-markdown-element {\n -ms-user-select: text;\n -webkit-user-select: text;\n -moz-user-select: text;\n }\n ha-markdown-element > *:first-child {\n margin-top: 0;\n }\n ha-markdown-element > *:last-child {\n margin-bottom: 0;\n }\n ha-markdown-element a {\n color: var(--primary-color);\n }\n ha-markdown-element img {\n max-width: 100%;\n }\n ha-markdown-element code,\n pre {\n background-color: var(--markdown-code-background-color, none);\n border-radius: 3px;\n }\n ha-markdown-element svg {\n background-color: var(--markdown-svg-background-color, none);\n color: var(--markdown-svg-color, none);\n }\n ha-markdown-element code {\n font-size: 85%;\n padding: 0.2em 0.4em;\n }\n ha-markdown-element pre code {\n padding: 0;\n }\n ha-markdown-element pre {\n padding: 16px;\n overflow: auto;\n line-height: 1.45;\n font-family: var(--code-font-family, monospace);\n }\n ha-markdown-element h2 {\n font-size: 1.5em;\n font-weight: bold;\n }\n `;\n }\n}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n \"ha-markdown\": HaMarkdown;\n }\n}\n"],"names":[],"sourceRoot":""}

View File

@ -64,4 +64,4 @@
color: var(--secondary-text-color);
}
`]}},{kind:"method",key:"_handleMenuAction",value:function(e){switch(e.detail.index){case 0:this._downloadClicked();break;case 1:this._deleteClicked()}}},{kind:"method",key:"_restoreClicked",value:async function(){const e=this._backupContent.backupDetails();this._restoringBackup=!0,"full"===this._backupContent.backupType?await this._fullRestoreClicked(e):await this._partialRestoreClicked(e),this._restoringBackup=!1}},{kind:"method",key:"_partialRestoreClicked",value:async function(e){var t,i,r,o;void 0===(null===(t=this._dialogParams)||void 0===t?void 0:t.supervisor)||"running"===(null===(i=this._dialogParams)||void 0===i?void 0:i.supervisor.info.state)?await(0,p.g7)(this,{title:"Are you sure you want partially to restore this backup?",confirmText:"restore",dismissText:"cancel"})&&(null!==(r=this._dialogParams)&&void 0!==r&&r.onboarding?((0,l.B)(this,"restoring"),fetch(`/api/hassio/backups/${this._backup.slug}/restore/partial`,{method:"POST",body:JSON.stringify(e)}),this.closeDialog()):this.hass.callApi("POST",`hassio/${(0,v.I)(this.hass.config.version,2021,9)?"backups":"snapshots"}/${this._backup.slug}/restore/partial`,e).then((()=>{this.closeDialog()}),(e=>{this._error=e.body.message}))):await(0,p.Ys)(this,{title:"Could not restore backup",text:`Restoring a backup is not possible right now because the system is in ${null===(o=this._dialogParams)||void 0===o?void 0:o.supervisor.info.state} state.`})}},{kind:"method",key:"_fullRestoreClicked",value:async function(e){var t,i,r,o;void 0===(null===(t=this._dialogParams)||void 0===t?void 0:t.supervisor)||"running"===(null===(i=this._dialogParams)||void 0===i?void 0:i.supervisor.info.state)?await(0,p.g7)(this,{title:"Are you sure you want to wipe your system and restore this backup?",confirmText:"restore",dismissText:"cancel"})&&(null!==(r=this._dialogParams)&&void 0!==r&&r.onboarding?((0,l.B)(this,"restoring"),fetch(`/api/hassio/backups/${this._backup.slug}/restore/full`,{method:"POST",body:JSON.stringify(e)}),this.closeDialog()):this.hass.callApi("POST",`hassio/${(0,v.I)(this.hass.config.version,2021,9)?"backups":"snapshots"}/${this._backup.slug}/restore/full`,e).then((()=>{this.closeDialog()}),(e=>{this._error=e.body.message}))):await(0,p.Ys)(this,{title:"Could not restore backup",text:`Restoring a backup is not possible right now because the system is in ${null===(o=this._dialogParams)||void 0===o?void 0:o.supervisor.info.state} state.`})}},{kind:"method",key:"_deleteClicked",value:async function(){await(0,p.g7)(this,{title:"Are you sure you want to delete this backup?",confirmText:"delete",dismissText:"cancel"})&&this.hass.callApi((0,v.I)(this.hass.config.version,2021,9)?"DELETE":"POST","hassio/"+((0,v.I)(this.hass.config.version,2021,9)?`backups/${this._backup.slug}`:`snapshots/${this._backup.slug}/remove`)).then((()=>{this._dialogParams.onDelete&&this._dialogParams.onDelete(),this.closeDialog()}),(e=>{this._error=e.body.message}))}},{kind:"method",key:"_downloadClicked",value:async function(){let e;try{e=await(0,d.iI)(this.hass,`/api/hassio/${(0,v.I)(this.hass.config.version,2021,9)?"backups":"snapshots"}/${this._backup.slug}/download`)}catch(e){return void await(0,p.Ys)(this,{text:(0,u.js)(e)})}if(window.location.href.includes("ui.nabu.casa")){if(!await(0,p.g7)(this,{title:"Potential slow download",text:"Downloading backups over the Nabu Casa URL will take some time, it is recomended to use your local URL instead, do you want to continue?",confirmText:"continue",dismissText:"cancel"}))return}(0,m.N)(this,e.path,`home_assistant_backup_${(0,c.l)(this._computeName)}.tar`)}},{kind:"get",key:"_computeName",value:function(){return this._backup?this._backup.name||this._backup.slug:"Unnamed backup"}}]}}),r.oi)}))},3447:(e,t,i)=>{i.d(t,{l:()=>r});const r=(e,t="_")=>{const i="àáäâãåăæąçćčđďèéěėëêęğǵḧìíïîįłḿǹńňñòóöôœøṕŕřßşśšșťțùúüûǘůűūųẃẍÿýźžż·/_,:;",r=`aaaaaaaaacccddeeeeeeegghiiiiilmnnnnooooooprrsssssttuuuuuuuuuwxyyzzz${t}${t}${t}${t}${t}${t}`,o=new RegExp(i.split("").join("|"),"g");return e.toString().toLowerCase().replace(/\s+/g,t).replace(o,(e=>r.charAt(i.indexOf(e)))).replace(/&/g,`${t}and${t}`).replace(/[^\w-]+/g,"").replace(/-/g,t).replace(new RegExp(`(${t})\\1+`,"g"),"$1").replace(new RegExp(`^${t}+`),"").replace(new RegExp(`${t}+$`),"")}},2814:(e,t,i)=>{i.d(t,{iI:()=>r});location.protocol,location.host;const r=(e,t)=>e.callWS({type:"auth/sign_path",path:t})},5936:(e,t,i)=>{i.d(t,{N:()=>r});const r=(e,t,i)=>{const r=document.createElement("a");r.target="_blank",r.href=t,r.download=i,e.shadowRoot.appendChild(r),r.dispatchEvent(new MouseEvent("click")),e.shadowRoot.removeChild(r)}}}]);
//# sourceMappingURL=e44c144f.js.map
//# sourceMappingURL=0cfe8f18.js.map

Binary file not shown.

View File

@ -51,4 +51,4 @@
text-align: center;
}
`]}}]}}),r.oi)}}]);
//# sourceMappingURL=7ba22bbd.js.map
//# sourceMappingURL=0ff8a0a5.js.map

Binary file not shown.

File diff suppressed because one or more lines are too long

View File

@ -67,4 +67,4 @@
color: var(--warning-color);
}
`]}}]}}),i.oi)}}]);
//# sourceMappingURL=16063186.js.map
//# sourceMappingURL=54243f09.js.map

Binary file not shown.

View File

@ -55,4 +55,4 @@
--app-header-border-bottom: 1px solid var(--divider-color);
}
`}}]}}),i.oi)}}]);
//# sourceMappingURL=eb055a53.js.map
//# sourceMappingURL=68241e7f.js.map

Binary file not shown.

File diff suppressed because one or more lines are too long

View File

@ -26,4 +26,4 @@
}
}
`]}}]}}),i.oi)}}]);
//# sourceMappingURL=4c75bdcf.js.map
//# sourceMappingURL=7e452335.js.map

Binary file not shown.

View File

@ -1 +1 @@
{"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":""}
{"version":3,"file":"7e452335.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":""}

View File

@ -28,4 +28,4 @@
text-align: center;
}
`]}}]}}),i.oi)}))}}]);
//# sourceMappingURL=f51ae30d.js.map
//# sourceMappingURL=b0f48104.js.map

Binary file not shown.

File diff suppressed because one or more lines are too long

View 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
*/

Binary file not shown.

View File

@ -0,0 +1 @@
{"version":3,"file":"bec1140d.js","mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAiFA","sources":["webpack://home-assistant-frontend/./node_modules/@polymer/paper-item/paper-icon-item.js"],"sourcesContent":["/**\n@license\nCopyright (c) 2015 The Polymer Project Authors. All rights reserved.\nThis code may only be used under the BSD style license found at\nhttp://polymer.github.io/LICENSE.txt The complete set of authors may be found at\nhttp://polymer.github.io/AUTHORS.txt The complete set of contributors may be\nfound at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by Google as\npart of the polymer project is also subject to an additional IP rights grant\nfound at http://polymer.github.io/PATENTS.txt\n*/\nimport '@polymer/polymer/polymer-legacy.js';\nimport '@polymer/iron-flex-layout/iron-flex-layout.js';\nimport '@polymer/paper-styles/typography.js';\nimport './paper-item-shared-styles.js';\n\nimport {Polymer} from '@polymer/polymer/lib/legacy/polymer-fn.js';\nimport {html} from '@polymer/polymer/lib/utils/html-tag.js';\n\nimport {PaperItemBehavior} from './paper-item-behavior.js';\n\n/*\n`<paper-icon-item>` is a convenience element to make an item with icon. It is an\ninteractive list item with a fixed-width icon area, according to Material\nDesign. This is useful if the icons are of varying widths, but you want the item\nbodies to line up. Use this like a `<paper-item>`. The child node with the slot\nname `item-icon` is placed in the icon area.\n\n <paper-icon-item>\n <iron-icon icon=\"favorite\" slot=\"item-icon\"></iron-icon>\n Favorite\n </paper-icon-item>\n <paper-icon-item>\n <div class=\"avatar\" slot=\"item-icon\"></div>\n Avatar\n </paper-icon-item>\n\n### Styling\n\nThe following custom properties and mixins are available for styling:\n\nCustom property | Description | Default\n----------------|-------------|----------\n`--paper-item-icon-width` | Width of the icon area | `56px`\n`--paper-item-icon` | Mixin applied to the icon area | `{}`\n`--paper-icon-item` | Mixin applied to the item | `{}`\n`--paper-item-selected-weight` | The font weight of a selected item | `bold`\n`--paper-item-selected` | Mixin applied to selected paper-items | `{}`\n`--paper-item-disabled-color` | The color for disabled paper-items | `--disabled-text-color`\n`--paper-item-disabled` | Mixin applied to disabled paper-items | `{}`\n`--paper-item-focused` | Mixin applied to focused paper-items | `{}`\n`--paper-item-focused-before` | Mixin applied to :before focused paper-items | `{}`\n\n*/\nPolymer({\n _template: html`\n <style include=\"paper-item-shared-styles\"></style>\n <style>\n :host {\n @apply --layout-horizontal;\n @apply --layout-center;\n @apply --paper-font-subhead;\n\n @apply --paper-item;\n @apply --paper-icon-item;\n }\n\n .content-icon {\n @apply --layout-horizontal;\n @apply --layout-center;\n\n width: var(--paper-item-icon-width, 56px);\n @apply --paper-item-icon;\n }\n </style>\n\n <div id=\"contentIcon\" class=\"content-icon\">\n <slot name=\"item-icon\"></slot>\n </div>\n <slot></slot>\n`,\n\n is: 'paper-icon-item',\n behaviors: [PaperItemBehavior]\n});\n"],"names":[],"sourceRoot":""}

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

View File

@ -100,4 +100,4 @@
margin-top: 12px;
}
`]}}]}}),i.oi)}}]);
//# sourceMappingURL=c865d8fd.js.map
//# sourceMappingURL=d838f5a2.js.map

Binary file not shown.

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

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View 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
*/

Binary file not shown.

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