Source identity
| Field | Recorded value |
|---|---|
| Source type | GitHub source |
| Original record | Janady13/missionmatch / frontend/src/lib/org.ts |
| Date | Not specified in source |
| Repository | Janady13/missionmatch |
| Revision | 720d47fae476b0d38477ae4401697d372b1ea2bc |
| Branch | feature/opportunity-to-outcome |
| Path or archive member | frontend/src/lib/org.ts |
| Original SHA-256 | e5e71ffbcd540746bd69dac50ac03ed94b00debf80eaa8153df8408c8046522b |
| Git blob SHA | 0aed7aa88c41c318091e968e99854f6f061a87fb |
| Reading-copy SHA-256 | e5e71ffbcd540746bd69dac50ac03ed94b00debf80eaa8153df8408c8046522b |
Every recorded occurrence
These 2 records contain identical original source bytes. Their paths and revisions remain part of the archive.
| Original record | Branch or archive | Revision / identifier | Original location |
|---|---|---|---|
| Janady13/missionmatch / frontend/src/lib/org.ts | feature/opportunity-to-outcome | 720d47fae476b0d38477ae4401697d372b1ea2bc | Open original |
| Janady13/missionmatch / frontend/src/lib/org.ts | feature/aioe-upgrade | 2178e7298d0e5d9af83afa12402fd587f0ba6ed8 | Open original |
Recovered source transcript
Download complete source text ↓18 lines · 0.8 KB
import { request } from './api'
import type { OrgBranding } from './types'
export const orgApi = {
branding: () => request<OrgBranding>('/org/branding'),
setDisplayName: (display_name: string) =>
request<OrgBranding>('/org/branding', { method: 'PATCH', body: JSON.stringify({ display_name }) }),
clearLogo: () => request<OrgBranding>('/org/logo', { method: 'DELETE' }),
}
// The logo is fetched by the browser as an image, not through the JSON client, so the session cookie
// rides along automatically. The etag is appended so a replaced logo busts the cache immediately while
// an unchanged one still hits the 304 path.
export function orgLogoURL(b: OrgBranding | undefined): string | null {
if (!b?.has_logo) return null
return `/api/org/logo${b.logo_etag ? `?v=${encodeURIComponent(b.logo_etag)}` : ''}`
}