awing-library 2.1.4-beta → 2.1.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (190) hide show
  1. package/README.md +14 -45
  2. package/lib/ACM-AXN/Campaign/Container.js +5 -6
  3. package/lib/ACM-AXN/Campaign/Container.test.js +1 -1
  4. package/lib/ACM-AXN/Campaign/CreateOrEdit/Recoils.d.ts +3 -1
  5. package/lib/ACM-AXN/Campaign/CreateOrEdit/Recoils.js +22 -21
  6. package/lib/ACM-AXN/Campaign/CreateOrEdit/TabInfomation.d.ts +1 -1
  7. package/lib/ACM-AXN/Campaign/CreateOrEdit/TabInfomation.js +79 -24
  8. package/lib/ACM-AXN/Campaign/CreateOrEdit/TabSubCampaign/AdDetail.test.js +1 -1
  9. package/lib/ACM-AXN/Campaign/CreateOrEdit/TabSubCampaign/AdList.js +50 -6
  10. package/lib/ACM-AXN/Campaign/CreateOrEdit/TabSubCampaign/AdRow.d.ts +5 -0
  11. package/lib/ACM-AXN/Campaign/CreateOrEdit/TabSubCampaign/AdRow.js +6 -18
  12. package/lib/ACM-AXN/Campaign/CreateOrEdit/TabSubCampaign/AddOrEditRule/AddOrEditRule.js +7 -12
  13. package/lib/ACM-AXN/Campaign/CreateOrEdit/TabSubCampaign/AddOrEditRule/RuleForm/RetargetMacAddress/container.d.ts +1 -0
  14. package/lib/ACM-AXN/Campaign/CreateOrEdit/TabSubCampaign/AddOrEditRule/RuleForm/RetargetMacAddress/container.js +4 -12
  15. package/lib/ACM-AXN/Campaign/CreateOrEdit/TabSubCampaign/Advanced.js +16 -1
  16. package/lib/ACM-AXN/Campaign/CreateOrEdit/TabSubCampaign/SubCampaignList.test.js +1 -1
  17. package/lib/ACM-AXN/Campaign/CreateOrEdit/index.js +19 -3
  18. package/lib/ACM-AXN/Campaign/Types.d.ts +10 -0
  19. package/lib/ACM-AXN/Campaign/Utils.d.ts +8 -0
  20. package/lib/ACM-AXN/Campaign/Utils.js +22 -18
  21. package/lib/ACM-AXN/Campaign/index.js +3 -2
  22. package/lib/ACM-AXN/CampaignSchedule/Components/ControlPanel/Filter.d.ts +2 -2
  23. package/lib/ACM-AXN/CampaignSchedule/Components/ControlPanel/Filter.js +44 -42
  24. package/lib/ACM-AXN/CampaignSchedule/Components/ControlPanel/GroupPanel.d.ts +1 -1
  25. package/lib/ACM-AXN/CampaignSchedule/Components/ControlPanel/GroupPanel.js +38 -30
  26. package/lib/ACM-AXN/CampaignSchedule/Components/ControlPanel/index.d.ts +2 -2
  27. package/lib/ACM-AXN/CampaignSchedule/Components/ControlPanel/index.js +2 -2
  28. package/lib/ACM-AXN/CampaignSchedule/Components/EnhancedPagination/index.d.ts +1 -1
  29. package/lib/ACM-AXN/CampaignSchedule/Components/EnhancedPagination/index.js +4 -2
  30. package/lib/ACM-AXN/CampaignSchedule/Components/RowAdvance/component.js +33 -3
  31. package/lib/ACM-AXN/CampaignSchedule/Components/RowAdvance/container.d.ts +1 -1
  32. package/lib/ACM-AXN/CampaignSchedule/Components/RowAdvance/container.js +80 -35
  33. package/lib/ACM-AXN/CampaignSchedule/Components/TableHeaderDragable.d.ts +1 -1
  34. package/lib/ACM-AXN/CampaignSchedule/Components/TableHeaderDragable.js +38 -20
  35. package/lib/ACM-AXN/CampaignSchedule/DataConfigAXN.d.ts +4 -0
  36. package/lib/ACM-AXN/CampaignSchedule/DataConfigAXN.js +58 -0
  37. package/lib/ACM-AXN/CampaignSchedule/Enum.d.ts +14 -2
  38. package/lib/ACM-AXN/CampaignSchedule/Enum.js +12 -0
  39. package/lib/ACM-AXN/CampaignSchedule/component.js +6 -5
  40. package/lib/ACM-AXN/CampaignSchedule/container.d.ts +1 -1
  41. package/lib/ACM-AXN/CampaignSchedule/container.js +100 -99
  42. package/lib/ACM-AXN/CampaignSchedule/interface.d.ts +16 -3
  43. package/lib/ACM-AXN/Directory/Constant.d.ts +2 -0
  44. package/lib/ACM-AXN/Directory/Constant.js +2 -0
  45. package/lib/ACM-AXN/Directory/MenuDirectory/MenuDirectory.test.d.ts +1 -0
  46. package/lib/ACM-AXN/Directory/MenuDirectory/MenuDirectory.test.js +90 -0
  47. package/lib/ACM-AXN/Directory/MenuDirectory/index.d.ts +1 -0
  48. package/lib/ACM-AXN/Directory/MenuDirectory/index.js +109 -0
  49. package/lib/ACM-AXN/Directory/SystemDirectory/index.js +6 -5
  50. package/lib/ACM-AXN/Directory/components/Permission/AddAuthen.d.ts +4 -0
  51. package/lib/ACM-AXN/Directory/components/Permission/AddAuthen.js +9 -7
  52. package/lib/ACM-AXN/Directory/components/Permission/CreateOrEditPermission.js +8 -6
  53. package/lib/ACM-AXN/Directory/components/Permission/Management.js +19 -14
  54. package/lib/ACM-AXN/Directory/components/Permission/MenuPermissions/MenuPermissionManagement.d.ts +1 -0
  55. package/lib/ACM-AXN/Directory/components/Permission/MenuPermissions/MenuPermissionManagement.js +185 -0
  56. package/lib/ACM-AXN/Directory/components/Permission/MenuPermissions/MenuPermissionManagement.test.d.ts +1 -0
  57. package/lib/ACM-AXN/Directory/components/Permission/MenuPermissions/MenuPermissionManagement.test.js +86 -0
  58. package/lib/ACM-AXN/Directory/function.d.ts +2 -0
  59. package/lib/ACM-AXN/Directory/function.js +39 -1
  60. package/lib/ACM-AXN/DomainPreview/PreviewButton.d.ts +15 -0
  61. package/lib/ACM-AXN/DomainPreview/PreviewButton.js +188 -0
  62. package/lib/ACM-AXN/DomainPreview/index.d.ts +7 -0
  63. package/lib/ACM-AXN/DomainPreview/index.js +10 -0
  64. package/lib/ACM-AXN/GroupUser/Constants.d.ts +7 -0
  65. package/lib/ACM-AXN/GroupUser/Constants.js +10 -0
  66. package/lib/ACM-AXN/GroupUser/Container.d.ts +2 -0
  67. package/lib/ACM-AXN/GroupUser/Container.js +55 -0
  68. package/lib/ACM-AXN/GroupUser/Container.test.d.ts +1 -0
  69. package/lib/ACM-AXN/GroupUser/Container.test.js +210 -0
  70. package/lib/ACM-AXN/GroupUser/CreateOrEdit.d.ts +3 -0
  71. package/lib/ACM-AXN/GroupUser/CreateOrEdit.js +84 -0
  72. package/lib/ACM-AXN/GroupUser/CreateOrEdit.test.d.ts +1 -0
  73. package/lib/ACM-AXN/GroupUser/CreateOrEdit.test.js +235 -0
  74. package/lib/ACM-AXN/GroupUser/Hooks.d.ts +5 -0
  75. package/lib/ACM-AXN/GroupUser/Hooks.js +13 -0
  76. package/lib/ACM-AXN/GroupUser/Types.d.ts +31 -0
  77. package/lib/ACM-AXN/GroupUser/Types.js +2 -0
  78. package/lib/ACM-AXN/GroupUser/User/SearchUser.d.ts +9 -0
  79. package/lib/ACM-AXN/GroupUser/User/SearchUser.js +63 -0
  80. package/lib/ACM-AXN/GroupUser/User/SearchUser.test.d.ts +1 -0
  81. package/lib/ACM-AXN/GroupUser/User/SearchUser.test.js +140 -0
  82. package/lib/ACM-AXN/GroupUser/User/UserComponent.d.ts +8 -0
  83. package/lib/ACM-AXN/GroupUser/User/UserComponent.js +77 -0
  84. package/lib/ACM-AXN/GroupUser/User/UserComponent.test.d.ts +1 -0
  85. package/lib/ACM-AXN/GroupUser/User/UserComponent.test.js +128 -0
  86. package/lib/ACM-AXN/GroupUser/index.d.ts +4 -0
  87. package/lib/ACM-AXN/GroupUser/index.js +27 -0
  88. package/lib/ACM-AXN/Notifications/Constant.d.ts +144 -0
  89. package/lib/ACM-AXN/Notifications/Constant.js +134 -0
  90. package/lib/ACM-AXN/Notifications/Context.d.ts +8 -0
  91. package/lib/ACM-AXN/Notifications/Context.js +10 -0
  92. package/lib/ACM-AXN/Notifications/Hooks.d.ts +7 -0
  93. package/lib/ACM-AXN/Notifications/Hooks.js +17 -0
  94. package/lib/ACM-AXN/Notifications/NotificationDetail/HeaderInfo/ButtonTabs.js +26 -20
  95. package/lib/ACM-AXN/Notifications/NotificationDetail/HeaderInfo/MenuNotification.d.ts +1 -1
  96. package/lib/ACM-AXN/Notifications/NotificationDetail/HeaderInfo/MenuNotification.js +30 -39
  97. package/lib/ACM-AXN/Notifications/NotificationDetail/HeaderInfo/index.d.ts +2 -5
  98. package/lib/ACM-AXN/Notifications/NotificationDetail/HeaderInfo/index.js +18 -15
  99. package/lib/ACM-AXN/Notifications/NotificationDetail/NotificationList/NotificationEmpty.d.ts +1 -1
  100. package/lib/ACM-AXN/Notifications/NotificationDetail/NotificationList/NotificationEmpty.js +15 -15
  101. package/lib/ACM-AXN/Notifications/NotificationDetail/NotificationList/NotificationEmpty.test.d.ts +0 -6
  102. package/lib/ACM-AXN/Notifications/NotificationDetail/NotificationList/NotificationEmpty.test.js +29 -28
  103. package/lib/ACM-AXN/Notifications/NotificationDetail/NotificationList/NotificationItem/Message.d.ts +10 -0
  104. package/lib/ACM-AXN/Notifications/NotificationDetail/NotificationList/NotificationItem/Message.js +380 -0
  105. package/lib/ACM-AXN/Notifications/NotificationDetail/NotificationList/NotificationItem/NotificationAvatar.d.ts +1 -1
  106. package/lib/ACM-AXN/Notifications/NotificationDetail/NotificationList/NotificationItem/NotificationAvatar.js +3 -3
  107. package/lib/ACM-AXN/Notifications/NotificationDetail/NotificationList/NotificationItem/NotificationAvatar.test.d.ts +0 -6
  108. package/lib/ACM-AXN/Notifications/NotificationDetail/NotificationList/NotificationItem/NotificationAvatar.test.js +38 -48
  109. package/lib/ACM-AXN/Notifications/NotificationDetail/NotificationList/NotificationItem/NotificationContent.d.ts +2 -2
  110. package/lib/ACM-AXN/Notifications/NotificationDetail/NotificationList/NotificationItem/NotificationContent.js +32 -32
  111. package/lib/ACM-AXN/Notifications/NotificationDetail/NotificationList/NotificationItem/NotificationContent.test.d.ts +0 -6
  112. package/lib/ACM-AXN/Notifications/NotificationDetail/NotificationList/NotificationItem/NotificationContent.test.js +65 -73
  113. package/lib/ACM-AXN/Notifications/NotificationDetail/NotificationList/NotificationItem/index.d.ts +4 -11
  114. package/lib/ACM-AXN/Notifications/NotificationDetail/NotificationList/NotificationItem/index.js +46 -36
  115. package/lib/ACM-AXN/Notifications/NotificationDetail/NotificationList/NotificationItem/index.test.d.ts +0 -6
  116. package/lib/ACM-AXN/Notifications/NotificationDetail/NotificationList/NotificationItem/index.test.js +56 -50
  117. package/lib/ACM-AXN/Notifications/NotificationDetail/NotificationList/NotificationLoading.js +30 -30
  118. package/lib/ACM-AXN/Notifications/NotificationDetail/NotificationList/index.d.ts +3 -15
  119. package/lib/ACM-AXN/Notifications/NotificationDetail/NotificationList/index.js +35 -4
  120. package/lib/ACM-AXN/Notifications/NotificationDetail/NotificationList/index.test.d.ts +0 -6
  121. package/lib/ACM-AXN/Notifications/NotificationDetail/NotificationList/index.test.js +88 -83
  122. package/lib/ACM-AXN/Notifications/NotificationDetail/index.d.ts +1 -1
  123. package/lib/ACM-AXN/Notifications/NotificationDetail/index.js +101 -100
  124. package/lib/ACM-AXN/Notifications/{NotificationPopover.d.ts → NotificationPopover/Container.d.ts} +2 -2
  125. package/lib/ACM-AXN/Notifications/NotificationPopover/Container.js +149 -0
  126. package/lib/ACM-AXN/Notifications/{NotificationPopover.test.d.ts → NotificationPopover/Container.test.d.ts} +1 -1
  127. package/lib/ACM-AXN/Notifications/{NotificationPopover.test.js → NotificationPopover/Container.test.js} +5 -5
  128. package/lib/ACM-AXN/Notifications/NotificationPopover/index.d.ts +8 -0
  129. package/lib/ACM-AXN/Notifications/NotificationPopover/index.js +13 -0
  130. package/lib/ACM-AXN/Notifications/NotificationScreen.d.ts +1 -1
  131. package/lib/ACM-AXN/Notifications/NotificationScreen.js +4 -4
  132. package/lib/ACM-AXN/Notifications/Types.d.ts +241 -0
  133. package/lib/ACM-AXN/Notifications/Types.js +290 -0
  134. package/lib/ACM-AXN/Notifications/index.d.ts +2 -2
  135. package/lib/ACM-AXN/Notifications/index.js +5 -5
  136. package/lib/ACM-AXN/Page/Container.js +99 -61
  137. package/lib/ACM-AXN/Page/CreateOrEdit/DrawerAction.js +22 -5
  138. package/lib/ACM-AXN/Page/CreateOrEdit/Recoil.d.ts +1 -0
  139. package/lib/ACM-AXN/Page/CreateOrEdit/Recoil.js +5 -1
  140. package/lib/ACM-AXN/Page/CreateOrEdit/Tabview/ViewContent.js +1 -1
  141. package/lib/ACM-AXN/Page/CreateOrEdit/Tabview/ViewInfo.js +10 -4
  142. package/lib/ACM-AXN/Page/CreateOrEdit/Utils.js +1 -1
  143. package/lib/ACM-AXN/Page/Types.d.ts +8 -0
  144. package/lib/ACM-AXN/Page/index.js +2 -1
  145. package/lib/ACM-AXN/Permission/Components/Management.test.js +1 -1
  146. package/lib/ACM-AXN/PlaceGroup/Context.d.ts +1 -1
  147. package/lib/ACM-AXN/Statistics/ControlPanel.js +142 -85
  148. package/lib/ACM-AXN/Statistics/Enums.d.ts +1 -0
  149. package/lib/ACM-AXN/Statistics/Enums.js +1 -0
  150. package/lib/ACM-AXN/Statistics/container.js +1 -1
  151. package/lib/ACM-AXN/StatisticsAudienceDemographic/container.d.ts +1 -1
  152. package/lib/ACM-AXN/StatisticsAudienceDemographic/container.js +2 -3
  153. package/lib/ACM-AXN/StatisticsAudienceDemographic/interfaces.d.ts +1 -0
  154. package/lib/ACM-AXN/User/Add.d.ts +2 -0
  155. package/lib/ACM-AXN/User/Add.js +64 -0
  156. package/lib/ACM-AXN/User/Add.test.d.ts +1 -0
  157. package/lib/ACM-AXN/User/Add.test.js +115 -0
  158. package/lib/ACM-AXN/User/Constants.d.ts +2 -0
  159. package/lib/ACM-AXN/User/Constants.js +5 -0
  160. package/lib/ACM-AXN/User/Container.d.ts +2 -0
  161. package/lib/ACM-AXN/User/Container.js +60 -0
  162. package/lib/ACM-AXN/User/Container.test.d.ts +1 -0
  163. package/lib/ACM-AXN/User/Container.test.js +202 -0
  164. package/lib/ACM-AXN/User/Hook.d.ts +5 -0
  165. package/lib/ACM-AXN/User/Hook.js +13 -0
  166. package/lib/ACM-AXN/User/Types.d.ts +45 -0
  167. package/lib/ACM-AXN/User/Types.js +2 -0
  168. package/lib/ACM-AXN/User/index.d.ts +4 -0
  169. package/lib/ACM-AXN/User/index.js +18 -0
  170. package/lib/ACM-AXN/ViewTemplate/TemplateField/Fields/BasicField/index.js +1 -1
  171. package/lib/AWING/AdvancedSearch/component.js +1 -1
  172. package/lib/AWING/AdvancedSearch/interface.d.ts +1 -0
  173. package/lib/AWING/ButtonDateRangePicker/ButtonDateRangePicker.js +2 -2
  174. package/lib/AWING/ButtonDateRangePicker/interface.d.ts +1 -0
  175. package/lib/AWING/DataForm/DataInput.js +17 -8
  176. package/lib/AWING/DataForm/interface.d.ts +6 -2
  177. package/lib/AWING/DataGrid/index.js +4 -1
  178. package/lib/AWING/DataGrid/interface.d.ts +6 -1
  179. package/lib/AWING/Directory/CreateDirectory.d.ts +3 -0
  180. package/lib/AWING/Directory/CreateDirectory.js +27 -10
  181. package/lib/AWING/ultis/validation.d.ts +1 -1
  182. package/lib/AWING/ultis/validation.js +3 -3
  183. package/lib/Commons/Components/ClassicBaseDrawer.d.ts +1 -0
  184. package/lib/Commons/Components/ClassicBaseDrawer.js +7 -3
  185. package/lib/translate/en/translation.json +69 -1
  186. package/lib/translate/vi/translation.json +69 -1
  187. package/package.json +4 -2
  188. package/lib/ACM-AXN/Notifications/NotificationDetail/Common.d.ts +0 -39
  189. package/lib/ACM-AXN/Notifications/NotificationDetail/Common.js +0 -304
  190. package/lib/ACM-AXN/Notifications/NotificationPopover.js +0 -69
