Skip to content

Commit

Permalink
[ 1.0.3 ] * Changed all references of "spotifyplus-card.js" to "spoti…
Browse files Browse the repository at this point in the history
…fyplus_card.js" to match github repository name.
  • Loading branch information
thlucas1 committed Oct 23, 2024
1 parent 92347fc commit ba51233
Show file tree
Hide file tree
Showing 9 changed files with 19 additions and 15 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ jobs:
- name: "Upload Files to Release"
uses: softprops/action-gh-release@v0.1.15
with:
files: "${{ github.workspace }}/dist/spotifyplus-card.js"
files: "${{ github.workspace }}/dist/spotifyplus_card.js"

# plugin file(s) will be placed in the following Home Assistant configuration directory
# location once it is installed via HACS:
# "/config/www/community/ha_spotifyplus_card/spotifyplus-card.js"
# "/config/www/community/spotifyplus_card/spotifyplus_card.js"
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ Change are listed in reverse chronological order (newest to oldest).

<span class="changelog">

###### [ 1.0.3 ] - 2024/10/23

* Changed all references of "spotifyplus-card.js" to "spotifyplus_card.js" to match github repository name.

###### [ 1.0.2 ] - 2024/10/23

* Version 1 initial release.
Expand Down
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,23 +38,23 @@ Here's a quick overview on what the card can look like. The card is highly cust
- Copy / paste `https://github.com/thlucas1/spotifyplus_card` in the Repository textbox and select `Lovelace` for the category entry.
- Click on `Add` to add the custom repository.
- You can then click on the `SpotifyPlus Card` repository entry (you may need to filter your list first to find the new entry).
- Click on `download` to start the download. It will install the card to your `/config/www/community/ha_spotifyplus_card` directory.
- Click on `download` to start the download. It will install the card to your `/config/www/community/spotifyplus_card` directory.
- Go back on your dashboard and click on the icon at the right top corner then on Edit dashboard.
- You can now click on Add card in the bottom right corner and search for "Custom: SpotifyPlus Card".

## Manual Installation

- using the tool of choice open the directory (folder) for your HA configuration (where you find `configuration.yaml`).
- change directory to the `www` folder; if you don't have this directory, then create it.
- download the `spotifyplus-card.js` file from the [GitHub repository](https://github.com/thlucas1/spotifyplus_card) into your `<config>/www` folder.
- download the `spotifyplus_card.js` file from the [GitHub repository](https://github.com/thlucas1/spotifyplus_card) into your `<config>/www` folder.
- on your dashboard click on the icon at the right top corner then on Edit dashboard.
- click again on that icon and then on Manage resources.
- click on Add resource.
- copy and paste this: `/local/spotifyplus-card.js?v=1`.
- copy and paste this: `/local/spotifyplus_card.js?v=1`.
- click on JavaScript Module then Create.
- go back and refresh your page.
- you can now click on Add card in the bottom right corner and search for "Custom: SpotifyPlus Card".
- after any update of the file you will have to edit `/local/spotifyplus-card.js?v=1` and change the version (e.g. `v=1`) to any higher number (e.g. `v=1.2`).
- after any update of the file you will have to edit `/local/spotifyplus_card.js?v=1` and change the version (e.g. `v=1`) to any higher number (e.g. `v=1.2`).


## More Information
Expand Down
2 changes: 1 addition & 1 deletion hacs.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "SpotifyPlus Card",
"filename": "spotifyplus-card.js",
"filename": "spotifyplus_card.js",
"hide_default_branch": true,
"homeassistant": "2024.8.0",
}
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "spotifyplus-card",
"name": "spotifyplus_card",
"version": "",
"description": "",
"main": "src/main.js",
Expand Down Expand Up @@ -61,8 +61,8 @@
"start": "rollup -c --watch",
"build": "npm run lint && npm run rollup && npm run deploy-vm",
"buildgithub": "npm run lint && npm run rollup",
"deploy-prod": "npm run build && cp dist/spotifyplus-card.js ~/homeassistant/www/community/spotifyplus-card/spotifyplus-card.js",
"deploy-vm": "xcopy \"dist\\spotifyplus-card.*\" \"\\\\homeassistantvm\\config\\www\" /Y /-I",
"deploy-prod": "npm run build && cp dist/spotifyplus_card.js ~/homeassistant/www/community/spotifyplus_card/spotifyplus_card.js",
"deploy-vm": "xcopy \"dist\\spotifyplus_card.*\" \"\\\\homeassistantvm\\config\\www\" /Y /-I",
"lint": "eslint src/*.ts",
"rollup": "rollup -c",
"clean": "npm run clean_delfiles && npm run clean_deldirs",
Expand Down
2 changes: 1 addition & 1 deletion rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ export default [
{
input: 'src/main.ts',
output: {
file: 'dist/spotifyplus-card.js',
file: 'dist/spotifyplus_card.js',
format: 'es',
sourcemap: true,
},
Expand Down
2 changes: 1 addition & 1 deletion src/constants.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { css } from 'lit';

/** current version of the card. */
export const CARD_VERSION = '1.0.2';
export const CARD_VERSION = '1.0.3';

/** SpotifyPlus integration domain identifier. */
export const DOMAIN_SPOTIFYPLUS = 'spotifyplus';
Expand Down
2 changes: 1 addition & 1 deletion src/services/spotifyplus-service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3298,7 +3298,7 @@ export class SpotifyPlusService {


/** ======================================================================================
* The following are common helper methods for SpotifyPlus-Card support.
* The following are common helper methods for SpotifyPlus Card support.
* ====================================================================================== **/

/**
Expand Down

0 comments on commit ba51233

Please sign in to comment.