feat(builder): add project editor
This commit is contained in:
@@ -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,
|
||||
};
|
||||
Reference in New Issue
Block a user