fix data
This commit is contained in:
26
types/frontMenu.ts
Normal file
26
types/frontMenu.ts
Normal file
@ -0,0 +1,26 @@
|
||||
export interface FrontMenu {
|
||||
id: number
|
||||
id_parent: number
|
||||
active: boolean
|
||||
position_id: number
|
||||
id_front_page: number
|
||||
is_default: boolean
|
||||
is_root: boolean
|
||||
url: string
|
||||
front_menu_lang: FrontMenuLang[]
|
||||
}
|
||||
|
||||
export interface FrontMenuLang {
|
||||
name: string
|
||||
id_lang: number
|
||||
id_menu: number
|
||||
link_title: string
|
||||
meta_title: string
|
||||
meta_description: string
|
||||
link_rewrite: string
|
||||
}
|
||||
|
||||
|
||||
export interface UIFrontMenu extends FrontMenu {
|
||||
children?: UIFrontMenu[];
|
||||
}
|
@ -52,31 +52,31 @@ export interface PBFooterItem {
|
||||
}>;
|
||||
}
|
||||
|
||||
export interface PBPageItem {
|
||||
collectionId: string;
|
||||
collectionName: string;
|
||||
component_name: string;
|
||||
id: string;
|
||||
image_collection: string;
|
||||
page_created: string;
|
||||
page_id: string;
|
||||
page_name: string;
|
||||
page_section_id_position: number;
|
||||
page_updated: string;
|
||||
section_id: string;
|
||||
section_img: string[];
|
||||
section_lang_created: string;
|
||||
section_lang_data: SectionLangData;
|
||||
section_lang_id_lang: string;
|
||||
section_name: string;
|
||||
}
|
||||
// export interface PBPageItem {
|
||||
// collectionId: string;
|
||||
// collectionName: string;
|
||||
// component_name: string;
|
||||
// id: string;
|
||||
// image_collection: string;
|
||||
// page_created: string;
|
||||
// page_id: string;
|
||||
// page_name: string;
|
||||
// page_section_id_position: number;
|
||||
// page_updated: string;
|
||||
// section_id: string;
|
||||
// section_img: string[];
|
||||
// section_lang_created: string;
|
||||
// section_lang_data: SectionLangData;
|
||||
// section_lang_id_lang: string;
|
||||
// section_name: string;
|
||||
// }
|
||||
|
||||
export interface SectionLangData {
|
||||
title: string;
|
||||
description: string;
|
||||
button: string;
|
||||
button_call: string;
|
||||
}
|
||||
// export interface SectionLangData {
|
||||
// title: string;
|
||||
// description: string;
|
||||
// button: string;
|
||||
// button_call: string;
|
||||
// }
|
||||
|
||||
export interface UIMenuItem extends PBMenuItem {
|
||||
children?: UIMenuItem[];
|
||||
@ -92,9 +92,9 @@ export interface FooterListResponse extends ListResponse {
|
||||
|
||||
export type componentsListType = {
|
||||
name: string;
|
||||
component: PBPageItem;
|
||||
component: FrontSection;
|
||||
componentInstance: DefineComponent;
|
||||
data: SectionLangData;
|
||||
// data: unknown;
|
||||
};
|
||||
|
||||
// menuStore
|
||||
@ -212,3 +212,4 @@ export type {
|
||||
PeriodToFirstPiece,
|
||||
} from "./planPrediction";
|
||||
export type { Product } from "./product";
|
||||
export type { FrontMenu, FrontMenuLang, UIFrontMenu } from "./frontMenu";
|
Reference in New Issue
Block a user