@campxdev/shared 0.3.15 → 0.3.17
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/package.json +2 -1
- package/src/assets/images/404notfound.svg +1 -0
- package/src/assets/images/index.ts +1 -0
- package/src/assets/images/internalservererror.svg +1 -0
- package/src/assets/images/noInternet.svg +1 -0
- package/src/assets/images/permissiondenied.svg +1 -0
- package/src/assets/images/unauth.svg +92 -0
- package/src/components/ChangePassword.tsx +146 -0
- package/src/components/ErrorBoundary/ErrorFallback.tsx +217 -168
- package/src/components/Layout/Header/AppHeader.tsx +104 -105
- package/src/components/Layout/Header/UserBox.tsx +64 -37
- package/src/components/LayoutWrapper.tsx +25 -0
- package/src/components/ListItemButton.tsx +101 -0
- package/src/components/PageNotFound.tsx +1 -0
- package/src/components/SideMenuHeader.tsx +29 -0
- package/src/components/SideNav.tsx +99 -0
- package/src/components/index.ts +76 -64
- package/src/layouts/Components/DashBoardMenu.tsx +232 -0
- package/src/layouts/Components/icons/index.tsx +403 -0
- package/src/layouts/Components/styles.tsx +60 -0
package/src/components/index.ts
CHANGED
|
@@ -1,67 +1,79 @@
|
|
|
1
|
-
import UploadFileDialog from
|
|
2
|
-
import Chips from
|
|
3
|
-
import ImageUpload from
|
|
4
|
-
import FloatingContainer from
|
|
5
|
-
import TabsContainer from
|
|
6
|
-
import {StyledTableContainer} from
|
|
7
|
-
import {SearchBar} from
|
|
8
|
-
import {DrawerButton, DialogButton} from
|
|
9
|
-
import DetailsGrid from
|
|
10
|
-
import AppHeader from
|
|
11
|
-
import MenuButton from
|
|
12
|
-
import StepsHeader from
|
|
13
|
-
import UploadDocument from
|
|
14
|
-
import {Table as StyledTable} from
|
|
15
|
-
import ErrorBoundary from
|
|
16
|
-
import FullScreenLoader from
|
|
17
|
-
import LoginForm from
|
|
1
|
+
import UploadFileDialog from "./UploadFileDialog";
|
|
2
|
+
import Chips from "./Chips";
|
|
3
|
+
import ImageUpload from "./ImageUpload";
|
|
4
|
+
import FloatingContainer from "./FloatingContainer";
|
|
5
|
+
import TabsContainer from "./Tabs/TabsContainer";
|
|
6
|
+
import { StyledTableContainer } from "./StyledTableContainer";
|
|
7
|
+
import { SearchBar } from "./SearchBar";
|
|
8
|
+
import { DrawerButton, DialogButton } from "./ModalButtons";
|
|
9
|
+
import DetailsGrid from "./DetailsGrid";
|
|
10
|
+
import AppHeader from "./Layout/Header";
|
|
11
|
+
import MenuButton from "./MenuButton";
|
|
12
|
+
import StepsHeader from "./StepsHeader";
|
|
13
|
+
import UploadDocument from "./UploadDocument";
|
|
14
|
+
import { Table as StyledTable } from "./Table";
|
|
15
|
+
import ErrorBoundary from "./ErrorBoundary";
|
|
16
|
+
import FullScreenLoader from "./FullScreenLoader";
|
|
17
|
+
import LoginForm from "./LoginForm";
|
|
18
|
+
import { SideMenuHeader } from "./SideMenuHeader";
|
|
19
|
+
import SideNav from "./SideNav";
|
|
20
|
+
import { ListItemButton } from "./ListItemButton";
|
|
21
|
+
import LayoutWrapper from "./LayoutWrapper";
|
|
22
|
+
import PageNotFound from "./PageNotFound";
|
|
23
|
+
import ChangePassword from "./ChangePassword";
|
|
18
24
|
|
|
19
|
-
export {default as Image} from
|
|
20
|
-
export {default as PageHeader} from
|
|
21
|
-
export {PageContent} from
|
|
22
|
-
export {default as ActionButton} from
|
|
23
|
-
export {default as Breadcrumbs} from
|
|
24
|
-
export {default as Table} from
|
|
25
|
-
export {default as Spinner} from
|
|
26
|
-
export {default as AutocompleteSearch} from
|
|
27
|
-
export {FullCalendarWrapper} from
|
|
28
|
-
export {default as JsonPreview} from
|
|
29
|
-
export {default as LabelValue} from
|
|
30
|
-
export {LinearProgress} from
|
|
31
|
-
export {default as MediaRow} from
|
|
32
|
-
export {default as NoDataIllustration} from
|
|
33
|
-
export {default as SwitchButton} from
|
|
34
|
-
export {default as Tabs} from
|
|
35
|
-
export {default as ToastContainer} from
|
|
36
|
-
export {default as Card} from
|
|
37
|
-
export {default as CardsGrid} from
|
|
38
|
-
export {default as DividerHeading} from
|
|
39
|
-
export {default as ReactTable} from
|
|
40
|
-
export {default as TableFooter} from
|
|
41
|
-
export {default as DropDownButton} from
|
|
42
|
-
export {default as useConfirm} from
|
|
25
|
+
export { default as Image } from "./Image";
|
|
26
|
+
export { default as PageHeader } from "./PageHeader";
|
|
27
|
+
export { PageContent } from "./PageContent";
|
|
28
|
+
export { default as ActionButton } from "./ActionButton";
|
|
29
|
+
export { default as Breadcrumbs } from "./Breadcrumbs";
|
|
30
|
+
export { default as Table } from "./TableComponent";
|
|
31
|
+
export { default as Spinner } from "./Spinner";
|
|
32
|
+
export { default as AutocompleteSearch } from "./AutocompleteSearch";
|
|
33
|
+
export { FullCalendarWrapper } from "./FullCalendar/FullCalendarWrapper";
|
|
34
|
+
export { default as JsonPreview } from "./JsonPreview";
|
|
35
|
+
export { default as LabelValue } from "./LabelValue";
|
|
36
|
+
export { LinearProgress } from "./LinearProgress";
|
|
37
|
+
export { default as MediaRow } from "./MediaRow";
|
|
38
|
+
export { default as NoDataIllustration } from "./NoDataIllustration";
|
|
39
|
+
export { default as SwitchButton } from "./SwitchButton";
|
|
40
|
+
export { default as Tabs } from "./Tabs/Tabs";
|
|
41
|
+
export { default as ToastContainer } from "./ToastContainer";
|
|
42
|
+
export { default as Card } from "./Card";
|
|
43
|
+
export { default as CardsGrid } from "./CardsGrid";
|
|
44
|
+
export { default as DividerHeading } from "./DividerHeading";
|
|
45
|
+
export { default as ReactTable } from "./TableComponent/ReactTable";
|
|
46
|
+
export { default as TableFooter } from "./TableComponent/TableFooter";
|
|
47
|
+
export { default as DropDownButton } from "./DropDownButton";
|
|
48
|
+
export { default as useConfirm } from "./PopupConfirm/useConfirm";
|
|
43
49
|
export {
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
50
|
+
UploadFileDialog,
|
|
51
|
+
Chips,
|
|
52
|
+
ImageUpload,
|
|
53
|
+
FloatingContainer,
|
|
54
|
+
TabsContainer,
|
|
55
|
+
StyledTableContainer,
|
|
56
|
+
SearchBar,
|
|
57
|
+
DrawerButton,
|
|
58
|
+
DialogButton,
|
|
59
|
+
DetailsGrid,
|
|
60
|
+
AppHeader,
|
|
61
|
+
MenuButton,
|
|
62
|
+
StepsHeader,
|
|
63
|
+
UploadDocument,
|
|
64
|
+
StyledTable,
|
|
65
|
+
ErrorBoundary,
|
|
66
|
+
FullScreenLoader,
|
|
67
|
+
LoginForm,
|
|
68
|
+
SideMenuHeader,
|
|
69
|
+
ListItemButton,
|
|
70
|
+
LayoutWrapper,
|
|
71
|
+
PageNotFound,
|
|
72
|
+
SideNav,
|
|
73
|
+
ChangePassword,
|
|
74
|
+
};
|
|
63
75
|
|
|
64
|
-
export * from
|
|
65
|
-
export * from
|
|
66
|
-
export * from
|
|
67
|
-
export * from
|
|
76
|
+
export * from "./UploadButton/types";
|
|
77
|
+
export * from "./HookForm";
|
|
78
|
+
export * from "./Input";
|
|
79
|
+
export * from "./IconButtons";
|
|
@@ -0,0 +1,232 @@
|
|
|
1
|
+
import { Permission } from "../../permissions";
|
|
2
|
+
import {
|
|
3
|
+
ActivitiesIcon,
|
|
4
|
+
AdmissionsIcon,
|
|
5
|
+
ClassroomsIcon,
|
|
6
|
+
DashboardIcon,
|
|
7
|
+
HostelsIcon,
|
|
8
|
+
LogsIcon,
|
|
9
|
+
HrmsIcon,
|
|
10
|
+
ReportsIcon,
|
|
11
|
+
SettingsIcon,
|
|
12
|
+
StudentsIcon,
|
|
13
|
+
TaskListIcon,
|
|
14
|
+
} from "./icons";
|
|
15
|
+
``;
|
|
16
|
+
export interface IMenuItem {
|
|
17
|
+
title: string;
|
|
18
|
+
path: string;
|
|
19
|
+
icon?: any;
|
|
20
|
+
children?: Array<IMenuItem>;
|
|
21
|
+
permissionKey?: string;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
export const dashboardMenu: Array<IMenuItem> = [
|
|
25
|
+
{
|
|
26
|
+
title: "Dashboard",
|
|
27
|
+
path: "/dashboard",
|
|
28
|
+
icon: DashboardIcon,
|
|
29
|
+
permissionKey: Permission.CAN_DASHBOARD_VIEW,
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
title: "Tasks",
|
|
33
|
+
path: "/tasks",
|
|
34
|
+
icon: TaskListIcon,
|
|
35
|
+
children: [
|
|
36
|
+
{
|
|
37
|
+
title: "Dashboard",
|
|
38
|
+
path: "/dashboard",
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
title: "Taskboard",
|
|
42
|
+
path: "/taskboard/pending-task/",
|
|
43
|
+
permissionKey: Permission.CAN_TASKS_VIEW,
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
title: "Reports",
|
|
47
|
+
path: "/reports",
|
|
48
|
+
},
|
|
49
|
+
],
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
title: "Admissions",
|
|
53
|
+
path: "/admissions",
|
|
54
|
+
icon: AdmissionsIcon,
|
|
55
|
+
children: [
|
|
56
|
+
{
|
|
57
|
+
title: "Dashboard",
|
|
58
|
+
path: "/dashboard",
|
|
59
|
+
permissionKey: Permission.CAN_ADMISSIONS_DASHBOARD_VIEW,
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
title: "Leads",
|
|
63
|
+
path: "/leads",
|
|
64
|
+
permissionKey: Permission.ADMISSIONS_VIEW,
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
title: "CET",
|
|
68
|
+
path: "/cet",
|
|
69
|
+
permissionKey: Permission.ADMISSIONS_VIEW,
|
|
70
|
+
},
|
|
71
|
+
|
|
72
|
+
{
|
|
73
|
+
title: "Reports",
|
|
74
|
+
path: "/reports",
|
|
75
|
+
permissionKey: Permission.ADMISSIONS_VIEW,
|
|
76
|
+
},
|
|
77
|
+
{
|
|
78
|
+
title: "All Admissions",
|
|
79
|
+
path: "/all",
|
|
80
|
+
permissionKey: Permission.ADMISSIONS_VIEW,
|
|
81
|
+
},
|
|
82
|
+
],
|
|
83
|
+
},
|
|
84
|
+
|
|
85
|
+
{
|
|
86
|
+
title: "Students",
|
|
87
|
+
path: "/students",
|
|
88
|
+
icon: StudentsIcon,
|
|
89
|
+
permissionKey: Permission.STUDENTS_VIEW,
|
|
90
|
+
|
|
91
|
+
// children: [
|
|
92
|
+
// {
|
|
93
|
+
// title: 'All Students',
|
|
94
|
+
// path: '/students',
|
|
95
|
+
// icon: UserOutlined,
|
|
96
|
+
// permissionKey: Permission.STUDENTS_VIEW,
|
|
97
|
+
// },
|
|
98
|
+
// {
|
|
99
|
+
// title: 'Detained Students',
|
|
100
|
+
// path: '/detained-students',
|
|
101
|
+
// icon: UserOutlined,
|
|
102
|
+
// permissionKey: Permission.STUDENTS_DETAIN,
|
|
103
|
+
// },
|
|
104
|
+
// ],
|
|
105
|
+
},
|
|
106
|
+
{
|
|
107
|
+
title: "Classrooms",
|
|
108
|
+
path: "/classrooms",
|
|
109
|
+
icon: ClassroomsIcon,
|
|
110
|
+
children: [
|
|
111
|
+
{
|
|
112
|
+
title: "Classrooms",
|
|
113
|
+
path: "/classrooms",
|
|
114
|
+
permissionKey: Permission.CLASSROOM_VIEW,
|
|
115
|
+
},
|
|
116
|
+
{
|
|
117
|
+
title: "Faculty Timetable",
|
|
118
|
+
path: "/faculty-timetable",
|
|
119
|
+
permissionKey: Permission.CLASSROOM_VIEW,
|
|
120
|
+
},
|
|
121
|
+
{
|
|
122
|
+
title: "Reports",
|
|
123
|
+
path: "/reports/classrooms",
|
|
124
|
+
permissionKey: Permission.CLASSROOM_VIEW,
|
|
125
|
+
},
|
|
126
|
+
],
|
|
127
|
+
},
|
|
128
|
+
{
|
|
129
|
+
title: "Activities",
|
|
130
|
+
path: "/activities",
|
|
131
|
+
icon: ActivitiesIcon,
|
|
132
|
+
children: [
|
|
133
|
+
{
|
|
134
|
+
title: "Clubs",
|
|
135
|
+
path: "/clubs",
|
|
136
|
+
permissionKey: Permission.EXTRA_CURRICULAR_ACTIVITIES_CLUBS,
|
|
137
|
+
},
|
|
138
|
+
{
|
|
139
|
+
title: "Events",
|
|
140
|
+
path: "/events",
|
|
141
|
+
permissionKey: Permission.EXTRA_CURRICULAR_ACTIVITIES_EVENTS,
|
|
142
|
+
},
|
|
143
|
+
],
|
|
144
|
+
},
|
|
145
|
+
|
|
146
|
+
{
|
|
147
|
+
title: "Hostels",
|
|
148
|
+
path: "/hostels",
|
|
149
|
+
icon: HostelsIcon,
|
|
150
|
+
children: [
|
|
151
|
+
{
|
|
152
|
+
title: "Dashboard",
|
|
153
|
+
path: "/dashboard",
|
|
154
|
+
permissionKey: Permission.CAN_HOSTELER_DASHBOARD_VIEW,
|
|
155
|
+
},
|
|
156
|
+
{
|
|
157
|
+
title: "Hostelers",
|
|
158
|
+
path: "/hostelers",
|
|
159
|
+
permissionKey: Permission.CAN_HOSTELER_VIEW,
|
|
160
|
+
},
|
|
161
|
+
{
|
|
162
|
+
title: "Fee Payments",
|
|
163
|
+
path: "/fee-payments",
|
|
164
|
+
permissionKey: Permission.CAN_HOSTELER_FEE_PAYMENT_VIEW,
|
|
165
|
+
},
|
|
166
|
+
{
|
|
167
|
+
title: "Reports",
|
|
168
|
+
path: "/reports",
|
|
169
|
+
permissionKey: Permission.CAN_HOSTELER_REPORTS_VIEW,
|
|
170
|
+
},
|
|
171
|
+
],
|
|
172
|
+
},
|
|
173
|
+
{
|
|
174
|
+
title: "Library",
|
|
175
|
+
path: "/library",
|
|
176
|
+
icon: HostelsIcon,
|
|
177
|
+
children: [
|
|
178
|
+
{
|
|
179
|
+
title: "Dashboard",
|
|
180
|
+
path: "/dashboard",
|
|
181
|
+
// permissionKey: Permission.CAN_HOSTELER_DASHBOARD_VIEW,
|
|
182
|
+
},
|
|
183
|
+
{
|
|
184
|
+
title: "Catalogue",
|
|
185
|
+
path: "/catalogue",
|
|
186
|
+
},
|
|
187
|
+
{
|
|
188
|
+
title: "Cards",
|
|
189
|
+
path: "/cards",
|
|
190
|
+
},
|
|
191
|
+
{
|
|
192
|
+
title: "Reports",
|
|
193
|
+
path: "/reports",
|
|
194
|
+
},
|
|
195
|
+
// {
|
|
196
|
+
// title: 'Feedback System',
|
|
197
|
+
// path: '/hostels/feedback-system',
|
|
198
|
+
// },
|
|
199
|
+
],
|
|
200
|
+
},
|
|
201
|
+
{
|
|
202
|
+
title: "HRMS",
|
|
203
|
+
path: "/hrms",
|
|
204
|
+
icon: HrmsIcon,
|
|
205
|
+
children: [
|
|
206
|
+
{
|
|
207
|
+
title: "Leave Applications",
|
|
208
|
+
path: "/leave-applications",
|
|
209
|
+
},
|
|
210
|
+
],
|
|
211
|
+
},
|
|
212
|
+
|
|
213
|
+
{
|
|
214
|
+
title: "Course Registrations",
|
|
215
|
+
path: "/course-registrations",
|
|
216
|
+
icon: ReportsIcon,
|
|
217
|
+
permissionKey: Permission.COURSE_REGISTRATION_VIEW,
|
|
218
|
+
},
|
|
219
|
+
|
|
220
|
+
{
|
|
221
|
+
title: "Activity Logs",
|
|
222
|
+
path: "/audit-logs",
|
|
223
|
+
icon: LogsIcon,
|
|
224
|
+
permissionKey: Permission.VIEW_AUDIT_LOGS,
|
|
225
|
+
},
|
|
226
|
+
{
|
|
227
|
+
title: "Settings",
|
|
228
|
+
path: "/settings",
|
|
229
|
+
icon: SettingsIcon,
|
|
230
|
+
permissionKey: Permission.CAN_SETTINGS_VIEW,
|
|
231
|
+
},
|
|
232
|
+
];
|