forked from DBuit/custom-sonos-card
-
-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: remove unsupported section cards
- Loading branch information
Showing
1 changed file
with
6 additions
and
40 deletions.
There are no files selected for viewing
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,48 +1,14 @@ | ||
import { Player } from './sections/player'; | ||
import { Card } from './card'; | ||
import { Grouping } from './sections/grouping'; | ||
import { Groups } from './sections/groups'; | ||
import { MediaBrowser } from './sections/media-browser'; | ||
import './sections/volumes'; | ||
|
||
const name = (type?: string) => `Sonos${type ? ` (${type})` : ''}`; | ||
const desc = (type?: string) => `Media player for your Sonos speakers${type ? ` (${type})` : ''}`; | ||
|
||
window.customCards.push( | ||
{ | ||
type: 'sonos-card', | ||
name: name(), | ||
description: desc(), | ||
preview: true, | ||
}, | ||
{ | ||
type: 'sonos-grouping', | ||
name: name('Grouping section'), | ||
description: desc('Grouping section'), | ||
preview: true, | ||
}, | ||
{ | ||
type: 'sonos-groups', | ||
name: name('Groups section'), | ||
description: desc('Groups section'), | ||
preview: true, | ||
}, | ||
{ | ||
type: 'sonos-media-browser', | ||
name: name('Media Browser section'), | ||
description: desc('Media Browser section'), | ||
preview: true, | ||
}, | ||
{ | ||
type: 'sonos-player', | ||
name: name('Player section'), | ||
description: 'Media player for your Sonos speakers (Player section)', | ||
preview: true, | ||
}, | ||
); | ||
window.customCards.push({ | ||
type: 'sonos-card', | ||
name: name(), | ||
description: desc(), | ||
preview: true, | ||
}); | ||
|
||
customElements.define('sonos-card', Card); | ||
customElements.define('sonos-grouping', Grouping); | ||
customElements.define('sonos-groups', Groups); | ||
customElements.define('sonos-media-browser', MediaBrowser); | ||
customElements.define('sonos-player', Player); |