@hed-hog/core 0.0.276 → 0.0.279

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 (77) hide show
  1. package/README.md +60 -0
  2. package/dist/auth/auth.controller.d.ts +8 -1
  3. package/dist/auth/auth.controller.d.ts.map +1 -1
  4. package/dist/auth/auth.controller.js +7 -7
  5. package/dist/auth/auth.controller.js.map +1 -1
  6. package/dist/auth/auth.service.d.ts +10 -1
  7. package/dist/auth/auth.service.d.ts.map +1 -1
  8. package/dist/auth/auth.service.js +34 -8
  9. package/dist/auth/auth.service.js.map +1 -1
  10. package/dist/dashboard/dashboard-core/dashboard-core.controller.d.ts +12 -0
  11. package/dist/dashboard/dashboard-core/dashboard-core.controller.d.ts.map +1 -1
  12. package/dist/dashboard/dashboard-core/dashboard-core.controller.js +9 -0
  13. package/dist/dashboard/dashboard-core/dashboard-core.controller.js.map +1 -1
  14. package/dist/dashboard/dashboard-core/dashboard-core.service.d.ts +12 -0
  15. package/dist/dashboard/dashboard-core/dashboard-core.service.d.ts.map +1 -1
  16. package/dist/dashboard/dashboard-core/dashboard-core.service.js +25 -0
  17. package/dist/dashboard/dashboard-core/dashboard-core.service.js.map +1 -1
  18. package/dist/profile/profile.service.js +1 -1
  19. package/dist/profile/profile.service.js.map +1 -1
  20. package/dist/role/guards/role.guard.d.ts +1 -0
  21. package/dist/role/guards/role.guard.d.ts.map +1 -1
  22. package/dist/role/guards/role.guard.js +18 -0
  23. package/dist/role/guards/role.guard.js.map +1 -1
  24. package/dist/session/session.service.js +1 -1
  25. package/dist/session/session.service.js.map +1 -1
  26. package/dist/user/dto/reset-password.dto.d.ts +4 -0
  27. package/dist/user/dto/reset-password.dto.d.ts.map +1 -0
  28. package/dist/user/dto/reset-password.dto.js +26 -0
  29. package/dist/user/dto/reset-password.dto.js.map +1 -0
  30. package/dist/user/user.controller.d.ts +5 -0
  31. package/dist/user/user.controller.d.ts.map +1 -1
  32. package/dist/user/user.controller.js +13 -0
  33. package/dist/user/user.controller.js.map +1 -1
  34. package/dist/user/user.service.d.ts +6 -0
  35. package/dist/user/user.service.d.ts.map +1 -1
  36. package/dist/user/user.service.js +65 -0
  37. package/dist/user/user.service.js.map +1 -1
  38. package/hedhog/data/dashboard_component.yaml +74 -12
  39. package/hedhog/data/dashboard_component_role.yaml +223 -145
  40. package/hedhog/data/dashboard_item.yaml +42 -22
  41. package/hedhog/data/dashboard_role.yaml +18 -12
  42. package/hedhog/data/menu.yaml +6 -0
  43. package/hedhog/data/route.yaml +65 -1
  44. package/hedhog/frontend/app/account/components/change-password-form.tsx.ejs +2 -1
  45. package/hedhog/frontend/app/ai_agent/page.tsx.ejs +17 -17
  46. package/hedhog/frontend/app/dashboard/[slug]/dashboard-content.tsx.ejs +23 -12
  47. package/hedhog/frontend/app/dashboard/components/draggable-grid.tsx.ejs +80 -5
  48. package/hedhog/frontend/app/dashboard/components/widgets/account-security.tsx.ejs +17 -13
  49. package/hedhog/frontend/app/dashboard/components/widgets/activity-timeline.tsx.ejs +16 -12
  50. package/hedhog/frontend/app/dashboard/components/widgets/email-notifications.tsx.ejs +27 -16
  51. package/hedhog/frontend/app/dashboard/components/widgets/login-history-chart.tsx.ejs +13 -9
  52. package/hedhog/frontend/app/dashboard/components/widgets/menus-card.tsx.ejs +58 -0
  53. package/hedhog/frontend/app/dashboard/components/widgets/permissions-chart.tsx.ejs +62 -58
  54. package/hedhog/frontend/app/dashboard/components/widgets/routes-card.tsx.ejs +58 -0
  55. package/hedhog/frontend/app/dashboard/components/widgets/stat-access-level.tsx.ejs +6 -6
  56. package/hedhog/frontend/app/dashboard/components/widgets/stat-actions-today.tsx.ejs +6 -6
  57. package/hedhog/frontend/app/dashboard/components/widgets/stat-consecutive-days.tsx.ejs +6 -6
  58. package/hedhog/frontend/app/dashboard/components/widgets/stat-online-time.tsx.ejs +6 -6
  59. package/hedhog/frontend/app/dashboard/components/widgets/user-roles.tsx.ejs +15 -11
  60. package/hedhog/frontend/app/dashboard/components/widgets/user-sessions.tsx.ejs +18 -15
  61. package/hedhog/frontend/app/dashboard/dashboard.css.ejs +20 -4
  62. package/hedhog/frontend/app/dashboard/page.tsx.ejs +29 -14
  63. package/hedhog/frontend/app/mail/log/page.tsx.ejs +5 -11
  64. package/hedhog/frontend/app/users/page.tsx.ejs +331 -10
  65. package/hedhog/frontend/messages/en.json +29 -3
  66. package/hedhog/frontend/messages/pt.json +29 -3
  67. package/package.json +4 -4
  68. package/src/auth/auth.controller.ts +21 -20
  69. package/src/auth/auth.service.ts +63 -15
  70. package/src/dashboard/dashboard-core/dashboard-core.controller.ts +5 -0
  71. package/src/dashboard/dashboard-core/dashboard-core.service.ts +34 -0
  72. package/src/profile/profile.service.ts +1 -1
  73. package/src/role/guards/role.guard.ts +36 -7
  74. package/src/session/session.service.ts +2 -2
  75. package/src/user/dto/reset-password.dto.ts +11 -0
  76. package/src/user/user.controller.ts +24 -14
  77. package/src/user/user.service.ts +84 -0
