mirror of
https://github.com/home-assistant/frontend.git
synced 2025-08-07 00:17:46 +00:00
Fix import
This commit is contained in:
parent
4a1adf42b8
commit
01adef6d9f
@ -1,17 +1,18 @@
|
|||||||
import { mdiClose, mdiFolderUpload } from "@mdi/js";
|
import { mdiClose, mdiFolderUpload } from "@mdi/js";
|
||||||
import { css, CSSResultGroup, html, LitElement, nothing } from "lit";
|
import type { CSSResultGroup } from "lit";
|
||||||
|
import { css, html, LitElement, nothing } from "lit";
|
||||||
import { customElement, property, state } from "lit/decorators";
|
import { customElement, property, state } from "lit/decorators";
|
||||||
import { fireEvent } from "../../common/dom/fire_event";
|
import { fireEvent } from "../../common/dom/fire_event";
|
||||||
import "../../components/ha-alert";
|
import "../../components/ha-alert";
|
||||||
import "../../components/ha-file-upload";
|
import "../../components/ha-file-upload";
|
||||||
import "../../components/ha-header-bar";
|
import "../../components/ha-header-bar";
|
||||||
import "../../components/ha-icon-button";
|
import "../../components/ha-icon-button";
|
||||||
|
import { uploadBackup } from "../../data/backup";
|
||||||
import { haStyleDialog } from "../../resources/styles";
|
import { haStyleDialog } from "../../resources/styles";
|
||||||
import type { HomeAssistant } from "../../types";
|
import type { HomeAssistant } from "../../types";
|
||||||
import { BackupUploadDialogParams } from "./show-dialog-backup-upload";
|
|
||||||
import { HassDialog } from "../make-dialog-manager";
|
|
||||||
import { showAlertDialog } from "../generic/show-dialog-box";
|
import { showAlertDialog } from "../generic/show-dialog-box";
|
||||||
import { uploadBackup } from "../../data/backup";
|
import type { HassDialog } from "../make-dialog-manager";
|
||||||
|
import type { BackupUploadDialogParams } from "./show-dialog-backup-upload";
|
||||||
|
|
||||||
const SUPPORTED_FORMAT = "application/x-tar";
|
const SUPPORTED_FORMAT = "application/x-tar";
|
||||||
|
|
||||||
|
@ -1,17 +1,19 @@
|
|||||||
import { css, html, LitElement, TemplateResult } from "lit";
|
|
||||||
import "@material/mwc-list/mwc-list";
|
import "@material/mwc-list/mwc-list";
|
||||||
|
import type { TemplateResult } from "lit";
|
||||||
|
import { css, html, LitElement } from "lit";
|
||||||
import { customElement, property, state } from "lit/decorators";
|
import { customElement, property, state } from "lit/decorators";
|
||||||
import "../../../components/ha-button";
|
import "../../../components/ha-button";
|
||||||
import "../../../components/ha-card";
|
import "../../../components/ha-card";
|
||||||
|
import "../../../components/ha-icon";
|
||||||
import "../../../components/ha-icon-next";
|
import "../../../components/ha-icon-next";
|
||||||
import "../../../components/ha-list-item";
|
import "../../../components/ha-list-item";
|
||||||
import "../../../layouts/hass-subpage";
|
import "../../../layouts/hass-subpage";
|
||||||
|
|
||||||
|
import { navigate } from "../../../common/navigate";
|
||||||
|
import { fetchBackupAgentsInfo } from "../../../data/backup";
|
||||||
import { SubscribeMixin } from "../../../mixins/subscribe-mixin";
|
import { SubscribeMixin } from "../../../mixins/subscribe-mixin";
|
||||||
import type { HomeAssistant } from "../../../types";
|
import type { HomeAssistant } from "../../../types";
|
||||||
import { brandsUrl } from "../../../util/brands-url";
|
import { brandsUrl } from "../../../util/brands-url";
|
||||||
import { navigate } from "../../../common/navigate";
|
|
||||||
import { fetchBackupAgentsInfo } from "../../../data/backup";
|
|
||||||
|
|
||||||
@customElement("ha-config-backup-dashboard")
|
@customElement("ha-config-backup-dashboard")
|
||||||
class HaConfigBackupDashboard extends SubscribeMixin(LitElement) {
|
class HaConfigBackupDashboard extends SubscribeMixin(LitElement) {
|
||||||
|
@ -1,18 +1,17 @@
|
|||||||
import { css, html, LitElement, TemplateResult } from "lit";
|
import type { TemplateResult } from "lit";
|
||||||
|
import { css, html, LitElement } from "lit";
|
||||||
import { customElement, property, state } from "lit/decorators";
|
import { customElement, property, state } from "lit/decorators";
|
||||||
import "../../../layouts/hass-subpage";
|
import "../../../layouts/hass-subpage";
|
||||||
|
|
||||||
import "../../../components/ha-relative-time";
|
|
||||||
import "../../../components/ha-alert";
|
import "../../../components/ha-alert";
|
||||||
import "../../../components/ha-card";
|
import "../../../components/ha-card";
|
||||||
|
import "../../../components/ha-circular-progress";
|
||||||
|
import "../../../components/ha-relative-time";
|
||||||
import "../../../components/ha-settings-row";
|
import "../../../components/ha-settings-row";
|
||||||
|
|
||||||
|
import type { BackupAgentsInfo, BackupContent } from "../../../data/backup";
|
||||||
|
import { fetchBackupDetails } from "../../../data/backup";
|
||||||
import type { HomeAssistant } from "../../../types";
|
import type { HomeAssistant } from "../../../types";
|
||||||
import {
|
|
||||||
BackupAgentsInfo,
|
|
||||||
BackupContent,
|
|
||||||
fetchBackupDetails,
|
|
||||||
} from "../../../data/backup";
|
|
||||||
|
|
||||||
@customElement("ha-config-backup-details")
|
@customElement("ha-config-backup-details")
|
||||||
class HaConfigBackupDetails extends LitElement {
|
class HaConfigBackupDetails extends LitElement {
|
||||||
@ -62,18 +61,9 @@ class HaConfigBackupDetails extends LitElement {
|
|||||||
<ha-card header="Backup">
|
<ha-card header="Backup">
|
||||||
<div class="card-content">
|
<div class="card-content">
|
||||||
<ha-settings-row>
|
<ha-settings-row>
|
||||||
<span slot="heading">
|
<span slot="heading">Partial</span>
|
||||||
${this._backup.type || "partial"}
|
|
||||||
</span>
|
|
||||||
<span slot="description">Type</span>
|
<span slot="description">Type</span>
|
||||||
</ha-settings-row>
|
</ha-settings-row>
|
||||||
${this._backup.homeassistant?.version &&
|
|
||||||
html`<ha-settings-row>
|
|
||||||
<span slot="heading">
|
|
||||||
${this._backup.homeassistant.version}
|
|
||||||
</span>
|
|
||||||
<span slot="description">Home Assistant Version</span>
|
|
||||||
</ha-settings-row>`}
|
|
||||||
|
|
||||||
<ha-settings-row>
|
<ha-settings-row>
|
||||||
<span slot="heading">
|
<span slot="heading">
|
||||||
|
@ -1,18 +1,12 @@
|
|||||||
import { mdiPlus } from "@mdi/js";
|
import { mdiPlus } from "@mdi/js";
|
||||||
import {
|
import type { CSSResultGroup, PropertyValues, TemplateResult } from "lit";
|
||||||
CSSResultGroup,
|
import { LitElement, css, html } from "lit";
|
||||||
LitElement,
|
|
||||||
PropertyValues,
|
|
||||||
TemplateResult,
|
|
||||||
css,
|
|
||||||
html,
|
|
||||||
} from "lit";
|
|
||||||
import { customElement, property, state } from "lit/decorators";
|
import { customElement, property, state } from "lit/decorators";
|
||||||
import memoize from "memoize-one";
|
import memoize from "memoize-one";
|
||||||
import { relativeTime } from "../../../common/datetime/relative_time";
|
import { relativeTime } from "../../../common/datetime/relative_time";
|
||||||
import { navigate } from "../../../common/navigate";
|
import { navigate } from "../../../common/navigate";
|
||||||
import { LocalizeFunc } from "../../../common/translations/localize";
|
import type { LocalizeFunc } from "../../../common/translations/localize";
|
||||||
import {
|
import type {
|
||||||
DataTableColumnContainer,
|
DataTableColumnContainer,
|
||||||
RowClickedEvent,
|
RowClickedEvent,
|
||||||
} from "../../../components/data-table/ha-data-table";
|
} from "../../../components/data-table/ha-data-table";
|
||||||
@ -20,9 +14,8 @@ import "../../../components/ha-circular-progress";
|
|||||||
import "../../../components/ha-fab";
|
import "../../../components/ha-fab";
|
||||||
import "../../../components/ha-icon";
|
import "../../../components/ha-icon";
|
||||||
import "../../../components/ha-svg-icon";
|
import "../../../components/ha-svg-icon";
|
||||||
|
import type { BackupContent, BackupData } from "../../../data/backup";
|
||||||
import {
|
import {
|
||||||
BackupContent,
|
|
||||||
BackupData,
|
|
||||||
fetchBackupAgentsSynced,
|
fetchBackupAgentsSynced,
|
||||||
fetchBackupInfo,
|
fetchBackupInfo,
|
||||||
generateBackup,
|
generateBackup,
|
||||||
@ -33,7 +26,7 @@ import {
|
|||||||
} from "../../../dialogs/generic/show-dialog-box";
|
} from "../../../dialogs/generic/show-dialog-box";
|
||||||
import "../../../layouts/hass-loading-screen";
|
import "../../../layouts/hass-loading-screen";
|
||||||
import "../../../layouts/hass-tabs-subpage-data-table";
|
import "../../../layouts/hass-tabs-subpage-data-table";
|
||||||
import { HomeAssistant, Route } from "../../../types";
|
import type { HomeAssistant, Route } from "../../../types";
|
||||||
import { brandsUrl } from "../../../util/brands-url";
|
import { brandsUrl } from "../../../util/brands-url";
|
||||||
|
|
||||||
const localAgent = "backup.local";
|
const localAgent = "backup.local";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user