Skip to content

Commit

Permalink
fix: remove unsupported section cards
Browse files Browse the repository at this point in the history
  • Loading branch information
punxaphil committed Dec 7, 2023
1 parent ea0c369 commit 632542c
Showing 1 changed file with 6 additions and 40 deletions.
46 changes: 6 additions & 40 deletions src/main.ts
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);

0 comments on commit 632542c

Please sign in to comment.