From dce5d0c2c42fac0e8d20d4a499184880c8bcbeec Mon Sep 17 00:00:00 2001 From: Ihar Date: Sat, 21 Dec 2024 23:18:19 +0500 Subject: [PATCH] refactor: remove comments[3141] --- frontend/src/app/app.component.ts | 30 +- frontend/src/app/app.module.ts | 263 ++++---- .../branding-dialog.component.css | 22 - .../branding-dialog.component.html | 6 - .../branding-dialog.component.ts | 18 - .../meeco-vc-submit-dialog.component.html | 9 - .../meeco-vc-submit-dialog.component.ts | 3 - .../notification/notification.component.html | 5 - .../notification/notification.component.ts | 13 +- .../qr-code-dialog.component.html | 1 - .../qr-code-dialog.component.ts | 3 - .../standard-registry-card.component.html | 20 - .../standard-registry-card.component.ts | 21 +- .../compare-document.component.html | 174 ------ .../compare-module.component.html | 287 +-------- .../compare-module.component.ts | 50 +- .../compare-policy.component.html | 310 +-------- .../compare-record.component.html | 199 +----- .../compare-schema.component.html | 166 ----- .../compare-tool/compare-tool.component.html | 309 +-------- .../analytics/compare/compare.component.html | 46 -- .../multi-compare-policy.component.html | 337 ---------- .../search-policies.component.html | 124 ---- .../artifact-config.component.html | 95 +-- .../artifact-config.component.ts | 23 +- .../artifact-import-dialog.component.html | 20 +- .../artifact-import-dialog.component.ts | 4 - .../artifact-properties.component.html | 6 - .../modules/common/alert/alert.component.html | 21 +- .../modules/common/alert/alert.component.ts | 16 - .../common/common-components.module.ts | 85 ++- .../compare-viewer.component.html | 22 +- .../compare-viewer.component.ts | 14 +- .../confirm-dialog.component.html | 54 -- .../confirm-dialog.component.ts | 4 - .../confirmation-dialog.component.ts | 3 - .../data-input-dialog.component.html | 37 -- .../data-input-dialog.component.ts | 3 - .../datetime-picker.component.html | 9 - .../datetime-picker.component.ts | 18 +- .../file-drag-n-drop.component.html | 2 - .../icon-preview-dialog.component.html | 6 - .../icon-preview-dialog.component.ts | 3 - .../src/app/modules/common/material.module.ts | 143 ----- .../new-versions/new-versions.component.html | 32 - .../select-menu/select-menu.component.html | 6 +- .../selector-dialog.component.html | 30 +- .../selector-dialog.component.ts | 10 - .../separate-stepper.component.html | 1 - .../common/step-tree/step-tree.component.html | 50 +- .../common/step-tree/step-tree.component.scss | 2 - .../common/step-tree/step-tree.component.ts | 30 +- .../refresh-btn/refresh-btn.component.html | 2 - .../contract-config.component.css | 16 - .../contract-config.component.html | 100 --- .../contract-config.component.ts | 55 +- .../user-contract-config.component.html | 75 --- .../user-contract-config.component.ts | 37 +- .../dialog-wrapper.component.html | 13 - .../retire-pools-dialog.component.html | 24 - .../retire-pools-dialog.component.ts | 3 - .../retire-requests-dialog.component.html | 25 +- .../retire-requests-dialog.component.ts | 11 +- .../set-pool-dialog.component.html | 49 -- .../set-pool-dialog.component.ts | 13 +- .../user-retire-pools-dialog.component.html | 43 -- .../user-retire-pools-dialog.component.ts | 2 - ...user-retire-requests-dialog.component.html | 10 +- .../user-retire-requests-dialog.component.ts | 3 - .../wipe-requests-dialog.component.html | 25 - .../wipe-requests-dialog.component.ts | 3 - .../code-editor-dialog.component.html | 2 - .../code-editor-dialog.component.ts | 4 - .../cron-config-dialog.component.html | 42 -- .../cron-config-dialog.component.ts | 6 - .../invite-dialog.component.html | 15 - .../invite-dialog/invite-dialog.component.ts | 7 +- .../multi-policy-dialog.component.html | 59 -- .../multi-policy-dialog.component.ts | 3 - .../new-theme-dialog.component.html | 7 - .../new-theme-dialog.component.ts | 3 - .../policy-wizard-dialog.component.html | 519 ++++----------- .../save-before-dialog.component.ts | 4 +- .../save-policy-dialog.component.html | 52 -- .../save-policy-dialog.component.ts | 6 +- .../viewer-dialog/viewer-dialog.component.ts | 7 - .../document-path.component.html | 3 - .../help-icon/help-icon.component.html | 4 - .../search-blocks.component.html | 10 - .../select-block/select-block.component.html | 61 -- .../select-schema.component.html | 20 - .../modules-list/modules-list.component.html | 126 ---- .../modules-list/modules-list.component.ts | 40 +- .../policies/policies.component.html | 17 - .../policies/policies.component.ts | 16 +- .../calculate-config.component.html | 9 - .../calculate-math-config.component.html | 9 - .../custom-logic-config.component.html | 14 - .../custom-logic-config.component.ts | 5 - .../aggregate-config.component.html | 17 +- .../aggregate-config.component.ts | 6 - .../document-validator-config.component.html | 22 - .../document-viewer-config.component.html | 48 -- .../filters-addon-config.component.html | 8 - .../reassigning-config.component.html | 12 - .../request-addon-config.component.html | 17 - .../request-config.component.html | 24 - .../send-config/send-config.component.html | 46 -- .../source-addon-config.component.html | 28 - .../timer-config/timer-config.component.html | 10 - .../timer-config/timer-config.component.ts | 4 - .../action-config.component.html | 23 - .../button-config.component.html | 28 - .../container-config.component.html | 6 - .../group-manager-config.component.html | 10 - .../http-request-config.component.html | 18 - .../http-request-config.component.ts | 5 - .../information-config.component.html | 6 - .../roles-config/roles-config.component.html | 9 - .../switch-config.component.html | 27 - .../blocks/module/module.component.html | 38 -- .../report-item-config.component.html | 60 -- .../report-item-config.component.ts | 2 - .../create-token-config.component.html | 8 - .../mint-config/mint-config.component.html | 20 - .../token-action-config.component.html | 33 - .../token-confirmation-config.component.html | 22 - .../blocks/tool/tool.component.html | 41 -- .../common-properties.component.html | 52 -- .../common-property.component.html | 78 --- .../json-properties.component.html | 2 - .../module-properties.component.html | 22 - .../policy-configuration.component.html | 281 +-------- .../policy-configuration.component.scss | 9 - .../policy-configuration.component.ts | 146 +++-- .../policy-properties.component.html | 191 +----- .../policy-settings.component.html | 136 ---- .../policy-settings.component.ts | 112 ++-- .../policy-tree/policy-tree.component.html | 73 +-- .../policy-tree/policy-tree.component.scss | 1 - .../action-block/action-block.component.html | 4 - .../button-block/button-block.component.ts | 2 - .../confirmation-dialog.component.html | 4 - .../container-block.component.html | 55 +- .../document-dialog-block.component.ts | 4 - .../documents-source-block.component.html | 176 ------ .../documents-source-block.component.ts | 43 +- .../dropdown-block-addon.component.html | 4 - .../external-topic-block.component.html | 162 ----- .../filters-addon-block.component.html | 8 - .../group-manager-block.component.html | 191 +----- .../group-manager-block.component.ts | 23 +- .../messages-report-block.component.html | 53 -- .../messages-report-block.component.ts | 88 +-- .../multi-sign-block.component.html | 10 - .../pagination-addon-block.component.html | 8 - .../report-block/report-block.component.html | 55 -- .../report-block/report-block.component.ts | 15 +- .../request-document-block-addon.component.ts | 2 - .../roles-block/roles-block.component.html | 69 -- .../token-confirmation-block.component.html | 21 - .../upload-document-block.component.ts | 46 +- .../dialog-block/dialog-block.component.html | 1 - .../dialog-block/dialog-block.component.ts | 4 - .../policy-viewer.component.html | 78 +-- .../record-controller.component.html | 37 -- .../record-controller.component.ts | 28 +- .../record-result-dialog.component.html | 10 - .../record-result-dialog.component.ts | 6 - .../record-results.component.html | 4 - .../test-results/test-results.component.html | 4 - .../policy-engine/services/block-icons.ts | 52 +- .../policy-engine/services/wizard.service.ts | 5 +- .../tools-list/tools-list.component.html | 230 ++----- .../tools-list/tools-list.component.ts | 3 - .../copy-schema-dialog.html | 50 -- .../copy-schema-dialog/copy-schema-dialog.ts | 5 - .../document-view/document-view.component.ts | 1 - .../enum-editor-dialog.component.html | 21 - .../geojson-type/geojson-type.component.html | 42 -- .../schema-configuration.component.html | 95 --- .../schema-configuration.component.ts | 58 +- .../schema-dialog.component.html | 13 - .../schema-engine/schema-engine.module.ts | 89 ++- .../schema-field-configuration.component.html | 54 -- .../schema-field-configuration.component.ts | 57 +- .../schema-form-dialog.component.html | 1 - .../schema-form-dialog.component.ts | 3 - .../schema-form-view.component.ts | 7 - .../schema-form/schema-form.component.html | 6 - .../schema-form/schema-form.component.ts | 46 +- .../schema-tree/schema-tree.component.html | 11 - .../schema-tree/schema-tree.component.ts | 7 - .../schema-view-dialog.component.html | 14 - .../schema-view-dialog.component.ts | 4 - .../sentinel-hub-type.component.html | 70 --- .../sentinel-hub-type.component.ts | 16 +- .../set-version-dialog.component.ts | 7 +- .../tags-create-dialog.component.html | 37 -- .../tags-explorer-dialog.component.html | 1 - .../tags-explorer.component.html | 2 - .../tags-explorer/tags-explorer.component.ts | 1 - frontend/src/app/utils/mobile-utils.ts | 3 +- .../about-view/about-view.component.html | 6 +- .../service-status.component.html | 21 - .../settings-view.component.html | 4 - .../src/app/views/audit/audit.component.html | 68 -- .../src/app/views/audit/audit.component.ts | 31 +- .../app/views/branding/branding.component.ts | 19 +- .../app/views/header/header.component.html | 589 ------------------ .../src/app/views/header/header.component.ts | 30 +- .../src/app/views/login/login.component.html | 61 -- .../src/app/views/login/login.component.ts | 64 +- .../views/new-header/new-header.component.ts | 31 +- .../notifications/notifications.component.ts | 8 +- .../policy-guided-search.component.ts | 18 +- .../policy-search.component.html | 33 - .../policy-search/policy-search.component.ts | 18 +- .../views/register/register.component.html | 59 -- .../app/views/roles/roles-view.component.html | 27 - .../app/views/roles/roles-view.component.ts | 5 - .../root-profile/root-profile.component.html | 58 -- .../app/views/schemas/schemas.component.html | 309 ++------- .../app/views/schemas/schemas.component.ts | 115 ++-- .../suggestions-configuration.component.html | 9 - .../trust-chain/trust-chain.component.html | 25 - .../trust-chain/trust-chain.component.ts | 18 - .../user-management-detail.component.html | 225 +------ .../user-management-detail.component.ts | 1 - .../user-profile/user-profile.component.html | 38 -- .../user-profile/user-profile.component.ts | 210 +++---- .../worker-tasks/worker-tasks.component.ts | 10 +- 232 files changed, 1296 insertions(+), 9485 deletions(-) delete mode 100644 frontend/src/app/components/branding-dialog/branding-dialog.component.css delete mode 100644 frontend/src/app/components/branding-dialog/branding-dialog.component.html delete mode 100644 frontend/src/app/components/branding-dialog/branding-dialog.component.ts diff --git a/frontend/src/app/app.component.ts b/frontend/src/app/app.component.ts index ce0ac93f5c..1a0797c106 100644 --- a/frontend/src/app/app.component.ts +++ b/frontend/src/app/app.component.ts @@ -1,15 +1,14 @@ -import { Component, ElementRef, HostListener, OnInit, ViewChild } from '@angular/core'; -import { AuthStateService } from './services/auth-state.service'; -import { WebSocketService } from './services/web-socket.service'; -import { BrandingService } from './services/branding.service'; +import {Component, ElementRef, HostListener, OnInit, ViewChild} from '@angular/core'; +import {AuthStateService} from './services/auth-state.service'; +import {WebSocketService} from './services/web-socket.service'; +import {BrandingService} from './services/branding.service'; import './modules/policy-engine/policy-lang-modes/policy-json-lang.mode'; import './modules/policy-engine/policy-lang-modes/policy-yaml-lang.mode'; import './modules/common/models/lang-modes/formula-lang.mode'; import './modules/common/models/lang-modes/single-line'; -import { globalLoaderActive } from './static/global-loader.function'; -import { ActivatedRoute } from '@angular/router'; -// import { MatIconRegistry } from '@angular/material/icon'; -import { DomSanitizer } from '@angular/platform-browser'; +import {globalLoaderActive} from './static/global-loader.function'; +import {ActivatedRoute} from '@angular/router'; +import {DomSanitizer} from '@angular/platform-browser'; @Component({ selector: 'app-root', @@ -37,22 +36,7 @@ export class AppComponent implements OnInit { private brandingService: BrandingService, private activatedRoute: ActivatedRoute, private domSanitizer: DomSanitizer, - // private matIconRegistry: MatIconRegistry ) { - // this.matIconRegistry.addSvgIconLiteral('policy-module', this.domSanitizer.bypassSecurityTrustHtml(` - // - // - // - // - // - // `)); - // this.matIconRegistry.addSvgIconLiteral('policy-tool', this.domSanitizer.bypassSecurityTrustHtml(` - // - // - // - // - // - // `)); activatedRoute.url.subscribe(segs => { this.url = segs.pop()!.path; }) diff --git a/frontend/src/app/app.module.ts b/frontend/src/app/app.module.ts index 42d0f7e62f..a3c73c04a2 100644 --- a/frontend/src/app/app.module.ts +++ b/frontend/src/app/app.module.ts @@ -1,136 +1,140 @@ -import { NgModule } from '@angular/core'; -import { FormsModule } from '@angular/forms'; -import { BrowserModule } from '@angular/platform-browser'; -import { BrowserAnimationsModule } from '@angular/platform-browser/animations'; -import { HTTP_INTERCEPTORS, provideHttpClient, withInterceptorsFromDi, withJsonpSupport } from '@angular/common/http'; -import { CommonModule } from '@angular/common'; -import { ToastrModule } from 'ngx-toastr'; -import { AppRoutingModule, PermissionsGuard } from './app-routing.module'; -import { AppComponent } from './app.component'; -import { SchemaHelper } from '@guardian/interfaces'; -import { CheckboxModule } from 'primeng/checkbox'; +import {NgModule} from '@angular/core'; +import {FormsModule} from '@angular/forms'; +import {BrowserModule} from '@angular/platform-browser'; +import {BrowserAnimationsModule} from '@angular/platform-browser/animations'; +import {HTTP_INTERCEPTORS, provideHttpClient, withInterceptorsFromDi, withJsonpSupport} from '@angular/common/http'; +import {CommonModule} from '@angular/common'; +import {ToastrModule} from 'ngx-toastr'; +import {AppRoutingModule, PermissionsGuard} from './app-routing.module'; +import {AppComponent} from './app.component'; +import {SchemaHelper} from '@guardian/interfaces'; +import {CheckboxModule} from 'primeng/checkbox'; //Services -import { AuthInterceptor, AuthService } from './services/auth.service'; -import { ProfileService } from './services/profile.service'; -import { TokenService } from './services/token.service'; -import { SchemaService } from './services/schema.service'; -import { HandleErrorsService } from './services/handle-errors.service'; -import { AuditService } from './services/audit.service'; -import { PolicyEngineService } from './services/policy-engine.service'; -import { PolicyStatisticsService } from './services/policy-statistics.service'; -import { DemoService } from './services/demo.service'; -import { PolicyHelper } from './services/policy-helper.service'; -import { IPFSService } from './services/ipfs.service'; -import { SettingsService } from './services/settings.service'; -import { LoggerService } from './services/logger.service'; -import { TasksService } from './services/tasks.service'; -import { ArtifactService } from './services/artifact.service'; -import { ContractService } from './services/contract.service'; -import { WebSocketService } from './services/web-socket.service'; -import { MessageTranslationService } from './services/message-translation-service/message-translation-service'; -import { AnalyticsService } from './services/analytics.service'; -import { ModulesService } from './services/modules.service'; -import { TagsService } from './services/tag.service'; -import { MapService } from './services/map.service'; -import { WizardService } from './modules/policy-engine/services/wizard.service'; -import { NotificationService } from './services/notify.service'; -import { PermissionsService } from './services/permissions.service'; -import { WorkerTasksService } from './services/worker-tasks.service'; -import { SchemaRulesService } from './services/schema-rules.service'; +import {AuthInterceptor, AuthService} from './services/auth.service'; +import {ProfileService} from './services/profile.service'; +import {TokenService} from './services/token.service'; +import {SchemaService} from './services/schema.service'; +import {HandleErrorsService} from './services/handle-errors.service'; +import {AuditService} from './services/audit.service'; +import {PolicyEngineService} from './services/policy-engine.service'; +import {PolicyStatisticsService} from './services/policy-statistics.service'; +import {DemoService} from './services/demo.service'; +import {PolicyHelper} from './services/policy-helper.service'; +import {IPFSService} from './services/ipfs.service'; +import {SettingsService} from './services/settings.service'; +import {LoggerService} from './services/logger.service'; +import {TasksService} from './services/tasks.service'; +import {ArtifactService} from './services/artifact.service'; +import {ContractService} from './services/contract.service'; +import {WebSocketService} from './services/web-socket.service'; +import {MessageTranslationService} from './services/message-translation-service/message-translation-service'; +import {AnalyticsService} from './services/analytics.service'; +import {ModulesService} from './services/modules.service'; +import {TagsService} from './services/tag.service'; +import {MapService} from './services/map.service'; +import {WizardService} from './modules/policy-engine/services/wizard.service'; +import {NotificationService} from './services/notify.service'; +import {PermissionsService} from './services/permissions.service'; +import {WorkerTasksService} from './services/worker-tasks.service'; +import {SchemaRulesService} from './services/schema-rules.service'; //Views -import { UserProfileComponent } from './views/user-profile/user-profile.component'; -import { LoginComponent } from './views/login/login.component'; -import { ChangePasswordComponent } from './views/login/change-password/change-password.component'; -import { HomeComponent } from './views/home/home.component'; -import { HeaderComponent } from './views/header/header.component'; -import { RegisterComponent } from './views/register/register.component'; -import { RootProfileComponent } from './views/root-profile/root-profile.component'; -import { TokenConfigComponent } from './views/token-config/token-config.component'; -import { AuditComponent } from './views/audit/audit.component'; -import { TrustChainComponent } from './views/trust-chain/trust-chain.component'; -import { AdminHeaderComponent } from './views/admin/admin-header/admin-panel.component'; -import { LogsViewComponent } from './views/admin/logs-view/logs-view.component'; -import { SettingsViewComponent } from './views/admin/settings-view/settings-view.component'; -import { DetailsLogDialog } from './views/admin/details-log-dialog/details-log-dialog.component'; -import { ServiceStatusComponent } from './views/admin/service-status/service-status.component'; -import { SchemaConfigComponent } from './views/schemas/schemas.component'; -// import { BrandingDialogComponent } from './components/branding-dialog/branding-dialog.component'; -import { NotificationsComponent } from './views/notifications/notifications.component'; -import { RolesViewComponent } from './views/roles/roles-view.component'; -import { UsersManagementComponent } from './views/user-management/user-management.component'; -import { UsersManagementDetailComponent } from './views/user-management-detail/user-management-detail.component'; +import {UserProfileComponent} from './views/user-profile/user-profile.component'; +import {LoginComponent} from './views/login/login.component'; +import {ChangePasswordComponent} from './views/login/change-password/change-password.component'; +import {HomeComponent} from './views/home/home.component'; +import {HeaderComponent} from './views/header/header.component'; +import {RegisterComponent} from './views/register/register.component'; +import {RootProfileComponent} from './views/root-profile/root-profile.component'; +import {TokenConfigComponent} from './views/token-config/token-config.component'; +import {AuditComponent} from './views/audit/audit.component'; +import {TrustChainComponent} from './views/trust-chain/trust-chain.component'; +import {AdminHeaderComponent} from './views/admin/admin-header/admin-panel.component'; +import {LogsViewComponent} from './views/admin/logs-view/logs-view.component'; +import {SettingsViewComponent} from './views/admin/settings-view/settings-view.component'; +import {DetailsLogDialog} from './views/admin/details-log-dialog/details-log-dialog.component'; +import {ServiceStatusComponent} from './views/admin/service-status/service-status.component'; +import {SchemaConfigComponent} from './views/schemas/schemas.component'; +import {NotificationsComponent} from './views/notifications/notifications.component'; +import {RolesViewComponent} from './views/roles/roles-view.component'; +import {UsersManagementComponent} from './views/user-management/user-management.component'; +import {UsersManagementDetailComponent} from './views/user-management-detail/user-management-detail.component'; //Components -import { InfoComponent } from './components/info/info/info.component'; -import { BrandingComponent } from './views/branding/branding.component'; -import { StandardRegistryCardComponent } from './components/standard-registry-card/standard-registry-card.component'; -import { SuggestionsConfigurationComponent } from './views/suggestions-configuration/suggestions-configuration.component'; -import { NotificationComponent } from './components/notification/notification.component'; -import { TokenDialogComponent } from './components/token-dialog/token-dialog.component'; +import {InfoComponent} from './components/info/info/info.component'; +import {BrandingComponent} from './views/branding/branding.component'; +import {StandardRegistryCardComponent} from './components/standard-registry-card/standard-registry-card.component'; +import {SuggestionsConfigurationComponent} from './views/suggestions-configuration/suggestions-configuration.component'; +import {NotificationComponent} from './components/notification/notification.component'; +import {TokenDialogComponent} from './components/token-dialog/token-dialog.component'; //Modules -import { MaterialModule } from './modules/common/material.module'; -import { PolicyEngineModule } from './modules/policy-engine/policy-engine.module'; -import { CompareModule } from './modules/analytics/analytics.module'; -import { CommonComponentsModule } from './modules/common/common-components.module'; -import { TagEngineModule } from './modules/tag-engine/tag-engine.module'; -import { SchemaEngineModule } from './modules/schema-engine/schema-engine.module' -import { ThemeService } from './services/theme.service'; -import { RecordService } from './services/record.service'; -import { PolicyStatisticsModule } from './modules/policy-statistics/policy-statistics.module'; -import { SchemaRulesModule } from './modules/schema-rules/schema-rules.module'; +import {MaterialModule} from './modules/common/material.module'; +import {PolicyEngineModule} from './modules/policy-engine/policy-engine.module'; +import {CompareModule} from './modules/analytics/analytics.module'; +import {CommonComponentsModule} from './modules/common/common-components.module'; +import {TagEngineModule} from './modules/tag-engine/tag-engine.module'; +import {SchemaEngineModule} from './modules/schema-engine/schema-engine.module' +import {ThemeService} from './services/theme.service'; +import {RecordService} from './services/record.service'; +import {PolicyStatisticsModule} from './modules/policy-statistics/policy-statistics.module'; +import {SchemaRulesModule} from './modules/schema-rules/schema-rules.module'; // Injectors -import { GET_SCHEMA_NAME } from './injectors/get-schema-name.injector'; -import { BLOCK_TYPE_TIPS, BLOCK_TYPE_TIPS_VALUE, } from './injectors/block-type-tips.injector'; -import { SuggestionsService } from './services/suggestions.service'; -import { QrCodeDialogComponent } from './components/qr-code-dialog/qr-code-dialog.component'; -import { QRCodeModule } from 'angularx-qrcode'; -import { MeecoVCSubmitDialogComponent } from './components/meeco-vc-submit-dialog/meeco-vc-submit-dialog.component'; -import { AboutViewComponent } from './views/admin/about-view/about-view.component'; -import { CompareStorage } from './services/compare-storage.service'; -import { ToolsService } from './services/tools.service'; -import { NewHeaderComponent } from './views/new-header/new-header.component'; -import { SearchResultCardComponent } from './components/search-result-card/search-result-card.component'; -import { PolicyAISearchComponent } from './views/policy-search/policy-ai-search/policy-ai-search.component'; -import { PolicyGuidedSearchComponent } from './views/policy-search/policy-guided-search/policy-guided-search.component'; -import { PolicySearchComponent } from './views/policy-search/policy-search.component'; -import { ListOfTokensUserComponent } from './views/list-of-tokens-user/list-of-tokens-user.component'; +import {GET_SCHEMA_NAME} from './injectors/get-schema-name.injector'; +import {BLOCK_TYPE_TIPS, BLOCK_TYPE_TIPS_VALUE,} from './injectors/block-type-tips.injector'; +import {SuggestionsService} from './services/suggestions.service'; +import {QrCodeDialogComponent} from './components/qr-code-dialog/qr-code-dialog.component'; +import {QRCodeModule} from 'angularx-qrcode'; +import {MeecoVCSubmitDialogComponent} from './components/meeco-vc-submit-dialog/meeco-vc-submit-dialog.component'; +import {AboutViewComponent} from './views/admin/about-view/about-view.component'; +import {CompareStorage} from './services/compare-storage.service'; +import {ToolsService} from './services/tools.service'; +import {NewHeaderComponent} from './views/new-header/new-header.component'; +import {SearchResultCardComponent} from './components/search-result-card/search-result-card.component'; +import {PolicyAISearchComponent} from './views/policy-search/policy-ai-search/policy-ai-search.component'; +import {PolicyGuidedSearchComponent} from './views/policy-search/policy-guided-search/policy-guided-search.component'; +import {PolicySearchComponent} from './views/policy-search/policy-search.component'; +import {ListOfTokensUserComponent} from './views/list-of-tokens-user/list-of-tokens-user.component'; // PrimeNG -import { InputTextModule } from 'primeng/inputtext'; -import { SelectButtonModule } from 'primeng/selectbutton'; -import { DropdownModule } from 'primeng/dropdown'; -import { TableModule } from 'primeng/table'; -import { DialogModule } from 'primeng/dialog'; -import { TagModule } from 'primeng/tag'; -import { ButtonModule } from 'primeng/button'; -import { TooltipModule } from 'primeng/tooltip'; -import { StepsModule } from 'primeng/steps'; -import { ProgressBarModule } from 'primeng/progressbar'; -import { TabViewModule } from 'primeng/tabview'; -import { DynamicDialogModule } from 'primeng/dynamicdialog'; -import { ColorPickerModule } from 'primeng/colorpicker'; -import { ProgressSpinnerModule } from 'primeng/progressspinner'; -import { AISearchService } from './services/ai-search.service'; -import { DndModule } from 'ngx-drag-drop'; -import { PasswordModule } from 'primeng/password'; -import { RegisterDialogComponent } from './views/login/register-dialogs/register-dialog/register-dialog.component'; -import { TermsConditionsComponent } from './views/login/register-dialogs/terms-conditions-dialog/terms-conditions.component'; -import { AccountTypeSelectorDialogComponent } from './views/login/register-dialogs/account-type-selector-dialog/account-type-selector-dialog.component'; -import { ForgotPasswordDialogComponent } from './views/login/forgot-password-dialog/forgot-password-dialog.component'; -import { MultiSelectModule } from 'primeng/multiselect'; -import { RadioButtonModule } from 'primeng/radiobutton'; -import { CalendarModule } from 'primeng/calendar'; -import { InputTextareaModule } from 'primeng/inputtextarea'; -import { ContractEngineModule } from './modules/contract-engine/contract-engine.module'; -import { ProjectComparisonService } from './services/project-comparison.service'; -import { ProjectComparisonModule } from './modules/project-comparison/project-comparison.module'; -import { AngularSvgIconModule } from 'angular-svg-icon'; +import {InputTextModule} from 'primeng/inputtext'; +import {SelectButtonModule} from 'primeng/selectbutton'; +import {DropdownModule} from 'primeng/dropdown'; +import {TableModule} from 'primeng/table'; +import {DialogModule} from 'primeng/dialog'; +import {TagModule} from 'primeng/tag'; +import {ButtonModule} from 'primeng/button'; +import {TooltipModule} from 'primeng/tooltip'; +import {StepsModule} from 'primeng/steps'; +import {ProgressBarModule} from 'primeng/progressbar'; +import {TabViewModule} from 'primeng/tabview'; +import {DynamicDialogModule} from 'primeng/dynamicdialog'; +import {ColorPickerModule} from 'primeng/colorpicker'; +import {ProgressSpinnerModule} from 'primeng/progressspinner'; +import {AISearchService} from './services/ai-search.service'; +import {DndModule} from 'ngx-drag-drop'; +import {PasswordModule} from 'primeng/password'; +import {RegisterDialogComponent} from './views/login/register-dialogs/register-dialog/register-dialog.component'; +import { + TermsConditionsComponent +} from './views/login/register-dialogs/terms-conditions-dialog/terms-conditions.component'; +import { + AccountTypeSelectorDialogComponent +} from './views/login/register-dialogs/account-type-selector-dialog/account-type-selector-dialog.component'; +import {ForgotPasswordDialogComponent} from './views/login/forgot-password-dialog/forgot-password-dialog.component'; +import {MultiSelectModule} from 'primeng/multiselect'; +import {RadioButtonModule} from 'primeng/radiobutton'; +import {CalendarModule} from 'primeng/calendar'; +import {InputTextareaModule} from 'primeng/inputtextarea'; +import {ContractEngineModule} from './modules/contract-engine/contract-engine.module'; +import {ProjectComparisonService} from './services/project-comparison.service'; +import {ProjectComparisonModule} from './modules/project-comparison/project-comparison.module'; +import {AngularSvgIconModule} from 'angular-svg-icon'; // Prototypes import '../prototypes/date-prototype'; -import { OnlyForDemoDirective } from './directives/onlyfordemo.directive'; -import { UseWithServiceDirective } from './directives/use-with-service.directive'; -import { WorkerTasksComponent } from './views/worker-tasks/worker-tasks.component'; +import {OnlyForDemoDirective} from './directives/onlyfordemo.directive'; +import {UseWithServiceDirective} from './directives/use-with-service.directive'; +import {WorkerTasksComponent} from './views/worker-tasks/worker-tasks.component'; -@NgModule({ declarations: [ +@NgModule({ + declarations: [ AppComponent, UserProfileComponent, LoginComponent, @@ -151,7 +155,6 @@ import { WorkerTasksComponent } from './views/worker-tasks/worker-tasks.componen InfoComponent, SchemaConfigComponent, BrandingComponent, - // BrandingDialogComponent, SuggestionsConfigurationComponent, StandardRegistryCardComponent, NotificationComponent, @@ -177,7 +180,8 @@ import { WorkerTasksComponent } from './views/worker-tasks/worker-tasks.componen WorkerTasksComponent ], exports: [], - bootstrap: [AppComponent], imports: [BrowserModule, + bootstrap: [AppComponent], + imports: [BrowserModule, CommonModule, CommonComponentsModule, MaterialModule, @@ -216,7 +220,8 @@ import { WorkerTasksComponent } from './views/worker-tasks/worker-tasks.componen ProjectComparisonModule, DndModule, CheckboxModule, - AngularSvgIconModule.forRoot()], providers: [ + AngularSvgIconModule.forRoot()], + providers: [ WebSocketService, AuthService, ProfileService, @@ -270,5 +275,7 @@ import { WorkerTasksComponent } from './views/worker-tasks/worker-tasks.componen multi: true, }, provideHttpClient(withInterceptorsFromDi(), withJsonpSupport()) - ] }) -export class AppModule { } + ] +}) +export class AppModule { +} diff --git a/frontend/src/app/components/branding-dialog/branding-dialog.component.css b/frontend/src/app/components/branding-dialog/branding-dialog.component.css deleted file mode 100644 index 2b6adf9da9..0000000000 --- a/frontend/src/app/components/branding-dialog/branding-dialog.component.css +++ /dev/null @@ -1,22 +0,0 @@ -/*.page-btns {*/ -/* width: 100%;*/ -/* display: grid;*/ -/* grid-template-columns: 1fr 1fr;*/ -/* column-gap:15px;*/ -/* justify-items: center;*/ -/* background-color: white;*/ -/* padding: 20px 0;*/ -/*}*/ - -/*#cancel-btn {*/ -/* width: 100%;*/ -/* border: 1px solid var(--primary-color);*/ -/* background: none !important;*/ -/* color: var(--primary-color);*/ -/* grid-column: 2;*/ -/*}*/ - -/*#reset-btn {*/ -/* width: 100%;*/ -/* grid-column: 1;*/ -/*}*/ diff --git a/frontend/src/app/components/branding-dialog/branding-dialog.component.html b/frontend/src/app/components/branding-dialog/branding-dialog.component.html deleted file mode 100644 index 00c4a226de..0000000000 --- a/frontend/src/app/components/branding-dialog/branding-dialog.component.html +++ /dev/null @@ -1,6 +0,0 @@ - - - - - - diff --git a/frontend/src/app/components/branding-dialog/branding-dialog.component.ts b/frontend/src/app/components/branding-dialog/branding-dialog.component.ts deleted file mode 100644 index 0ebf8c03aa..0000000000 --- a/frontend/src/app/components/branding-dialog/branding-dialog.component.ts +++ /dev/null @@ -1,18 +0,0 @@ -// import { Component, Inject } from '@angular/core'; -// import { MAT_LEGACY_DIALOG_DATA as MAT_DIALOG_DATA, MatLegacyDialogRef as MatDialogRef } from '@angular/material/legacy-dialog'; -// -// @Component({ -// selector: 'app-branding-dialog', -// templateUrl: './branding-dialog.component.html', -// styleUrls: ['./branding-dialog.component.css'] -// }) -// export class BrandingDialogComponent { -// constructor( -// public dialogRef: MatDialogRef, -// @Inject(MAT_DIALOG_DATA) public data: any -// ) {} -// -// onProceed(): void { -// this.dialogRef.close('proceed'); -// } -// } diff --git a/frontend/src/app/components/meeco-vc-submit-dialog/meeco-vc-submit-dialog.component.html b/frontend/src/app/components/meeco-vc-submit-dialog/meeco-vc-submit-dialog.component.html index 64e8ace05f..5d22647cf5 100644 --- a/frontend/src/app/components/meeco-vc-submit-dialog/meeco-vc-submit-dialog.component.html +++ b/frontend/src/app/components/meeco-vc-submit-dialog/meeco-vc-submit-dialog.component.html @@ -13,15 +13,6 @@

