MCPcopy
hub / github.com/github/awesome-copilot / toRawAssetUrl

Function toRawAssetUrl

website/src/scripts/pages/extensions.ts:85–92  ·  view source on GitHub ↗
(item: Extension, assetPath: string | null | undefined)

Source from the content-addressed store, hash-verified

83}
84
85function toRawAssetUrl(item: Extension, assetPath: string | null | undefined): string {
86 if (!assetPath || !item.ref) return "";
87 if (/^https?:\/\//i.test(assetPath)) return assetPath;
88 return `https://raw.githubusercontent.com/github/awesome-copilot/${item.ref}/${assetPath.replace(
89 /\\/g,
90 "/"
91 )}`;
92}
93
94function getGalleryImages(item: Extension): string[] {
95 const images: string[] = [];

Callers 1

getGalleryImagesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected