Skip to content

Commit

Permalink
Revert all upgrades (#105)
Browse files Browse the repository at this point in the history
  • Loading branch information
MelleD authored May 30, 2024
1 parent 09dfe73 commit 53d9424
Show file tree
Hide file tree
Showing 14 changed files with 839 additions and 545 deletions.
4 changes: 1 addition & 3 deletions .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1 @@
github: MelleD
buy_me_a_coffee: melled
custom: "https://www.paypal.me/MelleDennis"
github: [MelleD]
7 changes: 7 additions & 0 deletions .prettierrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
module.exports = {
semi: true,
trailingComma: 'all',
singleQuote: true,
printWidth: 120,
tabWidth: 2,
};
25 changes: 5 additions & 20 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
[![release][release-badge]][release-url]
![downloads][downloads-badge]
![build][build-badge]
[![PayPal.Me][paypal-me-badge]][paypal-me-url]
[![BuyMeCoffee][buy-me-a-coffee-shield]][buy-me-a-coffee-url]

<a href="https://www.paypal.me/MelleDennis" target="_blank"><img src="https://www.paypalobjects.com/webstatic/paypalme/images/social/pplogo384.png" alt="PayPal.Me MelleDennis" style="height: 50px !important;width: 50px !important;" ></a>

## Introduction

Expand All @@ -13,18 +13,13 @@ A custom Lovelace card that displays the PM (2.5 or 10) index and risk level in
The card was copied from the [uv-index-card](https://github.com/t1gr0u/uv-index-card). Big thank you @t1gr0u
for allowing me to copy and adapt the card.

I give no guarantee for the functionality and no promise of lifelong maintenance, as I do the whole thing in my free time. Of course, I am happy about every contribution and PullRequest :heart:


Please ⭐️ or sponsor this repo when you like it :heart:.


## Installation

### [HACS](hacs) (Home Assistant Community Store)
### [HACS](https://hacs.xyz/) (Home Assistant Community Store)

1. Go to HACS page on your Home Assistant instance
1. Add this repository (https://github.com/MelleD/pm-index-card) via HACS Custom repositories [How to add Custom Repositories](https://hacs.xyz/docs/faq/custom_repositories/)
1. Select `Frontend`
1. Press add icon and search for `pm-index`
1. Select PM Index Card repo and install
Expand All @@ -35,7 +30,7 @@ Please ⭐️ or sponsor this repo when you like it :heart:.

### Manual

1. Download the 'pm-index-card.js' from the latest [release][release-url] (with right click, save link as)
1. Download the 'pm-index-card.js' from the latest [release](https://github.com/MelleD/pm-index-card/releases) (with right click, save link as)
1. Place the downloaded file on your Home Assistant machine in the `config/www` folder (when there is no `www` folder in the folder where your `configuration.yaml` file is, create it and place the file there)
1. In Home Assistant go to `Configuration->Lovelace Dashboards->Resources` (When there is no `resources` tag on the `Lovelace Dashboard` page, enable advanced mode in your account settings, and retry this step)
1. Add a new resource
Expand Down Expand Up @@ -123,24 +118,14 @@ If you wish to add a language please follow these steps:

Clone and create a PR to help make the card even better.

## Sponsor ❤️

<a href="" target="_blank"><img src="https://github.com/MelleD/pm-index-card/blob/main/docs/images/pplogo.png" alt="PayPal.Me MelleDennis" style="height: 50px !important;width: 50px !important;" ></a>

<a href="https://www.buymeacoffee.com/melled" target="_blank"><img src="https://www.buymeacoffee.com/assets/img/custom_images/white_img.png" alt="Buy Me A Coffee" style="height: auto !important;width: auto !important;" ></a>

<!-- Badges -->

[release-badge]: https://img.shields.io/github/v/release/MelleD/pm-index-card?style=flat-square
[downloads-badge]: https://img.shields.io/github/downloads/MelleD/pm-index-card/total?style=flat-square
[build-badge]: https://img.shields.io/github/actions/workflow/status/MelleD/pm-index-card/build.yml?branch=main&style=flat-square
[paypal-me-badge]: https://img.shields.io/static/v1.svg?label=%20&message=PayPal.Me&logo=paypal
[buy-me-a-coffee-shield]: https://img.shields.io/static/v1.svg?label=%20&message=Buy%20me%20a%20coffee&color=6f4e37&logo=buy%20me%20a%20coffee&logoColor=white

<!-- References -->

[home-assistant]: https://www.home-assistant.io/
[hacs]: https://hacs.xyz
[release-url]: https://github.com/MelleD/pm-index-card/releases
[paypal-me-url]: https://www.paypal.me/MelleDennis
[buy-me-a-coffee-url]: https://www.buymeacoffee.com/melled
[release-url]: https://github.com/MelleD/pm-index-card/releases
Binary file removed docs/images/pplogo.png
Binary file not shown.
8 changes: 8 additions & 0 deletions elements/ignore/select.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
export const ignoreSelectFiles = [
'@material/mwc-ripple/mwc-ripple.js',
'@material/mwc-menu/mwc-menu.js',
'@material/mwc-menu/mwc-menu-surface.js',
'@material/mwc-list/mwc-list.js',
'@material/mwc-list/mwc-list-item.js',
'@material/mwc-icon/mwc-icon.js',
];
1 change: 1 addition & 0 deletions elements/ignore/switch.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export const ignoreSwitchFiles = ['@material/mwc-ripple/mwc-ripple.js'];
1 change: 1 addition & 0 deletions elements/ignore/textfield.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export const ignoreTextfieldFiles = ['@material/mwc-notched-outline/mwc-notched-outline.js'];
Loading

0 comments on commit 53d9424

Please sign in to comment.