feat(builder): add project editor
This commit is contained in:
@@ -4,6 +4,7 @@ import { CatalogConfig } from './catalog-config.model';
|
||||
import { CompanyConfig } from './company.model';
|
||||
import { FeatureFlagsConfig } from './feature-flags.model';
|
||||
import { FooterConfig } from './footer-config.model';
|
||||
import { HeaderConfig } from './header-config.model';
|
||||
import { PlatformLayoutConfig } from './layout.model';
|
||||
import { LocalizationConfig } from './localization.model';
|
||||
import { NavigationConfig } from './navigation.model';
|
||||
@@ -29,6 +30,7 @@ export interface BootstrapConfig {
|
||||
localization: LocalizationConfig;
|
||||
seo: SeoConfig;
|
||||
permissions: PermissionsConfig;
|
||||
header?: HeaderConfig;
|
||||
catalog?: CatalogConfig;
|
||||
layout?: PlatformLayoutConfig;
|
||||
navigation: NavigationConfig;
|
||||
|
||||
@@ -2,6 +2,9 @@ export interface FeatureFlagsConfig {
|
||||
wishlist: boolean;
|
||||
compare: boolean;
|
||||
reviews: boolean;
|
||||
questions: boolean;
|
||||
comments: boolean;
|
||||
recommendations: boolean;
|
||||
blog: boolean;
|
||||
chat: boolean;
|
||||
analytics: boolean;
|
||||
|
||||
@@ -7,9 +7,18 @@ export interface FooterPaymentIconConfig {
|
||||
height?: number;
|
||||
}
|
||||
|
||||
export interface FooterSocialLinkConfig {
|
||||
id: string;
|
||||
label: string;
|
||||
url: string;
|
||||
icon?: string;
|
||||
}
|
||||
|
||||
export interface FooterConfig {
|
||||
logoUrl?: string;
|
||||
paymentIcons?: FooterPaymentIconConfig[];
|
||||
copyrightText?: string | LocalizedTextContent;
|
||||
legalPageKeys?: string[];
|
||||
staticPageKeys?: string[];
|
||||
socialLinks?: FooterSocialLinkConfig[];
|
||||
}
|
||||
23
src/app/shared/models/config/header-config.model.ts
Normal file
23
src/app/shared/models/config/header-config.model.ts
Normal file
@@ -0,0 +1,23 @@
|
||||
export interface HeaderConfig {
|
||||
showLogo?: boolean;
|
||||
showSearch?: boolean;
|
||||
showCategories?: boolean;
|
||||
showLanguages?: boolean;
|
||||
showCart?: boolean;
|
||||
showProfile?: boolean;
|
||||
showWishlist?: boolean;
|
||||
showCompare?: boolean;
|
||||
showRegion?: boolean;
|
||||
}
|
||||
|
||||
export const DEFAULT_HEADER_CONFIG: Required<HeaderConfig> = {
|
||||
showLogo: true,
|
||||
showSearch: true,
|
||||
showCategories: true,
|
||||
showLanguages: true,
|
||||
showCart: true,
|
||||
showProfile: false,
|
||||
showWishlist: true,
|
||||
showCompare: true,
|
||||
showRegion: true,
|
||||
};
|
||||
@@ -5,6 +5,7 @@ export * from './catalog-config.model';
|
||||
export * from './company.model';
|
||||
export * from './feature-flags.model';
|
||||
export * from './footer-config.model';
|
||||
export * from './header-config.model';
|
||||
export * from './layout.model';
|
||||
export * from './localization.model';
|
||||
export * from './navigation.model';
|
||||
|
||||
Reference in New Issue
Block a user