@hed-hog/core 0.0.297 → 0.0.299
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/auth/auth.controller.d.ts +10 -10
- package/dist/auth/auth.service.d.ts +10 -10
- package/dist/dashboard/dashboard/dashboard.controller.d.ts +3 -0
- package/dist/dashboard/dashboard/dashboard.controller.d.ts.map +1 -1
- package/dist/dashboard/dashboard/dashboard.service.d.ts +3 -0
- package/dist/dashboard/dashboard/dashboard.service.d.ts.map +1 -1
- package/dist/dashboard/dashboard-component/dashboard-component.controller.d.ts +12 -0
- package/dist/dashboard/dashboard-component/dashboard-component.controller.d.ts.map +1 -1
- package/dist/dashboard/dashboard-component/dashboard-component.controller.js +22 -0
- package/dist/dashboard/dashboard-component/dashboard-component.controller.js.map +1 -1
- package/dist/dashboard/dashboard-component/dashboard-component.service.d.ts +15 -0
- package/dist/dashboard/dashboard-component/dashboard-component.service.d.ts.map +1 -1
- package/dist/dashboard/dashboard-component/dashboard-component.service.js +110 -3
- package/dist/dashboard/dashboard-component/dashboard-component.service.js.map +1 -1
- package/dist/dashboard/dashboard-component/dto/create.dto.d.ts +1 -0
- package/dist/dashboard/dashboard-component/dto/create.dto.d.ts.map +1 -1
- package/dist/dashboard/dashboard-component/dto/create.dto.js +5 -0
- package/dist/dashboard/dashboard-component/dto/create.dto.js.map +1 -1
- package/dist/dashboard/dashboard-component/dto/update.dto.d.ts +1 -0
- package/dist/dashboard/dashboard-component/dto/update.dto.d.ts.map +1 -1
- package/dist/dashboard/dashboard-component/dto/update.dto.js +5 -0
- package/dist/dashboard/dashboard-component/dto/update.dto.js.map +1 -1
- package/dist/dashboard/dashboard-component-role/dashboard-component-role.controller.d.ts +1 -0
- package/dist/dashboard/dashboard-component-role/dashboard-component-role.controller.d.ts.map +1 -1
- package/dist/dashboard/dashboard-component-role/dashboard-component-role.service.d.ts +1 -0
- package/dist/dashboard/dashboard-component-role/dashboard-component-role.service.d.ts.map +1 -1
- package/dist/dashboard/dashboard-core/dashboard-core.controller.d.ts +21 -1
- package/dist/dashboard/dashboard-core/dashboard-core.controller.d.ts.map +1 -1
- package/dist/dashboard/dashboard-core/dashboard-core.controller.js +9 -0
- package/dist/dashboard/dashboard-core/dashboard-core.controller.js.map +1 -1
- package/dist/dashboard/dashboard-core/dashboard-core.module.d.ts.map +1 -1
- package/dist/dashboard/dashboard-core/dashboard-core.module.js +6 -1
- package/dist/dashboard/dashboard-core/dashboard-core.module.js.map +1 -1
- package/dist/dashboard/dashboard-core/dashboard-core.service.d.ts +180 -2
- package/dist/dashboard/dashboard-core/dashboard-core.service.d.ts.map +1 -1
- package/dist/dashboard/dashboard-core/dashboard-core.service.js +619 -9
- package/dist/dashboard/dashboard-core/dashboard-core.service.js.map +1 -1
- package/dist/dashboard/dashboard-item/dashboard-item.controller.d.ts +1 -0
- package/dist/dashboard/dashboard-item/dashboard-item.controller.d.ts.map +1 -1
- package/dist/dashboard/dashboard-item/dashboard-item.service.d.ts +1 -0
- package/dist/dashboard/dashboard-item/dashboard-item.service.d.ts.map +1 -1
- package/dist/file/file.controller.d.ts.map +1 -1
- package/dist/file/file.controller.js +16 -0
- package/dist/file/file.controller.js.map +1 -1
- package/dist/file/file.service.d.ts +7 -1
- package/dist/file/file.service.d.ts.map +1 -1
- package/dist/file/file.service.js +38 -1
- package/dist/file/file.service.js.map +1 -1
- package/dist/file/provider/s3.provider.d.ts +1 -0
- package/dist/file/provider/s3.provider.d.ts.map +1 -1
- package/dist/file/provider/s3.provider.js +38 -29
- package/dist/file/provider/s3.provider.js.map +1 -1
- package/dist/oauth/oauth.service.d.ts.map +1 -1
- package/dist/oauth/oauth.service.js +2 -1
- package/dist/oauth/oauth.service.js.map +1 -1
- package/dist/user/constants/user.constants.d.ts +1 -0
- package/dist/user/constants/user.constants.d.ts.map +1 -1
- package/dist/user/constants/user.constants.js +2 -1
- package/dist/user/constants/user.constants.js.map +1 -1
- package/dist/user/user.controller.d.ts +10 -10
- package/dist/user/user.service.d.ts +30 -30
- package/dist/user/user.service.d.ts.map +1 -1
- package/dist/user/user.service.js +2 -1
- package/dist/user/user.service.js.map +1 -1
- package/hedhog/data/dashboard_item.yaml +10 -10
- package/hedhog/data/route.yaml +20 -0
- package/hedhog/frontend/app/dashboard/[slug]/dashboard-content.tsx.ejs +212 -34
- package/hedhog/frontend/app/dashboard/[slug]/types.ts.ejs +3 -0
- package/hedhog/frontend/app/dashboard/[slug]/widget-renderer.tsx.ejs +136 -23
- package/hedhog/frontend/app/dashboard/components/add-widget-selector-dialog.tsx.ejs +266 -85
- package/hedhog/frontend/app/dashboard/components/widgets/core..gitkeep.ejs +11 -0
- package/hedhog/frontend/app/dashboard/components/widgets/core.account-security.tsx.ejs +192 -0
- package/hedhog/frontend/app/dashboard/components/widgets/core.email-notifications.tsx.ejs +226 -0
- package/hedhog/frontend/app/dashboard/components/widgets/core.locale-config.tsx.ejs +168 -0
- package/hedhog/frontend/app/dashboard/components/widgets/core.mail-config.tsx.ejs +199 -0
- package/hedhog/frontend/app/dashboard/components/widgets/core.oauth-config.tsx.ejs +175 -0
- package/hedhog/frontend/app/dashboard/components/widgets/core.profile-card.tsx.ejs +186 -0
- package/hedhog/frontend/app/dashboard/components/widgets/core.storage-config.tsx.ejs +196 -0
- package/hedhog/frontend/app/dashboard/components/widgets/core.theme-config.tsx.ejs +213 -0
- package/hedhog/frontend/app/dashboard/components/widgets/core.user-roles.tsx.ejs +132 -0
- package/hedhog/frontend/app/dashboard/components/widgets/core.user-sessions.tsx.ejs +236 -0
- package/hedhog/frontend/app/dashboard/components/widgets/finance.alerts.tsx.ejs +108 -0
- package/hedhog/frontend/app/dashboard/components/widgets/finance.cash-balance-kpi.tsx.ejs +66 -0
- package/hedhog/frontend/app/dashboard/components/widgets/finance.cash-flow-chart.tsx.ejs +122 -0
- package/hedhog/frontend/app/dashboard/components/widgets/finance.default-kpi.tsx.ejs +63 -0
- package/hedhog/frontend/app/dashboard/components/widgets/finance.payable-30d-kpi.tsx.ejs +73 -0
- package/hedhog/frontend/app/dashboard/components/widgets/finance.receivable-30d-kpi.tsx.ejs +73 -0
- package/hedhog/frontend/app/dashboard/components/widgets/finance.upcoming-payable.tsx.ejs +123 -0
- package/hedhog/frontend/app/dashboard/components/widgets/finance.upcoming-receivable.tsx.ejs +118 -0
- package/hedhog/frontend/messages/en.json +93 -0
- package/hedhog/frontend/messages/pt.json +93 -0
- package/hedhog/frontend/public/dashboard-previews/.gitkeep +12 -0
- package/hedhog/frontend/public/dashboard-previews/account-security.png +0 -0
- package/hedhog/frontend/public/dashboard-previews/active-users-card.png +0 -0
- package/hedhog/frontend/public/dashboard-previews/activity-timeline.png +0 -0
- package/hedhog/frontend/public/dashboard-previews/cash-balance-kpi.png +0 -0
- package/hedhog/frontend/public/dashboard-previews/cash-flow-chart.png +0 -0
- package/hedhog/frontend/public/dashboard-previews/default-kpi.png +0 -0
- package/hedhog/frontend/public/dashboard-previews/email-notifications.png +0 -0
- package/hedhog/frontend/public/dashboard-previews/financial-alerts.png +0 -0
- package/hedhog/frontend/public/dashboard-previews/login-history-chart.png +0 -0
- package/hedhog/frontend/public/dashboard-previews/mail-sent-card.png +0 -0
- package/hedhog/frontend/public/dashboard-previews/mail-sent-chart.png +0 -0
- package/hedhog/frontend/public/dashboard-previews/menus-card.png +0 -0
- package/hedhog/frontend/public/dashboard-previews/payable-30d-kpi.png +0 -0
- package/hedhog/frontend/public/dashboard-previews/permissions-card.png +0 -0
- package/hedhog/frontend/public/dashboard-previews/permissions-chart.png +0 -0
- package/hedhog/frontend/public/dashboard-previews/profile-card.png +0 -0
- package/hedhog/frontend/public/dashboard-previews/receivable-30d-kpi.png +0 -0
- package/hedhog/frontend/public/dashboard-previews/routes-card.png +0 -0
- package/hedhog/frontend/public/dashboard-previews/session-activity-chart.png +0 -0
- package/hedhog/frontend/public/dashboard-previews/sessions-today-card.png +0 -0
- package/hedhog/frontend/public/dashboard-previews/stat-access-level.png +0 -0
- package/hedhog/frontend/public/dashboard-previews/stat-actions-today.png +0 -0
- package/hedhog/frontend/public/dashboard-previews/stat-consecutive-days.png +0 -0
- package/hedhog/frontend/public/dashboard-previews/stat-online-time.png +0 -0
- package/hedhog/frontend/public/dashboard-previews/upcoming-payable.png +0 -0
- package/hedhog/frontend/public/dashboard-previews/upcoming-receivable.png +0 -0
- package/hedhog/frontend/public/dashboard-previews/user-growth-chart.png +0 -0
- package/hedhog/frontend/public/dashboard-previews/user-roles.png +0 -0
- package/hedhog/frontend/{app/dashboard/components/widgets → widgets}/account-security.tsx.ejs +33 -29
- package/hedhog/frontend/widgets/active-users-card.tsx.ejs +58 -0
- package/hedhog/frontend/widgets/activity-timeline.tsx.ejs +223 -0
- package/hedhog/frontend/{app/dashboard/components/widgets → widgets}/email-notifications.tsx.ejs +85 -61
- package/hedhog/frontend/widgets/locale-config.tsx.ejs +168 -0
- package/hedhog/frontend/widgets/login-history-chart.tsx.ejs +115 -0
- package/hedhog/frontend/widgets/mail-config.tsx.ejs +199 -0
- package/hedhog/frontend/widgets/mail-sent-card.tsx.ejs +58 -0
- package/hedhog/frontend/widgets/mail-sent-chart.tsx.ejs +149 -0
- package/hedhog/frontend/widgets/menus-card.tsx.ejs +58 -0
- package/hedhog/frontend/widgets/oauth-config.tsx.ejs +175 -0
- package/hedhog/frontend/widgets/permissions-card.tsx.ejs +61 -0
- package/hedhog/frontend/widgets/permissions-chart.tsx.ejs +156 -0
- package/hedhog/frontend/{app/dashboard/components/widgets → widgets}/profile-card.tsx.ejs +3 -3
- package/hedhog/frontend/widgets/routes-card.tsx.ejs +58 -0
- package/hedhog/frontend/widgets/session-activity-chart.tsx.ejs +183 -0
- package/hedhog/frontend/widgets/sessions-today-card.tsx.ejs +62 -0
- package/hedhog/frontend/widgets/stat-access-level.tsx.ejs +57 -0
- package/hedhog/frontend/widgets/stat-actions-today.tsx.ejs +57 -0
- package/hedhog/frontend/widgets/stat-consecutive-days.tsx.ejs +57 -0
- package/hedhog/frontend/widgets/stat-online-time.tsx.ejs +57 -0
- package/hedhog/frontend/widgets/storage-config.tsx.ejs +196 -0
- package/hedhog/frontend/widgets/theme-config.tsx.ejs +213 -0
- package/hedhog/frontend/widgets/user-growth-chart.tsx.ejs +210 -0
- package/hedhog/frontend/{app/dashboard/components/widgets → widgets}/user-roles.tsx.ejs +12 -14
- package/hedhog/frontend/{app/dashboard/components/widgets → widgets}/user-sessions.tsx.ejs +1 -1
- package/hedhog/table/dashboard_component.yaml +7 -0
- package/hedhog/table/mail_sent_user.yaml +75 -0
- package/package.json +4 -4
- package/src/dashboard/dashboard-component/dashboard-component.controller.ts +36 -12
- package/src/dashboard/dashboard-component/dashboard-component.service.ts +150 -3
- package/src/dashboard/dashboard-component/dto/create.dto.ts +4 -0
- package/src/dashboard/dashboard-component/dto/update.dto.ts +4 -0
- package/src/dashboard/dashboard-core/dashboard-core.controller.ts +5 -0
- package/src/dashboard/dashboard-core/dashboard-core.module.ts +6 -1
- package/src/dashboard/dashboard-core/dashboard-core.service.ts +874 -8
- package/src/file/file.controller.ts +37 -13
- package/src/file/file.service.ts +47 -5
- package/src/file/provider/s3.provider.ts +39 -29
- package/src/oauth/oauth.service.ts +8 -7
- package/src/user/constants/user.constants.ts +1 -0
- package/src/user/user.service.ts +2 -1
- package/hedhog/frontend/app/dashboard/components/widgets/locale-config.tsx.ejs +0 -309
- package/hedhog/frontend/app/dashboard/components/widgets/mail-config.tsx.ejs +0 -445
- package/hedhog/frontend/app/dashboard/components/widgets/oauth-config.tsx.ejs +0 -296
- package/hedhog/frontend/app/dashboard/components/widgets/storage-config.tsx.ejs +0 -340
- package/hedhog/frontend/app/dashboard/components/widgets/theme-config.tsx.ejs +0 -275
- /package/hedhog/frontend/app/dashboard/components/widgets/{active-users-card.tsx.ejs → core.active-users-card.tsx.ejs} +0 -0
- /package/hedhog/frontend/app/dashboard/components/widgets/{activity-timeline.tsx.ejs → core.activity-timeline.tsx.ejs} +0 -0
- /package/hedhog/frontend/app/dashboard/components/widgets/{login-history-chart.tsx.ejs → core.login-history-chart.tsx.ejs} +0 -0
- /package/hedhog/frontend/app/dashboard/components/widgets/{mail-sent-card.tsx.ejs → core.mail-sent-card.tsx.ejs} +0 -0
- /package/hedhog/frontend/app/dashboard/components/widgets/{mail-sent-chart.tsx.ejs → core.mail-sent-chart.tsx.ejs} +0 -0
- /package/hedhog/frontend/app/dashboard/components/widgets/{menus-card.tsx.ejs → core.menus-card.tsx.ejs} +0 -0
- /package/hedhog/frontend/app/dashboard/components/widgets/{permissions-card.tsx.ejs → core.permissions-card.tsx.ejs} +0 -0
- /package/hedhog/frontend/app/dashboard/components/widgets/{permissions-chart.tsx.ejs → core.permissions-chart.tsx.ejs} +0 -0
- /package/hedhog/frontend/app/dashboard/components/widgets/{routes-card.tsx.ejs → core.routes-card.tsx.ejs} +0 -0
- /package/hedhog/frontend/app/dashboard/components/widgets/{session-activity-chart.tsx.ejs → core.session-activity-chart.tsx.ejs} +0 -0
- /package/hedhog/frontend/app/dashboard/components/widgets/{sessions-today-card.tsx.ejs → core.sessions-today-card.tsx.ejs} +0 -0
- /package/hedhog/frontend/app/dashboard/components/widgets/{stat-access-level.tsx.ejs → core.stat-access-level.tsx.ejs} +0 -0
- /package/hedhog/frontend/app/dashboard/components/widgets/{stat-actions-today.tsx.ejs → core.stat-actions-today.tsx.ejs} +0 -0
- /package/hedhog/frontend/app/dashboard/components/widgets/{stat-consecutive-days.tsx.ejs → core.stat-consecutive-days.tsx.ejs} +0 -0
- /package/hedhog/frontend/app/dashboard/components/widgets/{stat-online-time.tsx.ejs → core.stat-online-time.tsx.ejs} +0 -0
- /package/hedhog/frontend/app/dashboard/components/widgets/{user-growth-chart.tsx.ejs → core.user-growth-chart.tsx.ejs} +0 -0
|
@@ -19,6 +19,16 @@ export declare class AuthController {
|
|
|
19
19
|
id: any;
|
|
20
20
|
}, locale: string): Promise<{
|
|
21
21
|
requires_password_reset: boolean;
|
|
22
|
+
user_identifier: {
|
|
23
|
+
value: string;
|
|
24
|
+
type: import("@prisma/client").$Enums.user_identifier_type_e66d505520_enum;
|
|
25
|
+
id: number;
|
|
26
|
+
created_at: Date;
|
|
27
|
+
updated_at: Date;
|
|
28
|
+
user_id: number;
|
|
29
|
+
enabled: boolean;
|
|
30
|
+
verified_at: Date | null;
|
|
31
|
+
}[];
|
|
22
32
|
user_account: {
|
|
23
33
|
id: number;
|
|
24
34
|
provider: import("@prisma/client").$Enums.user_account_provider_52222e2ecb_enum;
|
|
@@ -49,16 +59,6 @@ export declare class AuthController {
|
|
|
49
59
|
revoked_at: Date | null;
|
|
50
60
|
requires_reset: boolean;
|
|
51
61
|
}[];
|
|
52
|
-
user_identifier: {
|
|
53
|
-
value: string;
|
|
54
|
-
type: import("@prisma/client").$Enums.user_identifier_type_e66d505520_enum;
|
|
55
|
-
id: number;
|
|
56
|
-
created_at: Date;
|
|
57
|
-
updated_at: Date;
|
|
58
|
-
user_id: number;
|
|
59
|
-
enabled: boolean;
|
|
60
|
-
verified_at: Date | null;
|
|
61
|
-
}[];
|
|
62
62
|
user_session: {
|
|
63
63
|
id: number;
|
|
64
64
|
hash: string;
|
|
@@ -81,6 +81,16 @@ export declare class AuthService {
|
|
|
81
81
|
}[]>;
|
|
82
82
|
verifyUser(locale: string, userId: number): Promise<{
|
|
83
83
|
requires_password_reset: boolean;
|
|
84
|
+
user_identifier: {
|
|
85
|
+
value: string;
|
|
86
|
+
type: import("@prisma/client").$Enums.user_identifier_type_e66d505520_enum;
|
|
87
|
+
id: number;
|
|
88
|
+
created_at: Date;
|
|
89
|
+
updated_at: Date;
|
|
90
|
+
user_id: number;
|
|
91
|
+
enabled: boolean;
|
|
92
|
+
verified_at: Date | null;
|
|
93
|
+
}[];
|
|
84
94
|
user_account: {
|
|
85
95
|
id: number;
|
|
86
96
|
provider: import("@prisma/client").$Enums.user_account_provider_52222e2ecb_enum;
|
|
@@ -111,16 +121,6 @@ export declare class AuthService {
|
|
|
111
121
|
revoked_at: Date | null;
|
|
112
122
|
requires_reset: boolean;
|
|
113
123
|
}[];
|
|
114
|
-
user_identifier: {
|
|
115
|
-
value: string;
|
|
116
|
-
type: import("@prisma/client").$Enums.user_identifier_type_e66d505520_enum;
|
|
117
|
-
id: number;
|
|
118
|
-
created_at: Date;
|
|
119
|
-
updated_at: Date;
|
|
120
|
-
user_id: number;
|
|
121
|
-
enabled: boolean;
|
|
122
|
-
verified_at: Date | null;
|
|
123
|
-
}[];
|
|
124
124
|
user_session: {
|
|
125
125
|
id: number;
|
|
126
126
|
hash: string;
|
|
@@ -40,6 +40,7 @@ export declare class DashboardController {
|
|
|
40
40
|
created_at: Date;
|
|
41
41
|
updated_at: Date;
|
|
42
42
|
slug: string;
|
|
43
|
+
library_slug: string;
|
|
43
44
|
min_width: number;
|
|
44
45
|
max_width: number | null;
|
|
45
46
|
min_height: number;
|
|
@@ -144,6 +145,7 @@ export declare class DashboardController {
|
|
|
144
145
|
created_at: Date;
|
|
145
146
|
updated_at: Date;
|
|
146
147
|
slug: string;
|
|
148
|
+
library_slug: string;
|
|
147
149
|
min_width: number;
|
|
148
150
|
max_width: number | null;
|
|
149
151
|
min_height: number;
|
|
@@ -248,6 +250,7 @@ export declare class DashboardController {
|
|
|
248
250
|
created_at: Date;
|
|
249
251
|
updated_at: Date;
|
|
250
252
|
slug: string;
|
|
253
|
+
library_slug: string;
|
|
251
254
|
min_width: number;
|
|
252
255
|
max_width: number | null;
|
|
253
256
|
min_height: number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dashboard.controller.d.ts","sourceRoot":"","sources":["../../../src/dashboard/dashboard/dashboard.controller.ts"],"names":[],"mappings":"AAaA,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AACvD,OAAO,EACL,kBAAkB,EAClB,kBAAkB,EACnB,MAAM,OAAO,CAAC;AACf,qBAEa,mBAAmB;IAClB,OAAO,CAAC,QAAQ,CAAC,gBAAgB;gBAAhB,gBAAgB,EAAE,gBAAgB;IAG/D,gBAAgB,CAAe,gBAAgB,KAAA;;;;;;;;;IAK/C,YAAY,CAA4B,EAAE,EAAE,MAAM,EAAY,MAAM,EAAE,MAAM
|
|
1
|
+
{"version":3,"file":"dashboard.controller.d.ts","sourceRoot":"","sources":["../../../src/dashboard/dashboard/dashboard.controller.ts"],"names":[],"mappings":"AAaA,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AACvD,OAAO,EACL,kBAAkB,EAClB,kBAAkB,EACnB,MAAM,OAAO,CAAC;AACf,qBAEa,mBAAmB;IAClB,OAAO,CAAC,QAAQ,CAAC,gBAAgB;gBAAhB,gBAAgB,EAAE,gBAAgB;IAG/D,gBAAgB,CAAe,gBAAgB,KAAA;;;;;;;;;IAK/C,YAAY,CAA4B,EAAE,EAAE,MAAM,EAAY,MAAM,EAAE,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAK5E,eAAe,CAAS,IAAI,EAAE,kBAAkB,EAAY,MAAM,EAAE,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAK1E,eAAe,CACc,EAAE,EAAE,MAAM,EAC7B,IAAI,EAAE,kBAAkB,EACtB,MAAM,EAAE,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAM1B,eAAe,CAA4B,EAAE,EAAE,MAAM,EAAY,MAAM,EAAE,MAAM;;;CAGhF"}
|
|
@@ -42,6 +42,7 @@ export declare class DashboardService {
|
|
|
42
42
|
created_at: Date;
|
|
43
43
|
updated_at: Date;
|
|
44
44
|
slug: string;
|
|
45
|
+
library_slug: string;
|
|
45
46
|
min_width: number;
|
|
46
47
|
max_width: number | null;
|
|
47
48
|
min_height: number;
|
|
@@ -146,6 +147,7 @@ export declare class DashboardService {
|
|
|
146
147
|
created_at: Date;
|
|
147
148
|
updated_at: Date;
|
|
148
149
|
slug: string;
|
|
150
|
+
library_slug: string;
|
|
149
151
|
min_width: number;
|
|
150
152
|
max_width: number | null;
|
|
151
153
|
min_height: number;
|
|
@@ -250,6 +252,7 @@ export declare class DashboardService {
|
|
|
250
252
|
created_at: Date;
|
|
251
253
|
updated_at: Date;
|
|
252
254
|
slug: string;
|
|
255
|
+
library_slug: string;
|
|
253
256
|
min_width: number;
|
|
254
257
|
max_width: number | null;
|
|
255
258
|
min_height: number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dashboard.service.d.ts","sourceRoot":"","sources":["../../../src/dashboard/dashboard/dashboard.service.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AAC5D,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAEpD,OAAO,EAAE,kBAAkB,EAAE,kBAAkB,EAAE,MAAM,OAAO,CAAC;AAE/D,qBACa,gBAAgB;IAGzB,OAAO,CAAC,QAAQ,CAAC,aAAa;IAE9B,OAAO,CAAC,QAAQ,CAAC,iBAAiB;gBAFjB,aAAa,EAAE,aAAa,EAE5B,iBAAiB,EAAE,iBAAiB;IAEjD,gBAAgB,CAAC,gBAAgB,KAAA;;;;;;;;;IAuDjC,YAAY,CAAC,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM
|
|
1
|
+
{"version":3,"file":"dashboard.service.d.ts","sourceRoot":"","sources":["../../../src/dashboard/dashboard/dashboard.service.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AAC5D,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAEpD,OAAO,EAAE,kBAAkB,EAAE,kBAAkB,EAAE,MAAM,OAAO,CAAC;AAE/D,qBACa,gBAAgB;IAGzB,OAAO,CAAC,QAAQ,CAAC,aAAa;IAE9B,OAAO,CAAC,QAAQ,CAAC,iBAAiB;gBAFjB,aAAa,EAAE,aAAa,EAE5B,iBAAiB,EAAE,iBAAiB;IAEjD,gBAAgB,CAAC,gBAAgB,KAAA;;;;;;;;;IAuDjC,YAAY,CAAC,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IA+CvC,eAAe,CAAC,IAAI,EAAE,kBAAkB,EAAE,MAAM,EAAE,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IA4BxD,eAAe,CAAC,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,kBAAkB,EAAE,MAAM,EAAE,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAiCpE,eAAe,CAAC,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM;;;CAgBjD"}
|
|
@@ -51,6 +51,7 @@ export declare class DashboardComponentController {
|
|
|
51
51
|
created_at: Date;
|
|
52
52
|
updated_at: Date;
|
|
53
53
|
slug: string;
|
|
54
|
+
library_slug: string;
|
|
54
55
|
min_width: number;
|
|
55
56
|
max_width: number | null;
|
|
56
57
|
min_height: number;
|
|
@@ -84,6 +85,7 @@ export declare class DashboardComponentController {
|
|
|
84
85
|
created_at: Date;
|
|
85
86
|
updated_at: Date;
|
|
86
87
|
slug: string;
|
|
88
|
+
library_slug: string;
|
|
87
89
|
min_width: number;
|
|
88
90
|
max_width: number | null;
|
|
89
91
|
min_height: number;
|
|
@@ -117,6 +119,7 @@ export declare class DashboardComponentController {
|
|
|
117
119
|
created_at: Date;
|
|
118
120
|
updated_at: Date;
|
|
119
121
|
slug: string;
|
|
122
|
+
library_slug: string;
|
|
120
123
|
min_width: number;
|
|
121
124
|
max_width: number | null;
|
|
122
125
|
min_height: number;
|
|
@@ -130,6 +133,7 @@ export declare class DashboardComponentController {
|
|
|
130
133
|
created_at: Date;
|
|
131
134
|
updated_at: Date;
|
|
132
135
|
slug: string;
|
|
136
|
+
library_slug: string;
|
|
133
137
|
min_width: number;
|
|
134
138
|
max_width: number | null;
|
|
135
139
|
min_height: number;
|
|
@@ -137,5 +141,13 @@ export declare class DashboardComponentController {
|
|
|
137
141
|
height: number;
|
|
138
142
|
is_resizable: boolean;
|
|
139
143
|
}>;
|
|
144
|
+
savePreview(id: number, file: MulterFile, locale: string): Promise<{
|
|
145
|
+
success: boolean;
|
|
146
|
+
componentId: number;
|
|
147
|
+
slug: string;
|
|
148
|
+
library_slug: string;
|
|
149
|
+
fileName: string;
|
|
150
|
+
relativeUrl: string;
|
|
151
|
+
}>;
|
|
140
152
|
}
|
|
141
153
|
//# sourceMappingURL=dashboard-component.controller.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dashboard-component.controller.d.ts","sourceRoot":"","sources":["../../../src/dashboard/dashboard-component/dashboard-component.controller.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"dashboard-component.controller.d.ts","sourceRoot":"","sources":["../../../src/dashboard/dashboard-component/dashboard-component.controller.ts"],"names":[],"mappings":"AAmBA,OAAO,EAAE,yBAAyB,EAAE,MAAM,+BAA+B,CAAC;AAC1E,OAAO,EACH,2BAA2B,EAC3B,2BAA2B,EAC9B,MAAM,OAAO,CAAC;AAEf,qBAEa,4BAA4B;IAGrC,OAAO,CAAC,QAAQ,CAAC,yBAAyB;gBAAzB,yBAAyB,EAAE,yBAAyB;IAIvE,gBAAgB,CAAe,gBAAgB,KAAA;;;;;;;;;IAK/C,0BAA0B,CAAe,gBAAgB,KAAA,EAAU,EAAE,EAAE,EAAE;;KAAA;;;;;;;;;IAKzE,YAAY,CACiB,EAAE,EAAE,MAAM,EAC3B,MAAM,EAAE,MAAM,EAChB,EAAE,EAAE,EAAE,MAAM,EAAE;;KAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAMxB,eAAe,CAAS,IAAI,EAAE,2BAA2B,EAAY,MAAM,EAAE,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAKnF,eAAe,CACc,EAAE,EAAE,MAAM,EAC7B,IAAI,EAAE,2BAA2B,EAC/B,MAAM,EAAE,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAM1B,eAAe,CAA4B,EAAE,EAAE,MAAM,EAAY,MAAM,EAAE,MAAM;;;;;;;;;;;;;;IAgB/E,WAAW,CACkB,EAAE,EAAE,MAAM,EACrB,IAAI,EAAE,UAAU,EACtB,MAAM,EAAE,MAAM;;;;;;;;CAI3B"}
|
|
@@ -17,6 +17,7 @@ const api_1 = require("@hed-hog/api");
|
|
|
17
17
|
const api_locale_1 = require("@hed-hog/api-locale");
|
|
18
18
|
const api_pagination_1 = require("@hed-hog/api-pagination");
|
|
19
19
|
const common_1 = require("@nestjs/common");
|
|
20
|
+
const platform_express_1 = require("@nestjs/platform-express");
|
|
20
21
|
const dashboard_component_service_1 = require("./dashboard-component.service");
|
|
21
22
|
const dto_1 = require("./dto");
|
|
22
23
|
let DashboardComponentController = class DashboardComponentController {
|
|
@@ -41,6 +42,9 @@ let DashboardComponentController = class DashboardComponentController {
|
|
|
41
42
|
deleteComponent(id, locale) {
|
|
42
43
|
return this.dashboardComponentService.deleteComponent(id, locale);
|
|
43
44
|
}
|
|
45
|
+
savePreview(id, file, locale) {
|
|
46
|
+
return this.dashboardComponentService.savePreview(id, file, locale);
|
|
47
|
+
}
|
|
44
48
|
};
|
|
45
49
|
exports.DashboardComponentController = DashboardComponentController;
|
|
46
50
|
__decorate([
|
|
@@ -92,6 +96,24 @@ __decorate([
|
|
|
92
96
|
__metadata("design:paramtypes", [Number, String]),
|
|
93
97
|
__metadata("design:returntype", void 0)
|
|
94
98
|
], DashboardComponentController.prototype, "deleteComponent", null);
|
|
99
|
+
__decorate([
|
|
100
|
+
(0, common_1.Post)(':id/preview'),
|
|
101
|
+
(0, common_1.UseInterceptors)((0, platform_express_1.FileInterceptor)('file', {
|
|
102
|
+
fileFilter: (req, file, cb) => {
|
|
103
|
+
var _a;
|
|
104
|
+
if (!((_a = file === null || file === void 0 ? void 0 : file.mimetype) === null || _a === void 0 ? void 0 : _a.startsWith('image/'))) {
|
|
105
|
+
return cb(new common_1.BadRequestException('Invalid image file'), false);
|
|
106
|
+
}
|
|
107
|
+
cb(null, true);
|
|
108
|
+
},
|
|
109
|
+
})),
|
|
110
|
+
__param(0, (0, common_1.Param)('id', common_1.ParseIntPipe)),
|
|
111
|
+
__param(1, (0, common_1.UploadedFile)()),
|
|
112
|
+
__param(2, (0, api_locale_1.Locale)()),
|
|
113
|
+
__metadata("design:type", Function),
|
|
114
|
+
__metadata("design:paramtypes", [Number, Object, String]),
|
|
115
|
+
__metadata("design:returntype", void 0)
|
|
116
|
+
], DashboardComponentController.prototype, "savePreview", null);
|
|
95
117
|
exports.DashboardComponentController = DashboardComponentController = __decorate([
|
|
96
118
|
(0, api_1.Role)(),
|
|
97
119
|
(0, common_1.Controller)('dashboard-component'),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dashboard-component.controller.js","sourceRoot":"","sources":["../../../src/dashboard/dashboard-component/dashboard-component.controller.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,sCAA0C;AAC1C,oDAA6C;AAC7C,4DAAqD;AACrD,
|
|
1
|
+
{"version":3,"file":"dashboard-component.controller.js","sourceRoot":"","sources":["../../../src/dashboard/dashboard-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AAE,CAAC;gBAC1C,OAAO,EAAE,CAAC,IAAI,4BAAmB,CAAC,oBAAoB,CAAC,EAAE,KAAK,CAAC,CAAC;YAClE,CAAC;YAED,EAAE,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;QACjB,CAAC;KACF,CAAC,CACH;IAEE,WAAA,IAAA,cAAK,EAAC,IAAI,EAAE,qBAAY,CAAC,CAAA;IACzB,WAAA,IAAA,qBAAY,GAAE,CAAA;IACd,WAAA,IAAA,mBAAM,GAAE,CAAA;;;;+DAGV;uCA9DU,4BAA4B;IAFxC,IAAA,UAAI,GAAE;IACN,IAAA,mBAAU,EAAC,qBAAqB,CAAC;IAG7B,WAAA,IAAA,eAAM,EAAC,IAAA,mBAAU,EAAC,GAAG,EAAE,CAAC,uDAAyB,CAAC,CAAC,CAAA;qCACR,uDAAyB;GAH5D,4BAA4B,CA+DxC"}
|
|
@@ -49,6 +49,7 @@ export declare class DashboardComponentService {
|
|
|
49
49
|
created_at: Date;
|
|
50
50
|
updated_at: Date;
|
|
51
51
|
slug: string;
|
|
52
|
+
library_slug: string;
|
|
52
53
|
min_width: number;
|
|
53
54
|
max_width: number | null;
|
|
54
55
|
min_height: number;
|
|
@@ -82,6 +83,7 @@ export declare class DashboardComponentService {
|
|
|
82
83
|
created_at: Date;
|
|
83
84
|
updated_at: Date;
|
|
84
85
|
slug: string;
|
|
86
|
+
library_slug: string;
|
|
85
87
|
min_width: number;
|
|
86
88
|
max_width: number | null;
|
|
87
89
|
min_height: number;
|
|
@@ -115,6 +117,7 @@ export declare class DashboardComponentService {
|
|
|
115
117
|
created_at: Date;
|
|
116
118
|
updated_at: Date;
|
|
117
119
|
slug: string;
|
|
120
|
+
library_slug: string;
|
|
118
121
|
min_width: number;
|
|
119
122
|
max_width: number | null;
|
|
120
123
|
min_height: number;
|
|
@@ -128,6 +131,7 @@ export declare class DashboardComponentService {
|
|
|
128
131
|
created_at: Date;
|
|
129
132
|
updated_at: Date;
|
|
130
133
|
slug: string;
|
|
134
|
+
library_slug: string;
|
|
131
135
|
min_width: number;
|
|
132
136
|
max_width: number | null;
|
|
133
137
|
min_height: number;
|
|
@@ -135,5 +139,16 @@ export declare class DashboardComponentService {
|
|
|
135
139
|
height: number;
|
|
136
140
|
is_resizable: boolean;
|
|
137
141
|
}>;
|
|
142
|
+
private normalizeComponentIdentity;
|
|
143
|
+
private buildWidgetAssetSlug;
|
|
144
|
+
private resolvePreviewDirectory;
|
|
145
|
+
savePreview(id: number, file: MulterFile, locale: string): Promise<{
|
|
146
|
+
success: boolean;
|
|
147
|
+
componentId: number;
|
|
148
|
+
slug: string;
|
|
149
|
+
library_slug: string;
|
|
150
|
+
fileName: string;
|
|
151
|
+
relativeUrl: string;
|
|
152
|
+
}>;
|
|
138
153
|
}
|
|
139
154
|
//# sourceMappingURL=dashboard-component.service.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dashboard-component.service.d.ts","sourceRoot":"","sources":["../../../src/dashboard/dashboard-component/dashboard-component.service.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AAC3E,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;
|
|
1
|
+
{"version":3,"file":"dashboard-component.service.d.ts","sourceRoot":"","sources":["../../../src/dashboard/dashboard-component/dashboard-component.service.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AAC3E,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAWpD,OAAO,EACL,2BAA2B,EAC3B,2BAA2B,EAC5B,MAAM,OAAO,CAAC;AACf,qBACa,yBAAyB;IAGlC,OAAO,CAAC,QAAQ,CAAC,aAAa;IAE9B,OAAO,CAAC,QAAQ,CAAC,iBAAiB;gBAFjB,aAAa,EAAE,aAAa,EAE5B,iBAAiB,EAAE,iBAAiB;IAGjD,gBAAgB,CAAC,gBAAgB,EAAE,aAAa;;;;;;;;;IAuDhD,0BAA0B,CAAC,gBAAgB,EAAE,aAAa,EAAE,MAAM,EAAE,MAAM;;;;;;;;;IA+G1E,YAAY,CAAC,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAsExD,eAAe,CAAC,IAAI,EAAE,2BAA2B,EAAE,MAAM,EAAE,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IA0CjE,eAAe,CAAC,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,2BAA2B,EAAE,MAAM,EAAE,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAiD7E,eAAe,CAAC,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM;;;;;;;;;;;;;;IAgBhD,OAAO,CAAC,0BAA0B;IAalC,OAAO,CAAC,oBAAoB;IAM5B,OAAO,CAAC,uBAAuB;IAkBzB,WAAW,CAAC,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,UAAU,EAAE,MAAM,EAAE,MAAM;;;;;;;;CAuD/D"}
|
|
@@ -17,13 +17,15 @@ const api_locale_1 = require("@hed-hog/api-locale");
|
|
|
17
17
|
const api_pagination_1 = require("@hed-hog/api-pagination");
|
|
18
18
|
const api_prisma_1 = require("@hed-hog/api-prisma");
|
|
19
19
|
const common_1 = require("@nestjs/common");
|
|
20
|
+
const fs_1 = require("fs");
|
|
21
|
+
const path_1 = require("path");
|
|
20
22
|
let DashboardComponentService = class DashboardComponentService {
|
|
21
23
|
constructor(prismaService, paginationService) {
|
|
22
24
|
this.prismaService = prismaService;
|
|
23
25
|
this.paginationService = paginationService;
|
|
24
26
|
}
|
|
25
27
|
async getAllComponents(paginationParams) {
|
|
26
|
-
const fields = ['slug'];
|
|
28
|
+
const fields = ['slug', 'library_slug'];
|
|
27
29
|
const OR = this.prismaService.createInsensitiveSearch(fields, paginationParams);
|
|
28
30
|
if (paginationParams.search) {
|
|
29
31
|
OR.push({
|
|
@@ -72,6 +74,36 @@ let DashboardComponentService = class DashboardComponentService {
|
|
|
72
74
|
select: { role_id: true },
|
|
73
75
|
});
|
|
74
76
|
const userRoleIds = userRoles.map((ur) => ur.role_id);
|
|
77
|
+
if (userRoleIds.length === 0) {
|
|
78
|
+
return this.paginationService.paginate(this.prismaService.dashboard_component, paginationParams, {
|
|
79
|
+
include: {
|
|
80
|
+
dashboard_component_locale: {
|
|
81
|
+
include: {
|
|
82
|
+
locale: true,
|
|
83
|
+
},
|
|
84
|
+
},
|
|
85
|
+
dashboard_component_role: {
|
|
86
|
+
include: {
|
|
87
|
+
role: {
|
|
88
|
+
include: {
|
|
89
|
+
role_locale: {
|
|
90
|
+
include: {
|
|
91
|
+
locale: true,
|
|
92
|
+
},
|
|
93
|
+
},
|
|
94
|
+
},
|
|
95
|
+
},
|
|
96
|
+
},
|
|
97
|
+
},
|
|
98
|
+
},
|
|
99
|
+
where: {
|
|
100
|
+
id: -1,
|
|
101
|
+
},
|
|
102
|
+
orderBy: {
|
|
103
|
+
created_at: 'desc',
|
|
104
|
+
},
|
|
105
|
+
}, 'dashboardComponent');
|
|
106
|
+
}
|
|
75
107
|
const fields = ['slug'];
|
|
76
108
|
const OR = this.prismaService.createInsensitiveSearch(fields, paginationParams);
|
|
77
109
|
if (paginationParams.search) {
|
|
@@ -189,9 +221,11 @@ let DashboardComponentService = class DashboardComponentService {
|
|
|
189
221
|
}
|
|
190
222
|
async createComponent(data, locale) {
|
|
191
223
|
var _a;
|
|
224
|
+
const normalized = this.normalizeComponentIdentity(data.slug, data.library_slug);
|
|
192
225
|
const component = await this.prismaService.dashboard_component.create({
|
|
193
226
|
data: {
|
|
194
|
-
slug:
|
|
227
|
+
slug: normalized.slug,
|
|
228
|
+
library_slug: normalized.library_slug,
|
|
195
229
|
min_width: data.min_width,
|
|
196
230
|
max_width: data.max_width,
|
|
197
231
|
min_height: data.min_height,
|
|
@@ -221,10 +255,17 @@ let DashboardComponentService = class DashboardComponentService {
|
|
|
221
255
|
return this.getComponent(component.id, locale);
|
|
222
256
|
}
|
|
223
257
|
async updateComponent(id, data, locale) {
|
|
258
|
+
const normalized = data.slug
|
|
259
|
+
? this.normalizeComponentIdentity(data.slug, data.library_slug)
|
|
260
|
+
: {
|
|
261
|
+
slug: undefined,
|
|
262
|
+
library_slug: data.library_slug,
|
|
263
|
+
};
|
|
224
264
|
await this.prismaService.dashboard_component.update({
|
|
225
265
|
where: { id },
|
|
226
266
|
data: {
|
|
227
|
-
slug:
|
|
267
|
+
slug: normalized.slug,
|
|
268
|
+
library_slug: normalized.library_slug,
|
|
228
269
|
min_width: data.min_width,
|
|
229
270
|
max_width: data.max_width,
|
|
230
271
|
min_height: data.min_height,
|
|
@@ -267,6 +308,72 @@ let DashboardComponentService = class DashboardComponentService {
|
|
|
267
308
|
where: { id },
|
|
268
309
|
});
|
|
269
310
|
}
|
|
311
|
+
normalizeComponentIdentity(slug, librarySlug) {
|
|
312
|
+
const slugParts = slug.split('.').filter(Boolean);
|
|
313
|
+
const baseSlug = slugParts.length > 0 ? slugParts[slugParts.length - 1] : slug;
|
|
314
|
+
const resolvedLibrarySlug = librarySlug || (slugParts.length > 1 ? slugParts[0] : 'core');
|
|
315
|
+
return {
|
|
316
|
+
slug: baseSlug,
|
|
317
|
+
library_slug: resolvedLibrarySlug,
|
|
318
|
+
};
|
|
319
|
+
}
|
|
320
|
+
buildWidgetAssetSlug(slug, librarySlug) {
|
|
321
|
+
const normalized = this.normalizeComponentIdentity(slug, librarySlug);
|
|
322
|
+
return normalized.slug;
|
|
323
|
+
}
|
|
324
|
+
resolvePreviewDirectory() {
|
|
325
|
+
const cwd = process.cwd();
|
|
326
|
+
const candidates = [
|
|
327
|
+
(0, path_1.resolve)(cwd, 'libraries/core/hedhog/frontend/public/dashboard-previews'),
|
|
328
|
+
(0, path_1.resolve)(cwd, '../libraries/core/hedhog/frontend/public/dashboard-previews'),
|
|
329
|
+
(0, path_1.resolve)(cwd, '../../libraries/core/hedhog/frontend/public/dashboard-previews'),
|
|
330
|
+
];
|
|
331
|
+
for (const candidate of candidates) {
|
|
332
|
+
const parentDirectory = (0, path_1.resolve)(candidate, '..');
|
|
333
|
+
if ((0, fs_1.existsSync)(parentDirectory)) {
|
|
334
|
+
return candidate;
|
|
335
|
+
}
|
|
336
|
+
}
|
|
337
|
+
return candidates[0];
|
|
338
|
+
}
|
|
339
|
+
async savePreview(id, file, locale) {
|
|
340
|
+
var _a;
|
|
341
|
+
const isDevelopment = process.env.NODE_ENV !== 'production';
|
|
342
|
+
if (!isDevelopment) {
|
|
343
|
+
throw new common_1.ForbiddenException((0, api_locale_1.getLocaleText)('dashboardPreviewOnlyInDevelopment', locale, 'Preview capture is only available in development environment'));
|
|
344
|
+
}
|
|
345
|
+
if (!file || !file.buffer) {
|
|
346
|
+
throw new common_1.BadRequestException((0, api_locale_1.getLocaleText)('dashboardPreviewFileRequired', locale, 'Preview image file is required'));
|
|
347
|
+
}
|
|
348
|
+
if (!((_a = file.mimetype) === null || _a === void 0 ? void 0 : _a.startsWith('image/'))) {
|
|
349
|
+
throw new common_1.BadRequestException((0, api_locale_1.getLocaleText)('dashboardPreviewInvalidFileType', locale, 'Preview file must be an image'));
|
|
350
|
+
}
|
|
351
|
+
const component = await this.prismaService.dashboard_component.findUnique({
|
|
352
|
+
where: { id },
|
|
353
|
+
select: {
|
|
354
|
+
id: true,
|
|
355
|
+
slug: true,
|
|
356
|
+
library_slug: true,
|
|
357
|
+
},
|
|
358
|
+
});
|
|
359
|
+
if (!component) {
|
|
360
|
+
throw new common_1.NotFoundException((0, api_locale_1.getLocaleText)('dashboardComponentNotFound', locale, 'Dashboard component not found'));
|
|
361
|
+
}
|
|
362
|
+
const previewDirectory = this.resolvePreviewDirectory();
|
|
363
|
+
await fs_1.promises.mkdir(previewDirectory, { recursive: true });
|
|
364
|
+
const assetSlug = this.buildWidgetAssetSlug(component.slug, component.library_slug);
|
|
365
|
+
const fileName = `${assetSlug}.png`;
|
|
366
|
+
const outputPath = (0, path_1.join)(previewDirectory, fileName);
|
|
367
|
+
await fs_1.promises.writeFile(outputPath, file.buffer);
|
|
368
|
+
return {
|
|
369
|
+
success: true,
|
|
370
|
+
componentId: component.id,
|
|
371
|
+
slug: component.slug,
|
|
372
|
+
library_slug: component.library_slug,
|
|
373
|
+
fileName,
|
|
374
|
+
relativeUrl: `/libraries/${component.library_slug}/dashboard-previews/${fileName}`,
|
|
375
|
+
};
|
|
376
|
+
}
|
|
270
377
|
};
|
|
271
378
|
exports.DashboardComponentService = DashboardComponentService;
|
|
272
379
|
exports.DashboardComponentService = DashboardComponentService = __decorate([
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dashboard-component.service.js","sourceRoot":"","sources":["../../../src/dashboard/dashboard-component/dashboard-component.service.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,oDAAoD;AACpD,4DAA2E;AAC3E,oDAAoD;AACpD,
|
|
1
|
+
{"version":3,"file":"dashboard-component.service.js","sourceRoot":"","sources":["../../../src/dashboard/dashboard-component/dashboard-component.service.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,oDAAoD;AACpD,4DAA2E;AAC3E,oDAAoD;AACpD,2CAOwB;AACxB,2BAAgD;AAChD,+BAAqC;AAM9B,IAAM,yBAAyB,GAA/B,MAAM,yBAAyB;IACpC,YAEmB,aAA4B,EAE5B,iBAAoC;QAFpC,kBAAa,GAAb,aAAa,CAAe;QAE5B,sBAAiB,GAAjB,iBAAiB,CAAmB;IACpD,CAAC;IAEJ,KAAK,CAAC,gBAAgB,CAAC,gBAA+B;QACpD,MAAM,MAAM,GAAG,CAAC,MAAM,EAAE,cAAc,CAAC,CAAA;QACvC,MAAM,EAAE,GAAG,IAAI,CAAC,aAAa,CAAC,uBAAuB,CACnD,MAAM,EACN,gBAAgB,CACjB,CAAC;QAEF,IAAI,gBAAgB,CAAC,MAAM,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BAAa,SAAS;IAEpB,IAAI,EAAE,MAAM,CAAC;IAIb,SAAS,CAAC,EAAE,MAAM,CAAC;IAInB,SAAS,CAAC,EAAE,MAAM,CAAC;IAInB,UAAU,CAAC,EAAE,MAAM,CAAC;IAIpB,UAAU,CAAC,EAAE,MAAM,CAAC;IAGpB,KAAK,EAAE,MAAM,CAAC;IAGd,MAAM,EAAE,MAAM,CAAC;IAIf,YAAY,CAAC,EAAE,OAAO,CAAC;IASvB,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,WAAW,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;CAChE"}
|
|
1
|
+
{"version":3,"file":"create.dto.d.ts","sourceRoot":"","sources":["../../../../src/dashboard/dashboard-component/dto/create.dto.ts"],"names":[],"mappings":"AAGA,qBAAa,SAAS;IAEpB,IAAI,EAAE,MAAM,CAAC;IAIb,YAAY,CAAC,EAAE,MAAM,CAAC;IAItB,SAAS,CAAC,EAAE,MAAM,CAAC;IAInB,SAAS,CAAC,EAAE,MAAM,CAAC;IAInB,UAAU,CAAC,EAAE,MAAM,CAAC;IAIpB,UAAU,CAAC,EAAE,MAAM,CAAC;IAGpB,KAAK,EAAE,MAAM,CAAC;IAGd,MAAM,EAAE,MAAM,CAAC;IAIf,YAAY,CAAC,EAAE,OAAO,CAAC;IASvB,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,WAAW,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;CAChE"}
|
|
@@ -19,6 +19,11 @@ __decorate([
|
|
|
19
19
|
(0, class_validator_1.IsString)({ message: (args) => (0, api_locale_1.getLocaleText)('validation.stringRequired', args.value) }),
|
|
20
20
|
__metadata("design:type", String)
|
|
21
21
|
], CreateDTO.prototype, "slug", void 0);
|
|
22
|
+
__decorate([
|
|
23
|
+
(0, class_validator_1.IsOptional)(),
|
|
24
|
+
(0, class_validator_1.IsString)({ message: (args) => (0, api_locale_1.getLocaleText)('validation.stringRequired', args.value) }),
|
|
25
|
+
__metadata("design:type", String)
|
|
26
|
+
], CreateDTO.prototype, "library_slug", void 0);
|
|
22
27
|
__decorate([
|
|
23
28
|
(0, class_validator_1.IsOptional)(),
|
|
24
29
|
(0, class_validator_1.IsNumber)({}, { message: (args) => (0, api_locale_1.getLocaleText)('validation.numberRequired', args.value) }),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create.dto.js","sourceRoot":"","sources":["../../../../src/dashboard/dashboard-component/dto/create.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAAoD;AACpD,qDAAkG;AAElG,MAAa,SAAS;
|
|
1
|
+
{"version":3,"file":"create.dto.js","sourceRoot":"","sources":["../../../../src/dashboard/dashboard-component/dto/create.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAAoD;AACpD,qDAAkG;AAElG,MAAa,SAAS;CA0CrB;AA1CD,8BA0CC;AAxCC;IADC,IAAA,0BAAQ,EAAC,EAAE,OAAO,EAAE,CAAC,IAAI,EAAE,EAAE,CAAC,IAAA,0BAAa,EAAC,2BAA2B,EAAE,IAAI,CAAC,KAAK,CAAC,EAAE,CAAC;;uCAC3E;AAIb;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,EAAC,EAAE,OAAO,EAAE,CAAC,IAAI,EAAE,EAAE,CAAC,IAAA,0BAAa,EAAC,2BAA2B,EAAE,IAAI,CAAC,KAAK,CAAC,EAAE,CAAC;;+CAClE;AAItB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,EAAC,EAAE,EAAE,EAAE,OAAO,EAAE,CAAC,IAAI,EAAE,EAAE,CAAC,IAAA,0BAAa,EAAC,2BAA2B,EAAE,IAAI,CAAC,KAAK,CAAC,EAAE,CAAC;;4CACzE;AAInB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,EAAC,EA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V,OAAO,EAAE,CAAC,IAAI,EAAE,EAAE,CAAC,IAAA,0BAAa,EAAC,2BAA2B,EAAE,IAAI,CAAC,KAAK,CAAC;KAC1E,CAAC;;yCAC6D"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update.dto.d.ts","sourceRoot":"","sources":["../../../../src/dashboard/dashboard-component/dto/update.dto.ts"],"names":[],"mappings":"AAGA,qBAAa,SAAS;IAGpB,IAAI,CAAC,EAAE,MAAM,CAAC;IAId,SAAS,CAAC,EAAE,MAAM,CAAC;IAInB,SAAS,CAAC,EAAE,MAAM,CAAC;IAInB,UAAU,CAAC,EAAE,MAAM,CAAC;IAIpB,UAAU,CAAC,EAAE,MAAM,CAAC;IAIpB,KAAK,CAAC,EAAE,MAAM,CAAC;IAIf,MAAM,CAAC,EAAE,MAAM,CAAC;IAIhB,YAAY,CAAC,EAAE,OAAO,CAAC;IAUvB,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,WAAW,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;CACjE"}
|
|
1
|
+
{"version":3,"file":"update.dto.d.ts","sourceRoot":"","sources":["../../../../src/dashboard/dashboard-component/dto/update.dto.ts"],"names":[],"mappings":"AAGA,qBAAa,SAAS;IAGpB,IAAI,CAAC,EAAE,MAAM,CAAC;IAId,YAAY,CAAC,EAAE,MAAM,CAAC;IAItB,SAAS,CAAC,EAAE,MAAM,CAAC;IAInB,SAAS,CAAC,EAAE,MAAM,CAAC;IAInB,UAAU,CAAC,EAAE,MAAM,CAAC;IAIpB,UAAU,CAAC,EAAE,MAAM,CAAC;IAIpB,KAAK,CAAC,EAAE,MAAM,CAAC;IAIf,MAAM,CAAC,EAAE,MAAM,CAAC;IAIhB,YAAY,CAAC,EAAE,OAAO,CAAC;IAUvB,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,WAAW,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;CACjE"}
|
|
@@ -20,6 +20,11 @@ __decorate([
|
|
|
20
20
|
(0, class_validator_1.IsString)({ message: (args) => (0, api_locale_1.getLocaleText)('validation.stringRequired', args.value) }),
|
|
21
21
|
__metadata("design:type", String)
|
|
22
22
|
], UpdateDTO.prototype, "slug", void 0);
|
|
23
|
+
__decorate([
|
|
24
|
+
(0, class_validator_1.IsOptional)(),
|
|
25
|
+
(0, class_validator_1.IsString)({ message: (args) => (0, api_locale_1.getLocaleText)('validation.stringRequired', args.value) }),
|
|
26
|
+
__metadata("design:type", String)
|
|
27
|
+
], UpdateDTO.prototype, "library_slug", void 0);
|
|
23
28
|
__decorate([
|
|
24
29
|
(0, class_validator_1.IsOptional)(),
|
|
25
30
|
(0, class_validator_1.IsNumber)({}, { message: (args) => (0, api_locale_1.getLocaleText)('validation.numberRequired', args.value) }),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update.dto.js","sourceRoot":"","sources":["../../../../src/dashboard/dashboard-component/dto/update.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAAoD;AACpD,qDAAkG;AAElG,MAAa,SAAS;
|
|
1
|
+
{"version":3,"file":"update.dto.js","sourceRoot":"","sources":["../../../../src/dashboard/dashboard-component/dto/update.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAAoD;AACpD,qDAAkG;AAElG,MAAa,SAAS;CA8CrB;AA9CD,8BA8CC;AA3CC;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,EAAC,EAAE,OAAO,EAAE,CAAC,IAAI,EAAE,EAAE,CAAC,IAAA,0BAAa,EAAC,2BAA2B,EAAE,IAAI,CAAC,KAAK,CAAC,EAAE,CAAC;;uCAC1E;AAId;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,EAAC,EAAE,OAAO,EAAE,CAAC,IAAI,EAAE,EAAE,CAAC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,CAAC,EAAE,CAAC;;yCAC5E;AAIhB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,2BAAS,EAAC,EAAE,OAAO,EAAE,CAAC,IAAI,EAAE,EAAE,CAAC,IAAA,0BAAa,EAAC,4BAA4B,EAAE,IAAI,CAAC,KAAK,CAAC,EAAE,CAAC;;+CACnE;AAUvB;IARC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,EAAC;QACR,OAAO,EAAE,CAAC,IAAI,EAAE,EAAE,CAChB,IAAA,0BAAa,EAAC,+BAA+B,EAAE,IAAI,CAAC,KAAK,CAAC;KAC7D,CAAC;IACD,IAAA,4BAAU,EAAC;QACV,OAAO,EAAE,CAAC,IAAI,EAAE,EAAE,CAAC,IAAA,0BAAa,EAAC,2BAA2B,EAAE,IAAI,CAAC,KAAK,CAAC;KAC1E,CAAC;;yCAC8D"}
|
package/dist/dashboard/dashboard-component-role/dashboard-component-role.controller.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dashboard-component-role.controller.d.ts","sourceRoot":"","sources":["../../../src/dashboard/dashboard-component-role/dashboard-component-role.controller.ts"],"names":[],"mappings":"AAeA,OAAO,EAAE,6BAA6B,EAAE,MAAM,oCAAoC,CAAC;AACnF,OAAO,EACH,oCAAoC,EACpC,+BAA+B,EAClC,MAAM,OAAO,CAAC;AAEf,qBAEa,gCAAgC;IAGzC,OAAO,CAAC,QAAQ,CAAC,OAAO;gBAAP,OAAO,EAAE,6BAA6B;IAIzD,MAAM,CACU,gBAAgB,KAAA,EACpB,MAAM,EAAE,MAAM,EACF,WAAW,CAAC,EAAE,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAS5C,MAAM,CAAS,IAAI,EAAE,+BAA+B,EAAY,MAAM,EAAE,MAAM
|
|
1
|
+
{"version":3,"file":"dashboard-component-role.controller.d.ts","sourceRoot":"","sources":["../../../src/dashboard/dashboard-component-role/dashboard-component-role.controller.ts"],"names":[],"mappings":"AAeA,OAAO,EAAE,6BAA6B,EAAE,MAAM,oCAAoC,CAAC;AACnF,OAAO,EACH,oCAAoC,EACpC,+BAA+B,EAClC,MAAM,OAAO,CAAC;AAEf,qBAEa,gCAAgC;IAGzC,OAAO,CAAC,QAAQ,CAAC,OAAO;gBAAP,OAAO,EAAE,6BAA6B;IAIzD,MAAM,CACU,gBAAgB,KAAA,EACpB,MAAM,EAAE,MAAM,EACF,WAAW,CAAC,EAAE,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAS5C,MAAM,CAAS,IAAI,EAAE,+BAA+B,EAAY,MAAM,EAAE,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAK9E,WAAW,CACD,IAAI,EAAE,oCAAoC,EACxC,MAAM,EAAE,MAAM;;;;;;IAM1B,MAAM,CAA4B,EAAE,EAAE,MAAM,EAAY,MAAM,EAAE,MAAM;;;IAKtE,wBAAwB,CACc,WAAW,EAAE,MAAM,EACxB,MAAM,EAAE,MAAM,EACnC,MAAM,EAAE,MAAM;;;CAI3B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dashboard-component-role.service.d.ts","sourceRoot":"","sources":["../../../src/dashboard/dashboard-component-role/dashboard-component-role.service.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AAC5D,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAOpD,OAAO,EACH,oCAAoC,EACpC,+BAA+B,EAClC,MAAM,OAAO,CAAC;AAEf,qBACa,6BAA6B;IAGtC,OAAO,CAAC,QAAQ,CAAC,aAAa;IAE9B,OAAO,CAAC,QAAQ,CAAC,iBAAiB;gBAFjB,aAAa,EAAE,aAAa,EAE5B,iBAAiB,EAAE,iBAAiB;IAGjD,MAAM,CAAC,gBAAgB,KAAA,EAAE,MAAM,EAAE,MAAM;;;;;;;;;IAiCvC,iBAAiB,CAAC,WAAW,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAmBrD,MAAM,CAAC,IAAI,EAAE,+BAA+B,EAAE,MAAM,EAAE,MAAM
|
|
1
|
+
{"version":3,"file":"dashboard-component-role.service.d.ts","sourceRoot":"","sources":["../../../src/dashboard/dashboard-component-role/dashboard-component-role.service.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AAC5D,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAOpD,OAAO,EACH,oCAAoC,EACpC,+BAA+B,EAClC,MAAM,OAAO,CAAC;AAEf,qBACa,6BAA6B;IAGtC,OAAO,CAAC,QAAQ,CAAC,aAAa;IAE9B,OAAO,CAAC,QAAQ,CAAC,iBAAiB;gBAFjB,aAAa,EAAE,aAAa,EAE5B,iBAAiB,EAAE,iBAAiB;IAGjD,MAAM,CAAC,gBAAgB,KAAA,EAAE,MAAM,EAAE,MAAM;;;;;;;;;IAiCvC,iBAAiB,CAAC,WAAW,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAmBrD,MAAM,CAAC,IAAI,EAAE,+BAA+B,EAAE,MAAM,EAAE,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IA+C5D,WAAW,CAAC,IAAI,EAAE,oCAAoC,EAAE,MAAM,EAAE,MAAM;;;;;;IAwCtE,MAAM,CAAC,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM;;;IAsBjC,wBAAwB,CAC5B,WAAW,EAAE,MAAM,EACnB,MAAM,EAAE,MAAM,EACd,MAAM,EAAE,MAAM;;;CAyBjB"}
|