project setup with core files including configuration, package management, and basic structure. Added .gitignore, README, and various TypeScript types for CMS components. Implemented initial components and layouts for the application.
This commit is contained in:
50
middlelayer/adapters/Mock/_cms/mockPageConfig.ts
Normal file
50
middlelayer/adapters/Mock/_cms/mockPageConfig.ts
Normal file
@@ -0,0 +1,50 @@
|
||||
import type { PageConfig } from "../../../types/cms/PageConfig";
|
||||
import { ContentType } from "../../../types/cms/ContentType.enum";
|
||||
|
||||
/**
|
||||
* Generiert Mock-PageConfig mit locale-spezifischen Inhalten
|
||||
* @param locale - Die gewünschte Locale ("de" oder "en")
|
||||
*/
|
||||
export function generateMockPageConfig(locale: string = "de"): PageConfig {
|
||||
const isEn = locale === "en";
|
||||
|
||||
return {
|
||||
logo: {
|
||||
contentTypeId: ContentType.img,
|
||||
fields: {
|
||||
title: isEn ? 'Company Logo' : 'Firmenlogo',
|
||||
description: isEn ? 'Main company logo' : 'Haupt-Firmenlogo',
|
||||
file: {
|
||||
url: 'https://picsum.photos/200/60?random=logo',
|
||||
details: {
|
||||
size: 12345,
|
||||
image: {
|
||||
width: 200,
|
||||
height: 60,
|
||||
},
|
||||
},
|
||||
fileName: 'logo.png',
|
||||
contentType: 'image/png',
|
||||
},
|
||||
},
|
||||
},
|
||||
footerText1: isEn
|
||||
? '© 2024 My Company. All rights reserved.'
|
||||
: '© 2024 Meine Firma. Alle Rechte vorbehalten.',
|
||||
seoTitle: isEn
|
||||
? 'Welcome to our website'
|
||||
: 'Willkommen auf unserer Website',
|
||||
seoDescription: isEn
|
||||
? 'Discover our products and services. We offer high-quality solutions for your needs.'
|
||||
: 'Entdecken Sie unsere Produkte und Dienstleistungen. Wir bieten hochwertige Lösungen für Ihre Bedürfnisse.',
|
||||
blogTagPageHeadline: isEn ? 'Blog Tags' : 'Blog Tags',
|
||||
blogPostsPageHeadline: isEn
|
||||
? 'Our Blog Posts'
|
||||
: 'Unsere Blog-Beiträge',
|
||||
blogPostsPageSubHeadline: isEn
|
||||
? 'Current articles and news'
|
||||
: 'Aktuelle Artikel und Neuigkeiten',
|
||||
website: 'https://example.com',
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user