thainv-dev
This commit is contained in:
@@ -1,232 +0,0 @@
|
||||
import { enumPageComponentLayouts, enumPageSectionLayouts, templates, enumPageComponentKey, enumPageComponentTemplate, enumPageSectionKey, enumPageSectionTemplate } from "@/definitions/enum";
|
||||
|
||||
export const pageTypes = [
|
||||
{ title: "None", value: 0 }, // Không xác định
|
||||
{ title: "Home", value: 1 }, // Trang chủ
|
||||
{ title: "Section", value: 2 }, // Chuyên trang
|
||||
{ title: "Category", value: 3 }, // Trang danh mục
|
||||
{ title: "Topic", value: 4 }, // Trang chủ đề
|
||||
{ title: "Event", value: 5 }, // Trang sự kiện
|
||||
{ title: "Collection", value: 6 }, // Trang sưu tập
|
||||
{ title: "Article", value: 7 }, // Trang bài viết
|
||||
{ title: "Tag", value: 8 }, // Trang từ khóa
|
||||
{ title: "Author", value: 9 }, // Trang tác giả
|
||||
{ title: "Search", value: 10 }, // Trang tìm kiếm
|
||||
{ title: "Contact", value: 11 }, // Trang liên hệ
|
||||
{ title: "About", value: 12 }, // Trang giới thiệu
|
||||
{ title: "Service", value: 13 }, // Trang dịch vụ
|
||||
{ title: "Policy", value: 14 }, // Trang chính sách
|
||||
{ title: "Terms", value: 15 }, // Trang điều khoản
|
||||
{ title: "Privacy", value: 16 }, // Trang bảo mật
|
||||
{ title: "Error", value: 97 }, // Trang lỗi
|
||||
{ title: "Maintenance", value: 98 }, // Trang bảo trì
|
||||
{ title: "Custom", value: 99 }, // Trang tùy chỉnh
|
||||
];
|
||||
// LayoutType: None=0 | Normal=1 | Short=2 | Long=3 | Page=4
|
||||
|
||||
export const pageLayouts = (key: string) => {
|
||||
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ẻ
|
||||
{ title: "Collection", value: 2 }, // Sưu tập
|
||||
{ title: "Pagination", value: 3 }, // Phân trang
|
||||
];
|
||||
|
||||
export const pageSectionTypes = [
|
||||
{ title: "None", value: 0 }, // Không xác định
|
||||
{ title: "Block", value: 1 }, // Khối
|
||||
];
|
||||
|
||||
export const pageDataType = [
|
||||
{ title: "Section", value: "Section" },
|
||||
{ title: "Category", value: "Category" },
|
||||
{ title: "Topic", value: "Topic" },
|
||||
{ title: "Event", value: "Event" },
|
||||
{ title: "Collection", value: "Collection" },
|
||||
{ title: "Article", value: "Article" },
|
||||
{ title: "Tag", value: "Tag" },
|
||||
{ title: "Author", value: "Author" },
|
||||
{ title: "Poll", value: "Poll" },
|
||||
{ title: "Quiz", value: "Quiz" },
|
||||
{ title: "Survey", value: "Survey" },
|
||||
{ title: "Advertising", value: "Advertising" },
|
||||
{ title: "Other", value: "Other" },
|
||||
];
|
||||
|
||||
export const pageDataQuery = [
|
||||
{ title: "IDS", value: "IDS" },
|
||||
{ title: "NEW", value: "NEW" },
|
||||
{ title: "VIEW", value: "VIEW" },
|
||||
{ title: "SQL", value: "SQL" },
|
||||
{ title: "REQUEST", value: "REQUEST" },
|
||||
];
|
||||
|
||||
export const pageTaxonomy = [
|
||||
{ title: "Home", value: "Home" }, // Trang khác
|
||||
{ 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: "Poll", value: "Poll" }, // Trang poll
|
||||
{ title: "Quiz", value: "Quiz" }, // Trang quiz
|
||||
{ title: "Survey", value: "Survey" }, // Trang survey
|
||||
{ title: "Advertising", value: "Advertising" }, // Trang quảng cáo
|
||||
{ title: "Other", value: "Other" }, // Trang khác
|
||||
{ title: "Navigation", value: "Navigation" }, // Navigation
|
||||
];
|
||||
|
||||
/* SECTION SETTINGS */
|
||||
export const pageSectionTaxonomy = [
|
||||
{ title: "None", value: "None" }, // Phân vùng của Chuyên trang
|
||||
{ title: "Section", value: "Section" }, // Phân vùng của Chuyên trang
|
||||
{ title: "Category", value: "Category" }, // Phân vùng của Trang danh mục
|
||||
{ title: "Topic", value: "Topic" }, // Phân vùng của Trang chủ đề
|
||||
{ title: "Event", value: "Event" }, // Phân vùng của Trang sự kiện
|
||||
{ title: "Collection", value: "Collection" }, // Phân vùng của Trang sưu tập
|
||||
{ title: "Article", value: "Article" }, // Phân vùng của Trang bài viết
|
||||
{ title: "Tag", value: "Tag" }, // Phân vùng của Trang từ khóa
|
||||
{ title: "Author", value: "Author" }, // Phân vùng của Trang tác giả
|
||||
{ title: "Poll", value: "Poll" }, // Phân vùng của Trang poll
|
||||
{ title: "Quiz", value: "Quiz" }, // Phân vùng của Trang quiz
|
||||
{ title: "Survey", value: "Survey" }, // Phân vùng của Trang survey
|
||||
{ title: "Advertising", value: "Advertising" }, // Phân vùng của Trang quảng cáo
|
||||
{ title: "Other", value: "Other" }, // Phân vùng của Trang khác
|
||||
{ title: "Navigation", value: "Navigation" }, // Phân vùng của Navigation
|
||||
];
|
||||
|
||||
export const pageSectionTempaltes = {
|
||||
[enumPageSectionKey.NONE]: [
|
||||
{ title: "Thẻ trống", value: enumPageSectionTemplate[enumPageSectionKey.NONE]['NONE'] },
|
||||
],
|
||||
};
|
||||
|
||||
export const pageSectionLayouts = {
|
||||
[enumPageSectionTemplate[enumPageSectionKey.NONE]['NONE']]: [
|
||||
{ title: "2 Cột", value: enumPageSectionLayouts[enumPageSectionTemplate[enumPageSectionKey.NONE]['NONE']]['VERTICAL_TWO'] },
|
||||
{ title: "2 Cột, bên trái rộng", value: enumPageSectionLayouts[enumPageSectionTemplate[enumPageSectionKey.NONE]['NONE']]['VERTICAL_LEFT_TWO'] },
|
||||
{ title: "2 Cột, bên phải rộng", value: enumPageSectionLayouts[enumPageSectionTemplate[enumPageSectionKey.NONE]['NONE']]['VERTICAL_RIGHT_TWO'] },
|
||||
{ title: "3 Cột", value: enumPageSectionLayouts[enumPageSectionTemplate[enumPageSectionKey.NONE]['NONE']]['VERTICAL_THREE'] },
|
||||
{ title: "4 Cột", value: enumPageSectionLayouts[enumPageSectionTemplate[enumPageSectionKey.NONE]['NONE']]['VERTICAL_FOUR'] },
|
||||
{ title: "4 Cột, giữa 2 cột", value: enumPageSectionLayouts[enumPageSectionTemplate[enumPageSectionKey.NONE]['NONE']]['VERTICAL_CENTER_TWO'] },
|
||||
{ title: "5 Cột, giữa 3 cột", value: enumPageSectionLayouts[enumPageSectionTemplate[enumPageSectionKey.NONE]['NONE']]['VERTICAL_CENTER_THREE'] },
|
||||
{ title: "6 Cột, giữa 4 cột", value: enumPageSectionLayouts[enumPageSectionTemplate[enumPageSectionKey.NONE]['NONE']]['VERTICAL_CENTER_FOUR'] },
|
||||
{ title: "1 Hàng", value: enumPageSectionLayouts[enumPageSectionTemplate[enumPageSectionKey.NONE]['NONE']]['HORIZONTAL_ONE'] },
|
||||
{ title: "2 Hàng", value: enumPageSectionLayouts[enumPageSectionTemplate[enumPageSectionKey.NONE]['NONE']]['HORIZONTAL_TWO'] },
|
||||
{ title: "3 Hàng", value: enumPageSectionLayouts[enumPageSectionTemplate[enumPageSectionKey.NONE]['NONE']]['HORIZONTAL_THREE'] },
|
||||
{ title: "4 Hàng", value: enumPageSectionLayouts[enumPageSectionTemplate[enumPageSectionKey.NONE]['NONE']]['HORIZONTAL_FOUR'] },
|
||||
{ title: "5 Hàng", value: enumPageSectionLayouts[enumPageSectionTemplate[enumPageSectionKey.NONE]['NONE']]['HORIZONTAL_FIVE'] },
|
||||
{ title: "6 Hàng", value: enumPageSectionLayouts[enumPageSectionTemplate[enumPageSectionKey.NONE]['NONE']]['HORIZONTAL_SIX'] },
|
||||
{ title: "7 Hàng", value: enumPageSectionLayouts[enumPageSectionTemplate[enumPageSectionKey.NONE]['NONE']]['HORIZONTAL_SEVEN'] },
|
||||
{ title: "8 Hàng", value: enumPageSectionLayouts[enumPageSectionTemplate[enumPageSectionKey.NONE]['NONE']]['HORIZONTAL_EIGHT'] },
|
||||
{ title: "9 Hàng", value: enumPageSectionLayouts[enumPageSectionTemplate[enumPageSectionKey.NONE]['NONE']]['HORIZONTAL_NINE'] },
|
||||
{ title: "10 Hàng", value: enumPageSectionLayouts[enumPageSectionTemplate[enumPageSectionKey.NONE]['NONE']]['HORIZONTAL_TEN'] }
|
||||
],
|
||||
};
|
||||
|
||||
/* COMPONENT SETTINGS */
|
||||
export const pageComponentTaxonomy = [
|
||||
{ title: "Section", value: "Section" }, // Component loại Chuyên trang
|
||||
{ title: "Category", value: "Category" }, // Component loại danh mục
|
||||
{ title: "Topic", value: "Topic" }, // Component loại chủ đề
|
||||
{ title: "Event", value: "Event" }, // Component loại sự kiện
|
||||
{ title: "Collection", value: "Collection" }, // Component loại sưu tập
|
||||
{ title: "Article", value: "Article" }, // Component loại bài viết
|
||||
{ title: "Tag", value: "Tag" }, // Component loại từ khóa
|
||||
{ title: "Author", value: "Author" }, // Component loại tác giả
|
||||
{ title: "Poll", value: "Poll" }, // Component loại poll
|
||||
{ title: "Quiz", value: "Quiz" }, // Component loại quiz
|
||||
{ title: "Survey", value: "Survey" }, // Trang survey
|
||||
{ title: "Advertising", value: "Advertising" }, // Component loại quảng cáo
|
||||
{ title: "Other", value: "Other" }, // Component loại khác
|
||||
{ title: "Navigation", value: "Navigation" }, // Component loại Navigation
|
||||
];
|
||||
|
||||
export const pageComponentTemplates = {
|
||||
[`${enumPageComponentKey.ARTICLE}`]: [
|
||||
{ title: "Thẻ bài viết", value: enumPageComponentTemplate[enumPageComponentKey.ARTICLE]['ARTICLE_CARD'] },
|
||||
{ title: "Chi tiết bài viết", value: enumPageComponentTemplate[enumPageComponentKey.ARTICLE]['ARTICLE_DETAIL'] },
|
||||
],
|
||||
[`${enumPageComponentKey.OTHER}`]: [
|
||||
{ title: "Thời tiết", value: enumPageComponentTemplate[enumPageComponentKey.OTHER]['WEATHER'] },
|
||||
{ title: "Chứng khoán", value: enumPageComponentTemplate[enumPageComponentKey.OTHER]['SECURITIES'] },
|
||||
],
|
||||
[`${enumPageComponentKey.ADVERTISING}`]: [
|
||||
{ title: "Quảng cáo", value: enumPageComponentTemplate[enumPageComponentKey.ADVERTISING]['ADVERTISING'] },
|
||||
],
|
||||
};
|
||||
|
||||
export const pageComponentLayouts = {
|
||||
[enumPageComponentTemplate[enumPageComponentKey.ARTICLE]['ARTICLE_CARD']]: [
|
||||
{ title: "Thẻ bài viết cơ bản", value: enumPageComponentLayouts[enumPageComponentTemplate[enumPageComponentKey.ARTICLE]['ARTICLE_CARD']]['CARD_DEFAULT'] },
|
||||
{ title: "Thẻ bài viết audio ", value: enumPageComponentLayouts[enumPageComponentTemplate[enumPageComponentKey.ARTICLE]['ARTICLE_CARD']]['CARD_AUDIO'] }
|
||||
// { title: "Thẻ bài viết hình ảnh ", value: enumPageComponentLayouts[enumPageComponentTemplate[enumPageComponentKey.ARTICLE]['ARTICLE_CARD']]['CARD_AUDIO'] },
|
||||
// { title: "Thẻ bài viết có lồng chữ trong ảnh", value: '2' },
|
||||
// { title: "Thẻ bài viết Video", value: '3' },
|
||||
// { title: "Thẻ bài viết Audio", value: '4' },
|
||||
],
|
||||
[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 podcast", value: enumPageComponentLayouts[enumPageComponentTemplate[enumPageComponentKey.ARTICLE]['ARTICLE_DETAIL']]['DETAIL_PODCAST'] },
|
||||
{ title: "Chi tiết video", value: enumPageComponentLayouts[enumPageComponentTemplate[enumPageComponentKey.ARTICLE]['ARTICLE_DETAIL']]['DETAIL_VIDEO'] },
|
||||
{ title: "Chi tiết image", value: enumPageComponentLayouts[enumPageComponentTemplate[enumPageComponentKey.ARTICLE]['ARTICLE_DETAIL']]['DETAIL_IMAGE'] },
|
||||
// { title: "Chi tiết bài viết cơ bản", value: '1' },
|
||||
// { title: "Chi tiết bài viết Video", value: '2' },
|
||||
// { title: "Chi tiết bài viết Podcast ", value: '3' },
|
||||
// { title: "Chi tiết bài viết Image ", value: '4' },
|
||||
],
|
||||
[enumPageComponentTemplate[enumPageComponentKey.OTHER]['WEATHER']]: [
|
||||
{ title: "Thời tiết", value: enumPageComponentLayouts[enumPageComponentTemplate[enumPageComponentKey.OTHER]['WEATHER']]['WEATHER_DEFAULT'] }
|
||||
],
|
||||
[enumPageComponentTemplate[enumPageComponentKey.OTHER]['SECURITIES']]: [
|
||||
{ title: "Chứng khoán", value: enumPageComponentLayouts[enumPageComponentTemplate[enumPageComponentKey.OTHER]['SECURITIES']]['SECURITIES_DEFAULT'] }
|
||||
],
|
||||
[enumPageComponentTemplate[enumPageComponentKey.ADVERTISING]['ADVERTISING']]: [
|
||||
{ title: "Quảng cáo", value: enumPageComponentLayouts[enumPageComponentTemplate[enumPageComponentKey.ADVERTISING]['ADVERTISING']]['ADVERTISING_DEFAULT'] }
|
||||
],
|
||||
};
|
||||
Reference in New Issue
Block a user