@hedhog/admin 0.0.102 → 0.0.104
Sign up to get free protection for your applications and to get access to all the features.
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"locale.service.d.ts","sourceRoot":"","sources":["../../src/locale/locale.service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAC;AACtE,OAAO,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;
|
1
|
+
{"version":3,"file":"locale.service.d.ts","sourceRoot":"","sources":["../../src/locale/locale.service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAC;AACtE,OAAO,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAO/C,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAC7C,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAC7C,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAE7C,qBACa,aAAa;IAKtB,OAAO,CAAC,QAAQ,CAAC,aAAa;IAE9B,OAAO,CAAC,QAAQ,CAAC,iBAAiB;IANpC,OAAO,CAAC,KAAK,CAAW;gBAIL,aAAa,EAAE,aAAa,EAE5B,iBAAiB,EAAE,iBAAiB;IAGjD,UAAU,CAAC,KAAK,EAAE,MAAM,EAAE;IA0B1B,UAAU,CAAC,MAAM,EAAE,MAAM,EAAE,gBAAgB,EAAE,aAAa;IAiEhE,WAAW,CAAC,MAAM,EAAE,MAAM;;;;;IAWpB,eAAe,CAAC,UAAU,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM;IAwCrD,GAAG,CAAC,MAAM,EAAE,MAAM,EAAE,gBAAgB,EAAE,aAAa;IA0DnD,SAAS,CAAC,IAAI,EAAE,MAAM;IAStB,OAAO,CAAC,SAAS,EAAE,MAAM;IAMzB,MAAM,CAAC,IAAI,EAAE,SAAS;IAMtB,MAAM,CAAC,EAAE,EAAE,EAAE,IAAI,EAAE,EAAE;QAAE,EAAE,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,SAAS,CAAA;KAAE;IAOpD,MAAM,CAAC,EAAE,GAAG,EAAE,EAAE,SAAS;IAgB/B,OAAO,CAAC,wBAAwB;IAM1B,sBAAsB,CAAC,CAAC,EAC5B,SAAS,EAAE,MAAM,EACjB,cAAc,EAAE,MAAM,EACtB,IAAI,EAAE,CAAC,EACP,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC;IA+C3B,sBAAsB,CAAC,CAAC,SAAS,GAAG,EACxC,SAAS,EAAE,MAAM,EACjB,cAAc,EAAE,MAAM,EACtB,EAAE,EAAE,MAAM,EACV,IAAI,EAAE,CAAC,EACP,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC;CAoClC"}
|
@@ -15,7 +15,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
15
|
exports.LocaleService = void 0;
|
16
16
|
const pagination_1 = require("@hedhog/pagination");
|
17
17
|
const prisma_1 = require("@hedhog/prisma");
|
18
|
-
const utils_1 = require("@hedhog/utils");
|
19
18
|
const common_1 = require("@nestjs/common");
|
20
19
|
let LocaleService = class LocaleService {
|
21
20
|
constructor(prismaService, paginationService) {
|
@@ -215,8 +214,7 @@ let LocaleService = class LocaleService {
|
|
215
214
|
}
|
216
215
|
getTableNameTranslations(modelName) {
|
217
216
|
const modelNames = modelName.split('_');
|
218
|
-
modelNames
|
219
|
-
modelNames.push('translations');
|
217
|
+
modelNames.push('locale');
|
220
218
|
return modelNames.join('_');
|
221
219
|
}
|
222
220
|
async createModelWithLocales(modelName, foreginKeyName, data, locales) {
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"locale.service.js","sourceRoot":"","sources":["../../src/locale/locale.service.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,mDAAsE;AACtE,2CAA+C;AAC/C,
|
1
|
+
{"version":3,"file":"locale.service.js","sourceRoot":"","sources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IACjB,IAAI,CACR;gBACD,MAAM,oBACD,IAAI,CACR;aACF,CACF,CAAC;QACJ,CAAC;QAED,OAAO,IAAI,CAAC,aAAa,CAAC,SAAS,CAAC,CAAC,MAAM,CAAC;YAC1C,KAAK,EAAE,EAAE,EAAE,EAAE;YACb,IAAI;SACL,CAAC,CAAC;IACL,CAAC;CACF,CAAA;AAhWY,sCAAa;wBAAb,aAAa;IADzB,IAAA,mBAAU,GAAE;IAKR,WAAA,IAAA,eAAM,EAAC,IAAA,mBAAU,EAAC,GAAG,EAAE,CAAC,sBAAa,CAAC,CAAC,CAAA;IAEvC,WAAA,IAAA,eAAM,EAAC,IAAA,mBAAU,EAAC,GAAG,EAAE,CAAC,8BAAiB,CAAC,CAAC,CAAA;qCADZ,sBAAa;QAET,8BAAiB;GAP5C,aAAa,CAgWzB"}
|
package/hedhog.yaml
CHANGED
@@ -1,138 +1,138 @@
|
|
1
1
|
data:
|
2
|
-
|
2
|
+
route:
|
3
3
|
- url: /auth/verify
|
4
4
|
method: GET
|
5
|
-
- url: /
|
5
|
+
- url: /menu/system
|
6
6
|
method: GET
|
7
|
-
- url: /
|
7
|
+
- url: /menu
|
8
8
|
method: GET
|
9
|
-
- url: /
|
9
|
+
- url: /menu/:menuId/role
|
10
10
|
method: GET
|
11
|
-
- url: /
|
11
|
+
- url: /menu/:menuId/screen
|
12
12
|
method: GET
|
13
|
-
- url: /
|
13
|
+
- url: /menu/:menuId/role
|
14
14
|
method: PATCH
|
15
|
-
- url: /
|
15
|
+
- url: /menu/:menuId/screen
|
16
16
|
method: PATCH
|
17
|
-
- url: /
|
17
|
+
- url: /menu/:menuId
|
18
18
|
method: GET
|
19
|
-
- url: /
|
19
|
+
- url: /menu
|
20
20
|
method: POST
|
21
|
-
- url: /
|
21
|
+
- url: /menu/:menuId
|
22
22
|
method: PATCH
|
23
|
-
- url: /
|
23
|
+
- url: /menu
|
24
24
|
method: DELETE
|
25
|
-
- url: /
|
25
|
+
- url: /menu/order
|
26
26
|
method: PATCH
|
27
|
-
- url: /
|
27
|
+
- url: /role
|
28
28
|
method: GET
|
29
|
-
- url: /
|
29
|
+
- url: /role/:roleId/user
|
30
30
|
method: GET
|
31
|
-
- url: /
|
31
|
+
- url: /role/:roleId/menu
|
32
32
|
method: GET
|
33
|
-
- url: /
|
33
|
+
- url: /role/:roleId/route
|
34
34
|
method: GET
|
35
|
-
- url: /
|
35
|
+
- url: /role/:roleId/screen
|
36
36
|
method: GET
|
37
|
-
- url: /
|
37
|
+
- url: /role/:roleId/user
|
38
38
|
method: PATCH
|
39
|
-
- url: /
|
39
|
+
- url: /role/:roleId/menu
|
40
40
|
method: PATCH
|
41
|
-
- url: /
|
41
|
+
- url: /role/:roleId/route
|
42
42
|
method: PATCH
|
43
|
-
- url: /
|
43
|
+
- url: /role/:roleId/screen
|
44
44
|
method: PATCH
|
45
|
-
- url: /
|
45
|
+
- url: /role/:roleId
|
46
46
|
method: GET
|
47
|
-
- url: /
|
47
|
+
- url: /role
|
48
48
|
method: POST
|
49
|
-
- url: /
|
49
|
+
- url: /role/:roleId
|
50
50
|
method: PATCH
|
51
|
-
- url: /
|
51
|
+
- url: /role
|
52
52
|
method: DELETE
|
53
|
-
- url: /
|
53
|
+
- url: /route
|
54
54
|
method: GET
|
55
|
-
- url: /
|
55
|
+
- url: /route/:routeId
|
56
56
|
method: GET
|
57
|
-
- url: /
|
57
|
+
- url: /route
|
58
58
|
method: POST
|
59
|
-
- url: /
|
59
|
+
- url: /route/:routeId
|
60
60
|
method: PATCH
|
61
|
-
- url: /
|
61
|
+
- url: /route
|
62
62
|
method: DELETE
|
63
|
-
- url: /
|
63
|
+
- url: /route/:routeId/role
|
64
64
|
method: GET
|
65
|
-
- url: /
|
65
|
+
- url: /route/:routeId/role
|
66
66
|
method: PATCH
|
67
|
-
- url: /
|
67
|
+
- url: /route/:routeId/screen
|
68
68
|
method: GET
|
69
|
-
- url: /
|
69
|
+
- url: /route/:routeId/screen
|
70
70
|
method: PATCH
|
71
|
-
- url: /
|
71
|
+
- url: /screen
|
72
72
|
method: GET
|
73
|
-
- url: /
|
73
|
+
- url: /screen/:screenId/role
|
74
74
|
method: GET
|
75
|
-
- url: /
|
75
|
+
- url: /screen/:screenId/route
|
76
76
|
method: GET
|
77
|
-
- url: /
|
77
|
+
- url: /screen/:screenId/role
|
78
78
|
method: PATCH
|
79
|
-
- url: /
|
79
|
+
- url: /screen/:screenId/route
|
80
80
|
method: PATCH
|
81
|
-
- url: /
|
81
|
+
- url: /screen/:screenId
|
82
82
|
method: GET
|
83
|
-
- url: /
|
83
|
+
- url: /screen
|
84
84
|
method: POST
|
85
|
-
- url: /
|
85
|
+
- url: /screen/:screenId
|
86
86
|
method: PATCH
|
87
|
-
- url: /
|
87
|
+
- url: /screen
|
88
88
|
method: DELETE
|
89
|
-
- url: /
|
89
|
+
- url: /setting
|
90
90
|
method: GET
|
91
|
-
- url: /
|
91
|
+
- url: /setting/group/:slug
|
92
92
|
method: GET
|
93
|
-
- url: /
|
93
|
+
- url: /setting/group
|
94
94
|
method: GET
|
95
|
-
- url: /
|
95
|
+
- url: /setting/:settingId
|
96
96
|
method: GET
|
97
|
-
- url: /
|
97
|
+
- url: /setting
|
98
98
|
method: POST
|
99
|
-
- url: /
|
99
|
+
- url: /setting
|
100
100
|
method: PUT
|
101
|
-
- url: /
|
101
|
+
- url: /setting/:slug
|
102
102
|
method: PUT
|
103
|
-
- url: /
|
103
|
+
- url: /setting/user/:slug
|
104
104
|
method: PUT
|
105
|
-
- url: /
|
105
|
+
- url: /setting/:settingId
|
106
106
|
method: PATCH
|
107
|
-
- url: /
|
107
|
+
- url: /setting
|
108
108
|
method: DELETE
|
109
|
-
- url: /
|
109
|
+
- url: /user
|
110
110
|
method: GET
|
111
|
-
- url: /
|
111
|
+
- url: /user/:userId/role
|
112
112
|
method: GET
|
113
|
-
- url: /
|
113
|
+
- url: /user/:userId/role
|
114
114
|
method: PATCH
|
115
|
-
- url: /
|
115
|
+
- url: /user/:userId
|
116
116
|
method: GET
|
117
|
-
- url: /
|
117
|
+
- url: /user
|
118
118
|
method: POST
|
119
|
-
- url: /
|
119
|
+
- url: /user/:userId
|
120
120
|
method: PATCH
|
121
|
-
- url: /
|
121
|
+
- url: /user
|
122
122
|
method: DELETE
|
123
|
-
- url: /
|
123
|
+
- url: /locale
|
124
124
|
method: GET
|
125
|
-
- url: /
|
125
|
+
- url: /locale/:localeId
|
126
126
|
method: GET
|
127
|
-
- url: /
|
127
|
+
- url: /locale
|
128
128
|
method: POST
|
129
|
-
- url: /
|
129
|
+
- url: /locale
|
130
130
|
method: PUT
|
131
|
-
- url: /
|
131
|
+
- url: /locale/:localeId
|
132
132
|
method: PATCH
|
133
|
-
- url: /
|
133
|
+
- url: /locale
|
134
134
|
method: DELETE
|
135
|
-
|
135
|
+
menu:
|
136
136
|
- url: /
|
137
137
|
icon: dashboard
|
138
138
|
name:
|
@@ -148,137 +148,137 @@ data:
|
|
148
148
|
- menu_id:
|
149
149
|
where:
|
150
150
|
slug: /management
|
151
|
-
url: /management/
|
152
|
-
icon:
|
151
|
+
url: /management/user
|
152
|
+
icon: user
|
153
153
|
name:
|
154
|
-
en:
|
154
|
+
en: User
|
155
155
|
pt: Usuários
|
156
|
-
slug: /management/
|
156
|
+
slug: /management/user
|
157
157
|
- menu_id:
|
158
158
|
where:
|
159
159
|
slug: /management
|
160
|
-
url: /management/
|
160
|
+
url: /management/role
|
161
161
|
icon: circles
|
162
162
|
name:
|
163
|
-
en:
|
163
|
+
en: Role
|
164
164
|
pt: Cargos
|
165
|
-
slug: /management/
|
165
|
+
slug: /management/role
|
166
166
|
- menu_id:
|
167
167
|
where:
|
168
168
|
slug: /management
|
169
|
-
url: /management/
|
169
|
+
url: /management/screen
|
170
170
|
icon: device-tv
|
171
171
|
name:
|
172
|
-
en:
|
172
|
+
en: Screen
|
173
173
|
pt: Telas
|
174
|
-
slug: /management/
|
174
|
+
slug: /management/screen
|
175
175
|
- menu_id:
|
176
176
|
where:
|
177
177
|
slug: /management
|
178
|
-
url: /management/
|
178
|
+
url: /management/menu
|
179
179
|
icon: menu
|
180
180
|
name:
|
181
|
-
en:
|
182
|
-
pt:
|
183
|
-
slug: /management/
|
181
|
+
en: Menu
|
182
|
+
pt: Menu
|
183
|
+
slug: /management/menu
|
184
184
|
- menu_id:
|
185
185
|
where:
|
186
186
|
slug: /management
|
187
|
-
url: /management/
|
187
|
+
url: /management/route
|
188
188
|
icon: route
|
189
189
|
name:
|
190
|
-
en:
|
190
|
+
en: Route
|
191
191
|
pt: Rotas
|
192
|
-
slug: /management/
|
192
|
+
slug: /management/route
|
193
193
|
- menu_id:
|
194
194
|
where:
|
195
195
|
slug: /management
|
196
|
-
url: /management/
|
197
|
-
icon:
|
196
|
+
url: /management/setting
|
197
|
+
icon: setting
|
198
198
|
name:
|
199
|
-
en:
|
199
|
+
en: Setting
|
200
200
|
pt: Configurações
|
201
|
-
slug: /management/
|
202
|
-
|
203
|
-
- slug: /management/
|
204
|
-
icon:
|
201
|
+
slug: /management/setting
|
202
|
+
screen:
|
203
|
+
- slug: /management/user
|
204
|
+
icon: user
|
205
205
|
name:
|
206
|
-
en:
|
206
|
+
en: User
|
207
207
|
pt: Usuários
|
208
208
|
description:
|
209
|
-
en: Manage
|
209
|
+
en: Manage user in the system.
|
210
210
|
pt: Gerenciar usuários no sistema.
|
211
211
|
relations:
|
212
|
-
|
212
|
+
route:
|
213
213
|
- where:
|
214
214
|
url:
|
215
|
-
like: /
|
216
|
-
- slug: /management/
|
215
|
+
like: /user%
|
216
|
+
- slug: /management/role
|
217
217
|
icon: circles
|
218
218
|
name:
|
219
|
-
en:
|
219
|
+
en: Role
|
220
220
|
pt: Funções
|
221
221
|
description:
|
222
|
-
en: Manage
|
222
|
+
en: Manage role assigned to user.
|
223
223
|
pt: Gerenciar funções atribuídas a usuários.
|
224
224
|
relations:
|
225
|
-
|
225
|
+
route:
|
226
226
|
- where:
|
227
227
|
url:
|
228
|
-
like: /
|
229
|
-
- slug: /management/
|
228
|
+
like: /role%
|
229
|
+
- slug: /management/screen
|
230
230
|
icon: monitor
|
231
231
|
name:
|
232
|
-
en:
|
232
|
+
en: Screen
|
233
233
|
pt: Telas
|
234
234
|
description:
|
235
|
-
en: Manage the
|
235
|
+
en: Manage the screen available in the system.
|
236
236
|
pt: Gerenciar as telas disponíveis no sistema.
|
237
237
|
relations:
|
238
|
-
|
238
|
+
route:
|
239
239
|
- where:
|
240
240
|
url:
|
241
|
-
like: /
|
242
|
-
- slug: /management/
|
241
|
+
like: /screen%
|
242
|
+
- slug: /management/menu
|
243
243
|
icon: menu
|
244
244
|
name:
|
245
|
-
en:
|
246
|
-
pt:
|
245
|
+
en: Menu
|
246
|
+
pt: Menu
|
247
247
|
description:
|
248
|
-
en: Manage the
|
249
|
-
pt: Gerenciar os
|
248
|
+
en: Manage the menu in the system.
|
249
|
+
pt: Gerenciar os menu no sistema.
|
250
250
|
relations:
|
251
|
-
|
251
|
+
route:
|
252
252
|
- where:
|
253
253
|
url:
|
254
|
-
like: /
|
255
|
-
- slug: /management/
|
254
|
+
like: /menu%
|
255
|
+
- slug: /management/route
|
256
256
|
icon: route
|
257
257
|
name:
|
258
|
-
en:
|
258
|
+
en: Route
|
259
259
|
pt: Rotas
|
260
260
|
description:
|
261
|
-
en: Manage
|
261
|
+
en: Manage route for navigation within the system.
|
262
262
|
pt: Gerenciar rotas para navegação dentro do sistema.
|
263
263
|
relations:
|
264
|
-
|
264
|
+
route:
|
265
265
|
- where:
|
266
266
|
url:
|
267
|
-
like: /
|
268
|
-
- slug: /management/
|
269
|
-
icon:
|
267
|
+
like: /route%
|
268
|
+
- slug: /management/setting
|
269
|
+
icon: setting
|
270
270
|
name:
|
271
|
-
en:
|
271
|
+
en: Setting
|
272
272
|
pt: Configurações
|
273
273
|
description:
|
274
|
-
en: Manage system
|
274
|
+
en: Manage system setting and configurations.
|
275
275
|
pt: Gerenciar configurações e definições do sistema.
|
276
276
|
relations:
|
277
|
-
|
277
|
+
route:
|
278
278
|
- where:
|
279
279
|
url:
|
280
|
-
like: /
|
281
|
-
|
280
|
+
like: /setting%
|
281
|
+
country:
|
282
282
|
- name:
|
283
283
|
en: Afghanistan
|
284
284
|
pt: Afeganistão
|
@@ -1039,7 +1039,7 @@ data:
|
|
1039
1039
|
en: Zimbabwe
|
1040
1040
|
pt: Zimbábue
|
1041
1041
|
code: ZWE
|
1042
|
-
|
1042
|
+
multifactor:
|
1043
1043
|
- name:
|
1044
1044
|
en: Email
|
1045
1045
|
pt: E-mail
|
@@ -1048,7 +1048,7 @@ data:
|
|
1048
1048
|
en: Authenticator
|
1049
1049
|
pt: Autenticador
|
1050
1050
|
slug: authenticator
|
1051
|
-
|
1051
|
+
user:
|
1052
1052
|
- name: Administrator
|
1053
1053
|
email: root@hedhog.com
|
1054
1054
|
password:
|
@@ -1057,7 +1057,7 @@ data:
|
|
1057
1057
|
email: user@hedhog.com
|
1058
1058
|
password:
|
1059
1059
|
hash: changeme
|
1060
|
-
|
1060
|
+
role:
|
1061
1061
|
- slug: admin
|
1062
1062
|
name:
|
1063
1063
|
en: Administrator
|
@@ -1066,18 +1066,18 @@ data:
|
|
1066
1066
|
en: System administrator with full access.
|
1067
1067
|
pt: Administrador do sistema com acesso total.
|
1068
1068
|
relations:
|
1069
|
-
|
1069
|
+
user:
|
1070
1070
|
- where:
|
1071
1071
|
email: root@hedhog.com
|
1072
|
-
|
1072
|
+
menu:
|
1073
1073
|
- where:
|
1074
1074
|
id:
|
1075
1075
|
gte: 0
|
1076
|
-
|
1076
|
+
route:
|
1077
1077
|
- where:
|
1078
1078
|
id:
|
1079
1079
|
gte: 0
|
1080
|
-
|
1080
|
+
screen:
|
1081
1081
|
- where:
|
1082
1082
|
id:
|
1083
1083
|
gte: 0
|
@@ -1086,17 +1086,17 @@ data:
|
|
1086
1086
|
en: Screen Manager
|
1087
1087
|
pt: Gerente de Telas
|
1088
1088
|
description:
|
1089
|
-
en: Manage
|
1089
|
+
en: Manage screen in the system.
|
1090
1090
|
pt: Gerenciar telas no sistema.
|
1091
1091
|
relations:
|
1092
|
-
|
1092
|
+
user:
|
1093
1093
|
- where:
|
1094
1094
|
email: user@hedhog.com
|
1095
|
-
|
1095
|
+
route:
|
1096
1096
|
- where:
|
1097
1097
|
url:
|
1098
|
-
like: /
|
1099
|
-
|
1098
|
+
like: /screen%
|
1099
|
+
menu:
|
1100
1100
|
- where:
|
1101
1101
|
slug: /
|
1102
1102
|
- slug: admin-access
|
@@ -1107,34 +1107,34 @@ data:
|
|
1107
1107
|
en: Access to administrative features.
|
1108
1108
|
pt: Acesso a funcionalidades administrativas.
|
1109
1109
|
relations:
|
1110
|
-
|
1110
|
+
user:
|
1111
1111
|
- where:
|
1112
1112
|
email: root@hedhog.com
|
1113
1113
|
- where:
|
1114
1114
|
email: user@hedhog.com
|
1115
|
-
|
1115
|
+
route:
|
1116
1116
|
- where:
|
1117
1117
|
method: GET
|
1118
1118
|
url:
|
1119
1119
|
in:
|
1120
|
-
- /
|
1120
|
+
- /menu/system
|
1121
1121
|
- /auth/verify
|
1122
|
-
- /
|
1123
|
-
- /
|
1122
|
+
- /setting/group/:slug
|
1123
|
+
- /setting/group
|
1124
1124
|
- where:
|
1125
1125
|
method: PUT
|
1126
1126
|
url:
|
1127
1127
|
in:
|
1128
|
-
- /
|
1129
|
-
|
1128
|
+
- /setting/:slug
|
1129
|
+
locale:
|
1130
1130
|
- code: en
|
1131
1131
|
region: US
|
1132
1132
|
- code: pt
|
1133
1133
|
region: BR
|
1134
|
-
|
1134
|
+
translation_namespace:
|
1135
1135
|
- name: translation
|
1136
1136
|
relations:
|
1137
|
-
|
1137
|
+
translation:
|
1138
1138
|
- locale_id:
|
1139
1139
|
where:
|
1140
1140
|
code: en
|
@@ -1165,17 +1165,17 @@ data:
|
|
1165
1165
|
code: pt
|
1166
1166
|
name: pt
|
1167
1167
|
value: Português
|
1168
|
-
|
1168
|
+
setting_group:
|
1169
1169
|
- slug: localization
|
1170
1170
|
icon: world
|
1171
1171
|
name:
|
1172
1172
|
en: Localization
|
1173
1173
|
pt: Localização
|
1174
1174
|
description:
|
1175
|
-
en: Configure the localization
|
1175
|
+
en: Configure the localization setting.
|
1176
1176
|
pt: Configurar as definições de localização.
|
1177
1177
|
relations:
|
1178
|
-
|
1178
|
+
setting:
|
1179
1179
|
- slug: language
|
1180
1180
|
type: string
|
1181
1181
|
name:
|
@@ -1202,10 +1202,10 @@ data:
|
|
1202
1202
|
en: Appearance
|
1203
1203
|
pt: Aparência
|
1204
1204
|
description:
|
1205
|
-
en: Configure the appearance
|
1205
|
+
en: Configure the appearance setting.
|
1206
1206
|
pt: Configurar as definições de aparência.
|
1207
1207
|
relations:
|
1208
|
-
|
1208
|
+
setting:
|
1209
1209
|
- slug: theme-primary
|
1210
1210
|
type: string
|
1211
1211
|
name:
|
@@ -1361,7 +1361,7 @@ data:
|
|
1361
1361
|
value: 'dark'
|
1362
1362
|
|
1363
1363
|
tables:
|
1364
|
-
|
1364
|
+
country:
|
1365
1365
|
columns:
|
1366
1366
|
- type: pk
|
1367
1367
|
- name: code
|
@@ -1370,46 +1370,46 @@ tables:
|
|
1370
1370
|
- type: created_at
|
1371
1371
|
- type: updated_at
|
1372
1372
|
ifNotExists: true
|
1373
|
-
|
1373
|
+
country_locale:
|
1374
1374
|
columns:
|
1375
1375
|
- name: country_id
|
1376
1376
|
type: fk
|
1377
1377
|
isPrimary: true
|
1378
1378
|
references:
|
1379
|
-
table:
|
1379
|
+
table: country
|
1380
1380
|
column: id
|
1381
1381
|
onDelete: CASCADE
|
1382
1382
|
- name: locale_id
|
1383
1383
|
type: fk
|
1384
1384
|
isPrimary: true
|
1385
1385
|
references:
|
1386
|
-
table:
|
1386
|
+
table: locale
|
1387
1387
|
column: id
|
1388
1388
|
onDelete: CASCADE
|
1389
1389
|
- name: name
|
1390
1390
|
- type: created_at
|
1391
1391
|
- type: updated_at
|
1392
1392
|
ifNotExists: true
|
1393
|
-
|
1393
|
+
translation_namespace:
|
1394
1394
|
columns:
|
1395
1395
|
- type: pk
|
1396
1396
|
- name: name
|
1397
1397
|
- type: created_at
|
1398
1398
|
- type: updated_at
|
1399
1399
|
ifNotExists: true
|
1400
|
-
|
1400
|
+
translation:
|
1401
1401
|
columns:
|
1402
1402
|
- type: pk
|
1403
1403
|
- name: locale_id
|
1404
1404
|
type: fk
|
1405
1405
|
references:
|
1406
|
-
table:
|
1406
|
+
table: locale
|
1407
1407
|
column: id
|
1408
1408
|
onDelete: CASCADE
|
1409
1409
|
- name: namespace_id
|
1410
1410
|
type: fk
|
1411
1411
|
references:
|
1412
|
-
table:
|
1412
|
+
table: translation_namespace
|
1413
1413
|
column: id
|
1414
1414
|
onDelete: CASCADE
|
1415
1415
|
- name: name
|
@@ -1423,41 +1423,41 @@ tables:
|
|
1423
1423
|
- name
|
1424
1424
|
isUnique: true
|
1425
1425
|
ifNotExists: true
|
1426
|
-
|
1426
|
+
multifactor:
|
1427
1427
|
columns:
|
1428
1428
|
- type: pk
|
1429
1429
|
- type: slug
|
1430
1430
|
- type: created_at
|
1431
1431
|
- type: updated_at
|
1432
1432
|
ifNotExists: true
|
1433
|
-
|
1433
|
+
multifactor_locale:
|
1434
1434
|
columns:
|
1435
1435
|
- name: multifactor_id
|
1436
1436
|
type: fk
|
1437
1437
|
isPrimary: true
|
1438
1438
|
references:
|
1439
|
-
table:
|
1439
|
+
table: multifactor
|
1440
1440
|
column: id
|
1441
1441
|
onDelete: CASCADE
|
1442
1442
|
- name: locale_id
|
1443
1443
|
type: fk
|
1444
1444
|
isPrimary: true
|
1445
1445
|
references:
|
1446
|
-
table:
|
1446
|
+
table: locale
|
1447
1447
|
column: id
|
1448
1448
|
onDelete: CASCADE
|
1449
1449
|
- name: name
|
1450
1450
|
- type: created_at
|
1451
1451
|
- type: updated_at
|
1452
1452
|
ifNotExists: true
|
1453
|
-
|
1453
|
+
user:
|
1454
1454
|
columns:
|
1455
1455
|
- type: pk
|
1456
1456
|
- name: multifactor_id
|
1457
1457
|
type: fk
|
1458
1458
|
isNullable: true
|
1459
1459
|
references:
|
1460
|
-
table:
|
1460
|
+
table: multifactor
|
1461
1461
|
column: id
|
1462
1462
|
onDelete: SET NULL
|
1463
1463
|
- name: name
|
@@ -1468,7 +1468,7 @@ tables:
|
|
1468
1468
|
- type: created_at
|
1469
1469
|
- type: updated_at
|
1470
1470
|
ifNotExists: true
|
1471
|
-
|
1471
|
+
screen:
|
1472
1472
|
columns:
|
1473
1473
|
- type: pk
|
1474
1474
|
- type: slug
|
@@ -1477,20 +1477,20 @@ tables:
|
|
1477
1477
|
- type: created_at
|
1478
1478
|
- type: updated_at
|
1479
1479
|
ifNotExists: true
|
1480
|
-
|
1480
|
+
screen_locale:
|
1481
1481
|
columns:
|
1482
1482
|
- name: screen_id
|
1483
1483
|
type: fk
|
1484
1484
|
isPrimary: true
|
1485
1485
|
references:
|
1486
|
-
table:
|
1486
|
+
table: screen
|
1487
1487
|
column: id
|
1488
1488
|
onDelete: CASCADE
|
1489
1489
|
- name: locale_id
|
1490
1490
|
type: fk
|
1491
1491
|
isPrimary: true
|
1492
1492
|
references:
|
1493
|
-
table:
|
1493
|
+
table: locale
|
1494
1494
|
column: id
|
1495
1495
|
onDelete: CASCADE
|
1496
1496
|
- name: name
|
@@ -1498,14 +1498,14 @@ tables:
|
|
1498
1498
|
- type: created_at
|
1499
1499
|
- type: updated_at
|
1500
1500
|
ifNotExists: true
|
1501
|
-
|
1501
|
+
menu:
|
1502
1502
|
columns:
|
1503
1503
|
- type: pk
|
1504
1504
|
- name: menu_id
|
1505
1505
|
type: fk
|
1506
1506
|
isNullable: true
|
1507
1507
|
references:
|
1508
|
-
table:
|
1508
|
+
table: menu
|
1509
1509
|
column: id
|
1510
1510
|
onDelete: CASCADE
|
1511
1511
|
- type: slug
|
@@ -1517,44 +1517,44 @@ tables:
|
|
1517
1517
|
- type: created_at
|
1518
1518
|
- type: updated_at
|
1519
1519
|
ifNotExists: true
|
1520
|
-
|
1520
|
+
menu_locale:
|
1521
1521
|
columns:
|
1522
1522
|
- name: menu_id
|
1523
1523
|
type: fk
|
1524
1524
|
isPrimary: true
|
1525
1525
|
references:
|
1526
|
-
table:
|
1526
|
+
table: menu
|
1527
1527
|
column: id
|
1528
1528
|
onDelete: CASCADE
|
1529
1529
|
- name: locale_id
|
1530
1530
|
type: fk
|
1531
1531
|
isPrimary: true
|
1532
1532
|
references:
|
1533
|
-
table:
|
1533
|
+
table: locale
|
1534
1534
|
column: id
|
1535
1535
|
onDelete: CASCADE
|
1536
1536
|
- name: name
|
1537
1537
|
- type: created_at
|
1538
1538
|
- type: updated_at
|
1539
1539
|
ifNotExists: true
|
1540
|
-
|
1540
|
+
menu_screen:
|
1541
1541
|
columns:
|
1542
1542
|
- name: menu_id
|
1543
1543
|
type: fk
|
1544
1544
|
isPrimary: true
|
1545
1545
|
references:
|
1546
|
-
table:
|
1546
|
+
table: menu
|
1547
1547
|
column: id
|
1548
1548
|
onDelete: CASCADE
|
1549
1549
|
- name: screen_id
|
1550
1550
|
type: fk
|
1551
1551
|
isPrimary: true
|
1552
1552
|
references:
|
1553
|
-
table:
|
1553
|
+
table: screen
|
1554
1554
|
column: id
|
1555
1555
|
onDelete: CASCADE
|
1556
1556
|
ifNotExists: true
|
1557
|
-
|
1557
|
+
route:
|
1558
1558
|
columns:
|
1559
1559
|
- type: pk
|
1560
1560
|
- name: url
|
@@ -1574,27 +1574,27 @@ tables:
|
|
1574
1574
|
- columns: ['url', 'method']
|
1575
1575
|
isUnique: true
|
1576
1576
|
ifNotExists: true
|
1577
|
-
|
1577
|
+
role:
|
1578
1578
|
columns:
|
1579
1579
|
- type: pk
|
1580
1580
|
- type: slug
|
1581
1581
|
- type: created_at
|
1582
1582
|
- type: updated_at
|
1583
1583
|
ifNotExists: true
|
1584
|
-
|
1584
|
+
role_locale:
|
1585
1585
|
columns:
|
1586
1586
|
- name: role_id
|
1587
1587
|
type: fk
|
1588
1588
|
isPrimary: true
|
1589
1589
|
references:
|
1590
|
-
table:
|
1590
|
+
table: role
|
1591
1591
|
column: id
|
1592
1592
|
onDelete: CASCADE
|
1593
1593
|
- name: locale_id
|
1594
1594
|
type: fk
|
1595
1595
|
isPrimary: true
|
1596
1596
|
references:
|
1597
|
-
table:
|
1597
|
+
table: locale
|
1598
1598
|
column: id
|
1599
1599
|
onDelete: CASCADE
|
1600
1600
|
- name: name
|
@@ -1602,106 +1602,106 @@ tables:
|
|
1602
1602
|
- type: created_at
|
1603
1603
|
- type: updated_at
|
1604
1604
|
ifNotExists: true
|
1605
|
-
|
1605
|
+
role_menu:
|
1606
1606
|
columns:
|
1607
1607
|
- name: role_id
|
1608
1608
|
type: fk
|
1609
1609
|
isPrimary: true
|
1610
1610
|
references:
|
1611
|
-
table:
|
1611
|
+
table: role
|
1612
1612
|
column: id
|
1613
1613
|
onDelete: CASCADE
|
1614
1614
|
- name: menu_id
|
1615
1615
|
type: fk
|
1616
1616
|
isPrimary: true
|
1617
1617
|
references:
|
1618
|
-
table:
|
1618
|
+
table: menu
|
1619
1619
|
column: id
|
1620
1620
|
onDelete: CASCADE
|
1621
1621
|
- type: created_at
|
1622
1622
|
- type: updated_at
|
1623
1623
|
ifNotExists: true
|
1624
|
-
|
1624
|
+
route_screen:
|
1625
1625
|
columns:
|
1626
1626
|
- name: route_id
|
1627
1627
|
type: fk
|
1628
1628
|
isPrimary: true
|
1629
1629
|
references:
|
1630
|
-
table:
|
1630
|
+
table: route
|
1631
1631
|
column: id
|
1632
1632
|
onDelete: CASCADE
|
1633
1633
|
- name: screen_id
|
1634
1634
|
type: fk
|
1635
1635
|
isPrimary: true
|
1636
1636
|
references:
|
1637
|
-
table:
|
1637
|
+
table: screen
|
1638
1638
|
column: id
|
1639
1639
|
onDelete: CASCADE
|
1640
1640
|
- type: created_at
|
1641
1641
|
- type: updated_at
|
1642
1642
|
ifNotExists: true
|
1643
1643
|
|
1644
|
-
|
1644
|
+
role_screen:
|
1645
1645
|
columns:
|
1646
1646
|
- name: role_id
|
1647
1647
|
type: fk
|
1648
1648
|
isPrimary: true
|
1649
1649
|
references:
|
1650
|
-
table:
|
1650
|
+
table: role
|
1651
1651
|
column: id
|
1652
1652
|
onDelete: CASCADE
|
1653
1653
|
- name: screen_id
|
1654
1654
|
type: fk
|
1655
1655
|
isPrimary: true
|
1656
1656
|
references:
|
1657
|
-
table:
|
1657
|
+
table: screen
|
1658
1658
|
column: id
|
1659
1659
|
onDelete: CASCADE
|
1660
1660
|
- type: created_at
|
1661
1661
|
- type: updated_at
|
1662
1662
|
ifNotExists: true
|
1663
1663
|
|
1664
|
-
|
1664
|
+
role_user:
|
1665
1665
|
columns:
|
1666
1666
|
- name: role_id
|
1667
1667
|
type: fk
|
1668
1668
|
isPrimary: true
|
1669
1669
|
references:
|
1670
|
-
table:
|
1670
|
+
table: role
|
1671
1671
|
column: id
|
1672
1672
|
onDelete: CASCADE
|
1673
1673
|
- name: user_id
|
1674
1674
|
type: fk
|
1675
1675
|
isPrimary: true
|
1676
1676
|
references:
|
1677
|
-
table:
|
1677
|
+
table: user
|
1678
1678
|
column: id
|
1679
1679
|
onDelete: CASCADE
|
1680
1680
|
- type: created_at
|
1681
1681
|
- type: updated_at
|
1682
1682
|
ifNotExists: true
|
1683
1683
|
|
1684
|
-
|
1684
|
+
role_route:
|
1685
1685
|
columns:
|
1686
1686
|
- name: role_id
|
1687
1687
|
type: fk
|
1688
1688
|
isPrimary: true
|
1689
1689
|
references:
|
1690
|
-
table:
|
1690
|
+
table: role
|
1691
1691
|
column: id
|
1692
1692
|
onDelete: CASCADE
|
1693
1693
|
- name: route_id
|
1694
1694
|
type: fk
|
1695
1695
|
isPrimary: true
|
1696
1696
|
references:
|
1697
|
-
table:
|
1697
|
+
table: route
|
1698
1698
|
column: id
|
1699
1699
|
onDelete: CASCADE
|
1700
1700
|
- type: created_at
|
1701
1701
|
- type: updated_at
|
1702
1702
|
ifNotExists: true
|
1703
1703
|
|
1704
|
-
|
1704
|
+
setting_group:
|
1705
1705
|
columns:
|
1706
1706
|
- type: pk
|
1707
1707
|
- name: icon
|
@@ -1711,20 +1711,20 @@ tables:
|
|
1711
1711
|
- type: updated_at
|
1712
1712
|
ifNotExists: true
|
1713
1713
|
|
1714
|
-
|
1714
|
+
setting_group_locale:
|
1715
1715
|
columns:
|
1716
1716
|
- name: locale_id
|
1717
1717
|
type: fk
|
1718
1718
|
isPrimary: true
|
1719
1719
|
references:
|
1720
|
-
table:
|
1720
|
+
table: locale
|
1721
1721
|
column: id
|
1722
1722
|
onDelete: CASCADE
|
1723
1723
|
- name: group_id
|
1724
1724
|
type: fk
|
1725
1725
|
isPrimary: true
|
1726
1726
|
references:
|
1727
|
-
table:
|
1727
|
+
table: setting_group
|
1728
1728
|
column: id
|
1729
1729
|
onDelete: CASCADE
|
1730
1730
|
- name: name
|
@@ -1736,13 +1736,13 @@ tables:
|
|
1736
1736
|
- type: updated_at
|
1737
1737
|
ifNotExists: true
|
1738
1738
|
|
1739
|
-
|
1739
|
+
setting:
|
1740
1740
|
columns:
|
1741
1741
|
- type: pk
|
1742
1742
|
- name: group_id
|
1743
1743
|
type: fk
|
1744
1744
|
references:
|
1745
|
-
table:
|
1745
|
+
table: setting_group
|
1746
1746
|
column: id
|
1747
1747
|
onDelete: CASCADE
|
1748
1748
|
- type: slug
|
@@ -1765,20 +1765,20 @@ tables:
|
|
1765
1765
|
- type: updated_at
|
1766
1766
|
ifNotExists: true
|
1767
1767
|
|
1768
|
-
|
1768
|
+
setting_locale:
|
1769
1769
|
columns:
|
1770
1770
|
- name: locale_id
|
1771
1771
|
type: fk
|
1772
1772
|
isPrimary: true
|
1773
1773
|
references:
|
1774
|
-
table:
|
1774
|
+
table: locale
|
1775
1775
|
column: id
|
1776
1776
|
onDelete: CASCADE
|
1777
1777
|
- name: setting_id
|
1778
1778
|
type: fk
|
1779
1779
|
isPrimary: true
|
1780
1780
|
references:
|
1781
|
-
table:
|
1781
|
+
table: setting
|
1782
1782
|
column: id
|
1783
1783
|
onDelete: CASCADE
|
1784
1784
|
- name: description
|
@@ -1791,20 +1791,20 @@ tables:
|
|
1791
1791
|
- type: updated_at
|
1792
1792
|
ifNotExists: true
|
1793
1793
|
|
1794
|
-
|
1794
|
+
setting_user:
|
1795
1795
|
columns:
|
1796
1796
|
- name: user_id
|
1797
1797
|
type: fk
|
1798
1798
|
isPrimary: true
|
1799
1799
|
references:
|
1800
|
-
table:
|
1800
|
+
table: user
|
1801
1801
|
column: id
|
1802
1802
|
onDelete: CASCADE
|
1803
1803
|
- name: setting_id
|
1804
1804
|
type: fk
|
1805
1805
|
isPrimary: true
|
1806
1806
|
references:
|
1807
|
-
table:
|
1807
|
+
table: setting
|
1808
1808
|
column: id
|
1809
1809
|
onDelete: CASCADE
|
1810
1810
|
- name: value
|
@@ -1814,7 +1814,7 @@ tables:
|
|
1814
1814
|
- type: updated_at
|
1815
1815
|
ifNotExists: true
|
1816
1816
|
|
1817
|
-
|
1817
|
+
locale:
|
1818
1818
|
columns:
|
1819
1819
|
- type: pk
|
1820
1820
|
- name: code
|