Something went wrong. Try again.
Monorepo for Tangled tangled.org
Something went wrong. Try again.
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596import { TYPE_COUNT, TYPE_MINIDOC, TYPE_REPO_VIEW, TYPE_VIEWER, type CountDescriptor, type DocDescriptor, type RepoViewDescriptor, type ViewerDescriptor} from "$lib/api/enrich";
// author docs come back keyed by the author's didexport const REPO_OWNER_DOCS: DocDescriptor = { source: "org.tangled.repo.manifest:.repo", type: TYPE_MINIDOC};export const ISSUE_AUTHOR_DOCS: DocDescriptor = { source: "sh.tangled.repo.issue:.repo", type: TYPE_MINIDOC};export const PULL_AUTHOR_DOCS: DocDescriptor = { source: "sh.tangled.repo.pull:.repo", type: TYPE_MINIDOC};export const TICKET_AUTHOR_DOCS: DocDescriptor = { source: "org.tangled.track.ticket:.repo", type: TYPE_MINIDOC};export const COMMENT_AUTHOR_DOCS: DocDescriptor = { source: "org.tangled.feed.comment:.repo", type: TYPE_MINIDOC};export const REACTION_AUTHOR_DOCS: DocDescriptor = { source: "org.tangled.feed.reaction:.repo", type: TYPE_MINIDOC};
// without a viewer the view has no star state, so cards can't tell starred from unknownexport const REPO_VIEW: RepoViewDescriptor = { source: "org.tangled.repo.manifest:.", type: TYPE_REPO_VIEW};
export const REPO_COUNT: CountDescriptor = { source: "org.tangled.repo.manifest:subject", type: TYPE_COUNT};export const STRING_COUNT: CountDescriptor = { source: "org.tangled.snippet.string:subject", type: TYPE_COUNT};export const VOUCH_COUNT: CountDescriptor = { source: "org.tangled.graph.vouch:subject", type: TYPE_COUNT};
export const STAR_COUNT: CountDescriptor = { source: "org.tangled.feed.star:subject", type: TYPE_COUNT};export const STAR_VIEWER: ViewerDescriptor = { source: "org.tangled.feed.star:subject", type: TYPE_VIEWER};export const STAR_SUBJECT_DOCS: DocDescriptor = { source: "org.tangled.feed.star:subject", type: TYPE_MINIDOC};export const STARRED_COUNT: CountDescriptor = { source: "org.tangled.feed.star:.repo", type: TYPE_COUNT};
// a follow's author is the follower and its subject is who they follow, so// these look swappedexport const FOLLOWER_COUNT: CountDescriptor = { source: "org.tangled.graph.follow:subject", type: TYPE_COUNT};export const FOLLOWING_COUNT: CountDescriptor = { source: "org.tangled.graph.follow:.repo", type: TYPE_COUNT};export const FOLLOW_VIEWER: ViewerDescriptor = { source: "org.tangled.graph.follow:subject", type: TYPE_VIEWER};export const FOLLOWER_DOCS: DocDescriptor = { source: "org.tangled.graph.follow:.repo", type: TYPE_MINIDOC};export const FOLLOWING_DOCS: DocDescriptor = { source: "org.tangled.graph.follow:subject", type: TYPE_MINIDOC};