@@ -1,145 +1,223 @@
1
- - component_id:
2
- where:
3
- slug: active-users-card
4
- role_id:
5
- where:
6
- slug: admin-access
7
- - component_id:
8
- where:
9
- slug: mail-sent-card
10
- role_id:
11
- where:
12
- slug: admin-access
13
- - component_id:
14
- where:
15
- slug: mail-sent-chart
16
- role_id:
17
- where:
18
- slug: admin-access
19
- - component_id:
20
- where:
21
- slug: permissions-card
22
- role_id:
23
- where:
24
- slug: admin-access
25
- - component_id:
26
- where:
27
- slug: permissions-chart
28
- role_id:
29
- where:
30
- slug: admin-access
31
- - component_id:
32
- where:
33
- slug: session-activity-chart
34
- role_id:
35
- where:
36
- slug: admin-access
37
- - component_id:
38
- where:
39
- slug: sessions-today-card
40
- role_id:
41
- where:
42
- slug: admin-access
43
- - component_id:
44
- where:
45
- slug: user-growth-chart
46
- role_id:
47
- where:
48
- slug: admin-access
49
- - component_id:
50
- where:
51
- slug: account-security
52
- role_id:
53
- where:
54
- slug: user
55
- - component_id:
56
- where:
57
- slug: activity-timeline
58
- role_id:
59
- where:
60
- slug: user
61
- - component_id:
62
- where:
63
- slug: email-notifications
64
- role_id:
65
- where:
66
- slug: user
67
- - component_id:
68
- where:
69
- slug: login-history-chart
70
- role_id:
71
- where:
72
- slug: user
73
- - component_id:
74
- where:
75
- slug: profile-card
76
- role_id:
77
- where:
78
- slug: user
79
- - component_id:
80
- where:
81
- slug: stat-online-time
82
- role_id:
83
- where:
84
- slug: user
85
- - component_id:
86
- where:
87
- slug: stat-actions-today
88
- role_id:
89
- where:
90
- slug: user
91
- - component_id:
92
- where:
93
- slug: stat-consecutive-days
94
- role_id:
95
- where:
96
- slug: user
97
- - component_id:
98
- where:
99
- slug: stat-access-level
100
- role_id:
101
- where:
102
- slug: user
103
- - component_id:
104
- where:
105
- slug: user-roles
106
- role_id:
107
- where:
108
- slug: user
109
- - component_id:
110
- where:
111
- slug: user-sessions
112
- role_id:
113
- where:
114
- slug: user
115
-
116
- - component_id:
117
- where:
118
- slug: mail-config
119
- role_id:
120
- where:
121
- slug: admin
122
- - component_id:
123
- where:
124
- slug: locale-config
125
- role_id:
126
- where:
127
- slug: admin
128
- - component_id:
129
- where:
130
- slug: oauth-config
131
- role_id:
132
- where:
133
- slug: admin
134
- - component_id:
135
- where:
136
- slug: storage-config
137
- role_id:
138
- where:
139
- slug: admin
140
- - component_id:
141
- where:
142
- slug: theme-config
143
- role_id:
144
- where:
145
- slug: admin
1
+ - component_id:
2
+ where:
3
+ slug: active-users-card
4
+ role_id:
5
+ where:
6
+ slug: admin-access
7
+ - component_id:
8
+ where:
9
+ slug: mail-sent-card
10
+ role_id:
11
+ where:
12
+ slug: admin-access
13
+ - component_id:
14
+ where:
15
+ slug: mail-sent-chart
16
+ role_id:
17
+ where:
18
+ slug: admin-access
19
+ - component_id:
20
+ where:
21
+ slug: permissions-card
22
+ role_id:
23
+ where:
24
+ slug: admin-access
25
+ - component_id:
26
+ where:
27
+ slug: permissions-chart
28
+ role_id:
29
+ where:
30
+ slug: admin-access
31
+ - component_id:
32
+ where:
33
+ slug: session-activity-chart
34
+ role_id:
35
+ where:
36
+ slug: admin-access
37
+ - component_id:
38
+ where:
39
+ slug: sessions-today-card
40
+ role_id:
41
+ where:
42
+ slug: admin-access
43
+ - component_id:
44
+ where:
45
+ slug: menus-card
46
+ role_id:
47
+ where:
48
+ slug: admin-access
49
+ - component_id:
50
+ where:
51
+ slug: routes-card
52
+ role_id:
53
+ where:
54
+ slug: admin-access
55
+ - component_id:
56
+ where:
57
+ slug: user-growth-chart
58
+ role_id:
59
+ where:
60
+ slug: admin-access
61
+ - component_id:
62
+ where:
63
+ slug: account-security
64
+ role_id:
65
+ where:
66
+ slug: user
67
+ - component_id:
68
+ where:
69
+ slug: account-security
70
+ role_id:
71
+ where:
72
+ slug: admin-access
73
+ - component_id:
74
+ where:
75
+ slug: activity-timeline
76
+ role_id:
77
+ where:
78
+ slug: user
79
+ - component_id:
80
+ where:
81
+ slug: activity-timeline
82
+ role_id:
83
+ where:
84
+ slug: admin-access
85
+ - component_id:
86
+ where:
87
+ slug: email-notifications
88
+ role_id:
89
+ where:
90
+ slug: user
91
+ - component_id:
92
+ where:
93
+ slug: email-notifications
94
+ role_id:
95
+ where:
96
+ slug: admin-access
97
+ - component_id:
98
+ where:
99
+ slug: login-history-chart
100
+ role_id:
101
+ where:
102
+ slug: user
103
+ - component_id:
104
+ where:
105
+ slug: login-history-chart
106
+ role_id:
107
+ where:
108
+ slug: admin-access
109
+ - component_id:
110
+ where:
111
+ slug: profile-card
112
+ role_id:
113
+ where:
114
+ slug: user
115
+ - component_id:
116
+ where:
117
+ slug: profile-card
118
+ role_id:
119
+ where:
120
+ slug: admin-access
121
+ - component_id:
122
+ where:
123
+ slug: stat-online-time
124
+ role_id:
125
+ where:
126
+ slug: user
127
+ - component_id:
128
+ where:
129
+ slug: stat-online-time
130
+ role_id:
131
+ where:
132
+ slug: admin-access
133
+ - component_id:
134
+ where:
135
+ slug: stat-actions-today
136
+ role_id:
137
+ where:
138
+ slug: user
139
+ - component_id:
140
+ where:
141
+ slug: stat-actions-today
142
+ role_id:
143
+ where:
144
+ slug: admin-access
145
+ - component_id:
146
+ where:
147
+ slug: stat-consecutive-days
148
+ role_id:
149
+ where:
150
+ slug: user
151
+ - component_id:
152
+ where:
153
+ slug: stat-consecutive-days
154
+ role_id:
155
+ where:
156
+ slug: admin-access
157
+ - component_id:
158
+ where:
159
+ slug: stat-access-level
160
+ role_id:
161
+ where:
162
+ slug: user
163
+ - component_id:
164
+ where:
165
+ slug: stat-access-level
166
+ role_id:
167
+ where:
168
+ slug: admin-access
169
+ - component_id:
170
+ where:
171
+ slug: user-roles
172
+ role_id:
173
+ where:
174
+ slug: user
175
+ - component_id:
176
+ where:
177
+ slug: user-roles
178
+ role_id:
179
+ where:
180
+ slug: admin-access
181
+ - component_id:
182
+ where:
183
+ slug: user-sessions
184
+ role_id:
185
+ where:
186
+ slug: user
187
+ - component_id:
188
+ where:
189
+ slug: user-sessions
190
+ role_id:
191
+ where:
192
+ slug: admin-access
193
+
194
+ - component_id:
195
+ where:
196
+ slug: mail-config
197
+ role_id:
198
+ where:
199
+ slug: admin
200
+ - component_id:
201
+ where:
202
+ slug: locale-config
203
+ role_id:
204
+ where:
205
+ slug: admin
206
+ - component_id:
207
+ where:
208
+ slug: oauth-config
209
+ role_id:
210
+ where:
211
+ slug: admin
212
+ - component_id:
213
+ where:
214
+ slug: storage-config
215
+ role_id:
216
+ where:
217
+ slug: admin
218
+ - component_id:
219
+ where:
220
+ slug: theme-config
221
+ role_id:
222
+ where:
223
+ slug: admin
@@ -68,6 +68,26 @@
68
68
  height: 2
