Skip to content

Repository files, collaboration, releases and project activity.

ARCHFORGE HISTORY

Blame · src/branding.js

Branch main · the Commit author is not necessarily a verified ArchForge account.

2109dd33b8archadmin2026-10-121 'use strict';
2109dd33b8archadmin2026-10-122 // Public branding is independent of internal SQLite identifiers and Git
2109dd33b8archadmin2026-10-123 // protocol names. Keep legacy database IDs and wire protocols unchanged.
2109dd33b8archadmin2026-10-124 const PUBLIC_NAMES=Object.freeze({
2109dd33b8archadmin2026-10-125  git_ssh:'ArchForge SSH',
2109dd33b8archadmin2026-10-126  git_http:'ArchForge HTTPS'
2109dd33b8archadmin2026-10-127 });
2109dd33b8archadmin2026-10-128 function serviceLabel(service){
2109dd33b8archadmin2026-10-129  if(!service||typeof service!=='object')return '';
2109dd33b8archadmin2026-10-1210  return PUBLIC_NAMES[service.id]||service.label||'';
2109dd33b8archadmin2026-10-1211 }
2109dd33b8archadmin2026-10-1212 function presentService(service){
2109dd33b8archadmin2026-10-1213  if(!service||typeof service!=='object')return service;
2109dd33b8archadmin2026-10-1214  const desired=PUBLIC_NAMES[service.id];
2109dd33b8archadmin2026-10-1215  return desired?{...service,label:desired,category:'ArchForge'}:service;
2109dd33b8archadmin2026-10-1216 }
2109dd33b8archadmin2026-10-1217 module.exports={PUBLIC_NAMES,serviceLabel,presentService};