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