@hed-hog/core 0.0.274 → 0.0.276
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/README.md +399 -38
- package/dist/ai/ai.service.d.ts.map +1 -1
- package/dist/ai/ai.service.js +7 -8
- package/dist/ai/ai.service.js.map +1 -1
- package/dist/task/task.service.d.ts.map +1 -1
- package/dist/task/task.service.js +1 -2
- package/dist/task/task.service.js.map +1 -1
- package/hedhog/data/dashboard_component.yaml +11 -11
- package/hedhog/data/dashboard_item.yaml +32 -32
- package/hedhog/frontend/app/dashboard/[slug]/dashboard-content.tsx.ejs +10 -10
- package/hedhog/frontend/app/dashboard/components/draggable-grid.tsx.ejs +20 -20
- package/hedhog/frontend/app/dashboard/components/widget-wrapper.tsx.ejs +6 -6
- package/hedhog/frontend/app/dashboard/dashboard.css.ejs +92 -92
- package/hedhog/table/mail.yaml +15 -15
- package/hedhog/table/mail_sent.yaml +21 -21
- package/hedhog/table/mail_var.yaml +12 -12
- package/package.json +3 -3
- package/src/ai/ai.service.ts +3 -4
- package/src/setting/setting.service.ts +5 -5
- package/src/task/task.service.ts +5 -6
|
@@ -1,62 +1,62 @@
|
|
|
1
|
-
.dashboard-grid.react-grid-layout {
|
|
2
|
-
position: relative;
|
|
3
|
-
transition: height 200ms ease;
|
|
4
|
-
}
|
|
5
|
-
|
|
6
|
-
.dashboard-grid .react-grid-item {
|
|
7
|
-
transition: all 200ms ease;
|
|
8
|
-
transition-property: left, top, width, height;
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
.dashboard-grid .react-grid-item img {
|
|
12
|
-
pointer-events: none;
|
|
13
|
-
user-select: none;
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
.dashboard-grid .react-grid-item > .react-resizable-handle {
|
|
17
|
-
position: absolute;
|
|
18
|
-
width: 18px;
|
|
19
|
-
height: 18px;
|
|
20
|
-
z-index: 10;
|
|
21
|
-
opacity: 0;
|
|
22
|
-
transition: opacity 0.15s ease;
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
.dashboard-grid .react-grid-item > .react-resizable-handle::after {
|
|
26
|
-
content: '';
|
|
27
|
-
position: absolute;
|
|
28
|
-
right: 3px;
|
|
29
|
-
bottom: 3px;
|
|
30
|
-
width: 6px;
|
|
31
|
-
height: 6px;
|
|
32
|
-
border-right: 2px solid hsl(var(--muted-foreground));
|
|
33
|
-
border-bottom: 2px solid hsl(var(--muted-foreground));
|
|
34
|
-
opacity: 0.45;
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
.dashboard-grid .react-grid-item:hover > .react-resizable-handle.react-resizable-handle-se,
|
|
38
|
-
.dashboard-grid .react-grid-item.resizing > .react-resizable-handle.react-resizable-handle-se {
|
|
39
|
-
opacity: 1;
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
.dashboard-grid .react-resizable-hide > .react-resizable-handle {
|
|
43
|
-
display: none;
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
.dashboard-grid .react-grid-item > .react-resizable-handle:not(.react-resizable-handle-se) {
|
|
47
|
-
display: none;
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
.dashboard-grid .react-grid-item > .react-resizable-handle.react-resizable-handle-se {
|
|
51
|
-
bottom: 0;
|
|
52
|
-
right: 0;
|
|
53
|
-
cursor: se-resize;
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
/* Drag handle styles */
|
|
57
|
-
.drag-handle {
|
|
58
|
-
cursor: grab !important;
|
|
59
|
-
user-select: none !important;
|
|
1
|
+
.dashboard-grid.react-grid-layout {
|
|
2
|
+
position: relative;
|
|
3
|
+
transition: height 200ms ease;
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
.dashboard-grid .react-grid-item {
|
|
7
|
+
transition: all 200ms ease;
|
|
8
|
+
transition-property: left, top, width, height;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
.dashboard-grid .react-grid-item img {
|
|
12
|
+
pointer-events: none;
|
|
13
|
+
user-select: none;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
.dashboard-grid .react-grid-item > .react-resizable-handle {
|
|
17
|
+
position: absolute;
|
|
18
|
+
width: 18px;
|
|
19
|
+
height: 18px;
|
|
20
|
+
z-index: 10;
|
|
21
|
+
opacity: 0;
|
|
22
|
+
transition: opacity 0.15s ease;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
.dashboard-grid .react-grid-item > .react-resizable-handle::after {
|
|
26
|
+
content: '';
|
|
27
|
+
position: absolute;
|
|
28
|
+
right: 3px;
|
|
29
|
+
bottom: 3px;
|
|
30
|
+
width: 6px;
|
|
31
|
+
height: 6px;
|
|
32
|
+
border-right: 2px solid hsl(var(--muted-foreground));
|
|
33
|
+
border-bottom: 2px solid hsl(var(--muted-foreground));
|
|
34
|
+
opacity: 0.45;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
.dashboard-grid .react-grid-item:hover > .react-resizable-handle.react-resizable-handle-se,
|
|
38
|
+
.dashboard-grid .react-grid-item.resizing > .react-resizable-handle.react-resizable-handle-se {
|
|
39
|
+
opacity: 1;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
.dashboard-grid .react-resizable-hide > .react-resizable-handle {
|
|
43
|
+
display: none;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
.dashboard-grid .react-grid-item > .react-resizable-handle:not(.react-resizable-handle-se) {
|
|
47
|
+
display: none;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
.dashboard-grid .react-grid-item > .react-resizable-handle.react-resizable-handle-se {
|
|
51
|
+
bottom: 0;
|
|
52
|
+
right: 0;
|
|
53
|
+
cursor: se-resize;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
/* Drag handle styles */
|
|
57
|
+
.drag-handle {
|
|
58
|
+
cursor: grab !important;
|
|
59
|
+
user-select: none !important;
|
|
60
60
|
}
|
|
61
61
|
|
|
62
62
|
.drag-handle:active {
|
|
@@ -64,41 +64,41 @@
|
|
|
64
64
|
}
|
|
65
65
|
|
|
66
66
|
/* Prevent text selection during drag */
|
|
67
|
-
.dashboard-grid .react-grid-item.react-draggable-dragging {
|
|
68
|
-
transition: none;
|
|
69
|
-
z-index: 100;
|
|
70
|
-
will-change: transform;
|
|
71
|
-
opacity: 0.9;
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
.dashboard-grid .react-grid-item.resizing {
|
|
75
|
-
transition: none;
|
|
76
|
-
z-index: 100;
|
|
77
|
-
will-change: transform;
|
|
78
|
-
opacity: 0.9;
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
/* Placeholder styling */
|
|
82
|
-
.dashboard-grid .react-grid-placeholder {
|
|
83
|
-
background: hsl(var(--primary) / 0.2);
|
|
84
|
-
opacity: 0.5;
|
|
85
|
-
transition-duration: 100ms;
|
|
67
|
+
.dashboard-grid .react-grid-item.react-draggable-dragging {
|
|
68
|
+
transition: none;
|
|
69
|
+
z-index: 100;
|
|
70
|
+
will-change: transform;
|
|
71
|
+
opacity: 0.9;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
.dashboard-grid .react-grid-item.resizing {
|
|
75
|
+
transition: none;
|
|
76
|
+
z-index: 100;
|
|
77
|
+
will-change: transform;
|
|
78
|
+
opacity: 0.9;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
/* Placeholder styling */
|
|
82
|
+
.dashboard-grid .react-grid-placeholder {
|
|
83
|
+
background: hsl(var(--primary) / 0.2);
|
|
84
|
+
opacity: 0.5;
|
|
85
|
+
transition-duration: 100ms;
|
|
86
86
|
z-index: 2;
|
|
87
87
|
border-radius: 0.5rem;
|
|
88
88
|
border: 2px dashed hsl(var(--primary));
|
|
89
89
|
}
|
|
90
90
|
|
|
91
|
-
.dashboard-grid .react-grid-item:hover {
|
|
92
|
-
outline: 1px solid hsl(var(--primary) / 0.12);
|
|
93
|
-
outline-offset: -1px;
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
.dashboard-widget > [data-slot='card'] {
|
|
97
|
-
gap: 0.75rem;
|
|
98
|
-
padding-top: 0.75rem;
|
|
99
|
-
padding-bottom: 0.75rem;
|
|
100
|
-
}
|
|
101
|
-
|
|
102
|
-
.dashboard-widget > [data-slot='card'] > [data-slot='card-header'] {
|
|
103
|
-
padding-top: 0;
|
|
104
|
-
}
|
|
91
|
+
.dashboard-grid .react-grid-item:hover {
|
|
92
|
+
outline: 1px solid hsl(var(--primary) / 0.12);
|
|
93
|
+
outline-offset: -1px;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
.dashboard-widget > [data-slot='card'] {
|
|
97
|
+
gap: 0.75rem;
|
|
98
|
+
padding-top: 0.75rem;
|
|
99
|
+
padding-bottom: 0.75rem;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
.dashboard-widget > [data-slot='card'] > [data-slot='card-header'] {
|
|
103
|
+
padding-top: 0;
|
|
104
|
+
}
|
package/hedhog/table/mail.yaml
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
columns:
|
|
2
|
-
- type: pk
|
|
3
|
-
- type: slug
|
|
4
|
-
- name: subject
|
|
5
|
-
type: locale_varchar
|
|
6
|
-
locale:
|
|
7
|
-
pt: Assunto
|
|
8
|
-
en: Subject
|
|
9
|
-
- name: body
|
|
10
|
-
type: locale_text
|
|
11
|
-
locale:
|
|
12
|
-
pt: Corpo
|
|
13
|
-
en: Body
|
|
14
|
-
- type: created_at
|
|
15
|
-
- type: updated_at
|
|
1
|
+
columns:
|
|
2
|
+
- type: pk
|
|
3
|
+
- type: slug
|
|
4
|
+
- name: subject
|
|
5
|
+
type: locale_varchar
|
|
6
|
+
locale:
|
|
7
|
+
pt: Assunto
|
|
8
|
+
en: Subject
|
|
9
|
+
- name: body
|
|
10
|
+
type: locale_text
|
|
11
|
+
locale:
|
|
12
|
+
pt: Corpo
|
|
13
|
+
en: Body
|
|
14
|
+
- type: created_at
|
|
15
|
+
- type: updated_at
|
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
columns:
|
|
2
|
-
- type: pk
|
|
3
|
-
- type: fk
|
|
4
|
-
name: mail_id
|
|
5
|
-
references:
|
|
6
|
-
table: mail
|
|
7
|
-
column: id
|
|
8
|
-
onDelete: cascade
|
|
9
|
-
onUpdate: cascade
|
|
10
|
-
- name: subject
|
|
11
|
-
- name: from
|
|
12
|
-
- name: to
|
|
13
|
-
isNullable: true
|
|
14
|
-
- name: cc
|
|
15
|
-
isNullable: true
|
|
16
|
-
- name: bcc
|
|
17
|
-
isNullable: true
|
|
18
|
-
- name: body
|
|
19
|
-
type: text
|
|
20
|
-
- type: created_at
|
|
21
|
-
- type: updated_at
|
|
1
|
+
columns:
|
|
2
|
+
- type: pk
|
|
3
|
+
- type: fk
|
|
4
|
+
name: mail_id
|
|
5
|
+
references:
|
|
6
|
+
table: mail
|
|
7
|
+
column: id
|
|
8
|
+
onDelete: cascade
|
|
9
|
+
onUpdate: cascade
|
|
10
|
+
- name: subject
|
|
11
|
+
- name: from
|
|
12
|
+
- name: to
|
|
13
|
+
isNullable: true
|
|
14
|
+
- name: cc
|
|
15
|
+
isNullable: true
|
|
16
|
+
- name: bcc
|
|
17
|
+
isNullable: true
|
|
18
|
+
- name: body
|
|
19
|
+
type: text
|
|
20
|
+
- type: created_at
|
|
21
|
+
- type: updated_at
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
columns:
|
|
2
|
-
- type: pk
|
|
3
|
-
- type: fk
|
|
4
|
-
name: mail_id
|
|
5
|
-
references:
|
|
6
|
-
table: mail
|
|
7
|
-
column: id
|
|
8
|
-
onDelete: cascade
|
|
9
|
-
onUpdate: cascade
|
|
10
|
-
- name: name
|
|
11
|
-
- type: created_at
|
|
12
|
-
- type: updated_at
|
|
1
|
+
columns:
|
|
2
|
+
- type: pk
|
|
3
|
+
- type: fk
|
|
4
|
+
name: mail_id
|
|
5
|
+
references:
|
|
6
|
+
table: mail
|
|
7
|
+
column: id
|
|
8
|
+
onDelete: cascade
|
|
9
|
+
onUpdate: cascade
|
|
10
|
+
- name: name
|
|
11
|
+
- type: created_at
|
|
12
|
+
- type: updated_at
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hed-hog/core",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.276",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"types": "dist/index.d.ts",
|
|
6
6
|
"dependencies": {
|
|
@@ -32,10 +32,10 @@
|
|
|
32
32
|
"uuid": "^11.1.0",
|
|
33
33
|
"@hed-hog/api-pagination": "0.0.6",
|
|
34
34
|
"@hed-hog/api-prisma": "0.0.5",
|
|
35
|
-
"@hed-hog/api-
|
|
35
|
+
"@hed-hog/api-types": "0.0.1",
|
|
36
36
|
"@hed-hog/api-mail": "0.0.8",
|
|
37
37
|
"@hed-hog/api": "0.0.4",
|
|
38
|
-
"@hed-hog/api-
|
|
38
|
+
"@hed-hog/api-locale": "0.0.13"
|
|
39
39
|
},
|
|
40
40
|
"exports": {
|
|
41
41
|
".": {
|
package/src/ai/ai.service.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { PaginationDTO } from '@hed-hog/api-pagination';
|
|
2
|
-
import { PrismaService } from '@hed-hog/api-prisma';
|
|
1
|
+
import { PaginationDTO } from '@hed-hog/api-pagination';
|
|
2
|
+
import { Prisma, PrismaService } from '@hed-hog/api-prisma';
|
|
3
3
|
import {
|
|
4
4
|
BadRequestException,
|
|
5
5
|
forwardRef,
|
|
@@ -8,8 +8,7 @@ import {
|
|
|
8
8
|
Logger,
|
|
9
9
|
NotFoundException,
|
|
10
10
|
} from '@nestjs/common';
|
|
11
|
-
import
|
|
12
|
-
import axios from 'axios';
|
|
11
|
+
import axios from 'axios';
|
|
13
12
|
import { createHash } from 'crypto';
|
|
14
13
|
import pdfParse from 'pdf-parse';
|
|
15
14
|
import { DeleteDTO } from '../dto/delete.dto';
|
|
@@ -181,11 +181,11 @@ export class SettingService {
|
|
|
181
181
|
'date-format',
|
|
182
182
|
'time-format',
|
|
183
183
|
'timezone',
|
|
184
|
-
'menu-width',
|
|
185
|
-
'providers',
|
|
186
|
-
'disable-authentication-with-email-and-password',
|
|
187
|
-
'contact-allow-company-registration',
|
|
188
|
-
];
|
|
184
|
+
'menu-width',
|
|
185
|
+
'providers',
|
|
186
|
+
'disable-authentication-with-email-and-password',
|
|
187
|
+
'contact-allow-company-registration',
|
|
188
|
+
];
|
|
189
189
|
const setting = await this.getSettingValues(slugs);
|
|
190
190
|
return { locales, setting };
|
|
191
191
|
}
|
package/src/task/task.service.ts
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import { PrismaService } from '@hed-hog/api-prisma';
|
|
2
|
-
import { Injectable, Logger } from '@nestjs/common';
|
|
3
|
-
import { Cron, CronExpression } from '@nestjs/schedule';
|
|
4
|
-
import {
|
|
5
|
-
import { SettingService } from '../setting/setting.service';
|
|
1
|
+
import { Prisma, PrismaService } from '@hed-hog/api-prisma';
|
|
2
|
+
import { Injectable, Logger } from '@nestjs/common';
|
|
3
|
+
import { Cron, CronExpression } from '@nestjs/schedule';
|
|
4
|
+
import { SettingService } from '../setting/setting.service';
|
|
6
5
|
|
|
7
6
|
@Injectable()
|
|
8
7
|
export class TasksService {
|
|
@@ -226,4 +225,4 @@ export class TasksService {
|
|
|
226
225
|
`Unverified MFA with expired challenges cleaned up in ${Date.now() - startAt}ms`,
|
|
227
226
|
);
|
|
228
227
|
}
|
|
229
|
-
}
|
|
228
|
+
}
|