feat(builder): add project editor

This commit is contained in:
sdarbinyan
2026-07-10 13:43:53 +04:00
parent 7161a81068
commit e2c8747fcc
50 changed files with 1656 additions and 42 deletions

View File

@@ -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;

View File

@@ -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;

View File

@@ -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[];
}

View 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,
};

View File

@@ -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';