VC Subject Submission

- - - - - - - - -
, private dialogRef: DynamicDialogRef, private config: DynamicDialogConfig, private wsService: WebSocketService diff --git a/frontend/src/app/components/notification/notification.component.html b/frontend/src/app/components/notification/notification.component.html index e361dcf6f0..cbdbcd010f 100644 --- a/frontend/src/app/components/notification/notification.component.html +++ b/frontend/src/app/components/notification/notification.component.html @@ -8,11 +8,6 @@ {{ unreadNotifications }}
- - - - -
Please scan the QR code with Meeco Wallet application -
diff --git a/frontend/src/app/components/qr-code-dialog/qr-code-dialog.component.ts b/frontend/src/app/components/qr-code-dialog/qr-code-dialog.component.ts index 5c6d218a17..1a40019cd3 100644 --- a/frontend/src/app/components/qr-code-dialog/qr-code-dialog.component.ts +++ b/frontend/src/app/components/qr-code-dialog/qr-code-dialog.component.ts @@ -1,5 +1,4 @@ import { Component, Inject, OnDestroy } from '@angular/core'; -// import { MAT_LEGACY_DIALOG_DATA as MAT_DIALOG_DATA, MatLegacyDialogRef as MatDialogRef } from '@angular/material/legacy-dialog'; import { ToastrService } from 'ngx-toastr'; import { Subject } from 'rxjs'; import { takeUntil } from 'rxjs/operators'; @@ -18,8 +17,6 @@ export class QrCodeDialogComponent implements OnDestroy { isMobile: boolean = window.innerWidth <= 810; constructor( - // @Inject(MAT_DIALOG_DATA) private data: any, - // private dialogRef: MatDialogRef, private dialogRef: DynamicDialogRef, private config: DynamicDialogConfig, private toastr: ToastrService, diff --git a/frontend/src/app/components/standard-registry-card/standard-registry-card.component.html b/frontend/src/app/components/standard-registry-card/standard-registry-card.component.html index feda13b1e5..4b834d01b0 100644 --- a/frontend/src/app/components/standard-registry-card/standard-registry-card.component.html +++ b/frontend/src/app/components/standard-registry-card/standard-registry-card.component.html @@ -7,12 +7,6 @@
- - - - - -
{{ registry.policies.length }} {{ getPoliciesLabel(registry.policies.length) }} - - - - -
- - - - - - - - -