1
0
mirror of https://github.com/home-assistant/supervisor.git synced 2026-05-08 17:08:36 +01:00

Bump frontend to a7b558b6 (#3357)

This commit is contained in:
Joakim Sørensen
2021-12-13 18:57:47 +01:00
committed by GitHub
parent f7ba364076
commit ce9181b05f
113 changed files with 94 additions and 89 deletions
+2 -2
View File
@@ -1,14 +1,14 @@
function loadES5() {
var el = document.createElement('script');
el.src = '/api/hassio/app/frontend_es5/entrypoint.22ce43b5.js';
el.src = '/api/hassio/app/frontend_es5/entrypoint.42d26425.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.510c6a91.js')")();
new Function("import('/api/hassio/app/frontend_latest/entrypoint.cd79763a.js')")();
} catch (err) {
loadES5();
}
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.
Binary file not shown.
Binary file not shown.
@@ -1,3 +1,3 @@
{
"entrypoint.js": "/api/hassio/app/frontend_es5/entrypoint.22ce43b5.js"
"entrypoint.js": "/api/hassio/app/frontend_es5/entrypoint.42d26425.js"
}
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.
File diff suppressed because one or more lines are too long
@@ -109,7 +109,9 @@
>
<div class="card-content">
${this._error?i.dy`<ha-alert alert-type="error">${this._error}</ha-alert>`:""}
${null===this._action?i.dy`
${this._version===this._version_latest?i.dy`<p>
${this.supervisor.localize("update_available.no_update",{name:this._name})}
</p>`:null===this._action?i.dy`
${this._changelogContent?i.dy`
<ha-faded>
<ha-markdown .content=${this._changelogContent}>
@@ -134,7 +136,7 @@
${"update"===this._action?this.supervisor.localize("update_available.updating",{name:this._name,version:this._version_latest}):this.supervisor.localize("update_available.creating_backup",{name:this._name})}
</p>`}
</div>
${null===this._action?i.dy`
${this._version!==this._version_latest&&null===this._action?i.dy`
<div class="card-actions">
${t?i.dy`<a .href=${t} target="_blank" rel="noreferrer">
<mwc-button
@@ -153,7 +155,7 @@
</div>
`:""}
</ha-card>
`}},{kind:"method",key:"firstUpdated",value:function(e){var t;ee(te(r.prototype),"firstUpdated",this).call(this,e);const i=null===(t=this.route)||void 0===t?void 0:t.path.substring(1,this.route.path.length),n=["core","os","supervisor"].includes(i)?i:"addon";this._updateType=n,"addon"===n&&(this.addonSlug||(this.addonSlug=i),this._loadAddonData())}},{kind:"get",key:"_shouldCreateBackup",value:function(){var e;const t=null===(e=this.shadowRoot)||void 0===e?void 0:e.querySelector("ha-checkbox");return!t||t.checked}},{kind:"get",key:"_version",value:function(){var e;return this._updateType?"addon"===this._updateType?this._addonInfo.version:(null===(e=this.supervisor[this._updateType])||void 0===e?void 0:e.version)||"":""}},{kind:"get",key:"_version_latest",value:function(){var e;return this._updateType?"addon"===this._updateType?this._addonInfo.version_latest:(null===(e=this.supervisor[this._updateType])||void 0===e?void 0:e.version_latest)||"":""}},{kind:"get",key:"_name",value:function(){return this._updateType?"addon"===this._updateType?this._addonInfo.name:N[this._updateType]:""}},{kind:"method",key:"_loadAddonData",value:async function(){try{this._addonInfo=await(0,b.AD)(this.hass,this.addonSlug)}catch(e){return void(0,S.Ys)(this,{title:this._updateType,text:(0,E.js)(e)})}const e=this._addonInfo.detached||this._addonInfo.available?void 0:this._addonStoreInfo(this._addonInfo.slug,this.supervisor.store.addons);if(this._addonInfo.changelog)try{const e=await(0,b.CH)(this.hass,this.addonSlug);this._changelogContent=(0,Z.H)(this._addonInfo,e)}catch(e){return void(this._error=(0,E.js)(e))}!this._addonInfo.available&&e&&((0,Z.I)(this.supervisor.info.supported_arch,this._addonInfo.arch)?this._error=this.supervisor.localize("addon.dashboard.not_available_version",{core_version_installed:this.supervisor.core.version,core_version_needed:e.homeassistant}):this._error=this.supervisor.localize("addon.dashboard.not_available_arch"))}},{kind:"method",key:"_update",value:async function(){if(this._error=void 0,this._shouldCreateBackup){let e;e="addon"===this._updateType?{name:`addon_${this.addonSlug}_${this._version}`,addons:[this.addonSlug],homeassistant:!1}:{name:`${this._updateType}_${this._version}`,folders:["homeassistant"],homeassistant:!0},this._action="backup";try{await(0,w.zU)(this.hass,e)}catch(e){return this._error=(0,E.js)(e),void(this._action=null)}}this._action="update";try{"addon"===this._updateType?await(0,b.V_)(this.hass,this.addonSlug):"core"===this._updateType?await(0,P.y)(this.hass):"os"===this._updateType?await(0,_.Fu)(this.hass):"supervisor"===this._updateType&&await(0,C.CG)(this.hass)}catch(e){if(this.hass.connection.connected&&!(0,E.yz)(e))return this._error=(0,E.js)(e),void(this._action=null)}(0,l.B)(this,"update-complete")}},{kind:"get",static:!0,key:"styles",value:function(){return i.iv`
`}},{kind:"method",key:"firstUpdated",value:function(e){var t;ee(te(r.prototype),"firstUpdated",this).call(this,e);const i=null===(t=this.route)||void 0===t?void 0:t.path.substring(1,this.route.path.length),n=["core","os","supervisor"].includes(i)?i:"addon";this._updateType=n,"addon"===n&&(this.addonSlug||(this.addonSlug=i),this._loadAddonData())}},{kind:"get",key:"_shouldCreateBackup",value:function(){var e;if(this._updateType&&!["core","addon"].includes(this._updateType))return!1;const t=null===(e=this.shadowRoot)||void 0===e?void 0:e.querySelector("ha-checkbox");return!t||t.checked}},{kind:"get",key:"_version",value:function(){var e;return this._updateType?"addon"===this._updateType?this._addonInfo.version:(null===(e=this.supervisor[this._updateType])||void 0===e?void 0:e.version)||"":""}},{kind:"get",key:"_version_latest",value:function(){var e;return this._updateType?"addon"===this._updateType?this._addonInfo.version_latest:(null===(e=this.supervisor[this._updateType])||void 0===e?void 0:e.version_latest)||"":""}},{kind:"get",key:"_name",value:function(){return this._updateType?"addon"===this._updateType?this._addonInfo.name:N[this._updateType]:""}},{kind:"method",key:"_loadAddonData",value:async function(){try{this._addonInfo=await(0,b.AD)(this.hass,this.addonSlug)}catch(e){return void(0,S.Ys)(this,{title:this._updateType,text:(0,E.js)(e)})}const e=this._addonInfo.detached||this._addonInfo.available?void 0:this._addonStoreInfo(this._addonInfo.slug,this.supervisor.store.addons);if(this._addonInfo.changelog)try{const e=await(0,b.CH)(this.hass,this.addonSlug);this._changelogContent=(0,Z.H)(this._addonInfo,e)}catch(e){return void(this._error=(0,E.js)(e))}!this._addonInfo.available&&e&&((0,Z.I)(this.supervisor.info.supported_arch,this._addonInfo.arch)?this._error=this.supervisor.localize("addon.dashboard.not_available_version",{core_version_installed:this.supervisor.core.version,core_version_needed:e.homeassistant}):this._error=this.supervisor.localize("addon.dashboard.not_available_arch"))}},{kind:"method",key:"_update",value:async function(){if(this._error=void 0,this._shouldCreateBackup){let e;e="addon"===this._updateType?{name:`addon_${this.addonSlug}_${this._version}`,addons:[this.addonSlug],homeassistant:!1}:{name:`${this._updateType}_${this._version}`,folders:["homeassistant"],homeassistant:!0},this._action="backup";try{await(0,w.zU)(this.hass,e)}catch(e){return this._error=(0,E.js)(e),void(this._action=null)}}this._action="update";try{"addon"===this._updateType?await(0,b.V_)(this.hass,this.addonSlug):"core"===this._updateType?await(0,P.y)(this.hass):"os"===this._updateType?await(0,_.Fu)(this.hass):"supervisor"===this._updateType&&await(0,C.CG)(this.hass)}catch(e){if(this.hass.connection.connected&&!(0,E.yz)(e))return this._error=(0,E.js)(e),void(this._action=null)}(0,l.B)(this,"update-complete")}},{kind:"get",static:!0,key:"styles",value:function(){return i.iv`
:host {
display: block;
}
@@ -188,4 +190,4 @@
padding-bottom: 8px;
}
`}}]}}),i.oi)},4450:(e,t,r)=>{r.d(t,{I:()=>i,H:()=>n});const i=(0,r(4516).Z)(((e,t)=>t.some((t=>e.includes(t))))),n=(e,t)=>{if(t.startsWith("# Changelog")&&(t=t.substr(12,t.length)),t.includes(`# ${e.version}`)&&t.includes(`# ${e.version_latest}`)){const r=t.split(`# ${e.version}`)[0];r.includes(`# ${e.version_latest}`)&&(t=r)}return t}}}]);
//# sourceMappingURL=95559dcf.js.map
//# sourceMappingURL=cee1db09.js.map
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
@@ -1,3 +1,3 @@
{
"entrypoint.js": "/api/hassio/app/frontend_latest/entrypoint.510c6a91.js"
"entrypoint.js": "/api/hassio/app/frontend_latest/entrypoint.cd79763a.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
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