feat: new layout
This commit is contained in:
@@ -1,6 +1,5 @@
|
||||
export const BaseGender = [
|
||||
{ title: 'Nam', value: 1 },
|
||||
{ title: 'Nữ', value: 2 },
|
||||
{ title: 'Khác', value: 3 },
|
||||
];
|
||||
|
||||
{ title: "Nam", value: 1 },
|
||||
{ title: "Nữ", value: 2 },
|
||||
{ title: "Khác", value: 3 },
|
||||
];
|
||||
|
||||
@@ -1,13 +1,14 @@
|
||||
export const baseStatus = [
|
||||
// { title: "All", value: null, key: "" }, // tất cả
|
||||
// BA yêu cầu sắp xếp theo thứ tự như này ạ
|
||||
{ title: "All", value: null, key: "" }, // tất cả
|
||||
{ title: "Processing", value: 1, key: "1" }, // đang xử lý
|
||||
{ title: "Cancelled", value: 2, key: "2" }, // đã hủy
|
||||
{ title: "Completed", value: 3, key: "3" }, // hoàn thành
|
||||
{ title: "Approving", value: 4, key: "4" }, // chờ duyệt
|
||||
{ title: "Approved", value: 5, key: "5" }, // đã duyệt
|
||||
{ title: "Activated", value: 6, key: "6" }, // đã kích hoạt
|
||||
{ title: "Deactivated", value: 7, key: "7" }, // hủy kích hoạt
|
||||
{ title: "Suspended", value: 8, key: "8" }, // đã đình chỉ
|
||||
{ title: "Cancelled", value: 2, key: "2" }, // đã hủy
|
||||
// { title: "Deactivated", value: 7, key: "7" }, // hủy kích hoạt //khoanh: bên BA muốn bỏ trường này
|
||||
{ title: "Locked", value: 9, key: "9" }, // đã khóa
|
||||
{ title: "Deleted", value: -1, key: "-1" }, // đã xóa
|
||||
];
|
||||
|
||||
@@ -5,4 +5,5 @@ export const taskTaxonomy = [
|
||||
{ title: "Duyệt bài", value: "Duyệt bài", value_number: "4" },
|
||||
{ title: "Xuất bản", value: "Xuất bản", value_number: "5" },
|
||||
{ title: "Dàn trang", value: "Dàn trang", value_number: "6" },
|
||||
{ title: "Hủy xuất bản", value: "Hủy xuất bản", value_number: "7" }
|
||||
];
|
||||
|
||||
@@ -144,3 +144,66 @@ export const sharingSiteType = [
|
||||
{ title: "Youtube", value: 6 },
|
||||
// { title: "Tiktok", value: 7 },
|
||||
];
|
||||
|
||||
export const similarSites = [
|
||||
{
|
||||
title: "Google",
|
||||
key: 0,
|
||||
active: true,
|
||||
value: "google",
|
||||
},
|
||||
{
|
||||
title: "VnExpress",
|
||||
key: 1,
|
||||
active: false,
|
||||
value: "vnexpress",
|
||||
},
|
||||
{
|
||||
title: "Dân trí",
|
||||
key: 2,
|
||||
active: false,
|
||||
value: "dantri",
|
||||
},
|
||||
{
|
||||
title: "Kinh tế đô thị",
|
||||
key: 3,
|
||||
active: false,
|
||||
value: "kinhtedothi",
|
||||
},
|
||||
{
|
||||
title: "Vov Giao thông",
|
||||
key: 4,
|
||||
active: false,
|
||||
value: "vovgiaothong",
|
||||
},
|
||||
{
|
||||
title: "Tuổi trẻ",
|
||||
key: 5,
|
||||
active: false,
|
||||
value: "tuoitre",
|
||||
},
|
||||
{
|
||||
title: "Báo Pháp Luật",
|
||||
key: 6,
|
||||
active: false,
|
||||
value: "baophapluat",
|
||||
},
|
||||
{
|
||||
title: "Thanh niên",
|
||||
key: 7,
|
||||
active: false,
|
||||
value: "thanhnien",
|
||||
},
|
||||
{
|
||||
title: "Tiền phong",
|
||||
key: 8,
|
||||
active: false,
|
||||
value: "tienphong",
|
||||
},
|
||||
{
|
||||
title: "Người lao động",
|
||||
key: 9,
|
||||
active: false,
|
||||
value: "nld",
|
||||
},
|
||||
];
|
||||
|
||||
@@ -1,5 +1,10 @@
|
||||
export const authorType = [
|
||||
{ title: "None", value: 0 },
|
||||
{ title: "Reporter", value: 1 }, // Phóng viên
|
||||
{ title: "Editors", value: 2 }, // Biên tập viên
|
||||
{ title: "Head of Department", value: 3 }, // Trưởng ban
|
||||
{ title: "Editorial Secretary", value: 4 }, // Thư kí tòa soạn
|
||||
{ title: "Deputy Editor-in-Chief", value: 5 }, // Phó tổng biên tập
|
||||
{ title: "Editor-in-Chief", value: 6 }, // Tổng biên tập
|
||||
{ title: "Other", value: 99 }, // Khác
|
||||
];
|
||||
|
||||
@@ -14,6 +14,7 @@ export {
|
||||
articleSourceType,
|
||||
digitalArticleCommentType,
|
||||
sharingSiteType,
|
||||
similarSites,
|
||||
} from "./article.type";
|
||||
|
||||
export { attachmentType } from "./attachment.type";
|
||||
@@ -35,19 +36,24 @@ export {
|
||||
pageComponentTypes,
|
||||
pageSectionTypes,
|
||||
pageTaxonomy,
|
||||
pageSectionTaxonomy,
|
||||
pageDataQuery,
|
||||
pageDataType,
|
||||
pageComponentTaxonomy,
|
||||
pageLayouts,
|
||||
pageTemplates,
|
||||
|
||||
/* SECTION SETTINGS */
|
||||
pageSectionTaxonomy,
|
||||
pageSectionTempaltes,
|
||||
pageSectionLayouts,
|
||||
pageComponentLayouts,
|
||||
|
||||
/* COMPONENT SETTINGS */
|
||||
pageComponentTaxonomy,
|
||||
pageComponentTemplates,
|
||||
pageComponentLayouts,
|
||||
} from "./page.type";
|
||||
export { placementType } from "./placement.type";
|
||||
export { pollType, pollParticipantType, pollOptionType, pollResultPublication } from "./poll.type";
|
||||
export { printinEditionType, printingPageType, printingPublicationType } from "./printing.type";
|
||||
export { printinEditionType, printingPageType, printingPublicationType, printingIssueType } from "./printing.type";
|
||||
export { qualificationType } from "./qualification.type";
|
||||
export { quizType, quizAnswerType, quizQuestionType, quizResponseType, quizParticipantType, quizResultPublication } from "./quiz.type";
|
||||
export { quotationType } from "./quotation.type";
|
||||
@@ -60,3 +66,4 @@ export { templateType } from "./template.type";
|
||||
export { criteriasType } from "./criteria.type";
|
||||
export { topicType, topicPublishType } from "./topic.type";
|
||||
export { scoreCategoryType } from "./score-category.type";
|
||||
export { taxonomyCMS } from "./taxonomy.type";
|
||||
|
||||
@@ -0,0 +1,232 @@
|
||||
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'] }
|
||||
],
|
||||
};
|
||||
+175
-79
@@ -1,4 +1,4 @@
|
||||
import { enumPageComponentTemplates, enumPageComponentLayouts, enumPageSectionLayouts, templates } from "@/definitions/enum";
|
||||
import { enumPageComponentLayouts, enumPageSectionLayouts, templates, enumPageComponentKey, enumPageComponentTemplate, enumPageSectionKey, enumPageSectionTemplate } from "@/definitions/enum";
|
||||
|
||||
export const pageTypes = [
|
||||
{ title: "None", value: 0 }, // Không xác định
|
||||
@@ -24,17 +24,19 @@ export const pageTypes = [
|
||||
];
|
||||
// LayoutType: None=0 | Normal=1 | Short=2 | Long=3 | Page=4
|
||||
|
||||
export const pageLayouts = (key: string)=>{
|
||||
if (key === "Article") {
|
||||
export const pageLayouts = (key: string) => {
|
||||
if (key === templates.ARTICLE) {
|
||||
return [
|
||||
{ title: "Normal", value: 1, key: "ARTICLE_SHORT_LAYOUT" },
|
||||
{ title: "Short", value: 2, key: "ARTICLE_SHORT_LAYOUT" },
|
||||
{ title: "Long", value: 3, key: "ARTICLE_LONG_LAYOUT" },
|
||||
{ title: "Page", value: 4, key: "ARTICLE_PAGE_LAYOUT" },
|
||||
{ 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 }, // Không xác định
|
||||
{ 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
|
||||
@@ -65,23 +67,6 @@ export const pageTemplates = [
|
||||
{ title: "Custom", value: "Custom" }, // Trang tùy chỉnh
|
||||
];
|
||||
|
||||
export const pageComponentTemplates = [
|
||||
{ title: "None", value: "None" }, // Không xác định
|
||||
{ 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
|
||||
];
|
||||
|
||||
export const pageComponentTypes = [
|
||||
{ title: "None", value: 0 }, // Không xác định
|
||||
{ title: "Individual", value: 1 }, // Đơn lẻ
|
||||
@@ -94,18 +79,6 @@ export const pageSectionTypes = [
|
||||
{ title: "Block", value: 1 }, // Khối
|
||||
];
|
||||
|
||||
export const pageTaxonomy = [
|
||||
{ title: "Block", value: 0 },
|
||||
{ title: "Module", value: 1 },
|
||||
{ title: "Navigation", value: 2 },
|
||||
];
|
||||
|
||||
export const pageSectionTaxonomy = [
|
||||
{ title: "Block", value: "Block" },
|
||||
{ title: "Module", value: "Module" },
|
||||
{ title: "Navigation", value: "Navigation" },
|
||||
];
|
||||
|
||||
export const pageDataType = [
|
||||
{ title: "Section", value: "Section" },
|
||||
{ title: "Category", value: "Category" },
|
||||
@@ -130,55 +103,178 @@ export const pageDataQuery = [
|
||||
{ title: "REQUEST", value: "REQUEST" },
|
||||
];
|
||||
|
||||
export const pageComponentTaxonomy = [
|
||||
{ title: "Block", value: 0 },
|
||||
{ title: "Module", value: 1 },
|
||||
{ title: "Navigation", value: 2 },
|
||||
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
|
||||
];
|
||||
|
||||
export const pageSectionLayouts = [
|
||||
{ title: "None", value: "None" },
|
||||
{ title: "2 Cột", value: enumPageSectionLayouts['VERTICAL_TWO'] },
|
||||
{ title: "2 Cột, bên trái rộng", value: enumPageSectionLayouts['VERTICAL_LEFT_TWO'] },
|
||||
{ title: "2 Cột, bên phải rộng", value: enumPageSectionLayouts['VERTICAL_RIGHT_TWO'] },
|
||||
{ title: "3 Cột", value: enumPageSectionLayouts['VERTICAL_THREE'] },
|
||||
{ title: "4 Cột", value: enumPageSectionLayouts['VERTICAL_FOUR'] },
|
||||
{ title: "1 Hàng", value: enumPageSectionLayouts['HORIZONTAL_ONE'] },
|
||||
{ title: "2 Hàng", value: enumPageSectionLayouts['HORIZONTAL_TWO'] },
|
||||
{ title: "3 Hàng", value: enumPageSectionLayouts['HORIZONTAL_THREE'] },
|
||||
{ title: "4 Hàng", value: enumPageSectionLayouts['HORIZONTAL_FOUR'] },
|
||||
{ title: "5 Hàng", value: enumPageSectionLayouts['HORIZONTAL_FIVE'] },
|
||||
{ title: "6 Hàng", value: enumPageSectionLayouts['HORIZONTAL_SIX'] },
|
||||
{ title: "7 Hàng", value: enumPageSectionLayouts['HORIZONTAL_SEVEN'] },
|
||||
{ title: "8 Hàng", value: enumPageSectionLayouts['HORIZONTAL_EIGHT'] },
|
||||
{ title: "9 Hàng", value: enumPageSectionLayouts['HORIZONTAL_NINE'] },
|
||||
{ title: "10 Hàng", value: enumPageSectionLayouts['HORIZONTAL_TEN'] }
|
||||
/* 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'] },
|
||||
],
|
||||
[enumPageSectionKey.ARTICLE]: [
|
||||
{ title: "Phân vùng bài viết cơ bản", value: enumPageSectionTemplate[enumPageSectionKey.ARTICLE]['DEFAULT'] },
|
||||
],
|
||||
};
|
||||
|
||||
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.NAVIGATION}`]: [
|
||||
{ title: "Thanh điều hướng đầu trang", value: enumPageComponentTemplate[enumPageComponentKey.NAVIGATION]['TOP'] },
|
||||
{ title: "Cụm thành phần điều hướng", value: enumPageComponentTemplate[enumPageComponentKey.NAVIGATION]['DIRECTION'] },
|
||||
{ title: "Thành phần điều hướng cuối trang", value: enumPageComponentTemplate[enumPageComponentKey.NAVIGATION]['BOTTOM'] },
|
||||
],
|
||||
[`${enumPageComponentKey.COLLECTION}`]: [
|
||||
{ title: "Bộ sưu tập bài viết", value: enumPageComponentTemplate[enumPageComponentKey.COLLECTION]['ARTICLE'] },
|
||||
],
|
||||
[`${enumPageComponentKey.SECTION}`]: [
|
||||
{ title: "Bộ phân trang bài viết", value: enumPageComponentTemplate[enumPageComponentKey.SECTION]['ARTICLE'] },
|
||||
],
|
||||
[`${enumPageComponentKey.CATEGORY}`]: [
|
||||
{ title: "Cụm Danh mục", value: enumPageComponentTemplate[enumPageComponentKey.CATEGORY]['CATEGORY'] },
|
||||
],
|
||||
[`${enumPageComponentKey.ADVERTISING}`]: [
|
||||
{ title: "Quảng cáo", value: enumPageComponentTemplate[enumPageComponentKey.ADVERTISING]['ADVERTISING'] },
|
||||
],
|
||||
[`${enumPageComponentKey.OTHER}`]: [
|
||||
{ title: "Thời tiết", value: enumPageComponentTemplate[enumPageComponentKey.OTHER]['WEATHER'] },
|
||||
{ title: "Chứng khoán", value: enumPageComponentTemplate[enumPageComponentKey.OTHER]['SECURITIES'] },
|
||||
],
|
||||
};
|
||||
|
||||
export const pageComponentLayouts = {
|
||||
[`${enumPageComponentTemplates.ARTICLE}`]: [
|
||||
{ title: "None", value: "None" },
|
||||
{ title: "Trình bày ngang", value: enumPageComponentLayouts[enumPageComponentTemplates.ARTICLE]['HORIZONTAL'] },
|
||||
{ title: "Trình bày dọc", value: enumPageComponentLayouts[enumPageComponentTemplates.ARTICLE]['VERTICAL'] },
|
||||
{ title: "Ngang và ẩn Giới thiệu", value: enumPageComponentLayouts[enumPageComponentTemplates.ARTICLE]['HORIZONTAL-HIDE_PARAGRAPH'] },
|
||||
{ title: "Dọc và ẩn Hình ảnh", value: enumPageComponentLayouts[enumPageComponentTemplates.ARTICLE]['VERTICAL-HIDE_THUMBNAIL'] },
|
||||
{ title: "Dọc và ẩn Giới thiệu", value: enumPageComponentLayouts[enumPageComponentTemplates.ARTICLE]['VERTICAL-HIDE_PARAGRAPH'] },
|
||||
{ title: "Dọc và ẩn Giới thiệu, ngược", value: enumPageComponentLayouts[enumPageComponentTemplates.ARTICLE]['VERTICAL-HIDE_PARAGRAPH-REVERSE'] },
|
||||
{ title: "mặc định", value: enumPageComponentLayouts[enumPageComponentTemplates.ARTICLE]['DEFAULT'] },
|
||||
[`${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' },
|
||||
],
|
||||
[`${enumPageComponentTemplates.CATEGORY}`]: [
|
||||
{ title: "Danh mục", value: enumPageComponentLayouts[enumPageComponentTemplates.CATEGORY]['DEFAULT'] }
|
||||
[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' },
|
||||
],
|
||||
[`${enumPageComponentTemplates.NAVIGATION}`]: [
|
||||
{ title: "Thanh điều hướng ở đầu trang", value: enumPageComponentLayouts[enumPageComponentTemplates.NAVIGATION]['NAVIGATION-TOP'] },
|
||||
{ title: "Tab điều hướng trong các phân vùng", value: enumPageComponentLayouts[enumPageComponentTemplates.NAVIGATION]['NAVIGATION-DIRECTION'] },
|
||||
{ title: "Bộ điều hướng ở chân trang", value: enumPageComponentLayouts[enumPageComponentTemplates.NAVIGATION]['NAVIGATION-BOTTOM'] },
|
||||
/* NAVIGATION */
|
||||
[`${enumPageComponentTemplate[enumPageComponentKey.NAVIGATION]['TOP']}`]: [
|
||||
{ title: "Thanh điều hướng cơ bản", value: enumPageComponentLayouts[`${enumPageComponentTemplate[enumPageComponentKey.NAVIGATION]['TOP']}`]['NAVIGATION_TOP_DEFAULT'] },
|
||||
],
|
||||
[`${enumPageComponentTemplates.COLLECTION}`]: [
|
||||
{ title: "Cụm Bài viết 5 phần tử, Bài viết ngang", value: enumPageComponentLayouts[enumPageComponentTemplates.COLLECTION]['ARTICLE-VERTICAL-|HORIZONTAL|-MAX_5'] },
|
||||
{ title: "Cụm Bài viết Mặc định", value: enumPageComponentLayouts[enumPageComponentTemplates.COLLECTION]['DEFAULT'] },
|
||||
[`${enumPageComponentTemplate[enumPageComponentKey.NAVIGATION]['DIRECTION']}`]: [
|
||||
{ title: "Thanh điều hướng cơ bản", value: enumPageComponentLayouts[`${enumPageComponentTemplate[enumPageComponentKey.NAVIGATION]['DIRECTION']}`]['NAVIGATION_DIRECTION_DEFAULT'] },
|
||||
],
|
||||
[`${enumPageComponentTemplate[enumPageComponentKey.NAVIGATION]['BOTTOM']}`]: [
|
||||
{ title: "Thanh điều hướng cơ bản", value: enumPageComponentLayouts[`${enumPageComponentTemplate[enumPageComponentKey.NAVIGATION]['BOTTOM']}`]['NAVIGATION_BOTTOM_DEFAULT'] },
|
||||
],
|
||||
|
||||
/* COLLECTION */
|
||||
[`${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'] },
|
||||
],
|
||||
|
||||
/* SECTION */
|
||||
[`${enumPageComponentTemplate[enumPageComponentKey.SECTION]['ARTICLE']}`]: [
|
||||
{ title: "Cơ bản", value: enumPageComponentLayouts[`${enumPageComponentTemplate[enumPageComponentKey.SECTION]['ARTICLE']}`]['ARTICLE_SECTION_DEFAULT'] },
|
||||
],
|
||||
|
||||
/* CATEGORY */
|
||||
[`${enumPageComponentTemplate[enumPageComponentKey.CATEGORY]['CATEGORY']}`]: [
|
||||
{ title: "Cụm danh mục ngang", value: enumPageComponentLayouts[`${enumPageComponentTemplate[enumPageComponentKey.CATEGORY]['CATEGORY']}`]['DEFAULT'] },
|
||||
{ title: "Cụm danh mục dọc", value: enumPageComponentLayouts[`${enumPageComponentTemplate[enumPageComponentKey.CATEGORY]['CATEGORY']}`]['CATEGORY_VERTICAL'] },
|
||||
],
|
||||
|
||||
/* ADVERTISING */
|
||||
[`${enumPageComponentTemplate[enumPageComponentKey.ADVERTISING]['ADVERTISING']}`]: [
|
||||
{ title: "Cơ bản (300x260)", value: enumPageComponentLayouts[`${enumPageComponentTemplate[enumPageComponentKey.ADVERTISING]['ADVERTISING']}`]['DEFAULT'] },
|
||||
],
|
||||
|
||||
/* OTHER */
|
||||
[`${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'] }
|
||||
],
|
||||
[`${enumPageComponentTemplates.ADVERTISING}`]: [
|
||||
{ title: "Quảng cáo mặc định", value: enumPageComponentLayouts[enumPageComponentTemplates.ADVERTISING]['DEFAULT'] },
|
||||
]
|
||||
};
|
||||
|
||||
@@ -6,3 +6,4 @@ export const printingPageType = [
|
||||
{ title: "LastPage", value: 3 }, // Trang cuối
|
||||
];
|
||||
export const printingPublicationType = [{ title: "None", value: 0 }];
|
||||
export const printingIssueType = [{ title: "None", value: 0 }];
|
||||
|
||||
@@ -0,0 +1 @@
|
||||
export const taxonomyCMS = [{ title: "None", value: 0 }];
|
||||
@@ -6,9 +6,9 @@ export const topicType = [
|
||||
];
|
||||
|
||||
export const topicPublishType = [
|
||||
{ title: "None", value: 0 },
|
||||
// { title: "None", value: 0 },
|
||||
{ title: "Digital", value: 1 }, // Xuất bản số
|
||||
{ title: "Printing", value: 2 }, // Xuất bản in
|
||||
{ title: "Sharing", value: 3 }, // xuất bản chia sẻ
|
||||
{ title: "Digital_Printing", value: 12 }, // xuất bản số và in ấn
|
||||
// { title: "Digital_Printing", value: 12 }, // xuất bản số và in ấn
|
||||
];
|
||||
|
||||
@@ -0,0 +1,5 @@
|
||||
export const addressTypes = [
|
||||
{ title: "Personal Home", value: "Personal Home" },
|
||||
{ title: "Office", name: "Office" },
|
||||
{ title: "Other", name: "Other" },
|
||||
];
|
||||
@@ -1,4 +1,5 @@
|
||||
export { status } from './status'
|
||||
export { domainFeature } from './domain-feature'
|
||||
export { typeOption } from './type-option'
|
||||
export { scopeOption } from './scope-option'
|
||||
export { status } from "./status";
|
||||
export { domainFeature } from "./domain-feature";
|
||||
export { typeOption } from "./type-option";
|
||||
export { scopeOption } from "./scope-option";
|
||||
export { addressTypes } from "./address-types";
|
||||
|
||||
@@ -1,6 +0,0 @@
|
||||
export const dashboardOptions = [
|
||||
{ title: 'Global', value: 1 },
|
||||
{ title: 'Site', value: 2 },
|
||||
{ title: 'Group', value: 3 },
|
||||
{ title: 'User', value: 4 },
|
||||
];
|
||||
@@ -0,0 +1,7 @@
|
||||
export const dashboardRanges = [
|
||||
// { title: "Hour", value: 1 },
|
||||
{ title: "Day", value: 2 },
|
||||
{ title: "Week", value: 3 },
|
||||
{ title: "Month", value: 4 },
|
||||
{ title: "Year", value: 5 },
|
||||
];
|
||||
@@ -0,0 +1,6 @@
|
||||
export const dashboardSopes = [
|
||||
{ title: "Global", value: 1 },
|
||||
{ title: "Site", value: 2 },
|
||||
{ title: "Group", value: 3 },
|
||||
{ title: "User", value: 4 },
|
||||
];
|
||||
@@ -0,0 +1,2 @@
|
||||
export { dashboardSopes } from "./dashboard-scope";
|
||||
export { dashboardRanges } from "./dashboard-range";
|
||||
@@ -0,0 +1,5 @@
|
||||
export enum enumChats {
|
||||
CHAT = 1, //chat riêng
|
||||
GROUPCHAT = 2, // chat nhóm
|
||||
LIMIT = 100,
|
||||
}
|
||||
@@ -10,8 +10,10 @@ export enum componentCodes {
|
||||
CmsPrintingPage = `${moduleCodes.Cms}/printing-page`,
|
||||
CmsPrintingEdition = `${moduleCodes.Cms}/printing-edition`,
|
||||
CmsPrintingPublication = `${moduleCodes.Cms}/printing-publication`,
|
||||
CmsPrintingIssue = `${moduleCodes.Cms}/printing-issue`,
|
||||
CmsTemplate = `${moduleCodes.Cms}/template`,
|
||||
CmsCollection = `${moduleCodes.Cms}/collection`,
|
||||
CmsSharingSite = `${moduleCodes.Cms}/sharing-site`,
|
||||
HrmUser = `${moduleCodes.Hrm}/user`,
|
||||
HrmRole = `${moduleCodes.Hrm}/role`,
|
||||
HrmGroup = `${moduleCodes.Hrm}/group`,
|
||||
|
||||
@@ -0,0 +1,36 @@
|
||||
export enum enumDashboardRanges {
|
||||
// HOUR = "Hour",
|
||||
DAY = "Day",
|
||||
WEEK = "Week",
|
||||
MONTH = "Month",
|
||||
YEAR = "Year",
|
||||
}
|
||||
|
||||
export enum enumDashboardScopes {
|
||||
GLOABAL = "Global",
|
||||
SITE = "Site",
|
||||
GROUP = "Group",
|
||||
USER = "User",
|
||||
}
|
||||
|
||||
export enum chartTypes {
|
||||
LINE = "line",
|
||||
COLUMN = "column",
|
||||
AREA = "area",
|
||||
BAR = "bar",
|
||||
PIE = "pie",
|
||||
SCATTER = "scatter",
|
||||
BUBBLE = "bubble",
|
||||
RADAR = "radar",
|
||||
HEATMAP = "heatmap",
|
||||
TREEMAP = "treemap",
|
||||
BOXPLOT = "boxPlot",
|
||||
CANDLESTICK = "candlestick",
|
||||
RADIALBAR = "radialBar",
|
||||
RANGEAREA = "rangeArea",
|
||||
RANGE = "rangeBar",
|
||||
POLARAREA = "polarArea",
|
||||
DONUT = "donut",
|
||||
GAUGE = "gauge",
|
||||
SPARKLINE = "sparkline",
|
||||
}
|
||||
@@ -1,8 +1,14 @@
|
||||
export { PublishTypes as publishTypes } from "./publishTypes.enum";
|
||||
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 } from "./page.enum";
|
||||
export {
|
||||
templates, layouts, 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
|
||||
} from "./page.enum";
|
||||
export { enumStatus } from "./status.enum";
|
||||
export { actionCommands } from "./actionCommands.enum";
|
||||
export { moduleCodes } from "./module.enum";
|
||||
export { actionCodes } from "./actionCodes.enum";
|
||||
export { componentCodes } from "./component.enum";
|
||||
export { enumDashboardRanges, enumDashboardScopes, chartTypes } from "./dashboard.enum";
|
||||
export { enumChats } from "./chat.enum";
|
||||
|
||||
@@ -0,0 +1,316 @@
|
||||
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",
|
||||
TOPIC: "Topic",
|
||||
EVENT: "Event",
|
||||
COLLECTION: "Collection",
|
||||
ARTICLE: "Article",
|
||||
TAG: "Tag",
|
||||
AUTHOR: "Author",
|
||||
POLL: "Poll",
|
||||
QUIZ: "Quiz",
|
||||
SURVEY: "Survey",
|
||||
ADVERTISING: "Advertising",
|
||||
OTHER: "Other",
|
||||
};
|
||||
|
||||
export const dataQuery = {
|
||||
IDS: "IDS",
|
||||
NEW: "NEW",
|
||||
VIEW: "VIEW",
|
||||
SQL: "SQL",
|
||||
REQUEST: "REQUEST",
|
||||
};
|
||||
|
||||
export const sectionTypes = {
|
||||
NONE: 0, // Không xác định
|
||||
BLOCK: 1, // Khối
|
||||
};
|
||||
|
||||
export const sectionTaxonomy = {
|
||||
BLOCK: "Block",
|
||||
MODULE: "Module",
|
||||
NAVIGATION: "Navigation",
|
||||
};
|
||||
|
||||
export const enumPageType = {
|
||||
NONE: 0, // Không xác định
|
||||
HOME: 1, // Trang chủ
|
||||
SECTION: 2, // Chuyên trang
|
||||
CATEGORY: 3, // Trang danh mục
|
||||
TOPIC: 4, // Trang chủ đề
|
||||
EVENT: 5, // Trang sự kiện
|
||||
COLLECTION: 6, // Trang sưu tập
|
||||
ARTICLE: 7, // Trang bài viết
|
||||
TAG: 8, // Trang từ khóa
|
||||
AUTHOR: 9, // Trang tác giả
|
||||
SEARCH: 10, // Trang tìm kiếm
|
||||
CONTACT: 11, // Trang liên hệ
|
||||
ABOUT: 12, // Trang giới thiệu
|
||||
SERVICE: 13, // Trang dịch vụ
|
||||
POLICY: 14, // Trang chính sách
|
||||
TERMS: 15, // Trang điều khoản
|
||||
PRIVACY: 16, // Trang bảo mật
|
||||
ERROR: 97, // Trang lỗi
|
||||
MAINTENANCE: 98, // Trang bảo trì
|
||||
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 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" },
|
||||
{ title: "Categories", value: "Categories" },
|
||||
{ title: "Topics", value: "Topics" },
|
||||
{ title: "Events", value: "Events" },
|
||||
{ title: "Collections", value: "Collections" },
|
||||
];
|
||||
export const dataSelectQuery = [
|
||||
{ title: "COMMAND", value: "COMMAND" },
|
||||
{ title: "SQL", value: "SQL" },
|
||||
{ title: "REQUEST", value: "REQUEST" },
|
||||
{ title: "STATIC", value: "STATIC" },
|
||||
];
|
||||
export const dataTypeTTL = [
|
||||
{ title: "None", value: "" },
|
||||
{ title: "Day", value: "Day" },
|
||||
{ title: "Month", value: "Month" },
|
||||
{ title: 86400, value: 86400 },
|
||||
];
|
||||
export const dataMethodRequest = [
|
||||
{ title: "Get", value: "Get" },
|
||||
{ title: "Post", value: "Post" },
|
||||
];
|
||||
export const dataDesignLayout = [
|
||||
{ title: "Ngang", value: "row" },
|
||||
{ title: "Dọc", value: "column" },
|
||||
];
|
||||
export const dataBorderDesign = [
|
||||
{ title: "Top", value: "border-top:1px solid;" },
|
||||
{ title: "Right", value: "border-right:1px solid;" },
|
||||
{ title: "Bottom", value: "border-bottom:1px solid;" },
|
||||
{ title: "Left", value: "border-left:1px solid;" },
|
||||
];
|
||||
export const dataPaddingDesign = [
|
||||
{ title: "Top", value: "paddingTop" },
|
||||
{ title: "Right", value: "paddingRight" },
|
||||
{ title: "Bottom", value: "paddingBottom" },
|
||||
{ title: "Left", value: "paddingLeft" },
|
||||
];
|
||||
export const dataHideDesign = [
|
||||
{ title: "Ảnh", value: "div.basic-article_thumbnail" },
|
||||
{ title: "Tiêu đề", value: "h3.title" },
|
||||
{ title: "Mô tả", value: "p.paragraph" },
|
||||
];
|
||||
export const dataFontWeightDesign = [
|
||||
{ title: "100", value: 100 },
|
||||
{ title: "200", value: 200 },
|
||||
{ title: "300", value: 300 },
|
||||
{ title: "400", value: 400 },
|
||||
{ title: "500", value: 500 },
|
||||
{ title: "600", value: 600 },
|
||||
{ title: "700", value: 700 },
|
||||
{ title: "800", value: 800 },
|
||||
];
|
||||
|
||||
export const dataStaticType = [
|
||||
{
|
||||
title: "Danh sách bài viết liên quan (Dành cho chi tiết bài viết)",
|
||||
value: 1
|
||||
},
|
||||
{
|
||||
title: "Danh sách bài viết cùng danh mục (Dành cho chi tiết bài viết)",
|
||||
value: 2
|
||||
},
|
||||
{
|
||||
title: "Tùy chỉnh",
|
||||
value: 3
|
||||
}
|
||||
]
|
||||
export const enumPageComponentStaticChild = {
|
||||
LAYOUT: "Layout", // Không xác định
|
||||
DEFAULT: "Default", // Chuyên trang
|
||||
};
|
||||
|
||||
|
||||
/* SECTION SETTINGS */
|
||||
// KHÔNG ĐƯỢC XÓA KEY - BIẾN này
|
||||
export const enumPageSectionKey = {
|
||||
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 enumPageSectionTemplate = {
|
||||
[enumPageSectionKey.NONE]: {
|
||||
'NONE': "TYPE:None",
|
||||
},
|
||||
};
|
||||
|
||||
export const enumPageSectionLayouts = {
|
||||
[enumPageSectionTemplate[enumPageSectionKey.NONE]['NONE']]: {
|
||||
'VERTICAL_TWO': 'LAYOUT:vertical-TYPE:Default-MAX:2',
|
||||
'VERTICAL_LEFT_TWO': 'LAYOUT:vertical-TYPE:LEFT-MAX:2',
|
||||
'VERTICAL_RIGHT_TWO': 'LAYOUT:vertical-TYPE:RIGHT-MAX:2',
|
||||
'VERTICAL_THREE': 'LAYOUT:vertical-TYPE:Default-MAX:3',
|
||||
'VERTICAL_FOUR': 'LAYOUT:vertical-TYPE:Default-MAX:4',
|
||||
'VERTICAL_CENTER_TWO': 'LAYOUT:vertical-TYPE:CENTER-MAX:2',
|
||||
'VERTICAL_CENTER_THREE': 'LAYOUT:vertical-TYPE:CENTER-MAX:3',
|
||||
'VERTICAL_CENTER_FOUR': 'LAYOUT:vertical-TYPE:CENTER-MAX:4',
|
||||
'HORIZONTAL_ONE': 'LAYOUT:horizontal-TYPE:Default-MAX:1',
|
||||
'HORIZONTAL_TWO': 'LAYOUT:horizontal-TYPE:Default-MAX:2',
|
||||
'HORIZONTAL_THREE': 'LAYOUT:horizontal-TYPE:Default-MAX:3',
|
||||
'HORIZONTAL_FOUR': 'LAYOUT:horizontal-TYPE:Default-MAX:4',
|
||||
'HORIZONTAL_FIVE': 'LAYOUT:horizontal-TYPE:Default-MAX:5',
|
||||
'HORIZONTAL_SIX': 'LAYOUT:horizontal-TYPE:Default-MAX:6',
|
||||
'HORIZONTAL_SEVEN': 'LAYOUT:horizontal-TYPE:Default-MAX:7',
|
||||
'HORIZONTAL_EIGHT': 'LAYOUT:horizontal-TYPE:Default-MAX:8',
|
||||
'HORIZONTAL_NINE': 'LAYOUT:horizontal-TYPE:Default-MAX:9',
|
||||
'HORIZONTAL_TEN': 'LAYOUT:horizontal-TYPE:Default-MAX:10',
|
||||
}
|
||||
};
|
||||
|
||||
/* COMPONENT SETTINGS */
|
||||
// KHÔNG ĐƯỢC XÓA KEY - BIẾN này
|
||||
export const enumPageComponentKey = {
|
||||
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",
|
||||
'ARTICLE_DETAIL': 'TYPE:Detail',
|
||||
},
|
||||
[enumPageComponentKey.NAVIGATION]: {
|
||||
'TOP': "TYPE:Top",
|
||||
'BOTTOM': 'TYPE:Bottom',
|
||||
'DIRECTION': 'TYPE:Direction',
|
||||
},
|
||||
[enumPageComponentKey.OTHER]: {
|
||||
"WEATHER": "TYPE:Weather",
|
||||
"SECURITIES": "TYPE:securities"
|
||||
},
|
||||
[enumPageComponentKey.ADVERTISING]: {
|
||||
"ADVERTISING": "TYPE:Advertising",
|
||||
}
|
||||
};
|
||||
|
||||
export const enumPageComponentLayouts = {
|
||||
[`${enumPageComponentTemplate[enumPageComponentKey.ARTICLE]['ARTICLE_CARD']}`]: {
|
||||
'CARD_DEFAULT': "TYPE:Card_Default",
|
||||
'CARD_AUDIO': "TYPE:Card_Audio",
|
||||
},
|
||||
[`${enumPageComponentTemplate[enumPageComponentKey.ARTICLE]['ARTICLE_DETAIL']}`]: {
|
||||
'DETAIL_GENERAL': "TYPE:Detail_General",
|
||||
'DETAIL_PODCAST': "TYPE:Detail_Podcast",
|
||||
'DETAIL_VIDEO': "TYPE:Detail_Video",
|
||||
'DETAIL_IMAGE': "TYPE:Detail_Image",
|
||||
},
|
||||
[`${enumPageComponentTemplate[enumPageComponentKey.NAVIGATION]['TOP']}`]: {
|
||||
'NAVIGATION_TOP_DEFAULT': "TYPE:Navigation_Top_Default",
|
||||
},
|
||||
[`${enumPageComponentTemplate[enumPageComponentKey.NAVIGATION]['BOTTOM']}`]: {
|
||||
'NAVIGATION_BOTTOM_DEFAULT': "TYPE:Navigation_Bottom_Default",
|
||||
},
|
||||
[`${enumPageComponentTemplate[enumPageComponentKey.NAVIGATION]['DIRECTION']}`]: {
|
||||
'NAVIGATION_DIRECTION_DEFAULT': "TYPE:Navigation_Direction_Default",
|
||||
},
|
||||
|
||||
[`${enumPageComponentTemplate[enumPageComponentKey.OTHER]['WEATHER']}`]: {
|
||||
'WEATHER_DEFAULT': "TYPE:Weather_Default",
|
||||
},
|
||||
[`${enumPageComponentTemplate[enumPageComponentKey.OTHER]['SECURITIES']}`]: {
|
||||
'SECURITIES_DEFAULT': "TYPE:Securities_Default",
|
||||
},
|
||||
[`${enumPageComponentTemplate[enumPageComponentKey.ADVERTISING]['ADVERTISING']}`]: {
|
||||
'ADVERTISING_DEFAULT': "TYPE:Advertising_Default",
|
||||
},
|
||||
|
||||
};
|
||||
+281
-50
@@ -86,25 +86,6 @@ export const enumPageType = {
|
||||
CUSTOM: 99, // Trang tùy chỉnh
|
||||
};
|
||||
|
||||
export const enumPageSectionLayouts = {
|
||||
NONE: "None",
|
||||
'VERTICAL_TWO': 'LAYOUT:vertical-TYPE:Default-MAX:2',
|
||||
'VERTICAL_LEFT_TWO': 'LAYOUT:vertical-TYPE:LEFT-MAX:2',
|
||||
'VERTICAL_RIGHT_TWO': 'LAYOUT:vertical-TYPE:RIGHT-MAX:2',
|
||||
'VERTICAL_THREE': 'LAYOUT:vertical-TYPE:Default-MAX:3',
|
||||
'VERTICAL_FOUR': 'LAYOUT:vertical-TYPE:Default-MAX:4',
|
||||
'HORIZONTAL_ONE': 'LAYOUT:horizontal-TYPE:Default-MAX:1',
|
||||
'HORIZONTAL_TWO': 'LAYOUT:horizontal-TYPE:Default-MAX:2',
|
||||
'HORIZONTAL_THREE': 'LAYOUT:horizontal-TYPE:Default-MAX:3',
|
||||
'HORIZONTAL_FOUR': 'LAYOUT:horizontal-TYPE:Default-MAX:4',
|
||||
'HORIZONTAL_FIVE': 'LAYOUT:horizontal-TYPE:Default-MAX:5',
|
||||
'HORIZONTAL_SIX': 'LAYOUT:horizontal-TYPE:Default-MAX:6',
|
||||
'HORIZONTAL_SEVEN': 'LAYOUT:horizontal-TYPE:Default-MAX:7',
|
||||
'HORIZONTAL_EIGHT': 'LAYOUT:horizontal-TYPE:Default-MAX:8',
|
||||
'HORIZONTAL_NINE': 'LAYOUT:horizontal-TYPE:Default-MAX:9',
|
||||
'HORIZONTAL_TEN': 'LAYOUT:horizontal-TYPE:Default-MAX:10',
|
||||
};
|
||||
|
||||
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
|
||||
@@ -120,43 +101,293 @@ export const enumPageComponentTemplates = { // KHÔNG ĐƯỢC XÓA KEY - BIẾN
|
||||
SURVEY: "Survey", // Trang survey
|
||||
ADVERTISING: "Advertising", // Trang quảng cáo
|
||||
OTHER: "Other", // Trang khác
|
||||
NAVIGATION: "Navigation" // Navigation
|
||||
|
||||
NAVIGATION: "Navigation", // Navigation
|
||||
LOCATION: 'Location', // Location
|
||||
FIGURE: 'Figure', // Figure
|
||||
};
|
||||
|
||||
export const enumPageComponentLayouts = {
|
||||
[`${enumPageComponentTemplates.ARTICLE}`]: {
|
||||
NONE: "None",
|
||||
'HORIZONTAL': "LAYOUT:horizontal",
|
||||
'VERTICAL': "LAYOUT:vertical",
|
||||
'HORIZONTAL-HIDE_PARAGRAPH': "LAYOUT:horizontal-HIDE:paragraph",
|
||||
'VERTICAL-HIDE_THUMBNAIL': "LAYOUT:vertical-HIDE:thumbnail",
|
||||
'VERTICAL-HIDE_PARAGRAPH': "LAYOUT:vertical-HIDE:paragraph",
|
||||
'VERTICAL-HIDE_PARAGRAPH-REVERSE': "LAYOUT:vertical-HIDE:paragraph-REVERSE:true",
|
||||
"DEFAULT": "TYPE:Detail-LAYOUT:default"
|
||||
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" },
|
||||
{ title: "Categories", value: "Categories" },
|
||||
{ title: "Topics", value: "Topics" },
|
||||
{ title: "Events", value: "Events" },
|
||||
{ title: "Collections", value: "Collections" },
|
||||
];
|
||||
export const dataSelectQuery = [
|
||||
{ title: "COMMAND", value: "COMMAND" },
|
||||
{ title: "SQL", value: "SQL" },
|
||||
{ title: "REQUEST", value: "REQUEST" },
|
||||
{ title: "STATIC", value: "STATIC" },
|
||||
];
|
||||
export const dataTypeTTL = [
|
||||
{ title: "None", value: "" },
|
||||
{ title: "Day", value: "Day" },
|
||||
{ title: "Month", value: "Month" },
|
||||
{ title: 86400, value: 86400 },
|
||||
];
|
||||
export const dataMethodRequest = [
|
||||
{ title: "Get", value: "Get" },
|
||||
{ title: "Post", value: "Post" },
|
||||
];
|
||||
export const dataDesignLayout = [
|
||||
{ title: "Ngang", value: "row" },
|
||||
{ title: "Dọc", value: "column" },
|
||||
];
|
||||
export const dataBorderDesign = [
|
||||
{ title: "Top", value: "border-top:1px solid;" },
|
||||
{ title: "Right", value: "border-right:1px solid;" },
|
||||
{ title: "Bottom", value: "border-bottom:1px solid;" },
|
||||
{ title: "Left", value: "border-left:1px solid;" },
|
||||
];
|
||||
export const dataPaddingDesign = [
|
||||
{ title: "Top", value: "paddingTop" },
|
||||
{ title: "Right", value: "paddingRight" },
|
||||
{ title: "Bottom", value: "paddingBottom" },
|
||||
{ title: "Left", value: "paddingLeft" },
|
||||
];
|
||||
export const dataHideDesign = [
|
||||
{ title: "Ảnh", value: "div.basic-article_thumbnail" },
|
||||
{ title: "Tiêu đề", value: "h3.title" },
|
||||
{ title: "Mô tả", value: "p.paragraph" },
|
||||
{ title: "Chủ đề", value: "topic" },
|
||||
{ title: "Thời gian", value: "time" },
|
||||
{ title: "Danh mục của bài viết", value: "category-article" },
|
||||
];
|
||||
export const dataFontWeightDesign = [
|
||||
{ title: "100", value: 100 },
|
||||
{ title: "200", value: 200 },
|
||||
{ title: "300", value: 300 },
|
||||
{ title: "400", value: 400 },
|
||||
{ title: "500", value: 500 },
|
||||
{ title: "600", value: 600 },
|
||||
{ title: "700", value: 700 },
|
||||
{ title: "800", value: 800 },
|
||||
];
|
||||
|
||||
export const dataStaticType = [
|
||||
{
|
||||
title: "Danh sách bài viết liên quan (Dành cho chi tiết bài viết)",
|
||||
value: 1
|
||||
},
|
||||
[`${enumPageComponentTemplates.CATEGORY}`]: {
|
||||
NONE: "None",
|
||||
'DEFAULT': "DEFAULT"
|
||||
{
|
||||
title: "Danh sách bài viết cùng danh mục (Dành cho chi tiết bài viết)",
|
||||
value: 2
|
||||
},
|
||||
[`${enumPageComponentTemplates.NAVIGATION}`]: {
|
||||
'NAVIGATION-TOP': "TYPE:Navigation-PLACEMENT:Top",
|
||||
'NAVIGATION-BOTTOM': "TYPE:Navigation-PLACEMENT:Bottom",
|
||||
'NAVIGATION-DIRECTION': 'TYPE:Navigation-PLACEMENT:Direction',
|
||||
},
|
||||
[`${enumPageComponentTemplates.COLLECTION}`]: {
|
||||
'ARTICLE-VERTICAL-|HORIZONTAL|-MAX_5': 'TYPE:Article-LAYOUT:vertical-DATA:HORIZONTAL-MAX:5'
|
||||
},
|
||||
[`${enumPageComponentTemplates.OTHER}`]: {
|
||||
'"ARTICLE_BUTTON"': '"ARTICLE_BUTTON"'
|
||||
},
|
||||
[`${enumPageComponentTemplates.ADVERTISING}`]: {
|
||||
'DEFAULT': 'DEFAULT'
|
||||
{
|
||||
title: "Tùy chỉnh",
|
||||
value: 3
|
||||
}
|
||||
|
||||
};
|
||||
|
||||
]
|
||||
export const enumPageComponentStaticChild = {
|
||||
LAYOUT: "Layout", // Không xác định
|
||||
DEFAULT: "Default", // Chuyên trang
|
||||
};
|
||||
|
||||
|
||||
/* SECTION SETTINGS */
|
||||
// KHÔNG ĐƯỢC XÓA KEY - BIẾN này
|
||||
export const enumPageSectionKey = {
|
||||
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 enumPageSectionTemplate = {
|
||||
[enumPageSectionKey.NONE]: {
|
||||
'NONE': "TYPE:None",
|
||||
},
|
||||
[enumPageSectionKey.ARTICLE]: {
|
||||
'DEFAULT': "TYPE:Default",
|
||||
},
|
||||
};
|
||||
|
||||
export const enumPageSectionLayouts = {
|
||||
[`${enumPageSectionTemplate[enumPageSectionKey.NONE]['NONE']}`]: {
|
||||
'VERTICAL_TWO': 'LAYOUT:vertical-TYPE:Default-MAX:2',
|
||||
'VERTICAL_LEFT_TWO': 'LAYOUT:vertical-TYPE:LEFT-MAX:2',
|
||||
'VERTICAL_RIGHT_TWO': 'LAYOUT:vertical-TYPE:RIGHT-MAX:2',
|
||||
'VERTICAL_THREE': 'LAYOUT:vertical-TYPE:Default-MAX:3',
|
||||
'VERTICAL_FOUR': 'LAYOUT:vertical-TYPE:Default-MAX:4',
|
||||
'VERTICAL_CENTER_TWO': 'LAYOUT:vertical-TYPE:CENTER-MAX:2',
|
||||
'VERTICAL_CENTER_THREE': 'LAYOUT:vertical-TYPE:CENTER-MAX:3',
|
||||
'VERTICAL_CENTER_FOUR': 'LAYOUT:vertical-TYPE:CENTER-MAX:4',
|
||||
'HORIZONTAL_ONE': 'LAYOUT:horizontal-TYPE:Default-MAX:1',
|
||||
'HORIZONTAL_TWO': 'LAYOUT:horizontal-TYPE:Default-MAX:2',
|
||||
'HORIZONTAL_THREE': 'LAYOUT:horizontal-TYPE:Default-MAX:3',
|
||||
'HORIZONTAL_FOUR': 'LAYOUT:horizontal-TYPE:Default-MAX:4',
|
||||
'HORIZONTAL_FIVE': 'LAYOUT:horizontal-TYPE:Default-MAX:5',
|
||||
'HORIZONTAL_SIX': 'LAYOUT:horizontal-TYPE:Default-MAX:6',
|
||||
'HORIZONTAL_SEVEN': 'LAYOUT:horizontal-TYPE:Default-MAX:7',
|
||||
'HORIZONTAL_EIGHT': 'LAYOUT:horizontal-TYPE:Default-MAX:8',
|
||||
'HORIZONTAL_NINE': 'LAYOUT:horizontal-TYPE:Default-MAX:9',
|
||||
'HORIZONTAL_TEN': 'LAYOUT:horizontal-TYPE:Default-MAX:10',
|
||||
}
|
||||
};
|
||||
|
||||
/* COMPONENT SETTINGS */
|
||||
// KHÔNG ĐƯỢC XÓA KEY - BIẾN này
|
||||
export const enumPageComponentKey = {
|
||||
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",
|
||||
'ARTICLE_DETAIL': 'TYPE:Detail',
|
||||
},
|
||||
[enumPageComponentKey.NAVIGATION]: {
|
||||
'TOP': "TYPE:Top",
|
||||
'BOTTOM': 'TYPE:Bottom',
|
||||
'DIRECTION': 'TYPE:Direction',
|
||||
},
|
||||
[enumPageComponentKey.COLLECTION]: {
|
||||
'ARTICLE': "TYPE:Collection_Article",
|
||||
},
|
||||
[enumPageComponentKey.SECTION]: {
|
||||
'ARTICLE': "TYPE:Section_Article",
|
||||
},
|
||||
[enumPageComponentKey.CATEGORY]: {
|
||||
'CATEGORY': "TYPE:Categories",
|
||||
},
|
||||
[enumPageComponentKey.ADVERTISING]: {
|
||||
'ADVERTISING': "TYPE:Default",
|
||||
},
|
||||
[enumPageComponentKey.OTHER]: {
|
||||
"WEATHER": "TYPE:Weather",
|
||||
"SECURITIES": "TYPE:securities"
|
||||
},
|
||||
};
|
||||
|
||||
export const enumPageComponentLayouts = {
|
||||
/* ARTICLE */
|
||||
[`${enumPageComponentTemplate[enumPageComponentKey.ARTICLE]['ARTICLE_CARD']}`]: {
|
||||
'CARD_DEFAULT': "TYPE:Card_Default",
|
||||
'CARD_AUDIO': "TYPE:Card_Audio",
|
||||
},
|
||||
[`${enumPageComponentTemplate[enumPageComponentKey.ARTICLE]['ARTICLE_DETAIL']}`]: {
|
||||
'DETAIL_GENERAL': "TYPE:Detail_General",
|
||||
'DETAIL_PODCAST': "TYPE:Detail_Podcast",
|
||||
'DETAIL_VIDEO': "TYPE:Detail_Video",
|
||||
'DETAIL_IMAGE': "TYPE:Detail_Image",
|
||||
},
|
||||
/* NAVIGATION */
|
||||
[`${enumPageComponentTemplate[enumPageComponentKey.NAVIGATION]['TOP']}`]: {
|
||||
'NAVIGATION_TOP_DEFAULT': "TYPE:Navigation_Top_Default",
|
||||
},
|
||||
[`${enumPageComponentTemplate[enumPageComponentKey.NAVIGATION]['BOTTOM']}`]: {
|
||||
'NAVIGATION_BOTTOM_DEFAULT': "TYPE:Navigation_Bottom_Default",
|
||||
},
|
||||
[`${enumPageComponentTemplate[enumPageComponentKey.NAVIGATION]['DIRECTION']}`]: {
|
||||
'NAVIGATION_DIRECTION_DEFAULT': "TYPE:Navigation_Direction_Default",
|
||||
},
|
||||
|
||||
/* COLLECTION */
|
||||
[`${enumPageComponentTemplate[enumPageComponentKey.COLLECTION]['ARTICLE']}`]: {
|
||||
'ARTICLE_COLLECTION_DEFAULT': "TYPE:Article_Collection_Default",
|
||||
'ARTICLE_COLLECTION_AUDIO': "TYPE:Article_Collection_Audio",
|
||||
},
|
||||
|
||||
/* SECTION */
|
||||
[`${enumPageComponentTemplate[enumPageComponentKey.SECTION]['ARTICLE']}`]: {
|
||||
'ARTICLE_SECTION_DEFAULT': "TYPE:Article_Section_Default",
|
||||
},
|
||||
|
||||
/* CATEGORY */
|
||||
[`${enumPageComponentTemplate[enumPageComponentKey.CATEGORY]['CATEGORY']}`]: {
|
||||
'DEFAULT': "TYPE:Default",
|
||||
'CATEGORY_VERTICAL': "TYPE:Category_Vertical"
|
||||
},
|
||||
|
||||
/* ADVERTISING */
|
||||
[`${enumPageComponentTemplate[enumPageComponentKey.ADVERTISING]['ADVERTISING']}`]: {
|
||||
'DEFAULT': "TYPE:Default",
|
||||
},
|
||||
|
||||
/** OTHER */
|
||||
[`${enumPageComponentTemplate[enumPageComponentKey.OTHER]['WEATHER']}`]: {
|
||||
'WEATHER_DEFAULT': "TYPE:Weather_Default",
|
||||
},
|
||||
[`${enumPageComponentTemplate[enumPageComponentKey.OTHER]['SECURITIES']}`]: {
|
||||
'SECURITIES_DEFAULT': "TYPE:Securities_Default",
|
||||
},
|
||||
};
|
||||
|
||||
const defaultArticle = {
|
||||
WidthImg: 40,
|
||||
layout: "column",
|
||||
fontSizeTitle: 16,
|
||||
fontWeightTitle: 600,
|
||||
fontSizeIntro: 14,
|
||||
fontWeightIntro: 400,
|
||||
};
|
||||
|
||||
export const enumPageComponentDefaultSetting = {
|
||||
[enumPageComponentKey.ARTICLE]: {
|
||||
WidthImg: 40,
|
||||
layout: "column",
|
||||
fontSizeTitle: 16,
|
||||
fontWeightTitle: 600,
|
||||
fontSizeIntro: 14,
|
||||
fontWeightIntro: 400,
|
||||
},
|
||||
[enumPageComponentKey.COLLECTION]: {
|
||||
layoutWrap: "column",
|
||||
MAX: 5,
|
||||
column: 1,
|
||||
defaultFontSizeTitle: 16,
|
||||
defaultFontWeightTitle: 600,
|
||||
...defaultArticle,
|
||||
},
|
||||
[enumPageComponentKey.SECTION]: {
|
||||
layoutWrap: "column",
|
||||
MAX: 5,
|
||||
...defaultArticle,
|
||||
},
|
||||
[enumPageComponentKey.CATEGORY]: {
|
||||
layoutWrap: "row",
|
||||
MAX: 5,
|
||||
fontSizeTitle: 17,
|
||||
fontWeightTitle: 600,
|
||||
defaultFontSizeTitle: 13,
|
||||
defaultFontWeightTitle: 500,
|
||||
},
|
||||
}
|
||||
@@ -5,3 +5,9 @@ export enum PublishTypes {
|
||||
DIGITAL_PRINTING = 12,
|
||||
ALL = 99,
|
||||
}
|
||||
|
||||
export enum sharingTypes {
|
||||
FACEBOOK = 1,
|
||||
TWITTER = 2,
|
||||
YOUTUBE = 6,
|
||||
}
|
||||
|
||||
@@ -0,0 +1 @@
|
||||
export { userTaxonomy } from "./user-taxonomy";
|
||||
@@ -0,0 +1 @@
|
||||
export const userTaxonomy = [{ title: "Personal", value: "Cá nhân" }];
|
||||
@@ -9,10 +9,8 @@ export { languageOptions } from "./language-options";
|
||||
export { featureOptions } from "./feature-options";
|
||||
export { taskTaxonomy } from "./base-taxonomy";
|
||||
export { nationlityOptions } from "./base-nationlity";
|
||||
export { dashboardOptions } from "./dashboard-options";
|
||||
export { digitaldOptions } from "./digital-options";
|
||||
export { categoryLayouts } from "./category-layouts";
|
||||
export { dashboardRanges } from "./dashboad-ranges";
|
||||
export { trendOptions } from "./trend-options";
|
||||
export { publishedByOptions } from "./publishedBy-options";
|
||||
export { priorityOptions } from './priority-options';
|
||||
export { priorityOptions } from "./priority-options";
|
||||
|
||||
@@ -1,15 +1,10 @@
|
||||
export const actionCommands = [
|
||||
{ title: "Create", value: "Create", code: "Create" },
|
||||
{ title: "Update", value: "Update", code: "Update" },
|
||||
{ title: "Create with Handler is User", value: "Create with Handler is User", code: "CreateWithUser" },
|
||||
{ title: "Update with Handler is None", value: "Update with Handler is None", code: "UpdateWithNone" },
|
||||
{ title: "Update with Handler is Anhln", value: "Update with Handler is Anhln", code: "UpdateWithAnhln" },
|
||||
{ title: "Update with Status is Completed", value: "Update with Status is Completed", code: "UpdateWithStatusCompleted" },
|
||||
{ title: "Update with Handler is Anhln and Status is Processing", value: "Update with Handler is Anhln and Status is Processing", code: "UpdateWithAnhlnAndProcessing" },
|
||||
{ title: "Publish", value: "Publish", code: "Publish" },
|
||||
{ title: "Republish", value: "Republish", code: "Republish" },
|
||||
{ title: "Unpublish", value: "Unpublish", code: "Unpublish" },
|
||||
|
||||
{ title: "Assign", value: "Assign", code: "Assign" },
|
||||
{ title: "Assign me", value: "Assign me", code: "Assign me" },
|
||||
{ title: "Assign {id}", value: "Assign {id}", code: "AssignId" },
|
||||
|
||||
{ title: "Create&Assign", value: "Create&Assign", code: "Create&Assign" },
|
||||
{ title: "Create&Assign me", value: "Create&Assign me", code: "Create&Assign me" },
|
||||
{ title: "Create&Assign {id}", value: "Create&Assign {id}", code: "Create&AssignId" },
|
||||
{ title: "Republish", value: "Republish", code: "Republish" },
|
||||
];
|
||||
|
||||
@@ -10,12 +10,16 @@ export const stateTaxonomy = [
|
||||
{ title: "Đang duyệt bài", value: "Đang duyệt bài", value_number: "5" },
|
||||
{ title: "Đang xuất bản", value: "Đang xuất bản", value_number: "5" },
|
||||
{ title: "Đang duyệt hủy xuất bản", value: "Đang duyệt hủy xuất bản", value_number: "5" },
|
||||
{ title: "Đã nhận biên tập", value: "Đã nhận biên tập", value_number: "10" },
|
||||
{ title: "Đã nhận xem xét", value: "Đã nhận xem xét", value_number: "10" },
|
||||
{ title: "Đã nhận duyệt bài", value: "Đã nhận duyệt bài", value_number: "10" },
|
||||
{ title: "Đã nhận xuất bản", value: "Đã nhân xuất bản", value_number: "10" },
|
||||
{ title: "Đã soạn thảo", value: "Đã soạn thảo", value_number: "10" },
|
||||
{ title: "Đã biên tập", value: "Đã biên tập", value_number: "10" },
|
||||
{ title: "Đã xem xét", value: "Đã xem xét", value_number: "10" },
|
||||
{ title: "Đã duyệt bài", value: "Đã duyệt bài", value_number: "10" },
|
||||
{ title: "Đã hủy xuất bản", value: "Đã hủy xuất bản", value_number: "10" },
|
||||
{ title: "Đã lên lịch", value: "Đã lên lịch", value_number: "10" },
|
||||
{ title: "Đã lên lịch", value: "Đã lên lịch", value_number: "12" },
|
||||
{ title: "Bài bị trả về", value: "Bài bị trả về", value_number: "15" },
|
||||
{ title: "Đã từ chối hủy xuất bản", value: "Đã từ chối hủy xuất bản", value_number: "15" },
|
||||
{ title: "Đã xuất bản", value: "Đã xuất bản", value_number: "20" },
|
||||
|
||||
Reference in New Issue
Block a user