mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-19 07:16:39 +00:00
Use consistent title case for headers in Supervisor (#7227)
This commit is contained in:
parent
05630c9896
commit
7e708b3bf7
@ -98,7 +98,7 @@ class HassioAddonStore extends LitElement {
|
|||||||
main-page
|
main-page
|
||||||
.tabs=${supervisorTabs}
|
.tabs=${supervisorTabs}
|
||||||
>
|
>
|
||||||
<span slot="header">Add-on store</span>
|
<span slot="header">Add-on Store</span>
|
||||||
<ha-button-menu
|
<ha-button-menu
|
||||||
corner="BOTTOM_START"
|
corner="BOTTOM_START"
|
||||||
slot="toolbar-icon"
|
slot="toolbar-icon"
|
||||||
|
@ -8,7 +8,7 @@ export const supervisorTabs: PageNavigation[] = [
|
|||||||
iconPath: mdiViewDashboard,
|
iconPath: mdiViewDashboard,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: "Add-on store",
|
name: "Add-on Store",
|
||||||
path: `/hassio/store`,
|
path: `/hassio/store`,
|
||||||
iconPath: mdiStore,
|
iconPath: mdiStore,
|
||||||
},
|
},
|
||||||
|
@ -131,7 +131,7 @@ class HassioSnapshots extends LitElement {
|
|||||||
|
|
||||||
<div class="content">
|
<div class="content">
|
||||||
<h1>
|
<h1>
|
||||||
Create snapshot
|
Create Snapshot
|
||||||
</h1>
|
</h1>
|
||||||
<p class="description">
|
<p class="description">
|
||||||
Snapshots allow you to easily backup and restore all data of your
|
Snapshots allow you to easily backup and restore all data of your
|
||||||
@ -219,7 +219,7 @@ class HassioSnapshots extends LitElement {
|
|||||||
</ha-card>
|
</ha-card>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<h1>Available snapshots</h1>
|
<h1>Available Snapshots</h1>
|
||||||
<div class="card-group">
|
<div class="card-group">
|
||||||
${this._snapshots === undefined
|
${this._snapshots === undefined
|
||||||
? undefined
|
? undefined
|
||||||
|
@ -87,7 +87,7 @@ class HassioHostInfo extends LitElement {
|
|||||||
${this.hostInfo.features.includes("network")
|
${this.hostInfo.features.includes("network")
|
||||||
? html` <ha-settings-row>
|
? html` <ha-settings-row>
|
||||||
<span slot="heading">
|
<span slot="heading">
|
||||||
IP address
|
IP Address
|
||||||
</span>
|
</span>
|
||||||
<span slot="description">
|
<span slot="description">
|
||||||
${primaryIpAddress}
|
${primaryIpAddress}
|
||||||
@ -103,7 +103,7 @@ class HassioHostInfo extends LitElement {
|
|||||||
|
|
||||||
<ha-settings-row>
|
<ha-settings-row>
|
||||||
<span slot="heading">
|
<span slot="heading">
|
||||||
Operating system
|
Operating System
|
||||||
</span>
|
</span>
|
||||||
<span slot="description">
|
<span slot="description">
|
||||||
${this.hostInfo.operating_system}
|
${this.hostInfo.operating_system}
|
||||||
@ -221,7 +221,7 @@ class HassioHostInfo extends LitElement {
|
|||||||
});
|
});
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
showAlertDialog(this, {
|
showAlertDialog(this, {
|
||||||
title: "Failed to get Hardware list",
|
title: "Failed to get hardware list",
|
||||||
text: extractApiErrorMessage(err),
|
text: extractApiErrorMessage(err),
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
@ -324,7 +324,7 @@ class HassioHostInfo extends LitElement {
|
|||||||
private async _changeHostnameClicked(): Promise<void> {
|
private async _changeHostnameClicked(): Promise<void> {
|
||||||
const curHostname: string = this.hostInfo.hostname;
|
const curHostname: string = this.hostInfo.hostname;
|
||||||
const hostname = await showPromptDialog(this, {
|
const hostname = await showPromptDialog(this, {
|
||||||
title: "Change hostname",
|
title: "Change Hostname",
|
||||||
inputLabel: "Please enter a new hostname:",
|
inputLabel: "Please enter a new hostname:",
|
||||||
inputType: "string",
|
inputType: "string",
|
||||||
defaultValue: curHostname,
|
defaultValue: curHostname,
|
||||||
|
@ -51,7 +51,7 @@ class HassioSupervisorInfo extends LitElement {
|
|||||||
</ha-settings-row>
|
</ha-settings-row>
|
||||||
<ha-settings-row>
|
<ha-settings-row>
|
||||||
<span slot="heading">
|
<span slot="heading">
|
||||||
Newest version
|
Newest Version
|
||||||
</span>
|
</span>
|
||||||
<span slot="description">
|
<span slot="description">
|
||||||
${this.supervisorInfo.version_latest}
|
${this.supervisorInfo.version_latest}
|
||||||
@ -98,7 +98,7 @@ class HassioSupervisorInfo extends LitElement {
|
|||||||
${this.supervisorInfo?.supported
|
${this.supervisorInfo?.supported
|
||||||
? html` <ha-settings-row three-line>
|
? html` <ha-settings-row three-line>
|
||||||
<span slot="heading">
|
<span slot="heading">
|
||||||
Share diagnostics
|
Share Diagnostics
|
||||||
</span>
|
</span>
|
||||||
<div slot="description" class="diagnostics-description">
|
<div slot="description" class="diagnostics-description">
|
||||||
Share crash reports and diagnostic information.
|
Share crash reports and diagnostic information.
|
||||||
@ -135,7 +135,7 @@ class HassioSupervisorInfo extends LitElement {
|
|||||||
<div class="card-actions">
|
<div class="card-actions">
|
||||||
<ha-progress-button
|
<ha-progress-button
|
||||||
@click=${this._supervisorReload}
|
@click=${this._supervisorReload}
|
||||||
title="Reload parts of the supervisor."
|
title="Reload parts of the supervisor"
|
||||||
>
|
>
|
||||||
Reload
|
Reload
|
||||||
</ha-progress-button>
|
</ha-progress-button>
|
||||||
@ -212,7 +212,7 @@ class HassioSupervisorInfo extends LitElement {
|
|||||||
button.progress = true;
|
button.progress = true;
|
||||||
|
|
||||||
const confirmed = await showConfirmationDialog(this, {
|
const confirmed = await showConfirmationDialog(this, {
|
||||||
title: "Update supervisor",
|
title: "Update Supervisor",
|
||||||
text: `Are you sure you want to update supervisor to version ${this.supervisorInfo.version_latest}?`,
|
text: `Are you sure you want to update supervisor to version ${this.supervisorInfo.version_latest}?`,
|
||||||
confirmText: "update",
|
confirmText: "update",
|
||||||
dismissText: "cancel",
|
dismissText: "cancel",
|
||||||
|
@ -76,7 +76,7 @@ class HassioSupervisorLog extends LitElement {
|
|||||||
${this.hass.userData?.showAdvanced
|
${this.hass.userData?.showAdvanced
|
||||||
? html`
|
? html`
|
||||||
<paper-dropdown-menu
|
<paper-dropdown-menu
|
||||||
label="Log provider"
|
label="Log Provider"
|
||||||
@iron-select=${this._setLogProvider}
|
@iron-select=${this._setLogProvider}
|
||||||
>
|
>
|
||||||
<paper-listbox
|
<paper-listbox
|
||||||
|
@ -41,29 +41,29 @@ class HassioSystemMetrics extends LitElement {
|
|||||||
const usedSpace = this._getUsedSpace(this.hostInfo);
|
const usedSpace = this._getUsedSpace(this.hostInfo);
|
||||||
const metrics = [
|
const metrics = [
|
||||||
{
|
{
|
||||||
description: "Core CPU usage",
|
description: "Core CPU Usage",
|
||||||
value: this._coreMetrics?.cpu_percent,
|
value: this._coreMetrics?.cpu_percent,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
description: "Core RAM usage",
|
description: "Core RAM Usage",
|
||||||
value: this._coreMetrics?.memory_percent,
|
value: this._coreMetrics?.memory_percent,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
description: "Supervisor CPU usage",
|
description: "Supervisor CPU Usage",
|
||||||
value: this._supervisorMetrics?.cpu_percent,
|
value: this._supervisorMetrics?.cpu_percent,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
description: "Supervisor RAM usage",
|
description: "Supervisor RAM Usage",
|
||||||
value: this._supervisorMetrics?.memory_percent,
|
value: this._supervisorMetrics?.memory_percent,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
description: "Used space",
|
description: "Used Space",
|
||||||
value: usedSpace,
|
value: usedSpace,
|
||||||
},
|
},
|
||||||
];
|
];
|
||||||
|
|
||||||
return html`
|
return html`
|
||||||
<ha-card header="System metrics">
|
<ha-card header="System Metrics">
|
||||||
<div class="card-content">
|
<div class="card-content">
|
||||||
${metrics.map((metric) =>
|
${metrics.map((metric) =>
|
||||||
this._renderMetric(metric.description, metric.value ?? 0)
|
this._renderMetric(metric.description, metric.value ?? 0)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user