@@ -89,14 +89,14 @@ exports.logicExpressionValid = logicExpressionValid;
89
89
  * @param str - The text string to be validated.
90
90
  * @param length - The maximum length of the text string. Default is 50.
91
91
  * @param required - validField required.
92
- * @param pattern - The regular expression pattern to match against the text string. Default is /^[a-zA-Z0-9\/\-_()\[\] ]+$/g.
92
+ * @param pattern - The regular expression pattern to match against the text string. Default is /^[a-zA-Z0-9\/\-_.()\[\] ]+$/g.
93
93
  * @param invertRegex - The inverted regular expression pattern to match against the text string. Default is undefined.
94
94
  * @returns An object containing the validation result and a message describing any validation errors.
95
95
  */
96
96
  var textValidation = function (str, length, required, pattern, invertRegex) {
97
97
  if (length === void 0) { length = 50; }
98
98
  if (required === void 0) { required = true; }
99
- if (pattern === void 0) { pattern = /^[a-zA-Z0-9\/\-_()\[\] ]+$/g; }
99
+ if (pattern === void 0) { pattern = /^[a-zA-Z0-9\/\-_.()\[\] ]+$/g; }
100
100
  var validRes = {
101
101
  valid: true,
102
102
  message: [],
@@ -113,7 +113,7 @@ var textValidation = function (str, length, required, pattern, invertRegex) {
113
113
  .replace(/[\u0300-\u036f]/g, '')
114
114
  .replace(/đ/g, 'd')
115
115
  .trim();
116
- var invertedRegex = invertRegex || new RegExp("[^".concat(pattern.source.replace(/[.*+?^${}|]/g, ''), "]").replace(/\[\[|\]\]/g, ']'), 'g');
116
+ var invertedRegex = invertRegex || new RegExp("[^".concat(pattern.source.replace(/[*+?^${}|]/g, ''), "]").replace(/\[\[|\]\]/g, ']'), 'g');
117
117
  if (textTransform && pattern && !pattern.test(textTransform)) {
118
118
  validRes.valid = false;
119
119
  validRes.message.push("".concat(i18n_1.default.t('Common.InvalidChars'), ": ").concat(Array.from(new Set(textTransform.match(invertedRegex))).join(' ')));
@@ -1,5 +1,6 @@
1
1
  import { SxProps, Theme } from '@mui/material';
2
2
  import { FC, ReactNode } from 'react';
3
+ import React from 'react';
3
4
  export interface DrawerBaseProps {
4
5
  title?: ReactNode;
5
6
  disableButtonSubmit?: boolean;
@@ -20,8 +20,10 @@ var Save_1 = __importDefault(require("@mui/icons-material/Save"));
20
20
  var LoadingButton_1 = __importDefault(require("@mui/lab/LoadingButton"));
21
21
  var material_1 = require("@mui/material");
22
22
  var react_i18next_1 = require("react-i18next");
23
- var Router_1 = require("../../AWING/Router");
24
23
  var i18n_1 = __importDefault(require("../../i18n"));
24
+ var react_1 = __importDefault(require("react"));
25
+ var usePath_1 = __importDefault(require("../../Commons/Hooks/usePath"));
26
+ var react_router_dom_1 = require("react-router-dom");
25
27
  /**
26
28
  * Drawer không trả về state
27
29
  * @param{DrawerBaseProps} props
@@ -30,8 +32,10 @@ var i18n_1 = __importDefault(require("../../i18n"));
30
32
  var DrawerBase = function (props) {
31
33
  var _a;
32
34
  var title = props.title, disableButtonSubmit = props.disableButtonSubmit, isLoadingButtonSubmit = props.isLoadingButtonSubmit, customAction = props.customAction, onSubmit = props.onSubmit, open = props.open, onClose = props.onClose, otherNodes = props.otherNodes, children = props.children, width = props.width, childrenWrapperStyle = props.childrenWrapperStyle;
33
- var location = (0, Router_1.useLocation)();
34
- var match = (0, Router_1.useMatch)({ path: location.pathname, end: true });
35
+ var path = (0, usePath_1.default)();
36
+ var matchObj = react_1.default.useMemo(function () { return (0, react_router_dom_1.matchPath)({ path: path, end: true }, window.location.pathname); }, []);
37
+ // const match = path.startsWith(matchObj!.pattern.path) || matchObj!.pattern.path === path;
38
+ var match = true;
35
39
  var t = (0, react_i18next_1.useTranslation)(undefined, { i18n: i18n_1.default }).t;
36
40
  var handleSubmit = function () {
37
41
  if (onSubmit) {
@@ -115,7 +115,17 @@
115
115
  },
116
116
  "User": {
117
117
  "Username": "Username",
118
- "Password": "Password"
118
+ "Password": "Password",
119
+ "Title": "User Management",
120
+ "AddExistedUser": "Add Existed User"
121
+ },
122
+ "UserGroup": {
123
+ "Title": "User Group Management",
124
+ "Create": "Create User Group",
125
+ "Edit": "Edit User Group",
126
+ "TitleUserGroupInfo": "Infomation User Group",
127
+ "TitleUserGroup": "List User In Group",
128
+ "AddUserGroupButton": "Add User To Group"
119
129
  },
120
130
  "PlaceMultiSelect": {
121
131
  "All": "All",
@@ -168,6 +178,7 @@
168
178
  "Time": "Time",
169
179
  "Estimate": "Estimate",
170
180
  "Reality": "Reality",
181
+ "Domain": "Domain",
171
182
  "Campaign": "Campaign",
172
183
  "Rate": "Rate",
173
184
  "Date": "Day",
@@ -638,5 +649,62 @@
638
649
  "Old": "Old",
639
650
  "New": "New",
640
651
  "TitleDetail": "Transaction Log Detail"
652
+ },
653
+ "Filter": {
654
+ "AllCampaign": "All Campaign",
655
+ "CampaignDefault": "Campaign Default"
656
+ },
657
+ "Notification": {
658
+ "TitleManagement": "Notification Management",
659
+ "TitleDetail": "Reciever detail",
660
+ "TitleAddReceiver": "Add User/Group User",
661
+ "TitleUserGroup": "User and Group user",
662
+ "ShowMore": "Show more notifications",
663
+ "Place": "Place",
664
+ "Domain": "Domain",
665
+ "Page": "Page",
666
+ "PageLogin": "Page login",
667
+ "PageWelcome": "Page welcome",
668
+ "of domain": "of domain",
669
+ "has": "has",
670
+ "has been": "has been",
671
+ "approved": "been approved to",
672
+ "send": "send",
673
+ "request": "request",
674
+ "rejected": "been rejected to",
675
+ "Campaign": "Campaign",
676
+ "created": "created",
677
+ "updated": "updated",
678
+ "deleted": "deleted",
679
+ "Title": "Notification",
680
+ "MarkAllAsRead": "Mark all as read",
681
+ "Configuration": "Notification configuration",
682
+ "ObjectType": "Object type",
683
+ "Event": "Event",
684
+ "Status": "Status",
685
+ "User/Group": "User/Group",
686
+ "TabAll": "All",
687
+ "TabUser": "User",
688
+ "TabGroupUser": "Group User",
689
+ "NotFound": "Not found",
690
+ "SearchPlaceHolderUserGroup": "User/Group user",
691
+ "EventObject": {
692
+ "Create": "Create",
693
+ "Update": "Update",
694
+ "Delete": "Delete",
695
+ "JoinRequest": "Request to join Network",
696
+ "JoinApprove": "Accept the request to join Network",
697
+ "JoinReject": "Reject the request to join Network",
698
+ "UnjoinRequest": "Request to unjoin Network",
699
+ "UnjoinApprove": "Accept the request to unjoin Network",
700
+ "UnjoinReject": "Reject the request to unjoin Network"
701
+ },
702
+ "StatusActive": "Active",
703
+ "StatusInactive": "Inactive",
704
+ "Filter": {
705
+ "All": "All",
706
+ "Campaign": "Campaign",
707
+ "Join/UnJoin Request": "Join/UnJoin Request"
708
+ }
641
709
  }
642
710
  }
@@ -120,7 +120,17 @@
120
120
  },
121
121
  "User": {
122
122
  "Username": "Tài khoản",
123
- "Password": "Mật khẩu"
123
+ "Password": "Mật khẩu",
124
+ "Title": "Quản trị người dùng",
125
+ "AddExistedUser": "Thêm tài khoản đã tồn tại"
126
+ },
127
+ "UserGroup": {
128
+ "Title": "Quản trị nhóm người dùng",
129
+ "Create": "Tạo mới nhóm người dùng",
130
+ "Edit": "Sửa nhóm người dùng",
131
+ "TitleUserGroupInfo": "Thông tin nhóm người dùng",
132
+ "TitleUserGroup": "Danh sách người dùng trong nhóm",
133
+ "AddUserGroupButton": "Thêm người dùng vào nhóm"
124
134
  },
125
135
  "PlaceMultiSelect": {
126
136
  "All": "Tất cả",
@@ -172,6 +182,7 @@
172
182
  "Place": "Địa điểm",
173
183
  "Time": "Thời gian",
174
184
  "Estimate": "Ước tính",
185
+ "Domain": "Domain",
175
186
  "Reality": "Thực tế",
176
187
  "Campaign": "Chiến dịch",
177
188
  "Rate": "Tỉ lệ",
@@ -640,5 +651,62 @@
640
651
  "Old": "Cũ",
641
652
  "New": "Mới",
642
653
  "TitleDetail": "Chi tiết Log"
654
+ },
655
+ "Filter": {
656
+ "AllCampaign": "Tất cả chiến dịch",
657
+ "CampaignDefault": "Chiến dịch mặc định"
658
+ },
659
+ "Notification": {
660
+ "TitleManagement": "Quản trị thông báo",
661
+ "TitleDetail": "Chi tiết người nhận thông báo",
662
+ "TitleAddReceiver": "Thêm người dùng/nhóm người dùng",
663
+ "TitleUserGroup": "Tài khoản và nhóm tài khoản",
664
+ "ShowMore": "Hiện thêm thông báo",
665
+ "Place": "Địa điểm",
666
+ "Domain": "Domain",
667
+ "Page": "Trang",
668
+ "PageLogin": "Trang login",
669
+ "PageWelcome": "Trang welcome",
670
+ "of domain": "thuộc domain",
671
+ "has": "đã",
672
+ "has been": "đã được",
673
+ "approved": "đồng ý",
674
+ "send": "gửi",
675
+ "request": "yêu cầu",
676
+ "rejected": "bị từ chối",
677
+ "Campaign": "Chiến dịch",
678
+ "created": "tạo",
679
+ "updated": "cập nhật",
680
+ "deleted": "bị xóa",
681
+ "Title": "Thông báo",
682
+ "MarkAllAsRead": "Đánh dấu tất cả là đã đọc",
683
+ "Configuration": "Cài đặt thông báo",
684
+ "ObjectType": "Loại đối tượng",
685
+ "Event": "Sự kiện",
686
+ "Status": "Trạng thái",
687
+ "User/Group": "Người dùng/Nhóm",
688
+ "TabAll": "Tất cả",
689
+ "TabUser": "Người dùng",
690
+ "TabGroupUser": "Nhóm người dùng",
691
+ "NotFound": "Không tồn tại",
692
+ "SearchPlaceHolderUserGroup": "Người dùng/Nhóm người dùng",
693
+ "EventObject": {
694
+ "Create": "Tạo mới",
695
+ "Update": "Cập nhật",
696
+ "Delete": "Xóa",
697
+ "JoinRequest": "Yêu cầu tham gia Network",
698
+ "JoinApprove": "Chấp nhận yêu cầu tham gia Network",
699
+ "JoinReject": "Từ chối yêu cầu tham gia Network",
700
+ "UnjoinRequest": "Yêu cầu rời khỏi Network",
701
+ "UnjoinApprove": "Chấp nhận yêu cầu rời khỏi Network",
702
+ "UnjoinReject": "Từ chối yêu cầu rời khỏi Network"
703
+ },
704
+ "StatusActive": "Có sử dụng",
705
+ "StatusInactive": "Chưa sử dụng",
706
+ "Filter": {
707
+ "All": "Tất cả",
708
+ "Campaign": "Campaign",
709
+ "Join/UnJoin Request": "Yêu cầu Join/Unjoin"
710
+ }
643
711
  }
644
712
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "awing-library",
3
- "version": "2.1.4-beta",
3
+ "version": "2.1.4",
4
4
  "description": "",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",
@@ -20,6 +20,7 @@
20
20
  "@emotion/styled": "^11.11.0",
21
21
  "@goongmaps/goong-geocoder-react": "^0.1.1",
22
22
  "@goongmaps/goong-map-react": "^1.0.9",
23
+ "@microsoft/signalr": "^8.0.0",
23
24
  "@monaco-editor/react": "^4.6.0",
24
25
  "@mui/icons-material": "^5.14.14",
25
26
  "@mui/lab": "5.0.0-alpha.149",
@@ -33,6 +34,7 @@
33
34
  "@testing-library/user-event": "^14.5.1",
34
35
  "@types/file-saver": "^2.0.7",
35
36
  "@types/jest": "^29.5.6",
37
+ "@types/lodash": "^4.17.0",
36
38
  "@types/node": "^20.8.8",
37
39
  "@types/react": "^18.2.31",
38
40
  "@types/react-dom": "^18.2.14",
@@ -78,7 +80,7 @@
78
80
  "build-storybook": "storybook build",
79
81
  "build": "npm run clean && tsc && tsc-alias && npm run copy",
80
82
  "copy": "cp -r ./src/Assets/ ./lib/Assets",
81
- "build:watch": "concurrently --kill-others \"tsc -w\" \"tsc-alias -w\""
83
+ "build:watch": "tsc && (concurrently \"tsc -w\" \"tsc-alias -w\")"
82
84
  },
83
85
  "prettier": {
84
86
  "trailingComma": "es5",
@@ -1,39 +0,0 @@
1
- /**
2
- *
3
- * @author dauquan1108@gmail.com on 11/28/2023.
4
- *
5
- **/
6
- declare const types: {
7
- /** Tab Tất cả "All" */
8
- ALL: string;
9
- /** Tab chưa đọc "Unread" */
10
- UNREAD: string;
11
- /** Value item menu "Đánh dấu tất cả là đã đọc" */
12
- SELECTALL: string;
13
- /** Value item menu "Cài đặt thông báo" */
14
- NOTIFICATIONSETTINGSCREEN: string;
15
- /**Đường dẫn đến trang chi tiết thông báo */
16
- NOTIFICATIONS: string;
17
- };
18
- declare const notificationsFake: ({
19
- id: string;
20
- content: string;
21
- url: string;
22
- status: boolean;
23
- userName: string;
24
- avatarUrl: string;
25
- time: string;
26
- } | {
27
- id: string;
28
- content: string;
29
- url: string;
30
- status: boolean;
31
- userName: string;
32
- avatarUrl: string;
33
- time: number;
34
- })[];
35
- declare const callAPI: {
36
- /** Số lượng mặc định khi thực hiện lấy mới dữ liệu từ server*/
37
- limit: number;
38
- };
39
- export { types, callAPI, notificationsFake };
@@ -1,304 +0,0 @@
1
- "use strict";
2
- /**
3
- *
4
- * @author dauquan1108@gmail.com on 11/28/2023.
5
- *
6
- **/
7
- Object.defineProperty(exports, "__esModule", { value: true });
8
- exports.notificationsFake = exports.callAPI = exports.types = void 0;
9
- var types = {
10
- /** Tab Tất cả "All" */
11
- ALL: "All",
12
- /** Tab chưa đọc "Unread" */
13
- UNREAD: "Unread",
14
- /** Value item menu "Đánh dấu tất cả là đã đọc" */
15
- SELECTALL: "SelectAll",
16
- /** Value item menu "Cài đặt thông báo" */
17
- NOTIFICATIONSETTINGSCREEN: "NotificationSettingScreen",
18
- /**Đường dẫn đến trang chi tiết thông báo */
19
- NOTIFICATIONS: "notifications"
20
- };
21
- exports.types = types;
22
- var notificationsFake = [
23
- {
24
- id: "1",
25
- content: "<p>Chiến dịch <a href=\"https://github.com/dauquan1108\" target=\"_blank\" style=\"text-decoration: none; color: blue;\" title=\"Đậu Xuân Quân\">Đậu Xuân Quân</a> đã được cập nhật.</p>",
26
- url: "https://awing.vn/",
27
- status: true,
28
- userName: "Đậu Xuân Quân",
29
- avatarUrl: "https://i.pinimg.com/564x/7d/be/68/7dbe686677277a06de561b16c1e2740b.jpg",
30
- time: "2023-12-06 10:30"
31
- },
32
- {
33
- id: "2",
34
- content: "<p>Địa chỉ WMP_6786_VM + TNH 17 Nguyễn Văn Linh thuộc domain Địa chỉ WMP_6786_VM + TNH 17 Nguyễn Văn Linh thuộc domain Địa chỉ WMP_6786_VM + TNH 17 Nguyễn Văn Linh thuộc domain Địa chỉ WMP_6786_VM + TNH 17 Nguyễn Văn Linh thuộc domain <a href=\"https://winmart.vn/\" target=\"_blank\" style=\"text-decoration: none; color: blue;\" title=\"Winmart\">Winmart</a> đã bị từ chối join netWork.</p>",
35
- url: "https://awing.vn/",
36
- status: true,
37
- userName: "Đậu Xuân Quân",
38
- avatarUrl: "https://i.pinimg.com/564x/7d/be/68/7dbe686677277a06de561b16c1e2740b.jpg",
39
- time: "2023-12-05 15:30"
40
- },
41
- {
42
- id: "3",
43
- content: "<p>Địa chỉ WMP_6787_VM + DNI 55/7 Phạm Văn Đồng thuộc domain <a href=\"https://winmart.vn/\" target=\"_blank\" style=\"text-decoration: none; color: blue;\" title=\"Winmart\">Winmart</a> đã bị từ chối join netWork.</p>",
44
- url: "https://awing.vn/",
45
- status: true,
46
- userName: "Phạm Văn Đồng",
47
- avatarUrl: "https://i.pinimg.com/564x/0e/75/db/0e75dbc6fec39c17d0c3cda8a69df254.jpg",
48
- time: "02-12-2023 10:30"
49
- },
50
- {
51
- id: "4",
52
- content: "<p>Địa chỉ WMP_6788_VM + 98 Dương Quảng Hàm thuộc domain <a href=\"https://winmart.vn/\" target=\"_blank\" style=\"text-decoration: none; color: blue;\" title=\"Winmart\">Winmart</a> đã bị từ chối join netWork.</p>",
53
- url: "https://awing.vn/",
54
- status: true,
55
- userName: "Winmart",
56
- avatarUrl: "https://i.pinimg.com/564x/36/16/f3/3616f381a63e64ad00cdfb2a1fe07a5e.jpg",
57
- time: "2023/12/01 15:30"
58
- },
59
- {
60
- id: "5",
61
- content: "<p>Địa chỉ WMP_6789_VM + TNH Cầu Giấy thuộc domain <a href=\"https://ahacafe.vn/\" target=\"_blank\" style=\"text-decoration: none; color: blue;\" title=\"Winmart\">aHa CAFF</a> đã bị từ chối join netWork.</p>",
62
- url: "https://awing.vn/",
63
- status: false,
64
- userName: "Đậu Xuân Quân",
65
- avatarUrl: "https://i.pinimg.com/564x/e2/58/45/e25845a241fdbc32edfa22d3362ba5aa.jpg",
66
- time: "2023/12/01 15:30"
67
- },
68
- {
69
- id: "6",
70
- content: "<p>Chiến dịch <a href=\"https://www.cafeongbau.com/\" target=\"_blank\" style=\"text-decoration: none; color: blue;\" title=\"CAFE ÔNG BẦU\">CAFE ÔNG BẦU</a> đã được cập nhật.</p>",
71
- url: "https://awing.vn/",
72
- status: false,
73
- userName: "CAFE ÔNG BẦU",
74
- avatarUrl: "https://i.pinimg.com/564x/e2/58/45/e25845a241fdbc32edfa22d3362ba5aa.jpg",
75
- time: "30/11/2023"
76
- },
77
- {
78
- id: "7",
79
- content: "<p>Địa chỉ WMP_5003_VM + TNH 17 Nguyễn Văn Linh thuộc domain <a href=\"https://www.cafeongbau.com/\" target=\"_blank\" style=\"text-decoration: none; color: blue;\" title=\"CAFE ÔNG BẦU\">CAFE ÔNG BẦU</a> đã bị từ chối join netWork.</p>",
80
- url: "https://awing.vn/",
81
- status: true,
82
- userName: "Nguyễn Văn Linh",
83
- avatarUrl: "https://i.pinimg.com/564x/95/1f/7a/951f7ab8d374337e88c7065065927bf9.jpg",
84
- time: 1701244363
85
- },
86
- {
87
- id: "8",
88
- content: "<p>Địa chỉ CAFE ÔNG BẦU_HN_331 Hoàng Diệu thuộc domain <a href=\"https://www.cafeongbau.com/\" target=\"_blank\" style=\"text-decoration: none; color: blue;\" title=\"CAFE ÔNG BẦU\">CAFE ÔNG BẦU</a> đã bị từ chối join netWork.</p>",
89
- url: "https://awing.vn/",
90
- status: false,
91
- userName: "Hoàng Diệu",
92
- avatarUrl: "https://i.pinimg.com/564x/af/f7/bd/aff7bd16b0c46ff3a33e302c19e72368.jpg",
93
- time: 1701244363
94
- },
95
- {
96
- id: "9",
97
- content: "<p>Địa chỉ WMP_5001_VM CAFE ÔNG BẦU_HN_331 Hoàng Diệu thuộc domain <a href=\"https://www.cafeongbau.com/\" target=\"_blank\" style=\"text-decoration: none; color: blue;\" title=\"CAFE ÔNG BẦU\">CAFE ÔNG BẦU</a> đã bị từ chối join netWork.</p>",
98
- url: "https://awing.vn/",
99
- status: false,
100
- userName: "Đậu Xuân Quân",
101
- avatarUrl: "https://i.pinimg.com/564x/95/1f/7a/951f7ab8d374337e88c7065065927bf9.jpg",
102
- time: 1701244363
103
- },
104
- {
105
- id: "10",
106
- content: "\n" +
107
- "<p>Địa chỉ WMP_5000_VM + TNH Cầu Giấy thuộc domain <a href=\"https://www.cafeongbau.com/\" target=\"_blank\" style=\"text-decoration: none; color: blue;\" title=\"CAFE ÔNG BẦU\">CAFE ÔNG BẦU</a> đã bị từ chối join netWork.</p>",
108
- url: "https://awing.vn/",
109
- status: false,
110
- userName: "Đậu Xuân Quân",
111
- avatarUrl: "https://i.pinimg.com/564x/81/e9/35/81e935eb96f3be8dbbf61849e5153d3b.jpg",
112
- time: 1701244363
113
- },
114
- {
115
- id: "11",
116
- content: "<p>Chiến dịch <a href=\"https://github.com/dauquan1108\" target=\"_blank\" style=\"text-decoration: none; color: blue;\" title=\"Đậu Xuân Quân\">Đậu Xuân Quân</a> đã được cập nhật.</p>",
117
- url: "https://awing.vn/",
118
- status: true,
119
- userName: "Đậu Xuân Quân",
120
- avatarUrl: "https://i.pinimg.com/564x/0e/75/db/0e75dbc6fec39c17d0c3cda8a69df254.jpg",
121
- time: 1701244363
122
- },
123
- {
124
- id: "12",
125
- content: "<p>Địa chỉ WMP_6786_VM + TNH 17 Nguyễn Văn Linh thuộc domain <a href=\"https://winmart.vn/\" target=\"_blank\" style=\"text-decoration: none; color: blue;\" title=\"Winmart\">Winmart</a> đã bị từ chối join netWork.</p>",
126
- url: "https://awing.vn/",
127
- status: true,
128
- userName: "Đậu Xuân Quân",
129
- avatarUrl: "https://i.pinimg.com/564x/bd/be/ed/bdbeed3fbbd014bc52bb4fb888f6a0bb.jpg",
130
- time: 1701244363
131
- },
132
- {
133
- id: "13",
134
- content: "<p>Địa chỉ WMP_6787_VM + DNI 55/7 Phạm Văn Đồng thuộc domain <a href=\"https://winmart.vn/\" target=\"_blank\" style=\"text-decoration: none; color: blue;\" title=\"Winmart\">Winmart</a> đã bị từ chối join netWork.</p>",
135
- url: "https://awing.vn/",
136
- status: true,
137
- userName: "Phạm Văn Đồng",
138
- avatarUrl: "https://i.pinimg.com/564x/0e/75/db/0e75dbc6fec39c17d0c3cda8a69df254.jpg",
139
- time: 1701244363
140
- },
141
- {
142
- id: "14",
143
- content: "<p>Địa chỉ WMP_6788_VM + 98 Dương Quảng Hàm thuộc domain <a href=\"https://winmart.vn/\" target=\"_blank\" style=\"text-decoration: none; color: blue;\" title=\"Winmart\">Winmart</a> đã bị từ chối join netWork.</p>",
144
- url: "https://awing.vn/",
145
- status: true,
146
- userName: "Winmart",
147
- avatarUrl: "https://i.pinimg.com/564x/bd/be/ed/bdbeed3fbbd014bc52bb4fb888f6a0bb.jpg",
148
- time: 1701244363
149
- },
150
- {
151
- id: "15",
152
- content: "<p>Địa chỉ WMP_6789_VM + TNH Cầu Giấy thuộc domain <a href=\"https://ahacafe.vn/\" target=\"_blank\" style=\"text-decoration: none; color: blue;\" title=\"Winmart\">aHa CAFF</a> đã bị từ chối join netWork.</p>",
153
- url: "https://awing.vn/",
154
- status: false,
155
- userName: "Đậu Xuân Quân",
156
- avatarUrl: "https://i.pinimg.com/564x/e2/58/45/e25845a241fdbc32edfa22d3362ba5aa.jpg",
157
- time: 1701244363
158
- },
159
- {
160
- id: "16",
161
- content: "<p>Chiến dịch <a href=\"https://www.cafeongbau.com/\" target=\"_blank\" style=\"text-decoration: none; color: blue;\" title=\"CAFE ÔNG BẦU\">CAFE ÔNG BẦU</a> đã được cập nhật.</p>",
162
- url: "https://awing.vn/",
163
- status: false,
164
- userName: "CAFE ÔNG BẦU",
165
- avatarUrl: "https://i.pinimg.com/564x/e2/58/45/e25845a241fdbc32edfa22d3362ba5aa.jpg",
166
- time: 1701244363
167
- },
168
- {
169
- id: "17",
170
- content: "<p>Địa chỉ WMP_5003_VM + TNH 17 Nguyễn Văn Linh thuộc domain <a href=\"https://www.cafeongbau.com/\" target=\"_blank\" style=\"text-decoration: none; color: blue;\" title=\"CAFE ÔNG BẦU\">CAFE ÔNG BẦU</a> đã bị từ chối join netWork.</p>",
171
- url: "https://awing.vn/",
172
- status: true,
173
- userName: "Nguyễn Văn Linh",
174
- avatarUrl: "https://i.pinimg.com/564x/95/1f/7a/951f7ab8d374337e88c7065065927bf9.jpg",
175
- time: 1701244363
176
- },
177
- {
178
- id: "18",
179
- content: "<p>Địa chỉ CAFE ÔNG BẦU_HN_331 Hoàng Diệu thuộc domain <a href=\"https://www.cafeongbau.com/\" target=\"_blank\" style=\"text-decoration: none; color: blue;\" title=\"CAFE ÔNG BẦU\">CAFE ÔNG BẦU</a> đã bị từ chối join netWork.</p>",
180
- url: "https://awing.vn/",
181
- status: false,
182
- userName: "Hoàng Diệu",
183
- avatarUrl: "https://i.pinimg.com/564x/0e/75/db/0e75dbc6fec39c17d0c3cda8a69df254.jpg",
184
- time: 1701244363
185
- },
186
- {
187
- id: "19",
188
- content: "<p>Địa chỉ WMP_5001_VM CAFE ÔNG BẦU_HN_331 Hoàng Diệu thuộc domain <a href=\"https://www.cafeongbau.com/\" target=\"_blank\" style=\"text-decoration: none; color: blue;\" title=\"CAFE ÔNG BẦU\">CAFE ÔNG BẦU</a> đã bị từ chối join netWork.</p>",
189
- url: "https://awing.vn/",
190
- status: false,
191
- userName: "Đậu Xuân Quân",
192
- avatarUrl: "https://i.pinimg.com/564x/95/1f/7a/951f7ab8d374337e88c7065065927bf9.jpg",
193
- time: 1701244363
194
- },
195
- {
196
- id: "20",
197
- content: "\n" +
198
- "<p>Địa chỉ WMP_5000_VM + TNH Cầu Giấy thuộc domain <a href=\"https://www.cafeongbau.com/\" target=\"_blank\" style=\"text-decoration: none; color: blue;\" title=\"CAFE ÔNG BẦU\">CAFE ÔNG BẦU</a> đã bị từ chối join netWork.</p>",
199
- url: "https://awing.vn/",
200
- status: false,
201
- userName: "Đậu Xuân Quân",
202
- avatarUrl: "https://i.pinimg.com/564x/81/e9/35/81e935eb96f3be8dbbf61849e5153d3b.jpg",
203
- time: 1701244363
204
- },
205
- //
206
- //
207
- // {
208
- // id: "21",
209
- // content: "<p>Chiến dịch <a href=\"https://github.com/dauquan1108\" target=\"_blank\" style=\"text-decoration: none; color: blue;\" title=\"Đậu Xuân Quân\">Đậu Xuân Quân</a> đã được cập nhật.</p>",
210
- // url: "https://awing.vn/",
211
- // status: false,
212
- // userName: "Đậu Xuân Quân",
213
- // avatarUrl: "https://i.pinimg.com/564x/0e/75/db/0e75dbc6fec39c17d0c3cda8a69df254.jpg",
214
- // time: 1701244363
215
- // },
216
- // {
217
- // id: "22",
218
- // content: "<p>Địa chỉ WMP_6786_VM + TNH 17 Nguyễn Văn Linh thuộc domain <a href=\"https://winmart.vn/\" target=\"_blank\" style=\"text-decoration: none; color: blue;\" title=\"Winmart\">Winmart</a> đã bị từ chối join netWork.</p>",
219
- // url: "https://awing.vn/",
220
- // status: false,
221
- // userName: "Đậu Xuân Quân",
222
- // avatarUrl: "https://i.pinimg.com/564x/bd/be/ed/bdbeed3fbbd014bc52bb4fb888f6a0bb.jpg",
223
- // time: 1701244363
224
- // },
225
- // {
226
- // id: "23",
227
- // content: "<p>Địa chỉ WMP_6787_VM + DNI 55/7 Phạm Văn Đồng thuộc domain <a href=\"https://winmart.vn/\" target=\"_blank\" style=\"text-decoration: none; color: blue;\" title=\"Winmart\">Winmart</a> đã bị từ chối join netWork.</p>",
228
- // url: "https://awing.vn/",
229
- // status: false,
230
- // userName: "Phạm Văn Đồng",
231
- // avatarUrl: "https://i.pinimg.com/564x/0e/75/db/0e75dbc6fec39c17d0c3cda8a69df254.jpg",
232
- // time: 1701244363
233
- // },
234
- // {
235
- // id: "24",
236
- // content: "<p>Địa chỉ WMP_6788_VM + 98 Dương Quảng Hàm thuộc domain <a href=\"https://winmart.vn/\" target=\"_blank\" style=\"text-decoration: none; color: blue;\" title=\"Winmart\">Winmart</a> đã bị từ chối join netWork.</p>",
237
- // url: "https://awing.vn/",
238
- // status: false,
239
- // userName: "Winmart",
240
- // avatarUrl: "https://i.pinimg.com/564x/bd/be/ed/bdbeed3fbbd014bc52bb4fb888f6a0bb.jpg",
241
- // time: 1701244363
242
- // },
243
- // {
244
- // id: "25",
245
- // content: "<p>Địa chỉ WMP_6789_VM + TNH Cầu Giấy thuộc domain <a href=\"https://ahacafe.vn/\" target=\"_blank\" style=\"text-decoration: none; color: blue;\" title=\"Winmart\">aHa CAFF</a> đã bị từ chối join netWork.</p>",
246
- // url: "https://awing.vn/",
247
- // status: false,
248
- // userName: "Đậu Xuân Quân",
249
- // avatarUrl: "https://i.pinimg.com/564x/e2/58/45/e25845a241fdbc32edfa22d3362ba5aa.jpg",
250
- // time: 1701244363
251
- // },
252
- // {
253
- // id: "26",
254
- // content: "<p>Chiến dịch <a href=\"https://www.cafeongbau.com/\" target=\"_blank\" style=\"text-decoration: none; color: blue;\" title=\"CAFE ÔNG BẦU\">CAFE ÔNG BẦU</a> đã được cập nhật.</p>",
255
- // url: "https://awing.vn/",
256
- // status: false,
257
- // userName: "CAFE ÔNG BẦU",
258
- // avatarUrl: "https://i.pinimg.com/564x/e2/58/45/e25845a241fdbc32edfa22d3362ba5aa.jpg",
259
- // time: 1701244363
260
- // },
261
- // {
262
- // id: "27",
263
- // content: "<p>Địa chỉ WMP_5003_VM + TNH 17 Nguyễn Văn Linh thuộc domain <a href=\"https://www.cafeongbau.com/\" target=\"_blank\" style=\"text-decoration: none; color: blue;\" title=\"CAFE ÔNG BẦU\">CAFE ÔNG BẦU</a> đã bị từ chối join netWork.</p>",
264
- // url: "https://awing.vn/",
265
- // status: false,
266
- // userName: "Nguyễn Văn Linh",
267
- // avatarUrl: "https://i.pinimg.com/564x/95/1f/7a/951f7ab8d374337e88c7065065927bf9.jpg",
268
- // time: 1701244363
269
- // },
270
- // {
271
- // id: "28",
272
- // content: "<p>Địa chỉ CAFE ÔNG BẦU_HN_331 Hoàng Diệu thuộc domain <a href=\"https://www.cafeongbau.com/\" target=\"_blank\" style=\"text-decoration: none; color: blue;\" title=\"CAFE ÔNG BẦU\">CAFE ÔNG BẦU</a> đã bị từ chối join netWork.</p>",
273
- // url: "https://awing.vn/",
274
- // status: false,
275
- // userName: "Hoàng Diệu",
276
- // avatarUrl: "https://i.pinimg.com/564x/0e/75/db/0e75dbc6fec39c17d0c3cda8a69df254.jpg",
277
- // time: 1701244363
278
- // },
279
- // {
280
- // id: "29",
281
- // content: "<p>Địa chỉ WMP_5001_VM CAFE ÔNG BẦU_HN_331 Hoàng Diệu thuộc domain <a href=\"https://www.cafeongbau.com/\" target=\"_blank\" style=\"text-decoration: none; color: blue;\" title=\"CAFE ÔNG BẦU\">CAFE ÔNG BẦU</a> đã bị từ chối join netWork.</p>",
282
- // url: "https://awing.vn/",
283
- // status: false,
284
- // userName: "Đậu Xuân Quân",
285
- // avatarUrl: "https://i.pinimg.com/564x/95/1f/7a/951f7ab8d374337e88c7065065927bf9.jpg",
286
- // time: 1701244363
287
- // },
288
- // {
289
- // id: "30",
290
- // content: "\n" +
291
- // "<p>Địa chỉ WMP_5000_VM + TNH Cầu Giấy thuộc domain <a href=\"https://www.cafeongbau.com/\" target=\"_blank\" style=\"text-decoration: none; color: blue;\" title=\"CAFE ÔNG BẦU\">CAFE ÔNG BẦU</a> đã bị từ chối join netWork.</p>",
292
- // url: "https://awing.vn/",
293
- // status: false,
294
- // userName: "Đậu Xuân Quân",
295
- // avatarUrl: "https://i.pinimg.com/564x/81/e9/35/81e935eb96f3be8dbbf61849e5153d3b.jpg",
296
- // time: 1701244363
297
- // },
298
- ];
299
- exports.notificationsFake = notificationsFake;
300
- var callAPI = {
301
- /** Số lượng mặc định khi thực hiện lấy mới dữ liệu từ server*/
302
- limit: 10,
303
- };
304
- exports.callAPI = callAPI;