~ knotless Search/
↑↓ move↵ open⇧↵ all results

chadtmiller.com/pds.js

An atproto PDS in JavaScript, for Cloudflare Workers and Node

0
0
main
12 lines · 589 B Raw History
// One fixed hue per media kind (the entity, not its rank), so a kind keeps
// its color as filters change wherever files are drawn. The classes resolve
// to the chart tokens in style.css, validated against both card surfaces.
export const KIND_META = {
  image: { label: 'Images', dot: 'bg-chart-image' },
  video: { label: 'Video', dot: 'bg-chart-video' },
  audio: { label: 'Audio', dot: 'bg-chart-audio' },
  text: { label: 'Text', dot: 'bg-chart-text' },
  other: { label: 'Other', dot: 'bg-chart-other' },
};

export const KIND_ORDER = ['image', 'video', 'audio', 'text', 'other'];