diff --git a/components/dynamic-page/page/layouts/Default.vue b/components/dynamic-page/page/layouts/Default.vue
deleted file mode 100644
index f3dffec..0000000
--- a/components/dynamic-page/page/layouts/Default.vue
+++ /dev/null
@@ -1,78 +0,0 @@
-
-
-
-
-
-
-
diff --git a/components/dynamic-page/page/layouts/homes/Default.vue b/components/dynamic-page/page/layouts/homes/Default.vue
new file mode 100644
index 0000000..af7ec2c
--- /dev/null
+++ b/components/dynamic-page/page/layouts/homes/Default.vue
@@ -0,0 +1,76 @@
+
+
+
+
+
+
+
diff --git a/components/dynamic-page/page/layouts/index.ts b/components/dynamic-page/page/layouts/index.ts
index 23a9eb3..b9396cd 100644
--- a/components/dynamic-page/page/layouts/index.ts
+++ b/components/dynamic-page/page/layouts/index.ts
@@ -1,4 +1,4 @@
-export { default as BASE_LAYOUT } from './Default.vue'
+export { default as Home_Default } from './homes/Default.vue'
// Article
export { default as ARTICLE_LONG_LAYOUT } from './articles/Long.vue'
diff --git a/components/dynamic-page/page/layouts/index.vue b/components/dynamic-page/page/layouts/index.vue
index 60b64c5..3938904 100644
--- a/components/dynamic-page/page/layouts/index.vue
+++ b/components/dynamic-page/page/layouts/index.vue
@@ -1,46 +1,37 @@
diff --git a/components/dynamic-page/page/templates/articles/Default.vue b/components/dynamic-page/page/templates/articles/DetailDefault.vue
similarity index 93%
rename from components/dynamic-page/page/templates/articles/Default.vue
rename to components/dynamic-page/page/templates/articles/DetailDefault.vue
index dfbfade..3b3b41c 100644
--- a/components/dynamic-page/page/templates/articles/Default.vue
+++ b/components/dynamic-page/page/templates/articles/DetailDefault.vue
@@ -9,7 +9,7 @@ const props = defineProps<{
-
+
diff --git a/components/dynamic-page/page/templates/articles/index.ts b/components/dynamic-page/page/templates/articles/index.ts
new file mode 100644
index 0000000..603f5f5
--- /dev/null
+++ b/components/dynamic-page/page/templates/articles/index.ts
@@ -0,0 +1 @@
+export { default as DetailDefault } from './DetailDefault.vue';
\ No newline at end of file
diff --git a/components/dynamic-page/page/templates/articles/index.vue b/components/dynamic-page/page/templates/articles/index.vue
new file mode 100644
index 0000000..5efbe36
--- /dev/null
+++ b/components/dynamic-page/page/templates/articles/index.vue
@@ -0,0 +1,37 @@
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/components/dynamic-page/page/templates/homes/Basic.vue b/components/dynamic-page/page/templates/homes/Home.vue
similarity index 63%
rename from components/dynamic-page/page/templates/homes/Basic.vue
rename to components/dynamic-page/page/templates/homes/Home.vue
index 7f3dd37..284f05b 100644
--- a/components/dynamic-page/page/templates/homes/Basic.vue
+++ b/components/dynamic-page/page/templates/homes/Home.vue
@@ -2,22 +2,19 @@
import DynamicLayout from "~/components/dynamic-page/page/layouts/index.vue";
import HeaderHomeTemplate from "~/components/dynamic-page/page/templates/components/headers/HeaderHomeTemplate.vue";
import FooterHomeTemplate from "~/components/dynamic-page/page/templates/components/footers/FooterHomeTemplate.vue";
-const props = defineProps<{
- settings?: any;
-}>();
+const props = defineProps<{
+ settings?: any
+}>()
-
-
-
+
+
+
-
-
-
-
-
-
+
+
+
diff --git a/components/dynamic-page/page/templates/homes/index.ts b/components/dynamic-page/page/templates/homes/index.ts
new file mode 100644
index 0000000..4307ce7
--- /dev/null
+++ b/components/dynamic-page/page/templates/homes/index.ts
@@ -0,0 +1 @@
+export { default as Home } from './Home.vue';
\ No newline at end of file
diff --git a/components/dynamic-page/page/templates/homes/index.vue b/components/dynamic-page/page/templates/homes/index.vue
new file mode 100644
index 0000000..c49224a
--- /dev/null
+++ b/components/dynamic-page/page/templates/homes/index.vue
@@ -0,0 +1,37 @@
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/components/dynamic-page/page/templates/index.ts b/components/dynamic-page/page/templates/index.ts
index ca8dc45..048d525 100644
--- a/components/dynamic-page/page/templates/index.ts
+++ b/components/dynamic-page/page/templates/index.ts
@@ -1 +1,2 @@
-export { default as HomeBasic } from './homes/Basic.vue'
\ No newline at end of file
+export { default as Home } from './homes/index.vue'
+export { default as Article } from './articles/index.vue'
\ No newline at end of file
diff --git a/components/dynamic-page/page/templates/index.vue b/components/dynamic-page/page/templates/index.vue
index 9e2ebd3..bcaf423 100644
--- a/components/dynamic-page/page/templates/index.vue
+++ b/components/dynamic-page/page/templates/index.vue
@@ -1,39 +1,41 @@
{
- if (key === templates.ARTICLE) {
- return [
- { title: "None", key: 0, value: "ARTICLE_NONE" },
- { title: "Normal", key: 1, value: "ARTICLE_NORMAL" },
- { title: "Short", key: 2, value: "ARTICLE_SHORT" },
- { title: "Long", key: 3, value: "ARTICLE_LONG" },
- { title: "Page", key: 4, value: "ARTICLE_PAGE" },
- ];
- } else {
- return [
- { title: "None", value: 0 },
- { title: "Cơ bản", value: "Default" },
- { title: "Full Page", value: "Full_Page" }, // full with 100%
- { title: "Center Page", value: "Center_Page" }, // ở giữa
- { title: "Backgroud Page", value: "Backgroud_Page" }, // Phân trang
- ];
- }
-};
-
-export const pageTemplates = [
- { title: "None", value: "None" }, // Không xác định
- { title: "Home", value: "Home" }, // Trang chủ
- { title: "Section", value: "Section" }, // Chuyên trang
- { title: "Category", value: "Category" }, // Trang danh mục
- { title: "Topic", value: "Topic" }, // Trang chủ đề
- { title: "Event", value: "Event" }, // Trang sự kiện
- { title: "Collection", value: "Collection" }, // Trang sưu tập
- { title: "Article", value: "Article" }, // Trang bài viết
- { title: "Tag", value: "Tag" }, // Trang từ khóa
- { title: "Author", value: "Author" }, // Trang tác giả
- { title: "Search", value: "Search" }, // Trang tìm kiếm
- { title: "Contact", value: "Contact" }, // Trang liên hệ
- { title: "About", value: "About" }, // Trang giới thiệu
- { title: "Service", value: "Service" }, // Trang dịch vụ
- { title: "Policy", value: "Policy" }, // Trang chính sách
- { title: "Terms", value: "Terms" }, // Trang điều khoản
- { title: "Privacy", value: "Privacy" }, // Trang bảo mật
- { title: "Error", value: "Error" }, // Trang lỗi
- { title: "Maintenance", value: "Maintenance" }, // Trang bảo trì
- { title: "Custom", value: "Custom" }, // Trang tùy chỉnh
-];
-
export const pageComponentTypes = [
{ title: "None", value: 0 }, // Không xác định
{ title: "Individual", value: 1 }, // Đơn lẻ
@@ -103,6 +60,7 @@ export const pageDataQuery = [
{ title: "REQUEST", value: "REQUEST" },
];
+/* PAGE SETTINGS */
export const pageTaxonomy = [
{ title: "Home", value: "Home" }, // Trang khác
{ title: "Section", value: "Section" }, // Chuyên trang
@@ -121,6 +79,31 @@ export const pageTaxonomy = [
{ title: "Navigation", value: "Navigation" }, // Navigation
];
+export const pageTemplates = {
+ [enumPageKey.HOME]: [
+ { title: "Trang chủ - Báo Tiền Phong", value: enumPageTemplate[enumPageKey.HOME]['DEFAULT'] },
+ { title: "Trang chủ - Báo Kinh tế đô thị", value: enumPageTemplate[enumPageKey.HOME]['DEFAULT'] },
+ ],
+ [enumPageKey.ARTICLE]: [
+ { title: "Chi tiết bài viết", value: enumPageTemplate[enumPageKey.ARTICLE]['DETAIL'] },
+ ],
+};
+
+export const pageLayouts = {
+ [enumPageTemplate[enumPageKey.HOME]['DEFAULT']]: [
+ { title: "Giới hạn chiều rộng", value: enumPageLayouts[enumPageTemplate[enumPageKey.HOME]['DEFAULT']]['DEFAULT'] },
+ { title: "Không giới hạn chiều rộng", value: enumPageLayouts[enumPageTemplate[enumPageKey.HOME]['DEFAULT']]['FULL'] },
+ { title: "Giới hạn chiều rộng có Quảng cáo", value: enumPageLayouts[enumPageTemplate[enumPageKey.HOME]['DEFAULT']]['BACKGROUND_PAGE'] },
+ ],
+ [enumPageTemplate[enumPageKey.ARTICLE]['DETAIL']]: [
+ { title: "Không có", value: enumPageLayouts[enumPageTemplate[enumPageKey.ARTICLE]['DETAIL']]['ARTICLE_NONE'] },
+ { title: "Bài viết thường", value: enumPageLayouts[enumPageTemplate[enumPageKey.ARTICLE]['DETAIL']]['ARTICLE_NORMAL'] },
+ { title: "Bài viết ngắn", value: enumPageLayouts[enumPageTemplate[enumPageKey.ARTICLE]['DETAIL']]['ARTICLE_SHORT'] },
+ { title: "Bài viết dài", value: enumPageLayouts[enumPageTemplate[enumPageKey.ARTICLE]['DETAIL']]['ARTICLE_LONG'] },
+ { title: "Bài viết toàn trang", value: enumPageLayouts[enumPageTemplate[enumPageKey.ARTICLE]['DETAIL']]['ARTICLE_PAGE'] },
+ ],
+};
+
/* SECTION SETTINGS */
export const pageSectionTaxonomy = [
{ title: "None", value: "None" }, // Phân vùng của Chuyên trang
@@ -244,13 +227,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 +250,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 +279,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'] }
],
};
diff --git a/definitions/enum/index.ts b/definitions/enum/index.ts
index 62a9b7b..96c0a27 100644
--- a/definitions/enum/index.ts
+++ b/definitions/enum/index.ts
@@ -1,9 +1,10 @@
export { PublishTypes as publishTypes, sharingTypes } from "./publishTypes.enum";
export { categoryTypes } from "./categoryTypes.enum";
export {
- templates, layouts, dataTypes, dataQuery, sectionTypes, sectionTaxonomy, enumPageType, enumPageSectionLayouts, enumPageComponentLayouts, enumPageComponentTemplates, enumPageComponentStaticChild,
+ dataTypes, dataQuery, sectionTypes, sectionTaxonomy, enumPageType, enumPageSectionLayouts, enumPageComponentLayouts, enumPageComponentTemplates, enumPageComponentStaticChild,
dataTypeSort, dataTypeKeyInSort, dataTypeKeyInWith, dataSelectQuery, dataTypeTTL, dataMethodRequest, dataDesignLayout, dataBorderDesign, dataHideDesign, dataFontWeightDesign, dataPaddingDesign,
- enumPageComponentKey, enumPageComponentTemplate, dataStaticType, enumPageSectionKey, enumPageSectionTemplate, enumPageComponentDefaultSetting
+ enumPageComponentKey, enumPageComponentTemplate, dataStaticType, enumPageSectionKey, enumPageSectionTemplate, enumPageComponentDefaultSetting, enumPageComponentDefaultStyle,
+ enumPageKey, enumPageTemplate, enumPageLayouts
} from "./page.enum";
export { enumStatus } from "./status.enum";
export { actionCommands } from "./actionCommands.enum";
diff --git a/definitions/enum/page.enum.ts b/definitions/enum/page.enum.ts
index 90d7cf1..589b130 100644
--- a/definitions/enum/page.enum.ts
+++ b/definitions/enum/page.enum.ts
@@ -1,33 +1,3 @@
-export const templates = {
- NONE: "None", // Không xác định
- HOME: "Home", // Trang chủ
- SECTION: "Section", // Chuyên trang
- CATEGORY: "Category", // Trang danh mục
- TOPIC: "Topic", // Trang chủ đề
- EVENT: "Event", // Trang sự kiện
- COLLECTION: "Collection", // Trang sưu tập
- ARTICLE: "Article", // Trang bài viết
- TAG: "Tag", // Trang từ khóa
- AUTHOR: "Author", // Trang tác giả
- SEARCH: "Search", // Trang tìm kiếm
- CONTACT: "Contact", // Trang liên hệ
- ABOUT: "About", // Trang giới thiệu
- SERVICE: "Service", // Trang dịch vụ
- POLICY: "Policy", // Trang chính sách
- TERMS: "Terms", // Trang điều khoản
- PRIVACY: "Privacy", // Trang bảo mật
- ERROR: "Error", // Trang lỗi
- MAINTENANCE: "Maintenance", // Trang bảo trì
- CUSTOM: "Custom", // Trang tùy chỉnh
-};
-
-export const layouts = {
- NONE: "None", // Không xác định
- FULL_PAGE: "Full_Page", // full width 100%
- CENTER_PAGE: "Center_Page", // ở giữa
- BACKGROUND_PAGE: "Background_Page", // Phân trang
-};
-
export const dataTypes = {
SECTION: "Section",
CATEGORY: "Category",
@@ -86,34 +56,26 @@ export const enumPageType = {
CUSTOM: 99, // Trang tùy chỉnh
};
-export const enumPageComponentTemplates = { // KHÔNG ĐƯỢC XÓA KEY - BIẾN này
- NONE: "None", // Không xác định
- SECTION: "Section", // Chuyên trang
- CATEGORY: "Category", // Trang danh mục
- TOPIC: "Topic", // Trang chủ đề
- EVENT: "Event", // Trang sự kiện
- COLLECTION: "Collection", // Trang sưu tập
- ARTICLE: "Article", // Trang bài viết
- TAG: "Tag", // Trang từ khóa
- AUTHOR: "Author", // Trang tác giả
- POLL: "Poll", // Trang poll
- QUIZ: "Quiz", // Trang quiz
- SURVEY: "Survey", // Trang survey
- ADVERTISING: "Advertising", // Trang quảng cáo
- OTHER: "Other", // Trang khác
- NAVIGATION: "Navigation", // Navigation
- LOCATION: 'Location', // Location
- FIGURE: 'Figure', // Figure
+export const dataTypeKeyInSort = [
+ { 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 dataTypeSort = [
- { title: "Tăng dần", value: "+" },
- { title: "Giảm dần", value: "-" },
-];
-export const dataTypeKeyInSort = [
- { title: "Views", value: "Views" },
- { title: "Shares", value: "Shares" },
-];
export const dataTypeKeyInWith = [
{ title: "Ids", value: "Ids" },
{ title: "Sites", value: "Sites" },
@@ -192,6 +154,56 @@ export const enumPageComponentStaticChild = {
DEFAULT: "Default", // Chuyên trang
};
+/* PAGE SETTINGS */
+// KHÔNG ĐƯỢC XÓA KEY - BIẾN này
+export const enumPageKey = {
+ NONE: "None", // Không xác định
+ HOME: "Home", // Trang chủ
+ SECTION: "Section", // Chuyên trang
+ CATEGORY: "Category", // Trang danh mục
+ TOPIC: "Topic", // Trang chủ đề
+ EVENT: "Event", // Trang sự kiện
+ COLLECTION: "Collection", // Trang sưu tập
+ ARTICLE: "Article", // Trang bài viết
+ TAG: "Tag", // Trang từ khóa
+ AUTHOR: "Author", // Trang tác giả
+ SEARCH: "Search", // Trang tìm kiếm
+ CONTACT: "Contact", // Trang liên hệ
+ ABOUT: "About", // Trang giới thiệu
+ SERVICE: "Service", // Trang dịch vụ
+ POLICY: "Policy", // Trang chính sách
+ TERMS: "Terms", // Trang điều khoản
+ PRIVACY: "Privacy", // Trang bảo mật
+ ERROR: "Error", // Trang lỗi
+ MAINTENANCE: "Maintenance", // Trang bảo trì
+ CUSTOM: "Custom", // Trang tùy chỉnh
+};
+
+export const enumPageTemplate = {
+ [enumPageKey.HOME]: {
+ 'DEFAULT': "TYPE:Default",
+ },
+ [enumPageKey.ARTICLE]: {
+ 'DETAIL': "TYPE:Article_Detail",
+ },
+};
+
+export const enumPageLayouts = {
+ /* Home */
+ [`${enumPageTemplate[enumPageKey.HOME]['DEFAULT']}`]: {
+ 'DEFAULT': 'TYPE:Center_Page',
+ 'FULL': 'TYPE:Full_Page',
+ // 'CENTER_PAGE': 'TYPE:Center_Page',
+ 'BACKGROUND_PAGE': 'TYPE:Background_Page'
+ },
+ [`${enumPageTemplate[enumPageKey.ARTICLE]['DETAIL']}`]: {
+ 'ARTICLE_NONE': 'TYPE:ARTICLE_NONE',
+ 'ARTICLE_NORMAL': 'TYPE:ARTICLE_NORMAL',
+ 'ARTICLE_SHORT': 'TYPE:ARTICLE_SHORT',
+ 'ARTICLE_LONG': 'TYPE:ARTICLE_LONG',
+ 'ARTICLE_PAGE': 'TYPE:ARTICLE_PAGE',
+ },
+};
/* SECTION SETTINGS */
// KHÔNG ĐƯỢC XÓA KEY - BIẾN này
@@ -293,6 +305,26 @@ export const enumPageComponentKey = {
FIGURE: 'Figure', // Figure
};
+export const enumPageComponentTemplates = { // KHÔNG ĐƯỢC XÓA KEY - BIẾN này
+ NONE: "None", // Không xác định
+ SECTION: "Section", // Chuyên trang
+ CATEGORY: "Category", // Trang danh mục
+ TOPIC: "Topic", // Trang chủ đề
+ EVENT: "Event", // Trang sự kiện
+ COLLECTION: "Collection", // Trang sưu tập
+ ARTICLE: "Article", // Trang bài viết
+ TAG: "Tag", // Trang từ khóa
+ AUTHOR: "Author", // Trang tác giả
+ POLL: "Poll", // Trang poll
+ QUIZ: "Quiz", // Trang quiz
+ SURVEY: "Survey", // Trang survey
+ ADVERTISING: "Advertising", // Trang quảng cáo
+ OTHER: "Other", // Trang khác
+ NAVIGATION: "Navigation", // Navigation
+ LOCATION: 'Location', // Location
+ FIGURE: 'Figure', // Figure
+};
+
export const enumPageComponentTemplate = {
[enumPageComponentKey.ARTICLE]: {
'ARTICLE_CARD': "TYPE:Card",
@@ -354,6 +386,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",
@@ -386,6 +419,7 @@ export const enumPageComponentLayouts = {
},
};
+
const defaultArticle = {
WidthImg: 40,
layout: "column",
@@ -418,6 +452,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 +473,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 +506,58 @@ 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{}`,
+ }
}
\ No newline at end of file
diff --git a/pages/[categories]/index.vue b/pages/[categories]/index.vue
index 43916fb..b0bf707 100644
--- a/pages/[categories]/index.vue
+++ b/pages/[categories]/index.vue
@@ -25,7 +25,7 @@ useHead({
-
+
-
+
-
+