@hedhog/setting 0.0.13 → 0.0.15

Sign up to get free protection for your applications and to get access to all the features.
Files changed (31) hide show
  1. package/dist/setting/setting.controller.d.ts +27 -3
  2. package/dist/setting/setting.controller.d.ts.map +1 -1
  3. package/dist/setting/setting.controller.js +3 -3
  4. package/dist/setting/setting.controller.js.map +1 -1
  5. package/dist/setting/setting.service.d.ts +28 -4
  6. package/dist/setting/setting.service.d.ts.map +1 -1
  7. package/dist/setting/setting.service.js +6 -6
  8. package/dist/setting/setting.service.js.map +1 -1
  9. package/hedhog.yaml +285 -307
  10. package/package.json +39 -37
  11. package/frontend/setting/components/create-panel.tsx +0 -83
  12. package/frontend/setting/components/setting.screen.tsx +0 -105
  13. package/frontend/setting/components/update-panel.tsx +0 -96
  14. package/frontend/setting/locales/en/setting.setting.json +0 -11
  15. package/frontend/setting/locales/pt/setting.setting.json +0 -11
  16. package/frontend/setting/react-query/handlers.ts +0 -28
  17. package/frontend/setting/react-query/requests.ts +0 -55
  18. package/frontend/setting-group/components/create-panel.tsx +0 -62
  19. package/frontend/setting-group/components/setting-group.screen.tsx +0 -107
  20. package/frontend/setting-group/components/update-panel.tsx +0 -76
  21. package/frontend/setting-group/locales/en/setting.setting-group.json +0 -11
  22. package/frontend/setting-group/locales/pt/setting.setting-group.json +0 -11
  23. package/frontend/setting-group/react-query/handlers.ts +0 -28
  24. package/frontend/setting-group/react-query/requests.ts +0 -58
  25. package/frontend/setting-user/components/create-panel.tsx +0 -71
  26. package/frontend/setting-user/components/setting-user.screen.tsx +0 -107
  27. package/frontend/setting-user/components/update-panel.tsx +0 -85
  28. package/frontend/setting-user/locales/en/setting.setting-user.json +0 -11
  29. package/frontend/setting-user/locales/pt/setting.setting-user.json +0 -11
  30. package/frontend/setting-user/react-query/handlers.ts +0 -28
  31. package/frontend/setting-user/react-query/requests.ts +0 -57
