- - - - - - {{ - 'home.welcomePage.watchVideoCta' | transloco - }} - - - - - - - {{ 'home.welcomePage.welcomeHeading' | transloco }} - - - {{ 'home.welcomePage.welcomeSubHeading' | transloco }} - - - - - - + + + + + + {{ 'home.welcomePage.welcomeHeading' | transloco }} + + + {{ 'home.welcomePage.welcomeSubHeading' | transloco }} + + + + + + + + + + + + + {{ + 'home.welcomePage.watchVideoCta' | transloco + }} + + + - - - - + diff --git a/src/app/adf-home/df-welcome-page/df-welcome-page.component.scss b/src/app/adf-home/df-welcome-page/df-welcome-page.component.scss index 29732888..73c94c84 100644 --- a/src/app/adf-home/df-welcome-page/df-welcome-page.component.scss +++ b/src/app/adf-home/df-welcome-page/df-welcome-page.component.scss @@ -1,7 +1,7 @@ @use '@angular/material' as mat; @use 'src/theme' as theme; @import '../adf-home.module.scss'; - +$df-purple-palette: mat.define-palette(theme.$df-purple-palette); $df-coral-palette: mat.define-palette(theme.$df-coral-palette); .two-column-flex-container { @@ -53,7 +53,6 @@ $df-coral-palette: mat.define-palette(theme.$df-coral-palette); flex-direction: column; align-items: center; justify-content: center; - background-color: rgba(255, 255, 255, 0.5); pointer-events: none; } @@ -70,9 +69,27 @@ $df-coral-palette: mat.define-palette(theme.$df-coral-palette); mat-card.notice-card { padding: 30px; margin-bottom: 40px; + p { + a { + color: mat.get-color-from-palette($df-purple-palette, 600); + } + } } .pre-heading-icon { margin-right: 10px; - color: mat.get-color-from-palette($df-coral-palette, 300); + color: mat.get-color-from-palette($df-purple-palette, 600); +} + +.dark-theme { + h2, + p { + color: white; + } + .notice-card { + background-color: mat.get-color-from-palette( + $df-purple-palette, + 1003 + ) !important; + } } diff --git a/src/app/adf-home/df-welcome-page/df-welcome-page.component.ts b/src/app/adf-home/df-welcome-page/df-welcome-page.component.ts index fe24a5a7..f52189a5 100644 --- a/src/app/adf-home/df-welcome-page/df-welcome-page.component.ts +++ b/src/app/adf-home/df-welcome-page/df-welcome-page.component.ts @@ -22,6 +22,7 @@ import { TranslocoPipe } from '@ngneat/transloco'; import { DfQuickstartPageComponent } from '../df-quickstart-page/df-quickstart-page.component'; import { DfResourcesPageComponent } from '../df-resources-page/df-resources-page.component'; import { DfDownloadPageComponent } from '../df-download-page/df-download-page.component'; +import { DfThemeService } from 'src/app/shared/services/df-theme.service'; @Component({ selector: 'df-welcome-page', @@ -51,5 +52,9 @@ export class DfWelcomePageComponent { nativeExampleLinks = nativeExampleLinks; javaScriptExampleLinks = javaScriptExampleLinks; - constructor(public breakpointService: DfBreakpointService) {} + constructor( + public breakpointService: DfBreakpointService, + private themeService: DfThemeService + ) {} + isDarkMode = this.themeService.darkMode$; } diff --git a/src/app/adf-limits/df-limit-details/df-limit-details.component.html b/src/app/adf-limits/df-limit-details/df-limit-details.component.html index 8dc66853..f0c2ad00 100644 --- a/src/app/adf-limits/df-limit-details/df-limit-details.component.html +++ b/src/app/adf-limits/df-limit-details/df-limit-details.component.html @@ -4,8 +4,15 @@ (alertClosed)="showAlert = false" >{{ alertMsg }} - - + + {{ 'limits.name' | transloco }} @@ -16,7 +23,10 @@ label: 'limits.verb' | transloco, description: 'limits.verbTooltip' | transloco }"> - + {{ 'limits.description' | transloco }} - + {{ 'limits.limitType' | transloco }} - + {{ 'limits.service' | transloco }} - + {{ 'limits.role' | transloco }} - + {{ 'limits.user' | transloco }} - + {{ 'limits.endpoint' | transloco }} - + {{ 'limits.limitRate' | transloco }} - + {{ 'limits.limitPeriod' | transloco }} - {{ - 'limits.active' | transloco - }} + {{ 'limits.active' | transloco }} - + {{ 'cancel' | transloco }} - + {{ 'save' | transloco }} diff --git a/src/app/adf-limits/df-limit-details/df-limit-details.component.ts b/src/app/adf-limits/df-limit-details/df-limit-details.component.ts index 707647ea..2c2ecb22 100644 --- a/src/app/adf-limits/df-limit-details/df-limit-details.component.ts +++ b/src/app/adf-limits/df-limit-details/df-limit-details.component.ts @@ -34,6 +34,8 @@ import { GenericUpdateResponse, } from 'src/app/shared/types/generic-http'; import { Service } from 'src/app/shared/types/service'; +import { DfThemeService } from 'src/app/shared/services/df-theme.service'; +import { AsyncPipe } from '@angular/common'; @UntilDestroy({ checkProperties: true }) @Component({ selector: 'df-limit', @@ -53,6 +55,7 @@ import { Service } from 'src/app/shared/types/service'; MatButtonModule, TranslocoPipe, DfVerbPickerComponent, + AsyncPipe, ], }) export class DfLimitDetailsComponent implements OnInit { @@ -78,7 +81,8 @@ export class DfLimitDetailsComponent implements OnInit { private router: Router, private activatedRoute: ActivatedRoute, private translateService: TranslocoService, - private formBuilder: FormBuilder + private formBuilder: FormBuilder, + private themeService: DfThemeService ) { this.formGroup = this.formBuilder.group({ limitName: ['', Validators.required], @@ -94,6 +98,7 @@ export class DfLimitDetailsComponent implements OnInit { active: [true], }); } + isDarkMode = this.themeService.darkMode$; ngOnInit(): void { this.activatedRoute.data.subscribe(resp => { diff --git a/src/app/adf-limits/df-manage-limits/df-manage-limits.component.html b/src/app/adf-limits/df-manage-limits/df-manage-limits.component.html index 1cf3fc2e..f8c7bb58 100644 --- a/src/app/adf-limits/df-manage-limits/df-manage-limits.component.html +++ b/src/app/adf-limits/df-manage-limits/df-manage-limits.component.html @@ -3,6 +3,7 @@ - + {{ 'userManagement.controls.currentPassword.label' | transloco }} @@ -48,13 +48,13 @@ name="security-question-form" [formGroup]="securityQuestionForm" (ngSubmit)="updateSecurityQuestion()"> - + {{ 'userManagement.controls.securityQuestion.label' | transloco }} - + {{ 'userManagement.controls.securityAnswer.label' | transloco }} @@ -84,7 +84,7 @@ (alertClosed)="showAlert = false" >{{ alertMsg }} - + {{ 'userManagement.controls.oldPassword.label' | transloco }} @@ -96,7 +96,7 @@ }} - + {{ 'userManagement.controls.password.label' | transloco }} @@ -112,7 +112,7 @@ {{ 'userManagement.controls.password.errors.length' | transloco }} - + {{ 'userManagement.controls.confirmPassword.label' | transloco }} diff --git a/src/app/adf-roles/df-role-details/df-role-details.component.html b/src/app/adf-roles/df-role-details/df-role-details.component.html index a5134279..517509c0 100644 --- a/src/app/adf-roles/df-role-details/df-role-details.component.html +++ b/src/app/adf-roles/df-role-details/df-role-details.component.html @@ -7,8 +7,15 @@ (alertClosed)="showAlert = false"> {{ alertMsg }} - - + + {{ 'name' | transloco }} @@ -18,7 +25,7 @@ {{ 'active' | transloco }} - + {{ 'description' | transloco }} @@ -36,10 +43,10 @@ class="full-width"> - + {{ 'cancel' | transloco }} - + {{ 'save' | transloco }} diff --git a/src/app/adf-roles/df-role-details/df-role-details.component.ts b/src/app/adf-roles/df-role-details/df-role-details.component.ts index 4b93e57b..92289889 100644 --- a/src/app/adf-roles/df-role-details/df-role-details.component.ts +++ b/src/app/adf-roles/df-role-details/df-role-details.component.ts @@ -30,6 +30,8 @@ import { DfAlertComponent, } from 'src/app/shared/components/df-alert/df-alert.component'; import { catchError, throwError } from 'rxjs'; +import { DfThemeService } from 'src/app/shared/services/df-theme.service'; + @UntilDestroy({ checkProperties: true }) @Component({ selector: 'df-role-details', @@ -48,6 +50,7 @@ import { catchError, throwError } from 'rxjs'; DfRolesAccessComponent, NgIf, DfAlertComponent, + AsyncPipe, ], }) export class DfRoleDetailsComponent implements OnInit { @@ -62,7 +65,8 @@ export class DfRoleDetailsComponent implements OnInit { private roleService: DfBaseCrudService, private fb: FormBuilder, private router: Router, - private activatedRoute: ActivatedRoute + private activatedRoute: ActivatedRoute, + private themeService: DfThemeService ) { this.roleForm = this.fb.group({ id: [null], @@ -73,6 +77,7 @@ export class DfRoleDetailsComponent implements OnInit { lookupKeys: this.fb.array([]), }); } + isDarkMode = this.themeService.darkMode$; ngOnInit(): void { this.activatedRoute.data.subscribe(({ data, type }) => { diff --git a/src/app/adf-scheduler/df-scheduler-details/df-scheduler-details.component.html b/src/app/adf-scheduler/df-scheduler-details/df-scheduler-details.component.html index 139e6123..1605b74e 100644 --- a/src/app/adf-scheduler/df-scheduler-details/df-scheduler-details.component.html +++ b/src/app/adf-scheduler/df-scheduler-details/df-scheduler-details.component.html @@ -1,103 +1,129 @@ - - {{ alertMsg }} - - - - {{ 'scheduler.taskOverviewSubtitle' | transloco }} - - - {{ 'scheduler.form.label.name' | transloco }} - - - {{ - 'scheduler.form.label.active' | transloco - }} - - {{ - 'scheduler.form.label.description' | transloco - }} - - - - {{ 'scheduler.form.label.service' | transloco }} - - - {{ service.name }} - - - - - {{ - 'scheduler.form.label.component' | transloco - }} - - {{ item }} - - + + + {{ alertMsg }} + + + + {{ 'scheduler.taskOverviewSubtitle' | transloco }} + + + {{ 'scheduler.form.label.name' | transloco }} + + + {{ 'scheduler.form.label.active' | transloco }} + + {{ + 'scheduler.form.label.description' | transloco + }} + + + + {{ + 'scheduler.form.label.service' | transloco + }} + + + {{ service.name }} + + + + + {{ + 'scheduler.form.label.component' | transloco + }} + + {{ item }} + + - - {{ - 'scheduler.form.label.frequency' | transloco - }} - - - - + {{ - 'scheduler.form.label.payload' | transloco + 'scheduler.form.label.frequency' | transloco }} - + - - - - - {{ 'cancel' | transloco }} - - - {{ 'save' | transloco }} + + + {{ + 'scheduler.form.label.payload' | transloco + }} + + + + + + + {{ 'cancel' | transloco }} + + + {{ 'save' | transloco }} + + + + + + + + {{ 'scheduler.logs.statusCode' | transloco }}: + {{ scheduleToEdit?.taskLogByTaskId?.statusCode }} + + + + {{ 'goBack' | transloco }} - - - - - - {{ 'scheduler.logs.statusCode' | transloco }}: - {{ scheduleToEdit?.taskLogByTaskId?.statusCode }} - - - - {{ 'goBack' | transloco }} - - - - + + + diff --git a/src/app/adf-scheduler/df-scheduler-details/df-scheduler-details.component.ts b/src/app/adf-scheduler/df-scheduler-details/df-scheduler-details.component.ts index 4cf759ce..d0cb4684 100644 --- a/src/app/adf-scheduler/df-scheduler-details/df-scheduler-details.component.ts +++ b/src/app/adf-scheduler/df-scheduler-details/df-scheduler-details.component.ts @@ -30,6 +30,8 @@ import { AlertType, DfAlertComponent, } from 'src/app/shared/components/df-alert/df-alert.component'; +import { DfThemeService } from 'src/app/shared/services/df-theme.service'; + import { catchError, throwError } from 'rxjs'; @UntilDestroy({ checkProperties: true }) @Component({ @@ -75,9 +77,12 @@ export class DfSchedulerDetailsComponent implements OnInit { private activatedRoute: ActivatedRoute, private router: Router, @Inject(BASE_SERVICE_TOKEN) - private accessListService: DfBaseCrudService + private accessListService: DfBaseCrudService, + private themeService: DfThemeService ) {} + isDarkMode = this.themeService.darkMode$; + ngOnInit(): void { this.formGroup = this.formBuilder.group({ name: ['', Validators.required], diff --git a/src/app/adf-schema/df-field-details/df-field-details.component.html b/src/app/adf-schema/df-field-details/df-field-details.component.html index e0342193..0cef71d1 100644 --- a/src/app/adf-schema/df-field-details/df-field-details.component.html +++ b/src/app/adf-schema/df-field-details/df-field-details.component.html @@ -1,9 +1,13 @@ - + {{ 'schema.fieldDetailsForm.controls.name' | transloco }} @@ -15,7 +19,10 @@ - + {{ 'schema.fieldDetailsForm.controls.alias.label' | transloco }} @@ -28,7 +35,10 @@ 'schema.fieldDetailsForm.controls.alias.tooltip' | transloco " /> - + {{ 'schema.fieldDetailsForm.controls.label.label' | transloco }} @@ -42,7 +52,10 @@ " /> - + {{ 'schema.fieldDetailsForm.controls.type.label' | transloco }} @@ -61,7 +74,10 @@ 'schema.fieldDetailsForm.controls.type.tooltip' | transloco " /> - + {{ 'schema.fieldDetailsForm.controls.databaseType.label' | transloco }} @@ -74,63 +90,128 @@ 'schema.fieldDetailsForm.controls.databaseType.tooltip' | transloco " /> - + {{ 'schema.fieldDetailsForm.controls.length' | transloco }} - + {{ 'schema.fieldDetailsForm.controls.precision' | transloco }} - + {{ 'schema.fieldDetailsForm.controls.scale' | transloco }} - + {{ 'schema.fieldDetailsForm.controls.defaultValue' | transloco }} - {{ - 'schema.fieldDetailsForm.controls.isVirtual' | transloco - }} - {{ - 'schema.fieldDetailsForm.controls.isAggregate' | transloco - }} - {{ - 'schema.fieldDetailsForm.controls.fixedLength' | transloco - }} - {{ - 'schema.fieldDetailsForm.controls.supportsMultibyte' | transloco - }} - {{ - 'schema.fieldDetailsForm.controls.allowNull' | transloco - }} - {{ - 'schema.fieldDetailsForm.controls.autoIncrement' | transloco - }} + {{ + 'schema.fieldDetailsForm.controls.isVirtual' | transloco + }} + {{ + 'schema.fieldDetailsForm.controls.isAggregate' | transloco + }} + {{ + 'schema.fieldDetailsForm.controls.fixedLength' | transloco + }} + {{ + 'schema.fieldDetailsForm.controls.supportsMultibyte' | transloco + }} + {{ + 'schema.fieldDetailsForm.controls.allowNull' | transloco + }} + {{ + 'schema.fieldDetailsForm.controls.autoIncrement' | transloco + }} - {{ - 'schema.fieldDetailsForm.controls.isIndex' | transloco - }} - {{ - 'schema.fieldDetailsForm.controls.isUnique' | transloco - }} - {{ - 'schema.fieldDetailsForm.controls.isPrimaryKey' | transloco - }} - {{ - 'schema.fieldDetailsForm.controls.isForeignKey' | transloco - }} + {{ + 'schema.fieldDetailsForm.controls.isIndex' | transloco + }} + {{ + 'schema.fieldDetailsForm.controls.isUnique' | transloco + }} + {{ + 'schema.fieldDetailsForm.controls.isPrimaryKey' | transloco + }} + {{ + 'schema.fieldDetailsForm.controls.isForeignKey' | transloco + }} - + {{ 'schema.fieldDetailsForm.controls.refTable' | transloco }} @@ -142,7 +223,10 @@ - + {{ 'schema.fieldDetailsForm.controls.refField' | transloco }} @@ -154,7 +238,10 @@ > - + {{ 'schema.fieldDetailsForm.controls.validation.label' | transloco }} @@ -181,7 +268,10 @@ formArrayName="dbFunction" class="full-width"> + > {{ 'schema.fieldDetailsForm.controls.picklist' | transloco }} @@ -193,8 +283,14 @@ - Cancel - + + Cancel + + {{ (databaseFieldToEdit ? 'save' : 'create') | transloco }} diff --git a/src/app/adf-schema/df-field-details/df-field-details.component.ts b/src/app/adf-schema/df-field-details/df-field-details.component.ts index 197319b4..287f3e1f 100644 --- a/src/app/adf-schema/df-field-details/df-field-details.component.ts +++ b/src/app/adf-schema/df-field-details/df-field-details.component.ts @@ -26,6 +26,7 @@ import { DatabaseSchemaFieldType } from './df-field-details.types'; import { CsvValidator } from '../validators/csv.validator'; import { faCircleInfo } from '@fortawesome/free-solid-svg-icons'; import { MatTooltipModule } from '@angular/material/tooltip'; +import { DfThemeService } from 'src/app/shared/services/df-theme.service'; @Component({ selector: 'df-field-details', @@ -95,7 +96,8 @@ export class DfFieldDetailsComponent implements OnInit { private service: DfBaseCrudService, private formBuilder: FormBuilder, private activatedRoute: ActivatedRoute, - private router: Router + private router: Router, + private themeService: DfThemeService ) { this.fieldDetailsForm = this.formBuilder.group({ name: ['', Validators.required], @@ -125,6 +127,8 @@ export class DfFieldDetailsComponent implements OnInit { }); } + isDarkMode = this.themeService.darkMode$; + ngOnInit(): void { this.activatedRoute.data.subscribe(data => { this.type = data['type']; diff --git a/src/app/adf-schema/df-manage-tables-table/df-manage-tables-table.component.ts b/src/app/adf-schema/df-manage-tables-table/df-manage-tables-table.component.ts index 08ba6e71..f109e6d4 100644 --- a/src/app/adf-schema/df-manage-tables-table/df-manage-tables-table.component.ts +++ b/src/app/adf-schema/df-manage-tables-table/df-manage-tables-table.component.ts @@ -66,12 +66,17 @@ export class DfManageTablesTableComponent extends DfManageTableComponent - - - - - {{ 'schema.tableName' | transloco }} - - - - {{ 'schema.alerts.tableNameError' | transloco }} - - + + + + + + + {{ 'schema.tableName' | transloco }} + + + + {{ 'schema.alerts.tableNameError' | transloco }} + + - - - {{ 'schema.alias' | transloco }} - - - - - - {{ 'schema.label' | transloco }} - - - - - {{ 'schema.plural' | transloco }} - - - - {{ 'schema.description' | transloco }} - - + + + {{ 'schema.alias' | transloco }} + + + + + + {{ 'schema.label' | transloco }} + + + + + {{ 'schema.plural' | transloco }} + + + + {{ 'schema.description' | transloco }} + + - - {{ 'schema.fields' | transloco }} - - + + {{ 'schema.fields' | transloco }} + + - - {{ 'schema.relationships.heading' | transloco }} - - + + {{ 'schema.relationships.heading' | transloco }} + + + + + {{ 'cancel' | transloco }} + + + {{ 'update' | transloco }} + {{ 'save' | transloco }} + + + + + + - + {{ 'cancel' | transloco }} - + {{ 'update' | transloco }} {{ 'save' | transloco }} - - - - - - - {{ 'cancel' | transloco }} - - - {{ 'update' | transloco }} - {{ 'save' | transloco }} - - - - + + + diff --git a/src/app/adf-schema/df-table-details/df-table-details.component.ts b/src/app/adf-schema/df-table-details/df-table-details.component.ts index b0676ef1..df09dcf0 100644 --- a/src/app/adf-schema/df-table-details/df-table-details.component.ts +++ b/src/app/adf-schema/df-table-details/df-table-details.component.ts @@ -23,6 +23,8 @@ import { UntilDestroy } from '@ngneat/until-destroy'; import { AceEditorMode } from 'src/app/shared/types/scripts'; import { GenericListResponse } from 'src/app/shared/types/generic-http'; import { TableDetailsType } from './df-table-details.types'; +import { DfThemeService } from 'src/app/shared/services/df-theme.service'; + @UntilDestroy({ checkProperties: true }) @Component({ selector: 'df-table-details', @@ -59,7 +61,8 @@ export class DfTableDetailsComponent implements OnInit { private fb: FormBuilder, private activatedRoute: ActivatedRoute, public breakpointService: DfBreakpointService, - private router: Router + private router: Router, + private themeService: DfThemeService ) { this.tableDetailsForm = this.fb.group({ name: ['', Validators.required], @@ -69,6 +72,7 @@ export class DfTableDetailsComponent implements OnInit { description: [null], }); } + isDarkMode = this.themeService.darkMode$; ngOnInit(): void { this.activatedRoute.data.subscribe(data => { diff --git a/src/app/adf-services/df-manage-services/df-manage-services-table.component.ts b/src/app/adf-services/df-manage-services/df-manage-services-table.component.ts index 4a578c17..c30065cd 100644 --- a/src/app/adf-services/df-manage-services/df-manage-services-table.component.ts +++ b/src/app/adf-services/df-manage-services/df-manage-services-table.component.ts @@ -110,7 +110,8 @@ export class DfManageServicesTableComponent extends DfManageTableComponent>({ limit, offset, filter, + refresh, }) .subscribe(data => { this.dataSource.data = this.mapDataToTable(data.resource); diff --git a/src/app/adf-services/df-service-details/df-service-details.component.html b/src/app/adf-services/df-service-details/df-service-details.component.html index d8e1032a..72800520 100644 --- a/src/app/adf-services/df-service-details/df-service-details.component.html +++ b/src/app/adf-services/df-service-details/df-service-details.component.html @@ -1,4 +1,8 @@ - + @@ -64,7 +68,9 @@ class="card-icon" [src]="getBackgroundImage(type.name)" [alt]="type.label" /> - {{ type.label }} + + {{ type.label }} + @@ -84,7 +90,9 @@ {{ type.label }} class="card-icon" [src]="getBackgroundImage(type.name)" [alt]="type.label" /> - {{ type.label }} + + {{ type.label }} +
- - {{ 'home.welcomePage.welcomeHeading' | transloco }} - - - {{ 'home.welcomePage.welcomeSubHeading' | transloco }} - - - - - - + + + + + + {{ 'home.welcomePage.welcomeHeading' | transloco }} + + + {{ 'home.welcomePage.welcomeSubHeading' | transloco }} + + + + + + + + + + + + + {{ + 'home.welcomePage.watchVideoCta' | transloco + }} + + + - - - - + diff --git a/src/app/adf-home/df-welcome-page/df-welcome-page.component.scss b/src/app/adf-home/df-welcome-page/df-welcome-page.component.scss index 29732888..73c94c84 100644 --- a/src/app/adf-home/df-welcome-page/df-welcome-page.component.scss +++ b/src/app/adf-home/df-welcome-page/df-welcome-page.component.scss @@ -1,7 +1,7 @@ @use '@angular/material' as mat; @use 'src/theme' as theme; @import '../adf-home.module.scss'; - +$df-purple-palette: mat.define-palette(theme.$df-purple-palette); $df-coral-palette: mat.define-palette(theme.$df-coral-palette); .two-column-flex-container { @@ -53,7 +53,6 @@ $df-coral-palette: mat.define-palette(theme.$df-coral-palette); flex-direction: column; align-items: center; justify-content: center; - background-color: rgba(255, 255, 255, 0.5); pointer-events: none; } @@ -70,9 +69,27 @@ $df-coral-palette: mat.define-palette(theme.$df-coral-palette); mat-card.notice-card { padding: 30px; margin-bottom: 40px; + p { + a { + color: mat.get-color-from-palette($df-purple-palette, 600); + } + } } .pre-heading-icon { margin-right: 10px; - color: mat.get-color-from-palette($df-coral-palette, 300); + color: mat.get-color-from-palette($df-purple-palette, 600); +} + +.dark-theme { + h2, + p { + color: white; + } + .notice-card { + background-color: mat.get-color-from-palette( + $df-purple-palette, + 1003 + ) !important; + } } diff --git a/src/app/adf-home/df-welcome-page/df-welcome-page.component.ts b/src/app/adf-home/df-welcome-page/df-welcome-page.component.ts index fe24a5a7..f52189a5 100644 --- a/src/app/adf-home/df-welcome-page/df-welcome-page.component.ts +++ b/src/app/adf-home/df-welcome-page/df-welcome-page.component.ts @@ -22,6 +22,7 @@ import { TranslocoPipe } from '@ngneat/transloco'; import { DfQuickstartPageComponent } from '../df-quickstart-page/df-quickstart-page.component'; import { DfResourcesPageComponent } from '../df-resources-page/df-resources-page.component'; import { DfDownloadPageComponent } from '../df-download-page/df-download-page.component'; +import { DfThemeService } from 'src/app/shared/services/df-theme.service'; @Component({ selector: 'df-welcome-page', @@ -51,5 +52,9 @@ export class DfWelcomePageComponent { nativeExampleLinks = nativeExampleLinks; javaScriptExampleLinks = javaScriptExampleLinks; - constructor(public breakpointService: DfBreakpointService) {} + constructor( + public breakpointService: DfBreakpointService, + private themeService: DfThemeService + ) {} + isDarkMode = this.themeService.darkMode$; } diff --git a/src/app/adf-limits/df-limit-details/df-limit-details.component.html b/src/app/adf-limits/df-limit-details/df-limit-details.component.html index 8dc66853..f0c2ad00 100644 --- a/src/app/adf-limits/df-limit-details/df-limit-details.component.html +++ b/src/app/adf-limits/df-limit-details/df-limit-details.component.html @@ -4,8 +4,15 @@ (alertClosed)="showAlert = false" >{{ alertMsg }} - - + + {{ 'limits.name' | transloco }} @@ -16,7 +23,10 @@ label: 'limits.verb' | transloco, description: 'limits.verbTooltip' | transloco }"> - + {{ 'limits.description' | transloco }} - + {{ 'limits.limitType' | transloco }} - + {{ 'limits.service' | transloco }} - + {{ 'limits.role' | transloco }} - + {{ 'limits.user' | transloco }} - + {{ 'limits.endpoint' | transloco }} - + {{ 'limits.limitRate' | transloco }} - + {{ 'limits.limitPeriod' | transloco }} - {{ - 'limits.active' | transloco - }} + {{ 'limits.active' | transloco }} - + {{ 'cancel' | transloco }} - + {{ 'save' | transloco }} diff --git a/src/app/adf-limits/df-limit-details/df-limit-details.component.ts b/src/app/adf-limits/df-limit-details/df-limit-details.component.ts index 707647ea..2c2ecb22 100644 --- a/src/app/adf-limits/df-limit-details/df-limit-details.component.ts +++ b/src/app/adf-limits/df-limit-details/df-limit-details.component.ts @@ -34,6 +34,8 @@ import { GenericUpdateResponse, } from 'src/app/shared/types/generic-http'; import { Service } from 'src/app/shared/types/service'; +import { DfThemeService } from 'src/app/shared/services/df-theme.service'; +import { AsyncPipe } from '@angular/common'; @UntilDestroy({ checkProperties: true }) @Component({ selector: 'df-limit', @@ -53,6 +55,7 @@ import { Service } from 'src/app/shared/types/service'; MatButtonModule, TranslocoPipe, DfVerbPickerComponent, + AsyncPipe, ], }) export class DfLimitDetailsComponent implements OnInit { @@ -78,7 +81,8 @@ export class DfLimitDetailsComponent implements OnInit { private router: Router, private activatedRoute: ActivatedRoute, private translateService: TranslocoService, - private formBuilder: FormBuilder + private formBuilder: FormBuilder, + private themeService: DfThemeService ) { this.formGroup = this.formBuilder.group({ limitName: ['', Validators.required], @@ -94,6 +98,7 @@ export class DfLimitDetailsComponent implements OnInit { active: [true], }); } + isDarkMode = this.themeService.darkMode$; ngOnInit(): void { this.activatedRoute.data.subscribe(resp => { diff --git a/src/app/adf-limits/df-manage-limits/df-manage-limits.component.html b/src/app/adf-limits/df-manage-limits/df-manage-limits.component.html index 1cf3fc2e..f8c7bb58 100644 --- a/src/app/adf-limits/df-manage-limits/df-manage-limits.component.html +++ b/src/app/adf-limits/df-manage-limits/df-manage-limits.component.html @@ -3,6 +3,7 @@ - + {{ 'userManagement.controls.currentPassword.label' | transloco }} @@ -48,13 +48,13 @@ name="security-question-form" [formGroup]="securityQuestionForm" (ngSubmit)="updateSecurityQuestion()"> - + {{ 'userManagement.controls.securityQuestion.label' | transloco }} - + {{ 'userManagement.controls.securityAnswer.label' | transloco }} @@ -84,7 +84,7 @@ (alertClosed)="showAlert = false" >{{ alertMsg }} - + {{ 'userManagement.controls.oldPassword.label' | transloco }} @@ -96,7 +96,7 @@ }} - + {{ 'userManagement.controls.password.label' | transloco }} @@ -112,7 +112,7 @@ {{ 'userManagement.controls.password.errors.length' | transloco }} - + {{ 'userManagement.controls.confirmPassword.label' | transloco }} diff --git a/src/app/adf-roles/df-role-details/df-role-details.component.html b/src/app/adf-roles/df-role-details/df-role-details.component.html index a5134279..517509c0 100644 --- a/src/app/adf-roles/df-role-details/df-role-details.component.html +++ b/src/app/adf-roles/df-role-details/df-role-details.component.html @@ -7,8 +7,15 @@ (alertClosed)="showAlert = false"> {{ alertMsg }} - - + + {{ 'name' | transloco }} @@ -18,7 +25,7 @@ {{ 'active' | transloco }} - + {{ 'description' | transloco }} @@ -36,10 +43,10 @@ class="full-width"> - + {{ 'cancel' | transloco }} - + {{ 'save' | transloco }} diff --git a/src/app/adf-roles/df-role-details/df-role-details.component.ts b/src/app/adf-roles/df-role-details/df-role-details.component.ts index 4b93e57b..92289889 100644 --- a/src/app/adf-roles/df-role-details/df-role-details.component.ts +++ b/src/app/adf-roles/df-role-details/df-role-details.component.ts @@ -30,6 +30,8 @@ import { DfAlertComponent, } from 'src/app/shared/components/df-alert/df-alert.component'; import { catchError, throwError } from 'rxjs'; +import { DfThemeService } from 'src/app/shared/services/df-theme.service'; + @UntilDestroy({ checkProperties: true }) @Component({ selector: 'df-role-details', @@ -48,6 +50,7 @@ import { catchError, throwError } from 'rxjs'; DfRolesAccessComponent, NgIf, DfAlertComponent, + AsyncPipe, ], }) export class DfRoleDetailsComponent implements OnInit { @@ -62,7 +65,8 @@ export class DfRoleDetailsComponent implements OnInit { private roleService: DfBaseCrudService, private fb: FormBuilder, private router: Router, - private activatedRoute: ActivatedRoute + private activatedRoute: ActivatedRoute, + private themeService: DfThemeService ) { this.roleForm = this.fb.group({ id: [null], @@ -73,6 +77,7 @@ export class DfRoleDetailsComponent implements OnInit { lookupKeys: this.fb.array([]), }); } + isDarkMode = this.themeService.darkMode$; ngOnInit(): void { this.activatedRoute.data.subscribe(({ data, type }) => { diff --git a/src/app/adf-scheduler/df-scheduler-details/df-scheduler-details.component.html b/src/app/adf-scheduler/df-scheduler-details/df-scheduler-details.component.html index 139e6123..1605b74e 100644 --- a/src/app/adf-scheduler/df-scheduler-details/df-scheduler-details.component.html +++ b/src/app/adf-scheduler/df-scheduler-details/df-scheduler-details.component.html @@ -1,103 +1,129 @@ - - {{ alertMsg }} - - - - {{ 'scheduler.taskOverviewSubtitle' | transloco }} - - - {{ 'scheduler.form.label.name' | transloco }} - - - {{ - 'scheduler.form.label.active' | transloco - }} - - {{ - 'scheduler.form.label.description' | transloco - }} - - - - {{ 'scheduler.form.label.service' | transloco }} - - - {{ service.name }} - - - - - {{ - 'scheduler.form.label.component' | transloco - }} - - {{ item }} - - + + + {{ alertMsg }} + + + + {{ 'scheduler.taskOverviewSubtitle' | transloco }} + + + {{ 'scheduler.form.label.name' | transloco }} + + + {{ 'scheduler.form.label.active' | transloco }} + + {{ + 'scheduler.form.label.description' | transloco + }} + + + + {{ + 'scheduler.form.label.service' | transloco + }} + + + {{ service.name }} + + + + + {{ + 'scheduler.form.label.component' | transloco + }} + + {{ item }} + + - - {{ - 'scheduler.form.label.frequency' | transloco - }} - - - - + {{ - 'scheduler.form.label.payload' | transloco + 'scheduler.form.label.frequency' | transloco }} - + - - - - - {{ 'cancel' | transloco }} - - - {{ 'save' | transloco }} + + + {{ + 'scheduler.form.label.payload' | transloco + }} + + + + + + + {{ 'cancel' | transloco }} + + + {{ 'save' | transloco }} + + + + + + + + {{ 'scheduler.logs.statusCode' | transloco }}: + {{ scheduleToEdit?.taskLogByTaskId?.statusCode }} + + + + {{ 'goBack' | transloco }} - - - - - - {{ 'scheduler.logs.statusCode' | transloco }}: - {{ scheduleToEdit?.taskLogByTaskId?.statusCode }} - - - - {{ 'goBack' | transloco }} - - - - + + + diff --git a/src/app/adf-scheduler/df-scheduler-details/df-scheduler-details.component.ts b/src/app/adf-scheduler/df-scheduler-details/df-scheduler-details.component.ts index 4cf759ce..d0cb4684 100644 --- a/src/app/adf-scheduler/df-scheduler-details/df-scheduler-details.component.ts +++ b/src/app/adf-scheduler/df-scheduler-details/df-scheduler-details.component.ts @@ -30,6 +30,8 @@ import { AlertType, DfAlertComponent, } from 'src/app/shared/components/df-alert/df-alert.component'; +import { DfThemeService } from 'src/app/shared/services/df-theme.service'; + import { catchError, throwError } from 'rxjs'; @UntilDestroy({ checkProperties: true }) @Component({ @@ -75,9 +77,12 @@ export class DfSchedulerDetailsComponent implements OnInit { private activatedRoute: ActivatedRoute, private router: Router, @Inject(BASE_SERVICE_TOKEN) - private accessListService: DfBaseCrudService + private accessListService: DfBaseCrudService, + private themeService: DfThemeService ) {} + isDarkMode = this.themeService.darkMode$; + ngOnInit(): void { this.formGroup = this.formBuilder.group({ name: ['', Validators.required], diff --git a/src/app/adf-schema/df-field-details/df-field-details.component.html b/src/app/adf-schema/df-field-details/df-field-details.component.html index e0342193..0cef71d1 100644 --- a/src/app/adf-schema/df-field-details/df-field-details.component.html +++ b/src/app/adf-schema/df-field-details/df-field-details.component.html @@ -1,9 +1,13 @@ - + {{ 'schema.fieldDetailsForm.controls.name' | transloco }} @@ -15,7 +19,10 @@ - + {{ 'schema.fieldDetailsForm.controls.alias.label' | transloco }} @@ -28,7 +35,10 @@ 'schema.fieldDetailsForm.controls.alias.tooltip' | transloco " /> - + {{ 'schema.fieldDetailsForm.controls.label.label' | transloco }} @@ -42,7 +52,10 @@ " /> - + {{ 'schema.fieldDetailsForm.controls.type.label' | transloco }} @@ -61,7 +74,10 @@ 'schema.fieldDetailsForm.controls.type.tooltip' | transloco " /> - + {{ 'schema.fieldDetailsForm.controls.databaseType.label' | transloco }} @@ -74,63 +90,128 @@ 'schema.fieldDetailsForm.controls.databaseType.tooltip' | transloco " /> - + {{ 'schema.fieldDetailsForm.controls.length' | transloco }} - + {{ 'schema.fieldDetailsForm.controls.precision' | transloco }} - + {{ 'schema.fieldDetailsForm.controls.scale' | transloco }} - + {{ 'schema.fieldDetailsForm.controls.defaultValue' | transloco }} - {{ - 'schema.fieldDetailsForm.controls.isVirtual' | transloco - }} - {{ - 'schema.fieldDetailsForm.controls.isAggregate' | transloco - }} - {{ - 'schema.fieldDetailsForm.controls.fixedLength' | transloco - }} - {{ - 'schema.fieldDetailsForm.controls.supportsMultibyte' | transloco - }} - {{ - 'schema.fieldDetailsForm.controls.allowNull' | transloco - }} - {{ - 'schema.fieldDetailsForm.controls.autoIncrement' | transloco - }} + {{ + 'schema.fieldDetailsForm.controls.isVirtual' | transloco + }} + {{ + 'schema.fieldDetailsForm.controls.isAggregate' | transloco + }} + {{ + 'schema.fieldDetailsForm.controls.fixedLength' | transloco + }} + {{ + 'schema.fieldDetailsForm.controls.supportsMultibyte' | transloco + }} + {{ + 'schema.fieldDetailsForm.controls.allowNull' | transloco + }} + {{ + 'schema.fieldDetailsForm.controls.autoIncrement' | transloco + }} - {{ - 'schema.fieldDetailsForm.controls.isIndex' | transloco - }} - {{ - 'schema.fieldDetailsForm.controls.isUnique' | transloco - }} - {{ - 'schema.fieldDetailsForm.controls.isPrimaryKey' | transloco - }} - {{ - 'schema.fieldDetailsForm.controls.isForeignKey' | transloco - }} + {{ + 'schema.fieldDetailsForm.controls.isIndex' | transloco + }} + {{ + 'schema.fieldDetailsForm.controls.isUnique' | transloco + }} + {{ + 'schema.fieldDetailsForm.controls.isPrimaryKey' | transloco + }} + {{ + 'schema.fieldDetailsForm.controls.isForeignKey' | transloco + }} - + {{ 'schema.fieldDetailsForm.controls.refTable' | transloco }} @@ -142,7 +223,10 @@ - + {{ 'schema.fieldDetailsForm.controls.refField' | transloco }} @@ -154,7 +238,10 @@ > - + {{ 'schema.fieldDetailsForm.controls.validation.label' | transloco }} @@ -181,7 +268,10 @@ formArrayName="dbFunction" class="full-width"> + > {{ 'schema.fieldDetailsForm.controls.picklist' | transloco }} @@ -193,8 +283,14 @@ - Cancel - + + Cancel + + {{ (databaseFieldToEdit ? 'save' : 'create') | transloco }} diff --git a/src/app/adf-schema/df-field-details/df-field-details.component.ts b/src/app/adf-schema/df-field-details/df-field-details.component.ts index 197319b4..287f3e1f 100644 --- a/src/app/adf-schema/df-field-details/df-field-details.component.ts +++ b/src/app/adf-schema/df-field-details/df-field-details.component.ts @@ -26,6 +26,7 @@ import { DatabaseSchemaFieldType } from './df-field-details.types'; import { CsvValidator } from '../validators/csv.validator'; import { faCircleInfo } from '@fortawesome/free-solid-svg-icons'; import { MatTooltipModule } from '@angular/material/tooltip'; +import { DfThemeService } from 'src/app/shared/services/df-theme.service'; @Component({ selector: 'df-field-details', @@ -95,7 +96,8 @@ export class DfFieldDetailsComponent implements OnInit { private service: DfBaseCrudService, private formBuilder: FormBuilder, private activatedRoute: ActivatedRoute, - private router: Router + private router: Router, + private themeService: DfThemeService ) { this.fieldDetailsForm = this.formBuilder.group({ name: ['', Validators.required], @@ -125,6 +127,8 @@ export class DfFieldDetailsComponent implements OnInit { }); } + isDarkMode = this.themeService.darkMode$; + ngOnInit(): void { this.activatedRoute.data.subscribe(data => { this.type = data['type']; diff --git a/src/app/adf-schema/df-manage-tables-table/df-manage-tables-table.component.ts b/src/app/adf-schema/df-manage-tables-table/df-manage-tables-table.component.ts index 08ba6e71..f109e6d4 100644 --- a/src/app/adf-schema/df-manage-tables-table/df-manage-tables-table.component.ts +++ b/src/app/adf-schema/df-manage-tables-table/df-manage-tables-table.component.ts @@ -66,12 +66,17 @@ export class DfManageTablesTableComponent extends DfManageTableComponent - - - - - {{ 'schema.tableName' | transloco }} - - - - {{ 'schema.alerts.tableNameError' | transloco }} - - + + + + + + + {{ 'schema.tableName' | transloco }} + + + + {{ 'schema.alerts.tableNameError' | transloco }} + + - - - {{ 'schema.alias' | transloco }} - - - - - - {{ 'schema.label' | transloco }} - - - - - {{ 'schema.plural' | transloco }} - - - - {{ 'schema.description' | transloco }} - - + + + {{ 'schema.alias' | transloco }} + + + + + + {{ 'schema.label' | transloco }} + + + + + {{ 'schema.plural' | transloco }} + + + + {{ 'schema.description' | transloco }} + + - - {{ 'schema.fields' | transloco }} - - + + {{ 'schema.fields' | transloco }} + + - - {{ 'schema.relationships.heading' | transloco }} - - + + {{ 'schema.relationships.heading' | transloco }} + + + + + {{ 'cancel' | transloco }} + + + {{ 'update' | transloco }} + {{ 'save' | transloco }} + + + + + + - + {{ 'cancel' | transloco }} - + {{ 'update' | transloco }} {{ 'save' | transloco }} - - - - - - - {{ 'cancel' | transloco }} - - - {{ 'update' | transloco }} - {{ 'save' | transloco }} - - - - + + + diff --git a/src/app/adf-schema/df-table-details/df-table-details.component.ts b/src/app/adf-schema/df-table-details/df-table-details.component.ts index b0676ef1..df09dcf0 100644 --- a/src/app/adf-schema/df-table-details/df-table-details.component.ts +++ b/src/app/adf-schema/df-table-details/df-table-details.component.ts @@ -23,6 +23,8 @@ import { UntilDestroy } from '@ngneat/until-destroy'; import { AceEditorMode } from 'src/app/shared/types/scripts'; import { GenericListResponse } from 'src/app/shared/types/generic-http'; import { TableDetailsType } from './df-table-details.types'; +import { DfThemeService } from 'src/app/shared/services/df-theme.service'; + @UntilDestroy({ checkProperties: true }) @Component({ selector: 'df-table-details', @@ -59,7 +61,8 @@ export class DfTableDetailsComponent implements OnInit { private fb: FormBuilder, private activatedRoute: ActivatedRoute, public breakpointService: DfBreakpointService, - private router: Router + private router: Router, + private themeService: DfThemeService ) { this.tableDetailsForm = this.fb.group({ name: ['', Validators.required], @@ -69,6 +72,7 @@ export class DfTableDetailsComponent implements OnInit { description: [null], }); } + isDarkMode = this.themeService.darkMode$; ngOnInit(): void { this.activatedRoute.data.subscribe(data => { diff --git a/src/app/adf-services/df-manage-services/df-manage-services-table.component.ts b/src/app/adf-services/df-manage-services/df-manage-services-table.component.ts index 4a578c17..c30065cd 100644 --- a/src/app/adf-services/df-manage-services/df-manage-services-table.component.ts +++ b/src/app/adf-services/df-manage-services/df-manage-services-table.component.ts @@ -110,7 +110,8 @@ export class DfManageServicesTableComponent extends DfManageTableComponent>({ limit, offset, filter, + refresh, }) .subscribe(data => { this.dataSource.data = this.mapDataToTable(data.resource); diff --git a/src/app/adf-services/df-service-details/df-service-details.component.html b/src/app/adf-services/df-service-details/df-service-details.component.html index d8e1032a..72800520 100644 --- a/src/app/adf-services/df-service-details/df-service-details.component.html +++ b/src/app/adf-services/df-service-details/df-service-details.component.html @@ -1,4 +1,8 @@ - + @@ -64,7 +68,9 @@ class="card-icon" [src]="getBackgroundImage(type.name)" [alt]="type.label" /> - {{ type.label }} + + {{ type.label }} + @@ -84,7 +90,9 @@ {{ type.label }} class="card-icon" [src]="getBackgroundImage(type.name)" [alt]="type.label" /> - {{ type.label }} + + {{ type.label }} +
+ + + {{ 'home.welcomePage.welcomeHeading' | transloco }} + + + {{ 'home.welcomePage.welcomeSubHeading' | transloco }} + + + + + + + + + + + + + {{ + 'home.welcomePage.watchVideoCta' | transloco + }} + + +
+ + {{ 'home.welcomePage.welcomeHeading' | transloco }} + + + {{ 'home.welcomePage.welcomeSubHeading' | transloco }} + + + + + + +