69
69
  x_axis: 2
70
70
  y_axis: 0
71
+ - component_id:
72
+ where:
73
+ slug: menus-card
74
+ dashboard_id:
75
+ where:
76
+ slug: default
77
+ width: 2
78
+ height: 2
79
+ x_axis: 8
80
+ y_axis: 0
81
+ - component_id:
82
+ where:
83
+ slug: routes-card
84
+ dashboard_id:
85
+ where:
86
+ slug: default
87
+ width: 2
88
+ height: 2
89
+ x_axis: 10
90
+ y_axis: 0
71
91
  - component_id:
72
92
  where:
73
93
  slug: user-growth-chart
@@ -86,7 +106,7 @@
86
106
  where:
87
107
  slug: user
88
108
  width: 12
89
- height: 2
109
+ height: 3
90
110
  x_axis: 0
91
111
  y_axis: 0
92
112
  - component_id:
@@ -96,9 +116,9 @@
96
116
  where:
97
117
  slug: user
98
118
  width: 3
99
- height: 2
119
+ height: 1
100
120
  x_axis: 0
101
- y_axis: 2
121
+ y_axis: 3
102
122
  - component_id:
103
123
  where:
104
124
  slug: stat-actions-today
@@ -106,9 +126,9 @@
106
126
  where:
