Comment Thread — fixtures
ilinxa/comment-thread-fixturesFreeBlock
Comment Thread plus the dummy-data fixtures used by the docs-site demo.
Install it
npx shadcn@latest add https://ui.ilinxa.com/r/comment-thread-fixtures.jsonSource
1import type {2 Comment,3 CommentDelta,4 CommentThreadCurrentUser,5 Subscribe,6} from "./types";78export const DUMMY_VIEWER: CommentThreadCurrentUser = {9 id: "viewer-1",10 name: "Sina Aytaç",11 avatar: "https://images.unsplash.com/photo-1519085360753-af0119f7cbe7?w=200&h=200&fit=crop&crop=faces&q=80",12};1314const NOW = new Date();15const minutesAgo = (n: number) => new Date(NOW.getTime() - n * 60 * 1000);16const hoursAgo = (n: number) => new Date(NOW.getTime() - n * 60 * 60 * 1000);17const daysAgo = (n: number) =>18 new Date(NOW.getTime() - n * 24 * 60 * 60 * 1000);1920export const DUMMY_FLAT_COMMENTS: Comment[] = [21 {22 id: "c1",23 author: {24 id: "u1",25 name: "Mira Solano",26 username: "mira",27 avatar: "https://images.unsplash.com/photo-1531123897727-8f129e1688ce?w=200&h=200&fit=crop&crop=faces&q=80",28 },29 content:30 "This is exactly the kind of post I needed today. Saving for the weekend read.",31 createdAt: minutesAgo(2),32 likes: 12,33 isLiked: true,34 },35 {36 id: "c2",37 author: {38 id: "u2",39 name: "Theo Zarrin",40 username: "theoz",41 avatar: "https://images.unsplash.com/photo-1438761681033-6461ffad8d80?w=200&h=200&fit=crop&crop=faces&q=80",42 },43 content:44 "Hot take: most of what's framed as a system-design problem is actually a state-management problem dressed up. The boundaries we draw between services are usually load-bearing for our state model, not the other way around. Curious what others think about this — particularly in the context of the analytics-pipeline rewrite we shipped last quarter.",45 createdAt: minutesAgo(18),46 likes: 47,47 },48 {49 id: "c3",50 author: {51 id: "u3",52 name: "Ines Park",53 username: "ines",54 avatar: "https://images.unsplash.com/photo-1438761681033-6461ffad8d80?w=200&h=200&fit=crop&crop=faces&q=80",55 },56 content:57 "Bookmarked. Thanks for sharing — fixed a typo here, the original phrasing was misleading.",58 createdAt: hoursAgo(2),59 likes: 4,60 edited: true,61 },62 {63 id: "c4",64 author: {65 id: "viewer-1",66 name: "Sina Aytaç",67 username: "sina",68 avatar: "https://images.unsplash.com/photo-1519085360753-af0119f7cbe7?w=200&h=200&fit=crop&crop=faces&q=80",69 },70 content: "(my own comment — kebab shows Delete)",71 createdAt: hoursAgo(5),72 likes: 0,73 },74 {75 id: "c5",76 author: {77 id: "u5",78 name: "Lev Ortega",79 username: "lev",80// … truncated
What it pulls in
Other registry items
Files it writes
More from ilinxa
All 184 items| Component | Registry | Kind | Access | Installs | Command |
|---|---|---|---|---|---|
| Account Switcheraccount-switcher | ilinxa | Blocks | Free | 1 dep · 10 files | |
| Account Switcher (deprecated alias)account-switcher-01 | ilinxa | Blocks | Free | no deps | |
| Account Switcher — fixturesaccount-switcher-fixtures | ilinxa | Blocks | Free | no deps | |
| App Sidebarapp-sidebar | ilinxa | Blocks | Free | 1 dep · 37 files | |
| App Sidebar — fixturesapp-sidebar-fixtures | ilinxa | Blocks | Free | no deps | |
| Rich Text Editor (deprecated alias)article-body-01 | ilinxa | Blocks | Free | no deps | |
| Article Metaarticle-meta | ilinxa | Blocks | Free | 1 dep · 4 files | |
| Article Meta (deprecated alias)article-meta-01 | ilinxa | Blocks | Free | no deps |
