.
This commit is contained in:
@@ -244,13 +244,13 @@ export const pageComponentLayouts = {
|
||||
{ title: "Thẻ bài viết Video Hightlight", value: enumPageComponentLayouts[`${enumPageComponentTemplate[enumPageComponentKey.ARTICLE]['ARTICLE_CARD']}`]['CARD_VIDEO_HIGHLIGHT'] },
|
||||
{ title: "Thẻ bài viết Hoa hậu Hightlight", value: enumPageComponentLayouts[`${enumPageComponentTemplate[enumPageComponentKey.ARTICLE]['ARTICLE_CARD']}`]['CARD_MISS_HIGHLIGHT'] },
|
||||
],
|
||||
[`${enumPageComponentTemplate[enumPageComponentKey.ARTICLE]['ARTICLE_DETAIL']}`]: [
|
||||
{ title: "Chi tiết bài viết", value: enumPageComponentLayouts[`${enumPageComponentTemplate[enumPageComponentKey.ARTICLE]['ARTICLE_DETAIL']}`]['DETAIL_GENERAL'] },
|
||||
{ title: "Chi tiết bài Podcast", value: enumPageComponentLayouts[`${enumPageComponentTemplate[enumPageComponentKey.ARTICLE]['ARTICLE_DETAIL']}`]['DETAIL_PODCAST'] },
|
||||
{ title: "Chi tiết bài Video", value: enumPageComponentLayouts[`${enumPageComponentTemplate[enumPageComponentKey.ARTICLE]['ARTICLE_DETAIL']}`]['DETAIL_VIDEO'] },
|
||||
{ title: "Chi tiết bài Image", value: enumPageComponentLayouts[`${enumPageComponentTemplate[enumPageComponentKey.ARTICLE]['ARTICLE_DETAIL']}`]['DETAIL_IMAGE'] },
|
||||
{ title: "Chi tiết bài eMagazine", value: enumPageComponentLayouts[`${enumPageComponentTemplate[enumPageComponentKey.ARTICLE]['ARTICLE_DETAIL']}`]['DETAIL_EMAGAZINE'] },
|
||||
{ title: "Chi tiết bài Inforgraphic", value: enumPageComponentLayouts[`${enumPageComponentTemplate[enumPageComponentKey.ARTICLE]['ARTICLE_DETAIL']}`]['DETAIL_INFOGRAPHIC'] },
|
||||
[enumPageComponentTemplate[enumPageComponentKey.ARTICLE]['ARTICLE_DETAIL']]: [
|
||||
{ title: "Chi tiết bài viết", value: enumPageComponentLayouts[enumPageComponentTemplate[enumPageComponentKey.ARTICLE]['ARTICLE_DETAIL']]['DETAIL_GENERAL'] },
|
||||
{ title: "Chi tiết bài Podcast", value: enumPageComponentLayouts[enumPageComponentTemplate[enumPageComponentKey.ARTICLE]['ARTICLE_DETAIL']]['DETAIL_PODCAST'] },
|
||||
{ title: "Chi tiết bài Video", value: enumPageComponentLayouts[enumPageComponentTemplate[enumPageComponentKey.ARTICLE]['ARTICLE_DETAIL']]['DETAIL_VIDEO'] },
|
||||
{ title: "Chi tiết bài Image", value: enumPageComponentLayouts[enumPageComponentTemplate[enumPageComponentKey.ARTICLE]['ARTICLE_DETAIL']]['DETAIL_IMAGE'] },
|
||||
{ title: "Chi tiết bài eMagazine", value: enumPageComponentLayouts[enumPageComponentTemplate[enumPageComponentKey.ARTICLE]['ARTICLE_DETAIL']]['DETAIL_EMAGAZINE'] },
|
||||
{ title: "Chi tiết bài Inforgraphic", value: enumPageComponentLayouts[enumPageComponentTemplate[enumPageComponentKey.ARTICLE]['ARTICLE_DETAIL']]['DETAIL_INFOGRAPHIC'] },
|
||||
],
|
||||
/* NAVIGATION */
|
||||
[`${enumPageComponentTemplate[enumPageComponentKey.NAVIGATION]['TOP']}`]: [
|
||||
@@ -267,6 +267,7 @@ export const pageComponentLayouts = {
|
||||
[`${enumPageComponentTemplate[enumPageComponentKey.COLLECTION]['ARTICLE']}`]: [
|
||||
{ title: "Thẻ bài viết cơ bản", value: enumPageComponentLayouts[`${enumPageComponentTemplate[enumPageComponentKey.COLLECTION]['ARTICLE']}`]['ARTICLE_COLLECTION_DEFAULT'] },
|
||||
{ title: "Thẻ bài viết Audio", value: enumPageComponentLayouts[`${enumPageComponentTemplate[enumPageComponentKey.COLLECTION]['ARTICLE']}`]['ARTICLE_COLLECTION_AUDIO'] },
|
||||
{ title: "Thẻ bài viết Video", value: enumPageComponentLayouts[`${enumPageComponentTemplate[enumPageComponentKey.COLLECTION]['ARTICLE']}`]['ARTICLE_COLLECTION_VIDEO'] },
|
||||
],
|
||||
[`${enumPageComponentTemplate[enumPageComponentKey.COLLECTION]['CATEGORY']}`]: [
|
||||
{ title: "Hoa hậu - Cơ bản", value: enumPageComponentLayouts[`${enumPageComponentTemplate[enumPageComponentKey.COLLECTION]['CATEGORY']}`]['MISSES_COLLECTION_DEFAULT'] },
|
||||
@@ -295,6 +296,6 @@ export const pageComponentLayouts = {
|
||||
],
|
||||
[`${enumPageComponentTemplate[enumPageComponentKey.OTHER]['STOCK']}`]: [
|
||||
{ title: "Chứng khoán", value: enumPageComponentLayouts[`${enumPageComponentTemplate[enumPageComponentKey.OTHER]['STOCK']}`]['STOCK_DEFAULT'] },
|
||||
{ title: "Chứng khoán Full Size", value: enumPageComponentLayouts[`${enumPageComponentTemplate[enumPageComponentKey.OTHER]['STOCK']}`]['STOCK_FULLSIZE'] }
|
||||
{ title: "Chứng khoán Full Size", value: enumPageComponentLayouts[`${enumPageComponentTemplate[enumPageComponentKey.OTHER]['STOCK']}`]['STOCK_FULLSIZE'] }
|
||||
],
|
||||
};
|
||||
|
||||
@@ -105,15 +105,26 @@ export const enumPageComponentTemplates = { // KHÔNG ĐƯỢC XÓA KEY - BIẾN
|
||||
LOCATION: 'Location', // Location
|
||||
FIGURE: 'Figure', // Figure
|
||||
};
|
||||
|
||||
export const dataTypeSort = [
|
||||
{ title: "Tăng dần", value: "+" },
|
||||
{ title: "Giảm dần", value: "-" },
|
||||
];
|
||||
export const dataTypeKeyInSort = [
|
||||
{ title: "Views", value: "Views" },
|
||||
{ title: "Shares", value: "Shares" },
|
||||
{ title: "Thời gian tạo", value: "CreatedOn" },
|
||||
{ title: "Lượt xem", value: "Views" },
|
||||
{ title: "Lượt chia sẻ", value: "Shares" },
|
||||
];
|
||||
|
||||
export const dataTypeSort = {
|
||||
Views: [
|
||||
{ title: "Tăng dần", value: "-" },
|
||||
{ title: "Giảm dần", value: "+" },
|
||||
],
|
||||
Shares: [
|
||||
{ title: "Tăng dần", value: "-" },
|
||||
{ title: "Giảm dần", value: "+" },
|
||||
],
|
||||
CreatedOn: [
|
||||
{ title: "Mới nhất", value: "-" },
|
||||
]
|
||||
};
|
||||
|
||||
export const dataTypeKeyInWith = [
|
||||
{ title: "Ids", value: "Ids" },
|
||||
{ title: "Sites", value: "Sites" },
|
||||
@@ -354,6 +365,7 @@ export const enumPageComponentLayouts = {
|
||||
[`${enumPageComponentTemplate[enumPageComponentKey.COLLECTION]['ARTICLE']}`]: {
|
||||
'ARTICLE_COLLECTION_DEFAULT': "TYPE:Article_Collection_Default",
|
||||
'ARTICLE_COLLECTION_AUDIO': "TYPE:Article_Collection_Audio",
|
||||
'ARTICLE_COLLECTION_VIDEO': "TYPE:Article_Collection_Video",
|
||||
},
|
||||
[`${enumPageComponentTemplate[enumPageComponentKey.COLLECTION]['CATEGORY']}`]: {
|
||||
'MISSES_COLLECTION_DEFAULT': "TYPE:Category_Collection_MISS_Default",
|
||||
@@ -418,6 +430,9 @@ export const enumPageComponentDefaultSetting = {
|
||||
"TYPE:Card_Audio": defaultArticleAudio,
|
||||
"TYPE:Card_Video": defaultArticleVideo,
|
||||
"TYPE:Card_VideoHightLight": defaultArticleVideoHightLight,
|
||||
"TYPE:Card_MissHightLight": {
|
||||
background: "rgba(255, 93, 2, 0.7)"
|
||||
}
|
||||
},
|
||||
[enumPageComponentKey.COLLECTION]: {
|
||||
"TYPE:Article_Collection_Default": {
|
||||
@@ -436,7 +451,11 @@ export const enumPageComponentDefaultSetting = {
|
||||
defaultFontSizeTitle: 16,
|
||||
defaultFontWeightTitle: 600,
|
||||
...defaultArticleAudio
|
||||
}
|
||||
},
|
||||
"TYPE:Category_Collection_MISS_Default": {
|
||||
background: "rgba(255, 93, 2, 0.7)"
|
||||
},
|
||||
"TYPE:Article_Collection_Video": { column: 4 }
|
||||
},
|
||||
[enumPageComponentKey.SECTION]: {
|
||||
"TYPE:Article_Section_Default": {
|
||||
@@ -465,4 +484,59 @@ export const enumPageComponentDefaultSetting = {
|
||||
defaultFontWeightTitle: 500,
|
||||
},
|
||||
}
|
||||
}
|
||||
|
||||
export const enumPageComponentDefaultStyle = {
|
||||
[enumPageComponentKey.ARTICLE]: {
|
||||
"TYPE:Card_Default": `#cpn_[] {}
|
||||
#cpn_[] .article-title {}
|
||||
#cpn_[] .article-time {}
|
||||
#cpn_[] .article-intro {}
|
||||
#cpn_[] .article-thumbnail {}`,
|
||||
|
||||
"TYPE:Card_Audio": `#cpn_[] {}
|
||||
#cpn_[] .article-title {}`,
|
||||
"TYPE:Card_Video": ``,
|
||||
|
||||
"TYPE:Card_VideoHightLight": `#cpn_[] {}
|
||||
#cpn_[] .article-title {}
|
||||
#cpn_[] .article-intro {}
|
||||
#cpn_[] .article-thumbnail {}`,
|
||||
|
||||
"TYPE:Card_MissHightLight": `#cpn_[] {}
|
||||
#cpn_[] article{}
|
||||
#cpn_[] .article-thumbnail{}
|
||||
#cpn_[] .article-title{}`
|
||||
},
|
||||
[enumPageComponentKey.COLLECTION]: {
|
||||
"TYPE:Article_Collection_Default": `#cpn_[] {}
|
||||
#cpn_[] article{}
|
||||
#cpn_[] .article-thumbnail img{}
|
||||
#cpn_[] .article-title{}
|
||||
#cpn_[] .article-intro{}`,
|
||||
|
||||
"TYPE:Article_Collection_Audio": `#cpn_[] {}
|
||||
#cpn_[] article{}
|
||||
#cpn_[] .article-title {}`,
|
||||
|
||||
"TYPE:Category_Collection_MISS_Default": `#cpn_[] {}
|
||||
#cpn_[] article{}
|
||||
#cpn_[] .article-thumbnail{}
|
||||
#cpn_[] .article-title{}`,
|
||||
"TYPE:Article_Collection_Video": ""
|
||||
},
|
||||
[enumPageComponentKey.SECTION]: {
|
||||
"TYPE:Article_Section_Default": `#cpn_[] {}
|
||||
#cpn_[] article{}
|
||||
#cpn_[] .article-thumbnail img{}
|
||||
#cpn_[] .article-title{}
|
||||
#cpn_[] .article-intro{}`
|
||||
},
|
||||
[enumPageComponentKey.CATEGORY]: {
|
||||
"TYPE:Category_Vertical": `#cpn_[] {}
|
||||
#cpn_[] .category h3{}`,
|
||||
|
||||
"TYPE:Default": `#cpn_[] {}
|
||||
#cpn_[] .category h3{}`,
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user