your personal website on atproto - mirror blento.app
at record-visualizer-card 30 lines 1.7 kB view raw
1import type { CardDefinition } from '../../types'; 2import RecordVisualizerCard from './RecordVisualizerCard.svelte'; 3import RecordVisualizerSettings from './RecordVisualizerSettings.svelte'; 4 5export const RecordVisualizerCardDefinition = { 6 type: 'record-visualizer', 7 contentComponent: RecordVisualizerCard, 8 createNew: (card) => { 9 card.cardType = 'record-visualizer'; 10 card.cardData = { 11 emoji: '💙', 12 collection: 'app.bsky.feed.like', 13 direction: 'down', 14 speed: 1 15 }; 16 card.w = 2; 17 card.h = 2; 18 card.mobileW = 4; 19 card.mobileH = 4; 20 }, 21 settingsComponent: RecordVisualizerSettings, 22 minW: 1, 23 minH: 2, 24 canHaveLabel: true, 25 26 keywords: ['emoji', 'particles', 'animation', 'bluesky', 'atproto', 'live', 'realtime', 'stream'], 27 groups: ['Visual'], 28 name: 'Record Visualizer', 29 icon: `<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" class="size-4"><path stroke-linecap="round" stroke-linejoin="round" d="M9.813 15.904 9 18.75l-.813-2.846a4.5 4.5 0 0 0-3.09-3.09L2.25 12l2.846-.813a4.5 4.5 0 0 0 3.09-3.09L9 5.25l.813 2.846a4.5 4.5 0 0 0 3.09 3.09L15.75 12l-2.846.813a4.5 4.5 0 0 0-3.09 3.09ZM18.259 8.715 18 9.75l-.259-1.035a3.375 3.375 0 0 0-2.455-2.456L14.25 6l1.036-.259a3.375 3.375 0 0 0 2.455-2.456L18 2.25l.259 1.035a3.375 3.375 0 0 0 2.456 2.456L21.75 6l-1.035.259a3.375 3.375 0 0 0-2.456 2.456ZM16.894 20.567 16.5 21.75l-.394-1.183a2.25 2.25 0 0 0-1.423-1.423L13.5 18.75l1.183-.394a2.25 2.25 0 0 0 1.423-1.423l.394-1.183.394 1.183a2.25 2.25 0 0 0 1.423 1.423l1.183.394-1.183.394a2.25 2.25 0 0 0-1.423 1.423Z" /></svg>` 30} as CardDefinition & { type: 'record-visualizer' };