mirror of
https://github.com/esphome/esp-web-tools.git
synced 2025-07-29 06:36:47 +00:00
Add funding URL (#213)
This commit is contained in:
parent
ec2a6e7206
commit
f34fab1c0f
@ -15,6 +15,7 @@ Manifest definition:
|
|||||||
"name": "ESPHome",
|
"name": "ESPHome",
|
||||||
"version": "2021.10.3",
|
"version": "2021.10.3",
|
||||||
"home_assistant_domain": "esphome",
|
"home_assistant_domain": "esphome",
|
||||||
|
"funding_url": "https://esphome.io/guides/supporters.html",
|
||||||
"builds": [
|
"builds": [
|
||||||
{
|
{
|
||||||
"chipFamily": "ESP32",
|
"chipFamily": "ESP32",
|
||||||
|
@ -346,6 +346,7 @@
|
|||||||
"name": "ESPHome",
|
"name": "ESPHome",
|
||||||
"version": "2021.11.0",
|
"version": "2021.11.0",
|
||||||
"home_assistant_domain": "esphome",
|
"home_assistant_domain": "esphome",
|
||||||
|
"funding_url": "https://esphome.io/guides/supporters.html",
|
||||||
"new_install_prompt_erase": false,
|
"new_install_prompt_erase": false,
|
||||||
"builds": [
|
"builds": [
|
||||||
{
|
{
|
||||||
@ -395,6 +396,13 @@
|
|||||||
<code>new_install_improv_wait_time</code> to the number of seconds to
|
<code>new_install_improv_wait_time</code> to the number of seconds to
|
||||||
wait. Set to <code>0</code> to disable Improv Serial detection.
|
wait. Set to <code>0</code> to disable Improv Serial detection.
|
||||||
</p>
|
</p>
|
||||||
|
<p>
|
||||||
|
If your product accepts donations you can add
|
||||||
|
<code>funding_url</code> to your manifest. This allows you to link to
|
||||||
|
your page explaining the user how they can fund development. This link
|
||||||
|
is visible in the ESP Web Tools menu when connected to a device running
|
||||||
|
your firmware (as detected via Improv).
|
||||||
|
</p>
|
||||||
|
|
||||||
<h3 id="customize">Customizing the look and feel</h3>
|
<h3 id="customize">Customizing the look and feel</h3>
|
||||||
<p>
|
<p>
|
||||||
|
@ -16,6 +16,7 @@ export interface Manifest {
|
|||||||
name: string;
|
name: string;
|
||||||
version: string;
|
version: string;
|
||||||
home_assistant_domain?: string;
|
home_assistant_domain?: string;
|
||||||
|
funding_url?: string;
|
||||||
/** @deprecated use `new_install_prompt_erase` instead */
|
/** @deprecated use `new_install_prompt_erase` instead */
|
||||||
new_install_skip_erase?: boolean;
|
new_install_skip_erase?: boolean;
|
||||||
new_install_prompt_erase?: boolean;
|
new_install_prompt_erase?: boolean;
|
||||||
|
@ -245,6 +245,19 @@ class EwtInstallDialog extends LitElement {
|
|||||||
}}
|
}}
|
||||||
></ewt-button>
|
></ewt-button>
|
||||||
</div>
|
</div>
|
||||||
|
${this._isSameFirmware && this._manifest.funding_url
|
||||||
|
? html`
|
||||||
|
<div>
|
||||||
|
<a
|
||||||
|
class="button"
|
||||||
|
href=${this._manifest.funding_url}
|
||||||
|
target="_blank"
|
||||||
|
>
|
||||||
|
<ewt-button label="Fund Development"></ewt-button>
|
||||||
|
</a>
|
||||||
|
</div>
|
||||||
|
`
|
||||||
|
: ""}
|
||||||
${this._isSameVersion
|
${this._isSameVersion
|
||||||
? html`
|
? html`
|
||||||
<div>
|
<div>
|
||||||
|
@ -14,4 +14,8 @@ export const dialogStyles = css`
|
|||||||
a {
|
a {
|
||||||
color: var(--improv-primary-color, #03a9f4);
|
color: var(--improv-primary-color, #03a9f4);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
a.button {
|
||||||
|
text-decoration: none;
|
||||||
|
}
|
||||||
`;
|
`;
|
||||||
|
@ -2,6 +2,7 @@
|
|||||||
"name": "ESPHome",
|
"name": "ESPHome",
|
||||||
"version": "2022.3.0",
|
"version": "2022.3.0",
|
||||||
"home_assistant_domain": "esphome",
|
"home_assistant_domain": "esphome",
|
||||||
|
"funding_url": "https://esphome.io/guides/supporters.html",
|
||||||
"builds": [
|
"builds": [
|
||||||
{
|
{
|
||||||
"chipFamily": "ESP32",
|
"chipFamily": "ESP32",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user