Bump frontend to b0b953bf (#3417)

This commit is contained in:
Joakim Sørensen 2022-01-24 12:11:17 +01:00 committed by GitHub
parent c3019bce7e
commit 724eaddf19
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
181 changed files with 372 additions and 362 deletions

@ -1 +1 @@
Subproject commit 2f9c0880910145926f633ccb5270b1b913235a1b
Subproject commit b0b953bfac27d68007066931e01c2238c784c636

View File

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

File diff suppressed because one or more lines are too long

Binary file not shown.

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.

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.5d40ff8b.js"
"entrypoint.js": "/api/hassio/app/frontend_es5/entrypoint.e208210a.js"
}

View File

@ -1 +0,0 @@
{"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":""}

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

Binary file not shown.

File diff suppressed because one or more lines are too long

Binary file not shown.

View File

@ -0,0 +1 @@
{"version":3,"file":"2a6dfa4a.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\")\nexport class 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 a {\n color: var(--primary-color);\n }\n img {\n max-width: 100%;\n }\n code,\n pre {\n background-color: var(--markdown-code-background-color, none);\n border-radius: 3px;\n }\n svg {\n background-color: var(--markdown-svg-background-color, none);\n color: var(--markdown-svg-color, none);\n }\n code {\n font-size: 85%;\n padding: 0.2em 0.4em;\n }\n pre code {\n padding: 0;\n }\n pre {\n padding: 16px;\n overflow: auto;\n line-height: 1.45;\n font-family: var(--code-font-family, monospace);\n }\n h1,\n h2,\n h3,\n h4,\n h5,\n h6 {\n line-height: initial;\n }\n 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

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

View File

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

View File

@ -192,4 +192,4 @@
margin-right: 8px;
}
`}}]}}),i.oi)},2198:(e,t,r)=>{r.a(e,(async e=>{r.d(t,{p6:()=>a});var i=r(4516),n=r(4121);n.Xp&&await n.Xp;(0,i.Z)((e=>new Intl.DateTimeFormat(e.language,{weekday:"long",month:"long",day:"numeric"})));const a=(e,t)=>o(t).format(e),o=(0,i.Z)((e=>new Intl.DateTimeFormat(e.language,{year:"numeric",month:"long",day:"numeric"})));(0,i.Z)((e=>new Intl.DateTimeFormat(e.language,{year:"numeric",month:"numeric",day:"numeric"}))),(0,i.Z)((e=>new Intl.DateTimeFormat(e.language,{day:"numeric",month:"short"}))),(0,i.Z)((e=>new Intl.DateTimeFormat(e.language,{month:"long",year:"numeric"}))),(0,i.Z)((e=>new Intl.DateTimeFormat(e.language,{month:"long"}))),(0,i.Z)((e=>new Intl.DateTimeFormat(e.language,{year:"numeric"})));e()}),1)},4583:(e,t,r)=>{r.a(e,(async e=>{r.d(t,{o0:()=>o});var i=r(4516),n=r(5810),a=r(4121);a.Xp&&await a.Xp;const o=(e,t)=>s(t).format(e),s=(0,i.Z)((e=>new Intl.DateTimeFormat(e.language,{year:"numeric",month:"long",day:"numeric",hour:(0,n.y)(e)?"numeric":"2-digit",minute:"2-digit",hour12:(0,n.y)(e)})));(0,i.Z)((e=>new Intl.DateTimeFormat(e.language,{year:"numeric",month:"long",day:"numeric",hour:(0,n.y)(e)?"numeric":"2-digit",minute:"2-digit",second:"2-digit",hour12:(0,n.y)(e)}))),(0,i.Z)((e=>new Intl.DateTimeFormat(e.language,{year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"2-digit",hour12:(0,n.y)(e)})));e()}),1)},5810:(e,t,r)=>{r.d(t,{y:()=>a});var i=r(4516),n=r(6477);const a=(0,i.Z)((e=>{if(e.time_format===n.zt.language||e.time_format===n.zt.system){const t=e.time_format===n.zt.language?e.language:void 0,r=(new Date).toLocaleString(t);return r.includes("AM")||r.includes("PM")}return e.time_format===n.zt.am_pm}))}}]);
//# sourceMappingURL=126d80e3.js.map
//# sourceMappingURL=b0c17029.js.map

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

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

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

@ -1,3 +1,3 @@
{
"entrypoint.js": "/api/hassio/app/frontend_latest/entrypoint.f09e9f8e.js"
"entrypoint.js": "/api/hassio/app/frontend_latest/entrypoint.e74f1505.js"
}

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

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

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

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

Some files were not shown because too many files have changed in this diff Show More