@banch0u/core-project-test-repository 1.3.2 → 1.4.0
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.
- package/dist/assets/css/variables.css +1 -1
- package/dist/assets/icons/index.js +37 -0
- package/dist/components/FormModal/index.js +142 -0
- package/dist/components/FormModal/index.module.scss +14 -0
- package/dist/components/NotificationDropdown/index.js +161 -0
- package/dist/components/NotificationDropdown/index.module.scss +80 -0
- package/dist/components/NotificationSettingsContent/index.js +166 -0
- package/dist/components/NotificationSettingsContent/index.module.scss +70 -0
- package/dist/components/ProfileOptions/index.js +128 -0
- package/dist/components/ProfileOptions/index.module.scss +131 -0
- package/dist/index.js +14 -5
- package/dist/layout/Header/index.js +36 -0
- package/dist/layout/Header/index.module.scss +19 -0
- package/dist/store/coreProvider.js +9 -0
- package/dist/store/slices/global/index.js +10 -3
- package/dist/store/slices/notification/index.js +207 -0
- package/dist/store/slices/notification/service.js +121 -0
- package/dist/store/store.js +2 -1
- package/package.json +1 -1
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
import _asyncToGenerator from "@babel/runtime/helpers/asyncToGenerator";
|
|
2
|
+
import _createClass from "@babel/runtime/helpers/createClass";
|
|
3
|
+
import _classCallCheck from "@babel/runtime/helpers/classCallCheck";
|
|
4
|
+
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
5
|
+
import _regeneratorRuntime from "@babel/runtime/regenerator";
|
|
6
|
+
import api from "../../../utils/axios";
|
|
7
|
+
var Services = /*#__PURE__*/_createClass(function Services() {
|
|
8
|
+
_classCallCheck(this, Services);
|
|
9
|
+
});
|
|
10
|
+
_defineProperty(Services, "getNotifications", /*#__PURE__*/function () {
|
|
11
|
+
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee(size, page) {
|
|
12
|
+
var response;
|
|
13
|
+
return _regeneratorRuntime.wrap(function _callee$(_context) {
|
|
14
|
+
while (1) switch (_context.prev = _context.next) {
|
|
15
|
+
case 0:
|
|
16
|
+
_context.next = 2;
|
|
17
|
+
return api.get("/NotificationDetails/".concat(size, "/page/").concat(page));
|
|
18
|
+
case 2:
|
|
19
|
+
response = _context.sent;
|
|
20
|
+
return _context.abrupt("return", response === null || response === void 0 ? void 0 : response.data);
|
|
21
|
+
case 4:
|
|
22
|
+
case "end":
|
|
23
|
+
return _context.stop();
|
|
24
|
+
}
|
|
25
|
+
}, _callee);
|
|
26
|
+
}));
|
|
27
|
+
return function (_x, _x2) {
|
|
28
|
+
return _ref.apply(this, arguments);
|
|
29
|
+
};
|
|
30
|
+
}());
|
|
31
|
+
_defineProperty(Services, "readNotification", /*#__PURE__*/function () {
|
|
32
|
+
var _ref2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee2(data) {
|
|
33
|
+
var response;
|
|
34
|
+
return _regeneratorRuntime.wrap(function _callee2$(_context2) {
|
|
35
|
+
while (1) switch (_context2.prev = _context2.next) {
|
|
36
|
+
case 0:
|
|
37
|
+
_context2.next = 2;
|
|
38
|
+
return api.post("/NotificationDetails", data);
|
|
39
|
+
case 2:
|
|
40
|
+
response = _context2.sent;
|
|
41
|
+
return _context2.abrupt("return", response === null || response === void 0 ? void 0 : response.data);
|
|
42
|
+
case 4:
|
|
43
|
+
case "end":
|
|
44
|
+
return _context2.stop();
|
|
45
|
+
}
|
|
46
|
+
}, _callee2);
|
|
47
|
+
}));
|
|
48
|
+
return function (_x3) {
|
|
49
|
+
return _ref2.apply(this, arguments);
|
|
50
|
+
};
|
|
51
|
+
}());
|
|
52
|
+
_defineProperty(Services, "readNotificationAll", /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee3() {
|
|
53
|
+
var response;
|
|
54
|
+
return _regeneratorRuntime.wrap(function _callee3$(_context3) {
|
|
55
|
+
while (1) switch (_context3.prev = _context3.next) {
|
|
56
|
+
case 0:
|
|
57
|
+
_context3.next = 2;
|
|
58
|
+
return api.post("/NotificationDetails/ReadAll");
|
|
59
|
+
case 2:
|
|
60
|
+
response = _context3.sent;
|
|
61
|
+
return _context3.abrupt("return", response === null || response === void 0 ? void 0 : response.data);
|
|
62
|
+
case 4:
|
|
63
|
+
case "end":
|
|
64
|
+
return _context3.stop();
|
|
65
|
+
}
|
|
66
|
+
}, _callee3);
|
|
67
|
+
})));
|
|
68
|
+
_defineProperty(Services, "checkNotification", /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee4() {
|
|
69
|
+
var response;
|
|
70
|
+
return _regeneratorRuntime.wrap(function _callee4$(_context4) {
|
|
71
|
+
while (1) switch (_context4.prev = _context4.next) {
|
|
72
|
+
case 0:
|
|
73
|
+
_context4.next = 2;
|
|
74
|
+
return api.get("/notificationusersettings/check");
|
|
75
|
+
case 2:
|
|
76
|
+
response = _context4.sent;
|
|
77
|
+
return _context4.abrupt("return", response === null || response === void 0 ? void 0 : response.data);
|
|
78
|
+
case 4:
|
|
79
|
+
case "end":
|
|
80
|
+
return _context4.stop();
|
|
81
|
+
}
|
|
82
|
+
}, _callee4);
|
|
83
|
+
})));
|
|
84
|
+
_defineProperty(Services, "getNotificationSettings", /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee5() {
|
|
85
|
+
var response;
|
|
86
|
+
return _regeneratorRuntime.wrap(function _callee5$(_context5) {
|
|
87
|
+
while (1) switch (_context5.prev = _context5.next) {
|
|
88
|
+
case 0:
|
|
89
|
+
_context5.next = 2;
|
|
90
|
+
return api.get("/notificationusersettings");
|
|
91
|
+
case 2:
|
|
92
|
+
response = _context5.sent;
|
|
93
|
+
return _context5.abrupt("return", response === null || response === void 0 ? void 0 : response.data);
|
|
94
|
+
case 4:
|
|
95
|
+
case "end":
|
|
96
|
+
return _context5.stop();
|
|
97
|
+
}
|
|
98
|
+
}, _callee5);
|
|
99
|
+
})));
|
|
100
|
+
_defineProperty(Services, "editNotificationSettings", /*#__PURE__*/function () {
|
|
101
|
+
var _ref6 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee6(data) {
|
|
102
|
+
var response;
|
|
103
|
+
return _regeneratorRuntime.wrap(function _callee6$(_context6) {
|
|
104
|
+
while (1) switch (_context6.prev = _context6.next) {
|
|
105
|
+
case 0:
|
|
106
|
+
_context6.next = 2;
|
|
107
|
+
return api.post("/notificationusersettings", data);
|
|
108
|
+
case 2:
|
|
109
|
+
response = _context6.sent;
|
|
110
|
+
return _context6.abrupt("return", response === null || response === void 0 ? void 0 : response.data);
|
|
111
|
+
case 4:
|
|
112
|
+
case "end":
|
|
113
|
+
return _context6.stop();
|
|
114
|
+
}
|
|
115
|
+
}, _callee6);
|
|
116
|
+
}));
|
|
117
|
+
return function (_x4) {
|
|
118
|
+
return _ref6.apply(this, arguments);
|
|
119
|
+
};
|
|
120
|
+
}());
|
|
121
|
+
export default Services;
|
package/dist/store/store.js
CHANGED
|
@@ -2,7 +2,8 @@ import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
|
2
2
|
import { configureStore } from "@reduxjs/toolkit";
|
|
3
3
|
import { global } from "./slices/global";
|
|
4
4
|
import { auth } from "./slices/auth";
|
|
5
|
+
import { notification } from "./slices/notification";
|
|
5
6
|
export var store = configureStore({
|
|
6
|
-
reducer: _defineProperty(_defineProperty({}, global.name, global.reducer), auth.name, auth.reducer)
|
|
7
|
+
reducer: _defineProperty(_defineProperty(_defineProperty({}, notification.name, notification.reducer), global.name, global.reducer), auth.name, auth.reducer)
|
|
7
8
|
});
|
|
8
9
|
export default store;
|