-
-
Notifications
You must be signed in to change notification settings - Fork 86
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
28 changed files
with
703 additions
and
724 deletions.
There are no files selected for viewing
Submodule homeassistant-frontend
updated
105 files
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,50 +1,34 @@ | ||
import { html, TemplateResult } from "lit"; | ||
import { customElement } from "lit/decorators"; | ||
|
||
import { markdown } from "../../tools/markdown/markdown"; | ||
import { version } from "../../version"; | ||
import { HacsDialogBase } from "./hacs-dialog-base"; | ||
import "./hacs-dialog"; | ||
import "../hacs-link"; | ||
|
||
@customElement("hacs-about-dialog") | ||
export class HacsAboutDialog extends HacsDialogBase { | ||
protected render(): TemplateResult | void { | ||
if (!this.active) return html``; | ||
return html` | ||
<hacs-dialog | ||
.active=${this.active} | ||
.hass=${this.hass} | ||
.title=${this.narrow ? "HACS" : "Home Assistant Community Store"} | ||
hideActions | ||
> | ||
<div class="content"> | ||
${markdown.html(` | ||
**${this.hacs.localize("dialog_about.integration_version")}:** | ${this.hacs.configuration.version} | ||
--|-- | ||
**${this.hacs.localize("dialog_about.frontend_version")}:** | ${version} | ||
**${this.hacs.localize("common.repositories")}:** | ${this.repositories.length} | ||
**${this.hacs.localize( | ||
"dialog_about.installed_repositories" | ||
)}:** | ${this.repositories.filter((repo) => repo.installed).length} | ||
import { Hacs } from "../../data/hacs"; | ||
import { showAlertDialog } from "../../../homeassistant-frontend/src/dialogs/generic/show-dialog-box"; | ||
|
||
export async function showDialogAbout(element: any, hacs: Hacs) { | ||
await showAlertDialog(element, { | ||
title: "Home Assistant Community Store", | ||
text: markdown.html(` | ||
**${hacs.localize("dialog_about.integration_version")}:** | ${hacs.configuration.version} | ||
--|-- | ||
**${hacs.localize("dialog_about.frontend_version")}:** | ${version} | ||
**${hacs.localize("common.repositories")}:** | ${hacs.repositories.length} | ||
**${hacs.localize("dialog_about.installed_repositories")}:** | ${ | ||
hacs.repositories.filter((repo) => repo.installed).length | ||
} | ||
**${this.hacs.localize("dialog_about.useful_links")}:** | ||
**${hacs.localize("dialog_about.useful_links")}:** | ||
- [General documentation](https://hacs.xyz/) | ||
- [Configuration](https://hacs.xyz/docs/configuration/start) | ||
- [FAQ](https://hacs.xyz/docs/faq/what) | ||
- [GitHub](https://github.com/hacs) | ||
- [Discord](https://discord.gg/apgchf8) | ||
- [Become a GitHub sponsor? ❤️](https://github.com/sponsors/ludeeus) | ||
- [BuyMe~~Coffee~~Beer? 🍺🙈](https://buymeacoffee.com/ludeeus) | ||
- [General documentation](https://hacs.xyz/) | ||
- [Configuration](https://hacs.xyz/docs/configuration/start) | ||
- [FAQ](https://hacs.xyz/docs/faq/what) | ||
- [GitHub](https://github.com/hacs) | ||
- [Discord](https://discord.gg/apgchf8) | ||
- [Become a GitHub sponsor? ❤️](https://github.com/sponsors/ludeeus) | ||
- [BuyMe~~Coffee~~Beer? 🍺🙈](https://buymeacoffee.com/ludeeus) | ||
*** | ||
*** | ||
_Everything you find in HACS is **not** tested by Home Assistant, that includes HACS itself. | ||
The HACS and Home Assistant teams do not support **anything** you find here._ | ||
`)} | ||
</div> | ||
</hacs-dialog> | ||
`; | ||
} | ||
_Everything you find in HACS is **not** tested by Home Assistant, that includes HACS itself. | ||
The HACS and Home Assistant teams do not support **anything** you find here._`), | ||
}); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.