Commit db3f61e
committed
feat: Enhance global settings with type support
- Updated global settings schema to include a 'type' field for each setting, allowing for 'string', 'number', or 'boolean' types.
- Modified the GlobalSettingsService to handle typed values, including validation and conversion methods.
- Adjusted plugin settings to specify types for each configuration option.
- Updated migration files to add the new 'type' column to the globalSettings table.
- Enhanced validation logic in the global settings route to ensure values match their declared types.
- Updated tests to cover new type functionality for global settings.1 parent 88b1e49 commit db3f61e
File tree
17 files changed
+845
-27
lines changed- services/backend
- drizzle/migrations_sqlite
- meta
- src
- db
- global-settings
- plugin-system
- plugins/example-plugin
- routes/globalSettings
- services
- tests
17 files changed
+845
-27
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
366 | 366 | | |
367 | 367 | | |
368 | 368 | | |
369 | | - | |
| 369 | + | |
| 370 | + | |
370 | 371 | | |
371 | 372 | | |
372 | 373 | | |
| |||
375 | 376 | | |
376 | 377 | | |
377 | 378 | | |
| 379 | + | |
378 | 380 | | |
379 | 381 | | |
380 | 382 | | |
381 | 383 | | |
382 | 384 | | |
| 385 | + | |
| 386 | + | |
| 387 | + | |
| 388 | + | |
| 389 | + | |
| 390 | + | |
| 391 | + | |
| 392 | + | |
| 393 | + | |
383 | 394 | | |
384 | 395 | | |
385 | 396 | | |
386 | 397 | | |
387 | 398 | | |
388 | | - | |
| 399 | + | |
| 400 | + | |
389 | 401 | | |
390 | 402 | | |
391 | 403 | | |
| |||
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
0 commit comments