fix: fehlende Dateien aus vorherigem Commit nachreichen
CSRF-Schutz, DHL-Versandmarken, Entra-ID-SSO, ApiCore-Sync und die Harvest-isPublished-Migration waren gestaged aber nicht im letzten Commit enthalten — Gitea-Actions-Build brach mit "Module not found" fuer genau diese Dateien ab. Co-Authored-By: Claude Sonnet 5 <[email protected]>
This commit is contained in:
1 parent
4d3100e9ba
commit
b6db9254a9
10 files changed
+1205
No files matched your search
@@ -0,0 +1,24 @@
|
||||
import { getContentValues } from "@/lib/content";
|
||||
|
||||
const SOCIAL_KEYS = ["social.tiktok", "social.youtube", "social.instagram"] as const;
|
||||
|
||||
export interface SocialLinks {
|
||||
tiktok: string;
|
||||
youtube: string;
|
||||
instagram: string;
|
||||
}
|
||||
|
||||
/**
|
||||
* Admin-gepflegte Social-Media-Links (siehe admin/inhalte, Gruppe "Social
|
||||
* Media") — nicht lokalisiert, wie Firmendaten (company-info.ts). Ein leerer
|
||||
* String bedeutet "kein Profil hinterlegt"; der Footer rendert dann kein
|
||||
* Icon fuer diese Plattform (siehe components/site-chrome.tsx Footer()).
|
||||
*/
|
||||
export async function getSocialLinks(): Promise<SocialLinks> {
|
||||
const v = await getContentValues([...SOCIAL_KEYS], "de");
|
||||
return {
|
||||
tiktok: v["social.tiktok"],
|
||||
youtube: v["social.youtube"],
|
||||
instagram: v["social.instagram"],
|
||||
};
|
||||
}
|
||||
Reference in new issue
Block a user