init
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
export const exceptionMessages = [
|
||||
{ title: 'Unhandled Exception', value: 'Unhandled Exception' },
|
||||
{ title: 'Unable to {0}', value: (entity: string) => `Unable to ${entity}` },
|
||||
{ title: '{0} does not exist', value: (entity: string) => `${entity} does not exist` },
|
||||
{ title: '{0} is not valid', value: (entity: string) => `${entity} is not valid` },
|
||||
{ title: '{0} is not ready', value: (entity: string) => `${entity} is not ready` },
|
||||
{ title: '{0} is not activated', value: (entity: string) => `${entity} is not activated` },
|
||||
{ title: '{0} is not available', value: (entity: string) => `${entity} is not available` },
|
||||
{ title: '{0} has expired', value: (entity: string) => `${entity} has expired` },
|
||||
{ title: '{0} has been deleted', value: (entity: string) => `${entity} has been deleted` },
|
||||
];
|
||||
@@ -0,0 +1,6 @@
|
||||
export const BaseGender = [
|
||||
{ title: 'Nam', value: 1 },
|
||||
{ title: 'Nữ', value: 2 },
|
||||
{ title: 'Khác', value: 3 },
|
||||
];
|
||||
|
||||
@@ -0,0 +1,4 @@
|
||||
export const nationlityOptions = [
|
||||
{ title: 'Anh', value: '0' },
|
||||
{ title: 'Việt Nam', value: '1' },
|
||||
];
|
||||
@@ -0,0 +1,365 @@
|
||||
export const baseSideBarMenu = [
|
||||
{
|
||||
"components": [
|
||||
{
|
||||
"operations": [
|
||||
{
|
||||
"id": 119,
|
||||
"siteId": 1,
|
||||
"moduleId": 6,
|
||||
"componentId": 24,
|
||||
"title": "Xóa phòng ban",
|
||||
"code": "delete",
|
||||
"route": "HRM/GROUP/DELETE",
|
||||
"description": "Quyền xóa phòng ban ",
|
||||
"feature": "",
|
||||
"order": null,
|
||||
"status": 6,
|
||||
"createdBy": 1,
|
||||
"createdOn": "2023-12-13T10:48:47.667016",
|
||||
"updatedBy": null,
|
||||
"updatedOn": null
|
||||
},
|
||||
{
|
||||
"id": 118,
|
||||
"siteId": 1,
|
||||
"moduleId": 6,
|
||||
"componentId": 24,
|
||||
"title": "Sửa phòng ban ",
|
||||
"code": "update",
|
||||
"route": "HRM/GROUP/UPDATE",
|
||||
"description": "Quyền sửa phòng ban ",
|
||||
"feature": "Navigation",
|
||||
"order": null,
|
||||
"status": 6,
|
||||
"createdBy": 1,
|
||||
"createdOn": "2023-12-13T10:48:47.667016",
|
||||
"updatedBy": null,
|
||||
"updatedOn": null
|
||||
},
|
||||
{
|
||||
"id": 120,
|
||||
"siteId": 1,
|
||||
"moduleId": 6,
|
||||
"componentId": 24,
|
||||
"title": "Danh sách phòng ban",
|
||||
"code": "manage",
|
||||
"route": "HRM/GROUP/MANAGE",
|
||||
"description": "Quyền hiển thị danh sách phòng ban",
|
||||
"feature": "",
|
||||
"order": null,
|
||||
"status": 6,
|
||||
"createdBy": 1,
|
||||
"createdOn": "2023-12-13T10:48:47.667016",
|
||||
"updatedBy": null,
|
||||
"updatedOn": null
|
||||
},
|
||||
{
|
||||
"id": 117,
|
||||
"siteId": 1,
|
||||
"moduleId": 6,
|
||||
"componentId": 24,
|
||||
"title": "Thêm phòng ban mới",
|
||||
"code": "create",
|
||||
"route": "HRM/GROUP/CREATE",
|
||||
"description": "Quyền tạo phòng ban ",
|
||||
"feature": "Navigation",
|
||||
"order": null,
|
||||
"status": 6,
|
||||
"createdBy": 1,
|
||||
"createdOn": "2023-12-13T10:48:47.667016",
|
||||
"updatedBy": null,
|
||||
"updatedOn": null
|
||||
}
|
||||
],
|
||||
"id": 24,
|
||||
"siteId": 1,
|
||||
"moduleId": 6,
|
||||
"title": "Group",
|
||||
"code": "GROUP",
|
||||
"route": "hrm/group",
|
||||
"icon": "ri-article-line",
|
||||
"description": "Quản lý phòng ban",
|
||||
"order": 18,
|
||||
"status": 6,
|
||||
"createdBy": null,
|
||||
"createdOn": null,
|
||||
"updatedBy": null,
|
||||
"updatedOn": null
|
||||
},
|
||||
{
|
||||
"operations": [
|
||||
{
|
||||
"id": 123,
|
||||
"siteId": 1,
|
||||
"moduleId": 6,
|
||||
"componentId": 25,
|
||||
"title": "Xóa vai trò",
|
||||
"code": "delete",
|
||||
"route": "HRM/ROLE/DELETE",
|
||||
"description": "Quyền xóa vai trò ",
|
||||
"feature": "",
|
||||
"order": null,
|
||||
"status": 6,
|
||||
"createdBy": 1,
|
||||
"createdOn": "2023-12-13T10:48:47.667016",
|
||||
"updatedBy": null,
|
||||
"updatedOn": null
|
||||
},
|
||||
{
|
||||
"id": 121,
|
||||
"siteId": 1,
|
||||
"moduleId": 6,
|
||||
"componentId": 25,
|
||||
"title": "Thêm vai trò mới",
|
||||
"code": "create",
|
||||
"route": "HRM/ROLE/CREATE",
|
||||
"description": "Quyền tạo vai trò ",
|
||||
"feature": "Navigation",
|
||||
"order": null,
|
||||
"status": 6,
|
||||
"createdBy": 1,
|
||||
"createdOn": "2023-12-13T10:48:47.667016",
|
||||
"updatedBy": null,
|
||||
"updatedOn": null
|
||||
},
|
||||
{
|
||||
"id": 122,
|
||||
"siteId": 1,
|
||||
"moduleId": 6,
|
||||
"componentId": 25,
|
||||
"title": "Sửa vai trò ",
|
||||
"code": "update",
|
||||
"route": "HRM/ROLE/UPDATE",
|
||||
"description": "Quyền sửa vai trò ",
|
||||
"feature": "",
|
||||
"order": null,
|
||||
"status": 6,
|
||||
"createdBy": 1,
|
||||
"createdOn": "2023-12-13T10:48:47.667016",
|
||||
"updatedBy": null,
|
||||
"updatedOn": null
|
||||
},
|
||||
{
|
||||
"id": 124,
|
||||
"siteId": 1,
|
||||
"moduleId": 6,
|
||||
"componentId": 25,
|
||||
"title": "Danh sách vai trò",
|
||||
"code": "manage",
|
||||
"route": "HRM/ROLE/MANAGE",
|
||||
"description": "Quyền hiển thị danh sách vai trò",
|
||||
"feature": "Navigation",
|
||||
"order": null,
|
||||
"status": 6,
|
||||
"createdBy": 1,
|
||||
"createdOn": "2023-12-13T10:48:47.667016",
|
||||
"updatedBy": null,
|
||||
"updatedOn": null
|
||||
}
|
||||
],
|
||||
"id": 25,
|
||||
"siteId": 1,
|
||||
"moduleId": 6,
|
||||
"title": "Role",
|
||||
"code": "ROLE",
|
||||
"route": "hrm/role",
|
||||
"icon": "ri-article-line",
|
||||
"description": "Quản lý vai trò",
|
||||
"order": 19,
|
||||
"status": 6,
|
||||
"createdBy": null,
|
||||
"createdOn": null,
|
||||
"updatedBy": null,
|
||||
"updatedOn": null
|
||||
},
|
||||
{
|
||||
"operations": [
|
||||
{
|
||||
"id": 125,
|
||||
"siteId": 1,
|
||||
"moduleId": 6,
|
||||
"componentId": 26,
|
||||
"title": "Thêm quyền hạn mới",
|
||||
"code": "create",
|
||||
"route": "HRM/PERMISSION/CREATE",
|
||||
"description": "Quyền tạo quyền hạn ",
|
||||
"feature": "Navigation",
|
||||
"order": null,
|
||||
"status": 6,
|
||||
"createdBy": 1,
|
||||
"createdOn": "2023-12-13T10:48:47.667016",
|
||||
"updatedBy": null,
|
||||
"updatedOn": null
|
||||
},
|
||||
{
|
||||
"id": 126,
|
||||
"siteId": 1,
|
||||
"moduleId": 6,
|
||||
"componentId": 26,
|
||||
"title": "Sửa quyền hạn",
|
||||
"code": "update",
|
||||
"route": "HRM/PERMISSION/UPDATE",
|
||||
"description": "Quyền sửa quyền hạn",
|
||||
"feature": "",
|
||||
"order": null,
|
||||
"status": 6,
|
||||
"createdBy": 1,
|
||||
"createdOn": "2023-12-13T10:48:47.667016",
|
||||
"updatedBy": null,
|
||||
"updatedOn": null
|
||||
},
|
||||
{
|
||||
"id": 127,
|
||||
"siteId": 1,
|
||||
"moduleId": 6,
|
||||
"componentId": 26,
|
||||
"title": "Xóa quyền hạn",
|
||||
"code": "delete",
|
||||
"route": "HRM/PERMISSION/DELETE",
|
||||
"description": "Quyền xóa quyền hạn ",
|
||||
"feature": "",
|
||||
"order": null,
|
||||
"status": 6,
|
||||
"createdBy": 1,
|
||||
"createdOn": "2023-12-13T10:48:47.667016",
|
||||
"updatedBy": null,
|
||||
"updatedOn": null
|
||||
},
|
||||
{
|
||||
"id": 128,
|
||||
"siteId": 1,
|
||||
"moduleId": 6,
|
||||
"componentId": 26,
|
||||
"title": "Danh sách quyền hạn",
|
||||
"code": "manage",
|
||||
"route": "HRM/PERMISSION/MANAGE",
|
||||
"description": "Quyền hiển thị danh sách quyền hạn",
|
||||
"feature": "Navigation",
|
||||
"order": null,
|
||||
"status": 6,
|
||||
"createdBy": 1,
|
||||
"createdOn": "2023-12-13T10:48:47.667016",
|
||||
"updatedBy": null,
|
||||
"updatedOn": null
|
||||
}
|
||||
],
|
||||
"id": 26,
|
||||
"siteId": 1,
|
||||
"moduleId": 6,
|
||||
"title": "Permission",
|
||||
"code": "PERMISSION",
|
||||
"route": "hrm/permission",
|
||||
"icon": "ri-article-line",
|
||||
"description": "Quản lý quyền hạn",
|
||||
"order": 20,
|
||||
"status": 6,
|
||||
"createdBy": null,
|
||||
"createdOn": null,
|
||||
"updatedBy": null,
|
||||
"updatedOn": null
|
||||
},
|
||||
{
|
||||
"operations": [
|
||||
{
|
||||
"id": 133,
|
||||
"siteId": 1,
|
||||
"moduleId": 6,
|
||||
"componentId": 27,
|
||||
"title": "Thêm người dùng mới",
|
||||
"code": "create",
|
||||
"route": "HRM/USER/CREATE",
|
||||
"description": "Quyền tạo người dùng ",
|
||||
"feature": "Navigation",
|
||||
"order": null,
|
||||
"status": 6,
|
||||
"createdBy": 1,
|
||||
"createdOn": "2023-12-13T10:48:47.667016",
|
||||
"updatedBy": null,
|
||||
"updatedOn": null
|
||||
},
|
||||
{
|
||||
"id": 134,
|
||||
"siteId": 1,
|
||||
"moduleId": 6,
|
||||
"componentId": 27,
|
||||
"title": "Sửa người dùng ",
|
||||
"code": "update",
|
||||
"route": "HRM/USER/UPDATE",
|
||||
"description": "Quyền sửa người dùng ",
|
||||
"feature": "",
|
||||
"order": null,
|
||||
"status": 6,
|
||||
"createdBy": 1,
|
||||
"createdOn": "2023-12-13T10:48:47.667016",
|
||||
"updatedBy": null,
|
||||
"updatedOn": null
|
||||
},
|
||||
{
|
||||
"id": 135,
|
||||
"siteId": 1,
|
||||
"moduleId": 6,
|
||||
"componentId": 27,
|
||||
"title": "Xóa người dùng",
|
||||
"code": "delete",
|
||||
"route": "HRM/USER/DELETE",
|
||||
"description": "Quyền xóa người dùng ",
|
||||
"feature": "",
|
||||
"order": null,
|
||||
"status": 6,
|
||||
"createdBy": 1,
|
||||
"createdOn": "2023-12-13T10:48:47.667016",
|
||||
"updatedBy": null,
|
||||
"updatedOn": null
|
||||
},
|
||||
{
|
||||
"id": 136,
|
||||
"siteId": 1,
|
||||
"moduleId": 6,
|
||||
"componentId": 27,
|
||||
"title": "Danh sách người dùng",
|
||||
"code": "manage",
|
||||
"route": "HRM/USER/MANAGE",
|
||||
"description": "Quyền hiển thị danh sách người dùng",
|
||||
"feature": "Navigation",
|
||||
"order": null,
|
||||
"status": 6,
|
||||
"createdBy": 1,
|
||||
"createdOn": "2023-12-13T10:48:47.667016",
|
||||
"updatedBy": null,
|
||||
"updatedOn": null
|
||||
}
|
||||
],
|
||||
"id": 27,
|
||||
"siteId": 1,
|
||||
"moduleId": 6,
|
||||
"title": "User",
|
||||
"code": "USER",
|
||||
"route": "hrm/user",
|
||||
"icon": "ri-article-line",
|
||||
"description": "Quản lý người dùng",
|
||||
"order": 21,
|
||||
"status": 6,
|
||||
"createdBy": null,
|
||||
"createdOn": null,
|
||||
"updatedBy": null,
|
||||
"updatedOn": null
|
||||
}
|
||||
],
|
||||
"id": 6,
|
||||
"siteId": 1,
|
||||
"parentId": null,
|
||||
"title": "Quản lý tổ chức",
|
||||
"code": "HRM",
|
||||
"route": null,
|
||||
"icon": "ri-line-chart-fill",
|
||||
"description": "Quản lý tổ chức",
|
||||
"order": 3,
|
||||
"status": 6,
|
||||
"createdBy": null,
|
||||
"createdOn": null,
|
||||
"updatedBy": null,
|
||||
"updatedOn": null
|
||||
},
|
||||
|
||||
]
|
||||
@@ -0,0 +1,13 @@
|
||||
export const baseStatus = [
|
||||
// { 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: "Locked", value: 9, key: "9" }, // đã khóa
|
||||
{ title: "Deleted", value: -1, key: "-1" }, // đã xóa
|
||||
];
|
||||
@@ -0,0 +1,8 @@
|
||||
export const taskTaxonomy = [
|
||||
{ title: "Soạn thảo", value: "Soạn thảo", value_number: "1" },
|
||||
{ title: "Biên tập", value: "Biên tập", value_number: "2" },
|
||||
{ title: "Xem xét", value: "Xem xét", value_number: "3" },
|
||||
{ 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" },
|
||||
];
|
||||
@@ -0,0 +1,5 @@
|
||||
export const booleanOptions = [
|
||||
{ title: 'True', value: true },
|
||||
{ title: 'False', value: false },
|
||||
];
|
||||
|
||||
@@ -0,0 +1,9 @@
|
||||
export const breakpoint = {
|
||||
xxs: 0,
|
||||
xs: 375,
|
||||
sm: 576,
|
||||
md: 768,
|
||||
lg: 992,
|
||||
xl: 1200,
|
||||
xxl: 1400
|
||||
}
|
||||
@@ -0,0 +1,48 @@
|
||||
export const categoryLayouts = [
|
||||
{
|
||||
title: 'Bố cục 1',
|
||||
id: 1,
|
||||
thumb: 'https://i.imgur.com/SJMRAv0.jpg'
|
||||
},
|
||||
{
|
||||
title: 'Bố cục 2',
|
||||
id: 2,
|
||||
thumb: 'https://i.imgur.com/QYOe6Wb.jpg'
|
||||
},
|
||||
{
|
||||
title: 'Bố cục 3',
|
||||
id: 3,
|
||||
thumb: 'https://i.imgur.com/IBcBPSA.jpg'
|
||||
},
|
||||
{
|
||||
title: 'Bố cục 4',
|
||||
id: 4,
|
||||
thumb: 'https://i.imgur.com/P2Wu4Vu.jpg'
|
||||
},
|
||||
{
|
||||
title: 'Bố cục 5',
|
||||
id: 5,
|
||||
thumb: 'https://i.imgur.com/2n2LzRZ.jpg'
|
||||
},
|
||||
{
|
||||
title: 'Bố cục 6',
|
||||
id: 6,
|
||||
thumb: ' '
|
||||
},
|
||||
{
|
||||
title: 'Bố cục 7',
|
||||
id: 7,
|
||||
thumb: 'https://i.imgur.com/mRIHVdy.jpg'
|
||||
},
|
||||
{
|
||||
title: 'Bố cục 8',
|
||||
id: 8,
|
||||
thumb: 'https://i.imgur.com/4k0YxaV.jpg'
|
||||
},
|
||||
{
|
||||
title: 'Bố cục 9',
|
||||
id: 9,
|
||||
thumb: 'https://i.imgur.com/GCdGyeb.jpg'
|
||||
},
|
||||
|
||||
]
|
||||
@@ -0,0 +1,4 @@
|
||||
export const advertisementType = [
|
||||
{ title: "None", value: "None" },
|
||||
{ title: "NoEffect", value: "NoEffect" },
|
||||
];
|
||||
@@ -0,0 +1,146 @@
|
||||
export const articleType = [
|
||||
{ title: "None", value: 0 },
|
||||
{ title: "Editorial", value: 1 }, // Tự luận - xã luận
|
||||
{ title: "General", value: 2 }, // Tổng hợp
|
||||
{ title: "Reportage", value: 3 }, // Phóng sự
|
||||
{ title: "Interview", value: 4 }, // Phỏng vấn
|
||||
{ title: "Survey", value: 5 }, // Khảo sát
|
||||
{ title: "Tutorial", value: 6 }, // Hướng dẫn
|
||||
{ title: "Podcast", value: 7 }, // Tin tiếng
|
||||
{ title: "Broadcast", value: 8 }, // Trực tuyến
|
||||
{ title: "Talkshow", value: 9 }, // Tọa đàm
|
||||
{ title: "Livestream", value: 10 }, // Phát trực tiếp
|
||||
{ title: "Translation", value: 11 }, // Dịch thuật
|
||||
{ title: "Promotion", value: 12 }, // Quảng bá
|
||||
];
|
||||
|
||||
export const articleLayout = [
|
||||
{ title: "None", value: 0 },
|
||||
{ title: "Normal", value: 1 }, // Thông thường
|
||||
{ title: "Short", value: 2 }, // Ngắn
|
||||
{ title: "Long", value: 3 }, // Dài
|
||||
{ title: "Page", value: 4 }, // Trang
|
||||
];
|
||||
|
||||
export const articleContentType = [
|
||||
{ title: "None", value: 0 },
|
||||
{ title: "General", value: 1 }, //Tổng hợp
|
||||
{ title: "Photo", value: 2 }, // Ảnh
|
||||
{ title: "Audio", value: 3 }, // Âm thanh
|
||||
{ title: "Video", value: 4 }, // Video
|
||||
{ title: "Graphic", value: 5 }, // Đồ họa
|
||||
{ title: "Document", value: 6 }, // Văn bản
|
||||
{ title: "Interaction", value: 7 }, // Tương tác (Poll, Quiz)
|
||||
];
|
||||
|
||||
export const articleComponentType = [
|
||||
{ title: "None", value: 0 },
|
||||
{ title: "Sub", value: 1 }, //Tiền tố
|
||||
{ title: "Title", value: 2 }, // Tiêu đề
|
||||
{ title: "Intro", value: 3 }, // Giới thiệu
|
||||
{ title: "Brief", value: 4 }, // Tóm tắt nội dung
|
||||
{ title: "Detail", value: 5 }, // Nội dung chi tiết
|
||||
{ title: "Sumary", value: 6 }, // Tóm tắt bài viết
|
||||
{ title: "Represent", value: 7 }, // Nội dung đại diện
|
||||
];
|
||||
|
||||
export const articleStateType = [
|
||||
{ title: "None", value: 0 },
|
||||
{ title: "Drafting", value: 5 }, // Soạn thảo
|
||||
{ title: "Polishing", value: 10 }, // Hoàn thiện
|
||||
{ title: "Reviewing", value: 15 }, // Xem xét
|
||||
{ title: "Approving", value: 20 }, // Duyệt bài
|
||||
{ title: "Publishing", value: 25 }, // Xuất bản
|
||||
{ title: "UnPublishing", value: 30 }, // Hủy xuất bản
|
||||
];
|
||||
|
||||
export const articlePublishType = [
|
||||
// { 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: "All", value: 99 },
|
||||
];
|
||||
|
||||
export const articleInteractionType = [
|
||||
{ title: "View", value: "View" }, // Xem
|
||||
{ title: "Like", value: "Like" }, // Thích
|
||||
{ title: "Rate", value: "Rate" }, // Đánh giá
|
||||
{ title: "Share", value: "Share" }, // Chia sẻ
|
||||
{ title: "Report", value: "Report" }, // Báo cáo
|
||||
{ title: "Comment", value: "Comment" }, // Bình luận
|
||||
{ title: "Download", value: "Download" }, // Tải về
|
||||
{ title: "Follow", value: "Follow" }, // Theo dõi
|
||||
{ title: "Bookmark", value: "Bookmark" }, // Đánh dấu
|
||||
{ title: "Subscribe", value: "Subscribe" }, // Đăng ký theo dõi
|
||||
{ title: "PollSubmit", value: "PollSubmit" }, // Thực hiện bình chọn
|
||||
{ title: "QuizSubmit", value: "QuizSubmit" }, // Thực hiện trắc ngiệm
|
||||
{ title: "SurveySubmit", value: "SurveySubmit" }, // Thực hiện khảo sát
|
||||
];
|
||||
|
||||
export const articleCommentType = [
|
||||
{ title: "None", value: 0 },
|
||||
{ title: "Comment", value: 1 }, // Bình luận
|
||||
{ title: "ReplyComment", value: 2 }, // Phản hồi
|
||||
];
|
||||
|
||||
export const interactionType = [
|
||||
{ title: "View", value: "View" }, // Xem
|
||||
{ title: "Like", value: "Like" }, // Thích
|
||||
{ title: "Rate", value: "Rate" }, // Đánh giá
|
||||
{ title: "Share", value: "Share" }, // Chia sẻ
|
||||
{ title: "Report", value: "Report" }, // Báo cáo
|
||||
{ title: "Comment", value: "Comment" }, // Bình luận
|
||||
{ title: "Download", value: "Download" }, // Tải về
|
||||
{ title: "Follow", value: "Follow" }, // Theo dõi
|
||||
{ title: "Bookmark", value: "Bookmark" }, // Đánh dấu
|
||||
{ title: "Subscribe", value: "Subscribe" }, // Đăng ký theo dõi
|
||||
{ title: "PollSubmit", value: "PollSubmit" }, // Thực hiện bình chọn
|
||||
{ title: "QuizSubmit", value: "QuizSubmit" }, // Thực hiện trắc ngiệm
|
||||
{ title: "SurveySubmit", value: "SurveySubmit" }, // Thực hiện khảo sát
|
||||
];
|
||||
|
||||
export const articleRelationType = [
|
||||
{ title: "None", value: 0 },
|
||||
{ title: "SameContent", value: 1 },
|
||||
{ title: "SameTag", value: 2 },
|
||||
{ title: "SameFigure", value: 3 },
|
||||
{ title: "SameLocation", value: 4 },
|
||||
{ title: "SameAuthor", value: 5 },
|
||||
{ title: "SameCategory", value: 6 },
|
||||
{ title: "SameTopic", value: 7 },
|
||||
{ title: "SameEvent", value: 8 },
|
||||
{ title: "SameCollection", value: 9 },
|
||||
];
|
||||
|
||||
export const articleReportType = [
|
||||
{ title: "None", value: 0 },
|
||||
{ title: "Author", value: 1 }, // Tác giả
|
||||
{ title: "Content", value: 2 }, // Nội dung
|
||||
{ title: "Copyright", value: 3 }, // Bản quyền
|
||||
{ title: "Other", value: 99 }, // Khác
|
||||
];
|
||||
|
||||
export const articleSourceType = [
|
||||
{ title: "None", value: 0 },
|
||||
{ title: "Synthesize", value: 1 }, // Tổng hợp
|
||||
{ title: "GenerativeAI", value: 2 }, // Trí tuệ nhân tạo
|
||||
{ title: "SearchEngine", value: 3 }, // Máy tìm kiếm
|
||||
{ title: "SocialNetwork", value: 4 }, // Mạng xã hội
|
||||
{ title: "Other", value: 99 }, // Khác
|
||||
];
|
||||
|
||||
export const digitalArticleCommentType = [
|
||||
{ title: "None", value: 0 },
|
||||
{ title: "Comment", value: 1 }, // Bình luận
|
||||
{ title: "ReplyComment", value: 2 }, // Phản hồi
|
||||
];
|
||||
|
||||
export const sharingSiteType = [
|
||||
// { title: "None", value: 0 },
|
||||
{ title: "Facebook", value: 1 },
|
||||
{ title: "Tiwtter", value: 2 },
|
||||
{ title: "Youtube", value: 6 },
|
||||
// { title: "Tiktok", value: 7 },
|
||||
];
|
||||
@@ -0,0 +1 @@
|
||||
export const attachmentType = [{ title: "None", value: 0 }];
|
||||
@@ -0,0 +1 @@
|
||||
export const audioType = [{ title: "None", value: 0 }];
|
||||
@@ -0,0 +1,5 @@
|
||||
export const authorType = [
|
||||
{ title: "None", value: 0 },
|
||||
{ title: "Reporter", value: 1 }, // Phóng viên
|
||||
{ title: "Other", value: 99 }, // Khác
|
||||
];
|
||||
@@ -0,0 +1,20 @@
|
||||
export const categoryType = [
|
||||
{ title: "None", value: 0 }, // Không xác định
|
||||
{ title: "Normal", value: 1 }, // Thông thường
|
||||
{ title: "Section", value: 2 }, // Chuyên trang
|
||||
{ title: "Other", value: 99 }, // Khác
|
||||
|
||||
// { title: "None", value: 0 }, // Không xác định
|
||||
// { title: "Home", value: 1 }, // Thông thường
|
||||
// { title: "Subsite", value: 2 }, // Chuyên trang
|
||||
// { title: "Normal", value: 3 }, // Thông thường
|
||||
// { title: "Other", value: 99 }, // Khác
|
||||
];
|
||||
|
||||
export const categoryPublishType = [
|
||||
{ title: "None", value: 0 }, // Chưa xác định
|
||||
{ title: "Digital", value: 1 }, // Xuất bản số
|
||||
{ title: "Printing", value: 2 }, // Xuất bản in ấn
|
||||
{ title: "Sharing", value: 3 }, // Xuất bản chia sẻ
|
||||
{ title: "Other", value: 99 }, // Khác
|
||||
];
|
||||
@@ -0,0 +1,15 @@
|
||||
export const collectionType = [
|
||||
{ title: "None", value: 0 },
|
||||
{ title: "Normal", value: 1 }, // Thông thường
|
||||
{ title: "Section", value: 2 }, // Chuyên trang
|
||||
{ title: "Other", value: 99 }, // Khác
|
||||
];
|
||||
|
||||
export const collectionPublishType = [
|
||||
{ title: "None", value: 0 }, // Chưa xác định
|
||||
{ title: "Digital", value: 1 }, // Xuất bản số
|
||||
{ title: "Printing", value: 2 }, // Xuất bản in ấn
|
||||
{ title: "Sharing", value: 3 }, // Xuất bản chia sẻ
|
||||
{ title: "Other", value: 99 }, // Khác
|
||||
];
|
||||
|
||||
@@ -0,0 +1,8 @@
|
||||
export const criteriasType = [
|
||||
{ title: 'None', value: 0 },
|
||||
{ title: 'Category', value: 1 },
|
||||
{ title: 'Topic', value: 2 },
|
||||
{ title: 'Event', value: 3 },
|
||||
{ title: 'Article', value: 4 },
|
||||
{ title: 'Author', value: 5 },
|
||||
];
|
||||
@@ -0,0 +1 @@
|
||||
export const documentType = [{ title: "None", value: 0 }];
|
||||
@@ -0,0 +1,14 @@
|
||||
export const eventType = [
|
||||
{ title: "None", value: 0 }, // Chưa xác định
|
||||
{ title: "Normal", value: 1 }, // Thông thường
|
||||
{ title: "Section", value: 2 }, // Chuyên trang
|
||||
{ title: "Other", value: 99 }, // Khác
|
||||
];
|
||||
|
||||
export const eventPublishType = [
|
||||
{ title: "None", value: 0 }, // Chưa xác định
|
||||
{ title: "Digital", value: 1 }, // Xuất bản số
|
||||
{ title: "Printing", value: 2 }, // Xuất bản in ấn
|
||||
{ title: "Sharing", value: 3 }, // Xuất bản chia sẻ
|
||||
{ title: "Other", value: 99 }, // Khác
|
||||
];
|
||||
@@ -0,0 +1,17 @@
|
||||
export const exceptionMessages = [
|
||||
{ title: 'Unhandled exception', value: 'UnhandledException' },
|
||||
{ title: 'Invalid argument {0}', value: 'InvalidArgument' },
|
||||
{ title: 'Unable to {0}', value: 'UnableTo' },
|
||||
{ title: '{0} is unavailable', value: 'Unavailable' },
|
||||
{ title: '{0} is unauthorized', value: 'Unauthorized' },
|
||||
{ title: '{0} is unauthenticated', value: 'Unauthenticated' },
|
||||
{ title: '{0} does not exist', value: 'NotExist' },
|
||||
{ title: '{0} is not valid', value: 'NotValid' },
|
||||
{ title: '{0} is not ready', value: 'NotReady' },
|
||||
{ title: '{0} is not allowed', value: 'NotAllowed' },
|
||||
{ title: '{0} is not activated', value: 'NotActivated' },
|
||||
{ title: '{0} has expired', value: 'HasExpired' },
|
||||
{ title: '{0} has been deleted', value: 'HasDeleted' },
|
||||
{ title: '{0} failed', value: 'Failed' },
|
||||
];
|
||||
|
||||
@@ -0,0 +1,8 @@
|
||||
export const figureType = [
|
||||
{ title: "None", value: 0 },
|
||||
{ title: "Genius", value: 1 }, // Vĩ nhân
|
||||
{ title: "Celebrity", value: 2 }, // Người nổi tiếng
|
||||
{ title: "Politician", value: 3 }, // Chính trị gia
|
||||
{ title: "Businessman", value: 4 }, // Doanh nhân
|
||||
{ title: "Other", value: 99 }, // Khác
|
||||
];
|
||||
@@ -0,0 +1,7 @@
|
||||
export const imageType = [{ title: "None", value: 0 }];
|
||||
|
||||
export const imageEffectType = [
|
||||
{ title: "None", value: null }, // Không hiệu ứng
|
||||
{ title: "NoEffect", value: "NoEffect" }, // Không hiệu ứng
|
||||
{ title: "SwitchBar", value: "SwitchBar" }, // Thanh chuyển đổi | https://vnexpress.net/gaza-tan-hoang-duoi-don-khong-kich-cua-israel-4669473.html"
|
||||
];
|
||||
@@ -0,0 +1,62 @@
|
||||
export { advertisementType } from "./advertisement.type";
|
||||
export {
|
||||
articleType,
|
||||
articleLayout,
|
||||
articleContentType,
|
||||
articleComponentType,
|
||||
articleStateType,
|
||||
articlePublishType,
|
||||
articleInteractionType,
|
||||
articleCommentType,
|
||||
interactionType,
|
||||
articleRelationType,
|
||||
articleReportType,
|
||||
articleSourceType,
|
||||
digitalArticleCommentType,
|
||||
sharingSiteType,
|
||||
} from "./article.type";
|
||||
|
||||
export { attachmentType } from "./attachment.type";
|
||||
export { audioType } from "./audio.type";
|
||||
export { authorType } from "./author.type";
|
||||
export { categoryType, categoryPublishType } from "./category.type";
|
||||
export { collectionType, collectionPublishType } from "./collection.type";
|
||||
export { documentType } from "./document.type";
|
||||
export { eventType, eventPublishType } from "./event.type";
|
||||
export { figureType } from "./figure.type";
|
||||
export { imageType, imageEffectType } from "./image.type";
|
||||
export { keywordType } from "./keyword.type";
|
||||
export { linkType } from "./link.type";
|
||||
export { locationType } from "./location.type";
|
||||
export { multimediaType, multimediaEffectType } from "./multimedia.type";
|
||||
export { navigationType } from "./navigation.type";
|
||||
export {
|
||||
pageTypes,
|
||||
pageComponentTypes,
|
||||
pageSectionTypes,
|
||||
pageTaxonomy,
|
||||
pageSectionTaxonomy,
|
||||
pageDataQuery,
|
||||
pageDataType,
|
||||
pageComponentTaxonomy,
|
||||
pageLayouts,
|
||||
pageTemplates,
|
||||
pageSectionLayouts,
|
||||
pageComponentLayouts,
|
||||
pageComponentTemplates,
|
||||
} from "./page.type";
|
||||
export { placementType } from "./placement.type";
|
||||
export { pollType, pollParticipantType, pollOptionType, pollResultPublication } from "./poll.type";
|
||||
export { printinEditionType, printingPageType, printingPublicationType } from "./printing.type";
|
||||
export { qualificationType } from "./qualification.type";
|
||||
export { quizType, quizAnswerType, quizQuestionType, quizResponseType, quizParticipantType, quizResultPublication } from "./quiz.type";
|
||||
export { quotationType } from "./quotation.type";
|
||||
export { readerType } from "./reader.type";
|
||||
export { redirectionType } from "./redirection.type";
|
||||
export { sectionType } from "./section.type";
|
||||
export { surveyType, surveyParticipantType, surveyResultPublication, surveyAnswerType, surveyQuestionType, surveyResponseType } from "./survey.type";
|
||||
export { tagType } from "./tag.type";
|
||||
export { templateType } from "./template.type";
|
||||
export { criteriasType } from "./criteria.type";
|
||||
export { topicType, topicPublishType } from "./topic.type";
|
||||
export { scoreCategoryType } from "./score-category.type";
|
||||
@@ -0,0 +1,4 @@
|
||||
export const keywordType = [
|
||||
{title: "None", value: 0 }// Chưa xác định
|
||||
];
|
||||
|
||||
@@ -0,0 +1,5 @@
|
||||
export const linkType = [
|
||||
{ title: "None", value: 0 },
|
||||
{ title: "Internal", value: 1 }, // Bên trong
|
||||
{ title: "External", value: 2 }, // Bên ngoài
|
||||
];
|
||||
@@ -0,0 +1 @@
|
||||
export const locationType = [{ title: "None", value: 0 }];
|
||||
@@ -0,0 +1,5 @@
|
||||
export const multimediaType = [{ title: "None", value: 0 }];
|
||||
export const multimediaEffectType = [
|
||||
{ title: "None", value: null }, // Không hiệu ứng
|
||||
{ title: "NoEffect", value: "NoEffect" }, // Không hiệu ứng
|
||||
];
|
||||
@@ -0,0 +1,5 @@
|
||||
export const navigationType = [
|
||||
{ title: "None", value: 0 },
|
||||
{ title: "Primary", value: 1 },
|
||||
{ title: "Secondary", value: 2 },
|
||||
];
|
||||
@@ -0,0 +1,174 @@
|
||||
import { enumPageComponentTemplates, enumPageComponentLayouts, enumPageSectionLayouts, templates } 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 === "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" },
|
||||
];
|
||||
} else {
|
||||
return [
|
||||
{ title: "None", value: 0 }, // Không xác định
|
||||
{ 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 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ẻ
|
||||
{ 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 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" },
|
||||
{ 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 pageComponentTaxonomy = [
|
||||
{ title: "Block", value: 0 },
|
||||
{ title: "Module", value: 1 },
|
||||
{ title: "Navigation", value: 2 },
|
||||
];
|
||||
|
||||
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'] }
|
||||
];
|
||||
|
||||
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'] },
|
||||
],
|
||||
[`${enumPageComponentTemplates.CATEGORY}`]: [
|
||||
{ title: "Danh mục", value: enumPageComponentLayouts[enumPageComponentTemplates.CATEGORY]['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'] },
|
||||
]
|
||||
};
|
||||
@@ -0,0 +1,3 @@
|
||||
export const placementType = [
|
||||
{ title: "None", value: 0 }, // Không xác định
|
||||
];
|
||||
@@ -0,0 +1,19 @@
|
||||
export const pollType = [
|
||||
{ title: "None", value: 0 },
|
||||
{ title: "SingleSelection", value: 1 }, // Đơn lựa chọn
|
||||
{ title: "MultipleSelections", value: 2 }, // Nhiều lựa chọn
|
||||
];
|
||||
export const pollParticipantType = [
|
||||
{ title: "None", value: 0 },
|
||||
{ title: "Guest", value: 1 }, // Khách
|
||||
{ title: "Logged", value: 2 }, // Xác thực
|
||||
{ title: "All", value: 3 }, // Tất cả
|
||||
];
|
||||
export const pollOptionType = [{ title: "None", value: 0 }];
|
||||
|
||||
export const pollResultPublication = [
|
||||
{ title: 'Not Public', value: 0 }, // Không công khai
|
||||
{ title: 'Always Public', value: 1 }, // Luôn luôn công khai
|
||||
{ title: 'After Answered All', value: 2 }, // Sau khi kiểm tra
|
||||
{ title: 'At The End', value: 3 }, // Sau khi kiểm tra kết thúc
|
||||
];
|
||||
@@ -0,0 +1,8 @@
|
||||
export const printinEditionType = [{ title: "None", value: 0 }];
|
||||
export const printingPageType = [
|
||||
{ title: "None", value: 0 },
|
||||
{ title: "CoverPage", value: 1 }, // Trang bìa
|
||||
{ title: "MiddlePage", value: 2 }, // Trang giữa
|
||||
{ title: "LastPage", value: 3 }, // Trang cuối
|
||||
];
|
||||
export const printingPublicationType = [{ title: "None", value: 0 }];
|
||||
@@ -0,0 +1,9 @@
|
||||
export const qualificationType = [
|
||||
{ title: 'None', value: 0 },
|
||||
{ title: 'Quality', value: 1 },
|
||||
{ title: 'Interaction', value: 2 },
|
||||
{ title: 'Contribution', value: 3 },
|
||||
{ title: 'Professional', value: 4 },
|
||||
{ title: 'Adjustment', value: 5 },
|
||||
{ title: 'Bonus', value: 6 },
|
||||
];
|
||||
@@ -0,0 +1,40 @@
|
||||
export const quizType = [{ title: "None", value: 0 }];
|
||||
|
||||
export const pollType = [
|
||||
{ title: "None", value: 0 },
|
||||
{ title: "Guest", value: 1 }, // Khách
|
||||
{ title: "Logged", value: 2 }, // Xác thực
|
||||
{ title: "All", value: 3 }, // Tất cả
|
||||
];
|
||||
|
||||
export const quizAnswerType = [
|
||||
{ title: "None", value: 0 },
|
||||
{ title: "Tick", value: 1 }, //chọn đáp án
|
||||
{ title: "Input", value: 2 }, // nhập đáp án
|
||||
];
|
||||
|
||||
export const quizQuestionType = [
|
||||
{ title: "None", value: 0 }, // Không xác định
|
||||
{ title: "Single Selection", value: 1 }, // Đơn lựa chọn
|
||||
{ title: "Multiple Selections", value: 2 }, // Nhiều lựa chọn
|
||||
];
|
||||
|
||||
export const quizResponseType = [
|
||||
{ title: "None", value: 0 },
|
||||
{ title: "Tick", value: 1 }, //chọn đáp án
|
||||
{ title: "Input", value: 2 }, // nhập đáp án
|
||||
];
|
||||
|
||||
export const quizParticipantType = [
|
||||
|
||||
{ title: 'Guest', value: 1 }, // Khách
|
||||
{ title: 'Logged', value: 2 }, // Xác thực
|
||||
{ title: 'All', value: 3 }, // Tất cả
|
||||
];
|
||||
|
||||
export const quizResultPublication = [
|
||||
{ title: 'Not Public', value: 0 }, // Không công khai
|
||||
{ title: 'Always Public', value: 1 }, // Luôn luôn công khai
|
||||
{ title: 'After Answered All', value: 2 }, // Sau khi kiểm tra
|
||||
{ title: 'At The End', value: 3 }, // Sau khi kiểm tra kết thúc
|
||||
];
|
||||
@@ -0,0 +1 @@
|
||||
export const quotationType = [{ title: "None", value: 0 }];
|
||||
@@ -0,0 +1,6 @@
|
||||
export const readerType = [
|
||||
{ title: "None", value: 0 },
|
||||
{ title: "Guest", value: 1 }, // Khách
|
||||
{ title: "Logged", value: 2 }, // Xác thực
|
||||
{ title: "All", value: 3 }, // Tất cả
|
||||
];
|
||||
@@ -0,0 +1,7 @@
|
||||
export const redirectionType = [
|
||||
{ title: "None", value: 0 },
|
||||
{ title: "Blank", value: 1 },
|
||||
{ title: "Self", value: 2 },
|
||||
{ title: "Parent", value: 3 },
|
||||
{ title: "Top", value: 4 },
|
||||
];
|
||||
@@ -0,0 +1,10 @@
|
||||
export const scoreCategoryType = [
|
||||
{
|
||||
title: "Báo in",
|
||||
value: 1
|
||||
},
|
||||
{
|
||||
title: "Báo điện tử",
|
||||
value: 2
|
||||
}
|
||||
]
|
||||
@@ -0,0 +1 @@
|
||||
export const sectionType = [{ title: "None", value: 0 }];
|
||||
@@ -0,0 +1,31 @@
|
||||
export const surveyType = [{ title: "None", value: 0 }];
|
||||
export const surveyParticipantType = [
|
||||
{ title: "None", value: 0 },
|
||||
{ title: "Guest", value: 1 }, // Khách
|
||||
{ title: "Logged", value: 2 }, // Xác thực
|
||||
{ title: "All", value: 3 }, // Tất cả
|
||||
];
|
||||
export const surveyResultPublication = [
|
||||
{ title: "Not Public", value: 0 }, // Không công khai
|
||||
{ title: "Always Public", value: 1 }, // Luôn luôn công khai
|
||||
{ title: "After Answered All", value: 2 }, // Sau khi kiểm tra
|
||||
{ title: "At The End", value: 3 }, // Sau khi kiểm tra kết thúc
|
||||
];
|
||||
|
||||
export const surveyAnswerType = [
|
||||
{ title: "None", value: 0 },
|
||||
{ title: "Tick", value: 1 },
|
||||
{ title: "Input", value: 2 },
|
||||
];
|
||||
|
||||
export const surveyQuestionType = [
|
||||
{ title: "None", value: 0 },
|
||||
{ title: "Single Selection", value: 1 },
|
||||
{ title: "Multiple Selections", value: 2 },
|
||||
];
|
||||
|
||||
export const surveyResponseType = [
|
||||
{ title: "None", value: 0 },
|
||||
{ title: "Tick", value: 1 },
|
||||
{ title: "Input", value: 2 },
|
||||
];
|
||||
@@ -0,0 +1 @@
|
||||
export const tagType = [{ title: "None", value: 0 }];
|
||||
@@ -0,0 +1,6 @@
|
||||
export const templateType = [
|
||||
{ title: "None", value: 0 },
|
||||
{ title: "Post", value: 1 },
|
||||
{ title: "Page", value: 2 },
|
||||
{ title: "Other", value: 99 },
|
||||
];
|
||||
@@ -0,0 +1,14 @@
|
||||
export const topicType = [
|
||||
{ title: "None", value: 0 },
|
||||
{ title: "Normal", value: 1 },
|
||||
{ title: "Subsite", value: 2 },
|
||||
{ title: "Other", value: 99 },
|
||||
];
|
||||
|
||||
export const topicPublishType = [
|
||||
{ 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
|
||||
];
|
||||
@@ -0,0 +1,4 @@
|
||||
export const domainFeature = [ //Loại domain sếp chưa nghĩ ra
|
||||
{ id: 0, name: 'No' },
|
||||
{ id: 1, name: 'Yes' }
|
||||
];
|
||||
@@ -0,0 +1,4 @@
|
||||
export { status } from './status'
|
||||
export { domainFeature } from './domain-feature'
|
||||
export { typeOption } from './type-option'
|
||||
export { scopeOption } from './scope-option'
|
||||
@@ -0,0 +1,6 @@
|
||||
export const scopeOption = [
|
||||
{ id: 0, title: "Global" },
|
||||
{ id: 1, title: "Site" },
|
||||
{ id: 2, title: "Group" },
|
||||
{ id: 3, title: "User" },
|
||||
];
|
||||
@@ -0,0 +1,12 @@
|
||||
export const status = [
|
||||
{ title: "Processing", value: 1, key: "1" },
|
||||
{ title: "Cancelled", value: 2, key: "2" },
|
||||
{ title: "Completed", value: 3, key: "3" },
|
||||
{ title: "Approving", value: 4, key: "4" },
|
||||
{ title: "Approved", value: 5, key: "5" },
|
||||
{ title: "Activated", value: 6, key: "6" },
|
||||
{ title: "Deactivated", value: 7, key: "7" },
|
||||
{ title: "Suspended", value: 8, key: "8" },
|
||||
{ title: "Locked", value: 9, key: "9" },
|
||||
{ title: "Deleted", value: -1, key: "-1" },
|
||||
];
|
||||
@@ -0,0 +1,4 @@
|
||||
export const typeOption = [
|
||||
{ title: "Chính", value: 1 },
|
||||
{ title: "Phụ", value: 2 },
|
||||
];
|
||||
@@ -0,0 +1,7 @@
|
||||
export const dashboardRanges = [
|
||||
{ title: "Giờ", value: 1 },
|
||||
{ title: "Ngày", value: 2 },
|
||||
{ title: "Tuần", value: 3 },
|
||||
{ title: "Tháng", value: 4 },
|
||||
{ title: "Năm", value: 5 },
|
||||
];
|
||||
@@ -0,0 +1,6 @@
|
||||
export const dashboardOptions = [
|
||||
{ title: 'Global', value: 1 },
|
||||
{ title: 'Site', value: 2 },
|
||||
{ title: 'Group', value: 3 },
|
||||
{ title: 'User', value: 4 },
|
||||
];
|
||||
@@ -0,0 +1,4 @@
|
||||
export const digitaldOptions = [
|
||||
{ title: 'View', value: 1},
|
||||
{ title: 'Share', value: 0 },
|
||||
];
|
||||
@@ -0,0 +1,14 @@
|
||||
export enum actionCodes {
|
||||
MANAGE = "manage",
|
||||
ACCESS = "access",
|
||||
READ = "read",
|
||||
CREATE = "create",
|
||||
UPDATE = "update",
|
||||
DELETE = "delete",
|
||||
APPROVE = "approve",
|
||||
ACTIVATE = "activate",
|
||||
REACTIVATE = "reactivate",
|
||||
DEACTIVATE = "deactivate",
|
||||
SUSPEND = "suspend",
|
||||
LOCK = "lock",
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
export enum actionCommands {
|
||||
CHANGESTATE = "Changestate",
|
||||
CREATEVERSION = "Createversion",
|
||||
REPUBLISH = "Republish",
|
||||
UNPUBLISH = "Unpublish",
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
export enum categoryTypes {
|
||||
NONE = 0,
|
||||
HOME = 1,
|
||||
SUBSITE = 2,
|
||||
NORMAL = 3,
|
||||
OTHER = 99
|
||||
}
|
||||
|
||||
@@ -0,0 +1,19 @@
|
||||
import { moduleCodes } from "./module.enum";
|
||||
export enum componentCodes {
|
||||
CmsArticle = `${moduleCodes.Cms}/article`,
|
||||
CmsScoringCategory = `${moduleCodes.Cms}/scoring/category`,
|
||||
CmsScoringQualification = `${moduleCodes.Cms}/scoring/qualification`,
|
||||
CmsScoringQualificationQuota = `${moduleCodes.Cms}/scoring/qualification-quota`,
|
||||
CmsCategory = `${moduleCodes.Cms}/category`,
|
||||
CmsTopic = `${moduleCodes.Cms}/topic`,
|
||||
CmsEvent = `${moduleCodes.Cms}/event`,
|
||||
CmsPrintingPage = `${moduleCodes.Cms}/printing-page`,
|
||||
CmsPrintingEdition = `${moduleCodes.Cms}/printing-edition`,
|
||||
CmsPrintingPublication = `${moduleCodes.Cms}/printing-publication`,
|
||||
CmsTemplate = `${moduleCodes.Cms}/template`,
|
||||
CmsCollection = `${moduleCodes.Cms}/collection`,
|
||||
HrmUser = `${moduleCodes.Hrm}/user`,
|
||||
HrmRole = `${moduleCodes.Hrm}/role`,
|
||||
HrmGroup = `${moduleCodes.Hrm}/group`,
|
||||
MfmWorkflow = `${moduleCodes.Mfm}/workflow`,
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
export { PublishTypes as publishTypes } from "./publishTypes.enum";
|
||||
export { categoryTypes } from "./categoryTypes.enum";
|
||||
export { templates, layouts, dataTypes, dataQuery, sectionTypes, sectionTaxonomy, enumPageType, enumPageSectionLayouts, enumPageComponentLayouts, enumPageComponentTemplates } 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";
|
||||
@@ -0,0 +1,8 @@
|
||||
export enum moduleCodes {
|
||||
Cms = "cms",
|
||||
Com = "com",
|
||||
Crm = "crm",
|
||||
Fam = "fam",
|
||||
Hrm = "hrm",
|
||||
Mfm = "mfm",
|
||||
}
|
||||
@@ -0,0 +1,142 @@
|
||||
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 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
|
||||
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
|
||||
};
|
||||
|
||||
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",
|
||||
},
|
||||
[`${enumPageComponentTemplates.CATEGORY}`]: {
|
||||
NONE: "None",
|
||||
'DEFAULT': "DEFAULT"
|
||||
},
|
||||
[`${enumPageComponentTemplates.COLLECTION}`]: {
|
||||
'ARTICLE-VERTICAL-|HORIZONTAL|-MAX_5': 'TYPE:Article-LAYOUT:vertical-DATA:HORIZONTAL-MAX:5'
|
||||
}
|
||||
};
|
||||
@@ -0,0 +1,7 @@
|
||||
export enum PublishTypes {
|
||||
DIGITAL = 1,
|
||||
PRINTING = 2,
|
||||
SHARING = 3,
|
||||
DIGITAL_PRINTING = 12,
|
||||
ALL = 99,
|
||||
}
|
||||
@@ -0,0 +1,13 @@
|
||||
export const enumStatus = {
|
||||
ALL: null,
|
||||
PROCESSING: 1,
|
||||
CANCELLED: 2,
|
||||
COMPLETED: 3,
|
||||
APPROVING: 4,
|
||||
APPROVED: 5,
|
||||
ACTIVATED: 6,
|
||||
DEACTIVATED: 7,
|
||||
SUSPENDED: 8,
|
||||
LOCKED: 9,
|
||||
DELETED: -1,
|
||||
};
|
||||
@@ -0,0 +1,6 @@
|
||||
export const featureOptions = [
|
||||
{ title: 'Important', value: 'Important' },
|
||||
{ title: 'Feature', value: 'Feature' },
|
||||
{ title: 'Trending', value: 'Trending' },
|
||||
{ title: 'Navigation', value: 'Navigation' },
|
||||
];
|
||||
@@ -0,0 +1,18 @@
|
||||
export { BaseGender } from "./base-gender";
|
||||
export { baseStatus } from "./base-status";
|
||||
export { systemStatus } from "./system-status";
|
||||
export { breakpoint } from "./breakpoint";
|
||||
export { baseSideBarMenu } from "./base-sidebar";
|
||||
export { booleanOptions } from "./boolean-options";
|
||||
export { yesNoOptions } from "./yes-no-options";
|
||||
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';
|
||||
@@ -0,0 +1,4 @@
|
||||
export const languageOptions = [
|
||||
{ title: 'Tiếng Anh', value: 'en' },
|
||||
{ title: 'Tiếng Việt', value: 'vi' },
|
||||
];
|
||||
@@ -0,0 +1,15 @@
|
||||
export const actionCommands = [
|
||||
{ title: "Create", value: "Create", code: "Create" },
|
||||
{ title: "Update", value: "Update", code: "Update" },
|
||||
{ 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" },
|
||||
];
|
||||
@@ -0,0 +1,6 @@
|
||||
export const actorTypes = [
|
||||
{ title: 'Performer', value: 0 },
|
||||
{ title: 'Supervisor', value: 1 },
|
||||
{ title: 'Monitor', value: 2 },
|
||||
];
|
||||
|
||||
@@ -0,0 +1,9 @@
|
||||
/**phục vụ cho việc enable, disable các button cơ bản cho workflow
|
||||
* hiện tại chỉ thêm trong state
|
||||
* Nút delete hiện tại chỉ người nào tạo bài viết đó thì mới được hiển thị nút xóa ở trạng thái cho phép hiển thị nút xóa
|
||||
*/
|
||||
export const enableDisableButton = [
|
||||
{ title: 'Creatable',value: true},
|
||||
{ title: 'Updatable',value: true},
|
||||
{ title: 'Deletable' ,value: false},
|
||||
];
|
||||
@@ -0,0 +1,4 @@
|
||||
export { stateTaxonomy } from "./state-taxonomy";
|
||||
export { actorTypes } from "./actor-types";
|
||||
export { enableDisableButton } from "./enable-disable-button";
|
||||
export { actionCommands } from "./action-type";
|
||||
@@ -0,0 +1,26 @@
|
||||
export const stateTaxonomy = [
|
||||
{ title: "Chờ biên tập", value: "Chờ biên tập", value_number: "1" },
|
||||
{ title: "Chờ xem xét", value: "Chờ xem xét", value_number: "1" },
|
||||
{ title: "Chờ duyệt bài", value: "Chờ duyệt bài", value_number: "1" },
|
||||
{ title: "Chờ xuất bản", value: "Chờ xuất bản", value_number: "1" },
|
||||
{ title: "Đã yêu cầu hủy xuất bản", value: "Đã yêu cầu hủy xuất bản", value_number: "1" },
|
||||
{ title: "Đang chỉnh sửa", value: "Đang chỉnh sửa", value_number: "5" },
|
||||
{ title: "Đang biên tập", value: "Đang biên tập", value_number: "5" },
|
||||
{ title: "Đang xem xét", value: "Đang xem xét", value_number: "5" },
|
||||
{ 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: "Đã 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: "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" },
|
||||
{ title: "Bài bị hạ", value: "Bài bị hạ", value_number: "25" },
|
||||
{ title: "Chờ nhận dàn trang", value: "Chờ nhận dàn trang", value_number: "1" },
|
||||
{ title: "Đang dàn trang ", value: "Đang dàn trang ", value_number: "5" },
|
||||
{ title: "Đã dàn trang", value: "Đã dàn trang", value_number: "10" },
|
||||
];
|
||||
@@ -0,0 +1,7 @@
|
||||
export const priorityOptions = [
|
||||
{ title: 'Top', value: 0 },
|
||||
{ title: 'High', value: 1 },
|
||||
{ title: 'Medium', value: 2 },
|
||||
{ title: 'Low', value: 3 },
|
||||
];
|
||||
|
||||
@@ -0,0 +1,4 @@
|
||||
export const publishedByOptions = [
|
||||
{ name: "Phóng viên", value: 1 },
|
||||
{ name: "Biên tập", value: 2 },
|
||||
];
|
||||
@@ -0,0 +1,5 @@
|
||||
export const systemStatus = [
|
||||
|
||||
{ title: 'Deleted', value: -1 },
|
||||
];
|
||||
|
||||
@@ -0,0 +1,5 @@
|
||||
export const trendOptions = [
|
||||
{ title: 'Daily Trends', value: 'dailytrends' },
|
||||
{ title: 'Realtime Trends', value: 'realtimetrends' }
|
||||
];
|
||||
|
||||
@@ -0,0 +1,5 @@
|
||||
export const yesNoOptions = [
|
||||
{ title: 'Yes', value: true },
|
||||
{ title: 'No', value: false },
|
||||
];
|
||||
|
||||
Reference in New Issue
Block a user