feat(ui): dynamic logo customization, centralized contact links, hero slider, banner placements, reorganized admin sidebar & ui-texts save fix
Deploy Canina / deploy (push) Has been cancelled

This commit is contained in:
parsa aghaei committed 2026-08-17 09:26:05 +03:30
1 parent 2fca778930
commit 2d594c5d69
34 files changed
+126746 -9764

No files matched your search

+33 -4
View File
@@ -41,11 +41,40 @@ export class SettingsController {
@UseGuards(JwtAuthGuard, RolesGuard)
@Roles('Admin')
@ApiBearerAuth()
@Patch('ui-texts/:key')
@Put('ui-texts/:key')
@ApiOperation({ summary: 'ویرایش یا ثبت متن یک کلید در رابط کاربری' })
updateUiText(@Param('key') key: string, @Body('value') value: string) {
return this.settingsService.updateUiText(key, value);
@ApiOperation({ summary: 'ویرایش یا ثبت متن یک کلید در رابط کاربری با متد PUT' })
putUiText(@Param('key') key: string, @Body() body: any) {
const val =
typeof body === 'object' && body !== null && 'value' in body
? body.value
: typeof body === 'string'
? body
: JSON.stringify(body);
return this.settingsService.updateUiText(key, String(val ?? ''));
}
@UseGuards(JwtAuthGuard, RolesGuard)
@Roles('Admin')
@ApiBearerAuth()
@Patch('ui-texts/:key')
@ApiOperation({ summary: 'ویرایش یا ثبت متن یک کلید در رابط کاربری با متد PATCH' })
patchUiText(@Param('key') key: string, @Body() body: any) {
const val =
typeof body === 'object' && body !== null && 'value' in body
? body.value
: typeof body === 'string'
? body
: JSON.stringify(body);
return this.settingsService.updateUiText(key, String(val ?? ''));
}
@UseGuards(JwtAuthGuard, RolesGuard)
@Roles('Admin')
@ApiBearerAuth()
@Put('ui-texts')
@ApiOperation({ summary: 'ویرایش گروهی متون رابط کاربری' })
putBulkUiTexts(@Body() body: Record<string, string>) {
return this.settingsService.updateBulkUiTexts(body);
}
@Get('scientific-terms')