package/hedhog.yaml CHANGED
@@ -1,307 +1,285 @@
1
- data:
2
- setting_group:
3
- - slug: localization
4
- icon: world
5
- name:
6
- en: Localization
7
- pt: Localização
8
- description:
9
- en: Configure the localization setting.
10
- pt: Configurar as definições de localização.
11
- relations:
12
- setting:
13
- - slug: language
14
- type: string
15
- name:
16
- en: Default Language
17
- pt: Idioma Padrão
18
- description:
19
- en: The system default language, each user can have their own preferred language
20
- pt:
21
- O idioma padrão do sistema, cada usuário pode ter o seu próprio idioma
22
- preferido
23
- value: en
24
- user_override: true
25
- - slug: timezone
26
- type: string
27
- name:
28
- en: Timezone
29
- pt: Fuso Horário
30
- description:
31
- en: The timezone to use
32
- pt: O fuso horário a utilizar
33
- value: UTC
34
- user_override: true
35
- - slug: appearance
36
- icon: palette
37
- name:
38
- en: Appearance
39
- pt: Aparência
40
- description:
41
- en: Configure the appearance setting.
42
- pt: Configurar as definições de aparência.
43
- relations:
44
- setting:
45
- - slug: theme-primary
46
- type: string
47
- name:
48
- en: Primary Color
49
- pt: Cor Primária
50
- description:
51
- en: The primary color to use
52
- pt: A cor primária a utilizar
53
- value: '#000000'
54
- - slug: theme-primary-foreground
55
- type: string
56
- name:
57
- en: Primary Color Foreground
58
- pt: Contraste da Cor Primária
59
- description:
60
- en: The primary color foreground to use
61
- pt: O contraste da cor primária a utilizar
62
- value: '#ffffff'
63
- - slug: theme-secondary
64
- type: string
65
- name:
66
- en: Secondary Color
67
- pt: Cor Secundária
68
- description:
69
- en: The secondary color to use
70
- pt: A cor secundária a utilizar
71
- value: '#FFFFFF'
72
- - slug: theme-secondary-foreground
73
- type: string
74
- name:
75
- en: Secondary Color Foreground
76
- pt: Contraste da Cor Secundária
77
- description:
78
- en: The secondary color foreground to use
79
- pt: O contraste da cor secundária a utilizar
80
- value: '#000000'
81
- - slug: theme-accent
82
- type: string
83
- name:
84
- en: Accent Color
85
- pt: Cor de Realce
86
- description:
87
- en: The accent color to use
88
- pt: A cor de realce a utilizar
89
- value: '#FF0000'
90
- - slug: theme-accent-foreground
91
- type: string
92
- name:
93
- en: Accent Color Foreground
94
- pt: Contraste da Cor de Realce
95
- description:
96
- en: The accent color foreground to use
97
- pt: O contraste da cor de realce a utilizar
98
- value: '#000000'
99
- - slug: theme-background
100
- type: string
101
- name:
102
- en: Background Color
103
- pt: Cor de Fundo
104
- description:
105
- en: The background color to use
106
- pt: A cor de fundo a utilizar
107
- value: '#FFFFFF'
108
- - slug: theme-background-foreground
109
- type: string
110
- name:
111
- en: Background Color Foreground
112
- pt: Contraste da Cor de Fundo
113
- description:
114
- en: The background color foreground to use
115
- pt: O contraste da cor de fundo a utilizar
116
- value: '#000000'
117
- - slug: theme-muted
118
- type: string
119
- name:
120
- en: Muted Color
121
- pt: Cor Suave
122
- description:
123
- en: The muted color to use
124
- pt: A cor suave a utilizar
125
- value: '#F0F0F0'
126
- - slug: theme-muted-foreground
127
- type: string
128
- name:
129
- en: Muted Color Foreground
130
- pt: Contraste da Cor Suave
131
- description:
132
- en: The muted color foreground to use
133
- pt: O contraste da cor suave a utilizar
134
- value: '#000000'
135
- - slug: theme-radius
136
- type: string
137
- name:
138
- en: Radius
139
- pt: Raio
140
- description:
141
- en: The radius to use
142
- pt: O raio a utilizar
143
- value: '0.5'
144
- - slug: theme-font
145
- type: string
146
- name:
147
- en: Font Family
148
- pt: Família de Fontes
149
- description:
150
- en: The font to use
151
- pt: A fonte a utilizar
152
- value: Arial, sans-serif
153
- - slug: theme-text-size
154
- type: string
155
- name:
156
- en: Text Size
157
- pt: Tamanho do Texto
158
- description:
159
- en: Text size of the application
160
- pt: Tamanho do texto da aplicação
161
- value: '1'
162
- - slug: theme-muted-saturation
163
- type: string
164
- name:
165
- en: Muted Color Saturation
166
- pt: Saturação da Cor Suave
167
- description:
168
- en: Saturação da Cor Suave a utilizar
169
- pt: Muted Color Saturation to use
170
- value: '100'
171
- - slug: theme-muted-lightness
172
- type: string
173
- name:
174
- en: Muted Color Lightness
175
- pt: Luminância da Cor Suave
176
- description:
177
- en: Luminância da Cor Suave a utilizar
178
- pt: Muted Color Lightness to use
179
- value: '100'
180
- - slug: theme-light-dark-enabled
181
- type: boolean
182
- name:
183
- en: Light/Dark Themes Enabled
184
- pt: Tema Claro/Escuro Habilitado
185
- description:
186
- en: Enable or disable toggling of light/dark themes
187
- pt: Habilite ou desabilite a troca de tema claro/escuro
188
- value: true
189
- - slug: theme-light-dark-default
190
- type: string
191
- name:
192
- en: Default Theme
193
- pt: Tema Padrão
194
- description:
195
- en: System default theme
196
- pt: Tema Padrão do sistema
197
- value: dark
198
-
199
- tables:
200
- setting_group:
201
- columns:
202
- - type: pk
203
- - name: icon
204
- length: 31
205
- - type: slug
206
- - type: created_at
207
- - type: updated_at
208
- ifNotExists: true
209
- setting_group_locale:
210
- columns:
211
- - name: locale_id
212
- type: fk
213
- isPrimary: true
214
- references:
215
- table: locale
216
- column: id
217
- onDelete: CASCADE
218
- - name: group_id
219
- type: fk
220
- isPrimary: true
221
- references:
222
- table: setting_group
223
- column: id
224
- onDelete: CASCADE
225
- - name: name
226
- length: 63
227
- - name: description
228
- length: 255
229
- isNullable: true
230
- - type: created_at
231
- - type: updated_at
232
- ifNotExists: true
233
- setting:
234
- columns:
235
- - type: pk
236
- - name: group_id
237
- type: fk
238
- references:
239
- table: setting_group
240
- column: id
241
- onDelete: CASCADE
242
- - type: slug
243
- - name: type
244
- type: enum
245
- enum:
246
- - string
247
- - array
248
- - number
249
- - boolean
250
- - json
251
- default: string
252
- - name: value
253
- length: 1023
254
- isNullable: true
255
- - name: user_override
256
- type: boolean
257
- default: false
258
- - type: created_at
259
- - type: updated_at
260
- ifNotExists: true
261
- setting_locale:
262
- columns:
263
- - name: locale_id
264
- type: fk
265
- isPrimary: true
266
- references:
267
- table: locale
268
- column: id
269
- onDelete: CASCADE
270
- - name: setting_id
271
- type: fk
272
- isPrimary: true
273
- references:
274
- table: setting
275
- column: id
276
- onDelete: CASCADE
277
- - name: description
278
- length: 255
279
- isNullable: true
280
- - name: name
281
- length: 63
282
- isNullable: true
283
- - type: created_at
284
- - type: updated_at
285
- ifNotExists: true
286
- setting_user:
287
- columns:
288
- - name: user_id
289
- type: fk
290
- isPrimary: true
291
- references:
292
- table: user
293
- column: id
294
- onDelete: CASCADE
295
- - name: setting_id
296
- type: fk
297
- isPrimary: true
298
- references:
299
- table: setting
300
- column: id
301
- onDelete: CASCADE
302
- - name: value
303
- length: 1023
304
- isNullable: true
305
- - type: created_at
306
- - type: updated_at
307
- ifNotExists: true
1
+ data:
2
+ setting_group:
3
+ - slug: localization
4
+ icon: world
5
+ name:
6
+ en: Localization
7
+ pt: Localização
8
+ description:
9
+ en: Configure the localization setting.
10
+ pt: Configurar as definições de localização.
11
+ relations:
12
+ setting:
13
+ - slug: language
14
+ type: string
15
+ name:
16
+ en: Default Language
17
+ pt: Idioma Padrão
18
+ description:
19
+ en: The system default language, each user can have their own preferred language
20
+ pt:
21
+ O idioma padrão do sistema, cada usuário pode ter o seu próprio idioma
22
+ preferido
23
+ value: en
24
+ user_override: true
25
+ - slug: timezone
26
+ type: string
27
+ name:
28
+ en: Timezone
29
+ pt: Fuso Horário
30
+ description:
31
+ en: The timezone to use
32
+ pt: O fuso horário a utilizar
33
+ value: UTC
34
+ user_override: true
35
+ - slug: appearance
36
+ icon: palette
37
+ name:
38
+ en: Appearance
39
+ pt: Aparência
40
+ description:
41
+ en: Configure the appearance setting.
42
+ pt: Configurar as definições de aparência.
43
+ relations:
44
+ setting:
45
+ - slug: theme-primary
46
+ type: string
47
+ name:
48
+ en: Primary Color
49
+ pt: Cor Primária
50
+ description:
51
+ en: The primary color to use
52
+ pt: A cor primária a utilizar
53
+ value: '#000000'
54
+ - slug: theme-primary-foreground
55
+ type: string
56
+ name:
57
+ en: Primary Color Foreground
58
+ pt: Contraste da Cor Primária
59
+ description:
60
+ en: The primary color foreground to use
61
+ pt: O contraste da cor primária a utilizar
62
+ value: '#ffffff'
63
+ - slug: theme-secondary
64
+ type: string
65
+ name:
66
+ en: Secondary Color
67
+ pt: Cor Secundária
68
+ description:
69
+ en: The secondary color to use
70
+ pt: A cor secundária a utilizar
71
+ value: '#FFFFFF'
72
+ - slug: theme-secondary-foreground
73
+ type: string
74
+ name:
75
+ en: Secondary Color Foreground
76
+ pt: Contraste da Cor Secundária
77
+ description:
78
+ en: The secondary color foreground to use
79
+ pt: O contraste da cor secundária a utilizar
80
+ value: '#000000'
81
+ - slug: theme-accent
82
+ type: string
83
+ name:
84
+ en: Accent Color
85
+ pt: Cor de Realce
86
+ description:
87
+ en: The accent color to use
88
+ pt: A cor de realce a utilizar
89
+ value: '#FF0000'
90
+ - slug: theme-accent-foreground
91
+ type: string
92
+ name:
93
+ en: Accent Color Foreground
94
+ pt: Contraste da Cor de Realce
95
+ description:
96
+ en: The accent color foreground to use
97
+ pt: O contraste da cor de realce a utilizar
98
+ value: '#000000'
99
+ - slug: theme-background
100
+ type: string
101
+ name:
102
+ en: Background Color
103
+ pt: Cor de Fundo
104
+ description:
105
+ en: The background color to use
106
+ pt: A cor de fundo a utilizar
107
+ value: '#FFFFFF'
108
+ - slug: theme-background-foreground
109
+ type: string
110
+ name:
111
+ en: Background Color Foreground
112
+ pt: Contraste da Cor de Fundo
113
+ description:
114
+ en: The background color foreground to use
115
+ pt: O contraste da cor de fundo a utilizar
116
+ value: '#000000'
117
+ - slug: theme-muted
118
+ type: string
119
+ name:
120
+ en: Muted Color
121
+ pt: Cor Suave
122
+ description:
123
+ en: The muted color to use
124
+ pt: A cor suave a utilizar
125
+ value: '#F0F0F0'
126
+ - slug: theme-muted-foreground
127
+ type: string
128
+ name:
129
+ en: Muted Color Foreground
130
+ pt: Contraste da Cor Suave
131
+ description:
132
+ en: The muted color foreground to use
133
+ pt: O contraste da cor suave a utilizar
134
+ value: '#000000'
135
+ - slug: theme-radius
136
+ type: string
137
+ name:
138
+ en: Radius
139
+ pt: Raio
140
+ description:
141
+ en: The radius to use
142
+ pt: O raio a utilizar
143
+ value: '0.5'
144
+ - slug: theme-font
145
+ type: string
146
+ name:
147
+ en: Font Family
148
+ pt: Família de Fontes
149
+ description:
150
+ en: The font to use
151
+ pt: A fonte a utilizar
152
+ value: Arial, sans-serif
153
+ - slug: theme-text-size
154
+ type: string
155
+ name:
156
+ en: Text Size
157
+ pt: Tamanho do Texto
158
+ description:
159
+ en: Text size of the application
160
+ pt: Tamanho do texto da aplicação
161
+ value: '1'
162
+ - slug: theme-muted-saturation
163
+ type: string
164
+ name:
165
+ en: Muted Color Saturation
166
+ pt: Saturação da Cor Suave
167
+ description:
168
+ en: Saturação da Cor Suave a utilizar
169
+ pt: Muted Color Saturation to use
170
+ value: '100'
171
+ - slug: theme-muted-lightness
172
+ type: string
173
+ name:
174
+ en: Muted Color Lightness
175
+ pt: Luminância da Cor Suave
176
+ description:
177
+ en: Luminância da Cor Suave a utilizar
178
+ pt: Muted Color Lightness to use
179
+ value: '100'
180
+ - slug: theme-light-dark-enabled
181
+ type: boolean
182
+ name:
183
+ en: Light/Dark Themes Enabled
184
+ pt: Tema Claro/Escuro Habilitado
185
+ description:
186
+ en: Enable or disable toggling of light/dark themes
187
+ pt: Habilite ou desabilite a troca de tema claro/escuro
188
+ value: true
189
+ - slug: theme-light-dark-default
190
+ type: string
191
+ name:
192
+ en: Default Theme
193
+ pt: Tema Padrão
194
+ description:
195
+ en: System default theme
196
+ pt: Tema Padrão do sistema
197
+ value: dark
198
+
199
+ tables:
200
+ setting_group:
201
+ columns:
202
+ - type: pk
203
+ - name: icon
204
+ length: 31
205
+ - type: slug
206
+ - type: created_at
207
+ - type: updated_at
208
+ ifNotExists: true
209
+ setting_group_locale:
210
+ columns:
211
+ - name: locale_id
212
+ type: fk
213
+ isPrimary: true
214
+ references:
215
+ table: locale
216
+ column: id
217
+ onDelete: CASCADE
218
+ - name: group_id
219
+ type: fk
220
+ isPrimary: true
221
+ references:
222
+ table: setting_group
223
+ column: id
224
+ onDelete: CASCADE
225
+ - name: name
226
+ length: 63
227
+ - name: description
228
+ length: 255
229
+ isNullable: true
230
+ - type: created_at
231
+ - type: updated_at
232
+ ifNotExists: true
233
+ setting:
234
+ columns:
235
+ - type: pk
236
+ - name: group_id
237
+ type: fk
238
+ references:
239
+ table: setting_group
240
+ column: id
241
+ onDelete: CASCADE
242
+ - type: slug
243
+ - name: type
244
+ type: enum
245
+ enum:
246
+ - string
247
+ - array
248
+ - number
249
+ - boolean
250
+ - json
251
+ default: string
252
+ - name: value
253
+ length: 1023
254
+ isNullable: true
255
+ - name: user_override
256
+ type: boolean
257
+ default: false
258
+ - type: created_at
259
+ - type: updated_at
260
+ ifNotExists: true
261
+ setting_locale:
262
+ columns:
263
+ - name: locale_id
264
+ type: fk
265
+ isPrimary: true
266
+ references:
267
+ table: locale
268
+ column: id
269
+ onDelete: CASCADE
270
+ - name: setting_id
271
+ type: fk
272
+ isPrimary: true
273
+ references:
274
+ table: setting
275
+ column: id
276
+ onDelete: CASCADE
277
+ - name: description
278
+ length: 255
279
+ isNullable: true
280
+ - name: name
281
+ length: 63
282
+ isNullable: true
283
+ - type: created_at
284
+ - type: updated_at
285
+ ifNotExists: true
package/package.json CHANGED
@@ -1,37 +1,39 @@
1
- {
2
- "name": "@hedhog/setting",
3
- "version": "0.0.13",
4
- "private": false,
5
- "main": "dist/index.js",
6
- "scripts": {
7
- "clean": "rimraf ./dist",
8
- "prebuild": "npm run clean",
9
- "build": "tsc --project tsconfig.production.json && npm version patch",
10
- "prod": "npm run build && npm publish --access public"
11
- },
12
- "files": [
13
- "dist/**/*",
14
- "frontend/**/*",
15
- "src/entities/**/*.ts",
16
- "src/migrations/**/*.ts",
17
- "src/**/*.ejs",
18
- "hedhog.yaml"
19
- ],
20
- "keywords": [],
21
- "author": "",
22
- "license": "MIT",
23
- "description": "",
24
- "peerDependencies": {
25
- "@hedhog/locale": "latest",
26
- "@hedhog/pagination": "latest",
27
- "@hedhog/prisma": "latest",
28
- "@hedhog/utils": "latest"
29
- },
30
- "devDependencies": {
31
- "@hedhog/locale": "^0.0.18",
32
- "@hedhog/pagination": "^0.0.17",
33
- "@hedhog/prisma": "^0.0.11",
34
- "@hedhog/utils": "^0.0.21",
35
- "@nestjs/mapped-types": "^2.0.5"
36
- }
37
- }
1
+ {
2
+ "name": "@hedhog/setting",
3
+ "version": "0.0.15",
4
+ "private": false,
5
+ "main": "dist/index.js",
6
+ "scripts": {
7
+ "clean": "rimraf ./dist",
8
+ "prebuild": "npm run clean",
9
+ "build": "tsc --project tsconfig.production.json && npm version patch",
10
+ "prod": "npm run build && npm publish --access public"
11
+ },
12
+ "files": [
13
+ "dist/**/*",
14
+ "frontend/**/*",
15
+ "src/entities/**/*.ts",
16
+ "src/migrations/**/*.ts",
17
+ "src/**/*.ejs",
18
+ "hedhog.yaml"
19
+ ],
20
+ "keywords": [],
21
+ "author": "",
22
+ "license": "MIT",
23
+ "description": "",
24
+ "peerDependencies": {
25
+ "@hedhog/core": "latest",
26
+ "@hedhog/locale": "latest",
27
+ "@hedhog/pagination": "latest",
28
+ "@hedhog/prisma": "latest",
29
+ "@hedhog/utils": "latest"
30
+ },
31
+ "devDependencies": {
32
+ "@hedhog/core": "^0.0.1",
33
+ "@hedhog/locale": "^0.0.24",
34
+ "@hedhog/pagination": "^0.0.18",
35
+ "@hedhog/prisma": "^0.0.12",
36
+ "@hedhog/utils": "^0.0.27",
37
+ "@nestjs/mapped-types": "^2.0.5"
38
+ }
39
+ }