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

@@ -0,0 +1,36 @@
import { BootstrapConfig, HeaderConfig } from '../../../shared/models/config';
export type ProjectEditorSectionId =
| 'general'
| 'branding'
| 'theme'
| 'header'
| 'footer'
| 'homepage'
| 'widgets'
| 'features'
| 'preview';
export interface ProjectEditorState {
bootstrap: BootstrapConfig | null;
importError: string | null;
activeSection: ProjectEditorSectionId;
}
export interface ProjectEditorWidgetPreset {
id: string;
type: string;
label: string;
}
export const DEFAULT_EDITOR_HEADER_CONFIG: Required<HeaderConfig> = {
showLogo: true,
showSearch: true,
showCategories: true,
showLanguages: true,
showCart: true,
showProfile: false,
showWishlist: true,
showCompare: true,
showRegion: true,
};