@hed-hog/core 0.0.296 → 0.0.298
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 +14 -14
- package/dist/auth/auth.service.d.ts +14 -14
- package/dist/challenge/challenge.service.d.ts +2 -2
- package/dist/dashboard/dashboard-core/dashboard-core.controller.d.ts +15 -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 +175 -3
- package/dist/dashboard/dashboard-core/dashboard-core.service.d.ts.map +1 -1
- package/dist/dashboard/dashboard-core/dashboard-core.service.js +531 -5
- package/dist/dashboard/dashboard-core/dashboard-core.service.js.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/profile/profile.controller.d.ts +6 -6
- package/dist/profile/profile.service.d.ts +6 -6
- package/dist/session/session.controller.d.ts +2 -2
- package/dist/session/session.service.d.ts +3 -3
- package/dist/setting/setting.controller.d.ts +9 -9
- package/dist/setting/setting.service.d.ts +10 -10
- 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 +15 -15
- package/dist/user/user.service.d.ts +39 -39
- 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 +11 -11
- package/hedhog/data/route.yaml +8 -0
- package/hedhog/frontend/app/dashboard/[slug]/dashboard-content.tsx.ejs +76 -15
- package/hedhog/frontend/app/dashboard/components/widgets/email-notifications.tsx.ejs +85 -61
- package/hedhog/frontend/app/dashboard/components/widgets/locale-config.tsx.ejs +139 -280
- package/hedhog/frontend/app/dashboard/components/widgets/mail-config.tsx.ejs +161 -407
- package/hedhog/frontend/app/dashboard/components/widgets/oauth-config.tsx.ejs +150 -271
- package/hedhog/frontend/app/dashboard/components/widgets/profile-card.tsx.ejs +3 -3
- package/hedhog/frontend/app/dashboard/components/widgets/storage-config.tsx.ejs +161 -305
- package/hedhog/frontend/app/dashboard/components/widgets/theme-config.tsx.ejs +184 -246
- package/hedhog/frontend/app/dashboard/components/widgets/user-roles.tsx.ejs +12 -14
- package/hedhog/frontend/messages/en.json +90 -0
- package/hedhog/frontend/messages/pt.json +90 -0
- package/hedhog/table/mail_sent_user.yaml +75 -0
- package/package.json +4 -4
- 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 +766 -3
- 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
|
@@ -1031,6 +1031,96 @@
|
|
|
1031
1031
|
"hoursAgo": "{count}h atrás",
|
|
1032
1032
|
"daysAgo": "{count} dia atrás",
|
|
1033
1033
|
"daysAgoPlural": "{count} dias atrás"
|
|
1034
|
+
},
|
|
1035
|
+
"emailNotifications": {
|
|
1036
|
+
"title": "Notificações por E-mail",
|
|
1037
|
+
"description": "Fluxo de e-mails do sistema nos últimos 14 dias",
|
|
1038
|
+
"received": "Recebidos",
|
|
1039
|
+
"read": "Lidos",
|
|
1040
|
+
"unread": "Não lidos",
|
|
1041
|
+
"error": "Com erro",
|
|
1042
|
+
"receivedShort": "Rec.",
|
|
1043
|
+
"readShort": "Lid.",
|
|
1044
|
+
"unreadShort": "N. lid.",
|
|
1045
|
+
"errorShort": "Erro"
|
|
1046
|
+
},
|
|
1047
|
+
"localeConfig": {
|
|
1048
|
+
"title": "Localização",
|
|
1049
|
+
"description": "Resumo de idiomas e formatos regionais",
|
|
1050
|
+
"configured": "Configurado",
|
|
1051
|
+
"pending": "Pendente",
|
|
1052
|
+
"enabled": "Ativos",
|
|
1053
|
+
"disabled": "Inativos",
|
|
1054
|
+
"total": "Total",
|
|
1055
|
+
"timezone": "Fuso horário",
|
|
1056
|
+
"dateFormat": "Formato de data",
|
|
1057
|
+
"timeFormat": "Formato de hora",
|
|
1058
|
+
"enabledLocales": "Idiomas ativos",
|
|
1059
|
+
"noneEnabled": "Nenhum idioma ativo",
|
|
1060
|
+
"notSet": "Não definido"
|
|
1061
|
+
},
|
|
1062
|
+
"mailConfig": {
|
|
1063
|
+
"title": "Configuração de E-mail",
|
|
1064
|
+
"description": "Resumo de provedor e entrega",
|
|
1065
|
+
"configured": "Configurado",
|
|
1066
|
+
"pending": "Pendente",
|
|
1067
|
+
"templates": "Templates",
|
|
1068
|
+
"sentTotal": "Enviados total",
|
|
1069
|
+
"sent30Days": "Enviados (30d)",
|
|
1070
|
+
"sender": "Remetente padrão",
|
|
1071
|
+
"providers": "Provedores",
|
|
1072
|
+
"selectedProvider": "Selecionado: {provider}",
|
|
1073
|
+
"selected": "Selecionado",
|
|
1074
|
+
"missingKeys": "Chaves pendentes: {count}",
|
|
1075
|
+
"allKeysPresent": "Todas as chaves obrigatórias presentes",
|
|
1076
|
+
"noProviders": "Nenhum provedor encontrado",
|
|
1077
|
+
"none": "Nenhum",
|
|
1078
|
+
"notSet": "Não definido"
|
|
1079
|
+
},
|
|
1080
|
+
"oauthConfig": {
|
|
1081
|
+
"title": "Provedores OAuth",
|
|
1082
|
+
"description": "Resumo de prontidão para login social",
|
|
1083
|
+
"configured": "Configurado",
|
|
1084
|
+
"pending": "Pendente",
|
|
1085
|
+
"enabled": "Ativo",
|
|
1086
|
+
"disabled": "Inativo",
|
|
1087
|
+
"configuredProviders": "Configurados",
|
|
1088
|
+
"connectedAccounts": "Conectadas",
|
|
1089
|
+
"scopesCount": "Escopos: {count}",
|
|
1090
|
+
"connectedUsers": "Usuários: {count}",
|
|
1091
|
+
"missingKeys": "Chaves pendentes: {count}",
|
|
1092
|
+
"allKeysPresent": "Todas as chaves obrigatórias presentes",
|
|
1093
|
+
"noProviders": "Nenhum provedor encontrado"
|
|
1094
|
+
},
|
|
1095
|
+
"storageConfig": {
|
|
1096
|
+
"title": "Perfis de Armazenamento",
|
|
1097
|
+
"description": "Provedores ativos e saúde dos perfis",
|
|
1098
|
+
"configured": "Configurado",
|
|
1099
|
+
"pending": "Pendente",
|
|
1100
|
+
"profiles": "Perfis",
|
|
1101
|
+
"active": "Ativos",
|
|
1102
|
+
"providers": "Provedores",
|
|
1103
|
+
"defaultProfile": "Perfil padrão",
|
|
1104
|
+
"defaults": "padrões",
|
|
1105
|
+
"providerSummary": "{active} ativos de {total}",
|
|
1106
|
+
"defaultTag": "Padrão",
|
|
1107
|
+
"inactive": "Inativo",
|
|
1108
|
+
"noProfiles": "Nenhum perfil encontrado",
|
|
1109
|
+
"notSet": "Não definido"
|
|
1110
|
+
},
|
|
1111
|
+
"themeConfig": {
|
|
1112
|
+
"title": "Tema e Identidade",
|
|
1113
|
+
"description": "Resumo da configuração visual do sistema",
|
|
1114
|
+
"configured": "Configurado",
|
|
1115
|
+
"pending": "Pendente",
|
|
1116
|
+
"tokens": "Tokens",
|
|
1117
|
+
"font": "Fonte",
|
|
1118
|
+
"textSize": "Tamanho do texto",
|
|
1119
|
+
"radius": "Raio",
|
|
1120
|
+
"lightPalette": "Paleta clara",
|
|
1121
|
+
"darkPalette": "Paleta escura",
|
|
1122
|
+
"primary": "Primária",
|
|
1123
|
+
"notSet": "Não definido"
|
|
1034
1124
|
}
|
|
1035
1125
|
},
|
|
1036
1126
|
"HomePage": {
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
columns:
|
|
2
|
+
- type: pk
|
|
3
|
+
- name: mail_sent_id
|
|
4
|
+
type: fk
|
|
5
|
+
isNullable: true
|
|
6
|
+
references:
|
|
7
|
+
table: mail_sent
|
|
8
|
+
column: id
|
|
9
|
+
onDelete: SET NULL
|
|
10
|
+
onUpdate: CASCADE
|
|
11
|
+
- name: mail_id
|
|
12
|
+
type: fk
|
|
13
|
+
references:
|
|
14
|
+
table: mail
|
|
15
|
+
column: id
|
|
16
|
+
onDelete: CASCADE
|
|
17
|
+
onUpdate: CASCADE
|
|
18
|
+
- name: user_id
|
|
19
|
+
type: fk
|
|
20
|
+
references:
|
|
21
|
+
table: user
|
|
22
|
+
column: id
|
|
23
|
+
onDelete: CASCADE
|
|
24
|
+
onUpdate: CASCADE
|
|
25
|
+
- name: user_identifier_id
|
|
26
|
+
type: fk
|
|
27
|
+
isNullable: true
|
|
28
|
+
references:
|
|
29
|
+
table: user_identifier
|
|
30
|
+
column: id
|
|
31
|
+
onDelete: SET NULL
|
|
32
|
+
onUpdate: CASCADE
|
|
33
|
+
- name: recipient_email
|
|
34
|
+
type: varchar
|
|
35
|
+
length: 255
|
|
36
|
+
- name: status
|
|
37
|
+
type: enum
|
|
38
|
+
values:
|
|
39
|
+
- received
|
|
40
|
+
- read
|
|
41
|
+
- error
|
|
42
|
+
default: received
|
|
43
|
+
- name: read_at
|
|
44
|
+
type: datetime
|
|
45
|
+
isNullable: true
|
|
46
|
+
- name: error_code
|
|
47
|
+
type: varchar
|
|
48
|
+
length: 128
|
|
49
|
+
isNullable: true
|
|
50
|
+
- name: error_message
|
|
51
|
+
type: text
|
|
52
|
+
isNullable: true
|
|
53
|
+
- type: created_at
|
|
54
|
+
- type: updated_at
|
|
55
|
+
indices:
|
|
56
|
+
- columns:
|
|
57
|
+
- mail_sent_id
|
|
58
|
+
- user_id
|
|
59
|
+
isUnique: true
|
|
60
|
+
- columns:
|
|
61
|
+
- user_id
|
|
62
|
+
- created_at
|
|
63
|
+
- columns:
|
|
64
|
+
- user_id
|
|
65
|
+
- status
|
|
66
|
+
- created_at
|
|
67
|
+
- columns:
|
|
68
|
+
- user_id
|
|
69
|
+
- read_at
|
|
70
|
+
- columns:
|
|
71
|
+
- mail_id
|
|
72
|
+
- columns:
|
|
73
|
+
- user_identifier_id
|
|
74
|
+
- columns:
|
|
75
|
+
- status
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hed-hog/core",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.298",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"types": "dist/index.d.ts",
|
|
6
6
|
"dependencies": {
|
|
@@ -30,12 +30,12 @@
|
|
|
30
30
|
"sharp": "^0.34.2",
|
|
31
31
|
"speakeasy": "^2.0.0",
|
|
32
32
|
"uuid": "^11.1.0",
|
|
33
|
-
"@hed-hog/api-locale": "0.0.14",
|
|
34
33
|
"@hed-hog/api": "0.0.6",
|
|
35
|
-
"@hed-hog/api-mail": "0.0.9",
|
|
36
34
|
"@hed-hog/api-prisma": "0.0.6",
|
|
35
|
+
"@hed-hog/api-types": "0.0.1",
|
|
36
|
+
"@hed-hog/api-locale": "0.0.14",
|
|
37
37
|
"@hed-hog/api-pagination": "0.0.7",
|
|
38
|
-
"@hed-hog/api-
|
|
38
|
+
"@hed-hog/api-mail": "0.0.9"
|
|
39
39
|
},
|
|
40
40
|
"exports": {
|
|
41
41
|
".": {
|
|
@@ -28,6 +28,11 @@ export class DashboardCoreController {
|
|
|
28
28
|
return this.dashboardCoreService.getSystemStatistics();
|
|
29
29
|
}
|
|
30
30
|
|
|
31
|
+
@Get('config/overview')
|
|
32
|
+
getConfigOverview() {
|
|
33
|
+
return this.dashboardCoreService.getConfigOverview();
|
|
34
|
+
}
|
|
35
|
+
|
|
31
36
|
@Get('widgets/me')
|
|
32
37
|
getWidgetsData(@User() user, @Locale() locale: string) {
|
|
33
38
|
return this.dashboardCoreService.getWidgetsData(user.id, locale);
|
|
@@ -2,11 +2,16 @@ import { forwardRef, Module } from '@nestjs/common';
|
|
|
2
2
|
|
|
3
3
|
import { LocaleModule } from '@hed-hog/api-locale';
|
|
4
4
|
import { PrismaModule } from '@hed-hog/api-prisma';
|
|
5
|
+
import { SettingModule } from '../../setting/setting.module';
|
|
5
6
|
import { DashboardCoreController } from './dashboard-core.controller';
|
|
6
7
|
import { DashboardCoreService } from './dashboard-core.service';
|
|
7
8
|
|
|
8
9
|
@Module({
|
|
9
|
-
imports: [
|
|
10
|
+
imports: [
|
|
11
|
+
forwardRef(() => LocaleModule),
|
|
12
|
+
forwardRef(() => PrismaModule),
|
|
13
|
+
forwardRef(() => SettingModule),
|
|
14
|
+
],
|
|
10
15
|
controllers: [DashboardCoreController],
|
|
11
16
|
providers: [DashboardCoreService],
|
|
12
17
|
exports: [DashboardCoreService],
|