107
127
  slug: user
108
128
  width: 3
109
- height: 2
129
+ height: 1
110
130
  x_axis: 3
111
- y_axis: 2
131
+ y_axis: 3
112
132
  - component_id:
113
133
  where:
114
134
  slug: stat-consecutive-days
@@ -116,9 +136,9 @@
116
136
  where:
117
137
  slug: user
118
138
  width: 3
119
- height: 2
139
+ height: 1
120
140
  x_axis: 6
121
- y_axis: 2
141
+ y_axis: 3
122
142
  - component_id:
123
143
  where:
124
144
  slug: stat-access-level
@@ -126,9 +146,9 @@
126
146
  where:
127
147
  slug: user
128
148
  width: 3
129
- height: 2
149
+ height: 1
130
150
  x_axis: 9
131
- y_axis: 2
151
+ y_axis: 3
132
152
  - component_id:
133
153
  where:
134
154
  slug: account-security
@@ -136,19 +156,19 @@
136
156
  where:
137
157
  slug: user
138
158
  width: 5
139
- height: 4
159
+ height: 5
140
160
  x_axis: 0
141
- y_axis: 8
161
+ y_axis: 7
142
162
  - component_id:
143
163
  where:
144
164
  slug: login-history-chart
145
165
  dashboard_id:
