From ba51233c23bc6e1bd34c0828bc42a02614506ab3 Mon Sep 17 00:00:00 2001 From: Todd Lucas Date: Wed, 23 Oct 2024 13:27:14 -0500 Subject: [PATCH] [ 1.0.3 ] * Changed all references of "spotifyplus-card.js" to "spotifyplus_card.js" to match github repository name. --- .github/workflows/release.yml | 4 ++-- CHANGELOG.md | 4 ++++ README.md | 8 ++++---- hacs.json | 2 +- package-lock.json | 4 ++-- package.json | 6 +++--- rollup.config.js | 2 +- src/constants.ts | 2 +- src/services/spotifyplus-service.ts | 2 +- 9 files changed, 19 insertions(+), 15 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index ece2dfb..6c017b8 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -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" diff --git a/CHANGELOG.md b/CHANGELOG.md index 4625ef2..9ceec6f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,10 @@ Change are listed in reverse chronological order (newest to oldest). +###### [ 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. diff --git a/README.md b/README.md index 93d45e9..e394afb 100644 --- a/README.md +++ b/README.md @@ -38,7 +38,7 @@ 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". @@ -46,15 +46,15 @@ Here's a quick overview on what the card can look like. The card is highly cust - 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 `/www` folder. +- download the `spotifyplus_card.js` file from the [GitHub repository](https://github.com/thlucas1/spotifyplus_card) into your `/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 diff --git a/hacs.json b/hacs.json index f064d1e..20a14d9 100644 --- a/hacs.json +++ b/hacs.json @@ -1,6 +1,6 @@ { "name": "SpotifyPlus Card", - "filename": "spotifyplus-card.js", + "filename": "spotifyplus_card.js", "hide_default_branch": true, "homeassistant": "2024.8.0", } diff --git a/package-lock.json b/package-lock.json index 38ec790..452589b 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,10 +1,10 @@ { - "name": "spotifyplus-card", + "name": "spotifyplus_card", "lockfileVersion": 3, "requires": true, "packages": { "": { - "name": "spotifyplus-card", + "name": "spotifyplus_card", "license": "MIT", "dependencies": { "@mdi/js": "^7.4.47", diff --git a/package.json b/package.json index 14d8fb5..54c09e1 100644 --- a/package.json +++ b/package.json @@ -1,5 +1,5 @@ { - "name": "spotifyplus-card", + "name": "spotifyplus_card", "version": "", "description": "", "main": "src/main.js", @@ -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", diff --git a/rollup.config.js b/rollup.config.js index a8b7dfd..672e864 100644 --- a/rollup.config.js +++ b/rollup.config.js @@ -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, }, diff --git a/src/constants.ts b/src/constants.ts index 0eee2ed..396d1fa 100644 --- a/src/constants.ts +++ b/src/constants.ts @@ -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'; diff --git a/src/services/spotifyplus-service.ts b/src/services/spotifyplus-service.ts index dcc9358..0f59085 100644 --- a/src/services/spotifyplus-service.ts +++ b/src/services/spotifyplus-service.ts @@ -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. * ====================================================================================== **/ /**