146
166
  where:
147
167
  slug: user
148
- width: 6
168
+ width: 7
149
169
  height: 4
150
170
  x_axis: 0
151
- y_axis: 4
171
+ y_axis: 3
152
172
  - component_id:
153
173
  where:
154
174
  slug: email-notifications
@@ -156,9 +176,9 @@
156
176
  where:
157
177
  slug: user
158
178
  width: 7
159
- height: 4
179
+ height: 5
160
180
  x_axis: 5
161
- y_axis: 8
181
+ y_axis: 7
162
182
  - component_id:
163
183
  where:
164
184
  slug: activity-timeline
@@ -166,18 +186,18 @@
166
186
  where:
167
187
  slug: user
168
188
  width: 5
169
- height: 2
189
+ height: 3
170
190
  x_axis: 7
171
- y_axis: 12
191
+ y_axis: 13
172
192
  - component_id:
173
193
  where:
174
194
  slug: user-sessions
175
195
  dashboard_id:
176
196
  where:
177
197
  slug: user
178
- width: 6
198
+ width: 5
179
199
  height: 4
180
- x_axis: 6
200
+ x_axis: 7
181
201
  y_axis: 4
182
202
  - component_id:
183
203
  where:
@@ -185,10 +205,10 @@
185
205
  dashboard_id:
186
206
  where:
187
207
  slug: user
188
- width: 6
189
- height: 6
208
+ width: 7
209
+ height: 3
190
210
  x_axis: 0
191
- y_axis: 12
211
+ y_axis: 13
192
212
 
193
213
  - component_id:
194
214
  where:
@@ -4,15 +4,21 @@
4
4
  role_id:
5
5
  where:
6
6
  slug: admin-access
7
- - dashboard_id:
8
- where:
9
- slug: user
10
- role_id:
11
- where:
12
- slug: user
13
- - dashboard_id:
14
- where:
15
- slug: config
16
- role_id:
17
- where:
18
- slug: admin
7
+ - dashboard_id:
8
+ where:
9
+ slug: user
10
+ role_id:
11
+ where:
12
+ slug: user
13
+ - dashboard_id:
14
+ where:
15
+ slug: user
16
+ role_id:
17
+ where:
18
+ slug: admin-access
19
+ - dashboard_id:
20
+ where:
21
+ slug: config
22
+ role_id:
23
+ where:
24
+ slug: admin
@@ -19,6 +19,8 @@
19
19
  role:
20
20
  - where:
21
21
  slug: admin
22
+ - where:
23
+ slug: admin-mail
22
24
  - menu_id:
23
25
  where:
24
26
  slug: /core/management
@@ -89,6 +91,8 @@
89
91
  role:
90
92
  - where:
91
93
  slug: admin
94
+ - where:
95
+ slug: admin-mail
92
96
  - menu_id:
93
97
  where:
94
98
  slug: /core/management
@@ -128,3 +132,5 @@
128
132
  role:
129
133
  - where:
130
134
  slug: admin
135
+ - where:
136
+ slug: admin-user