RED-8748 - removed unused code

This commit is contained in:
Valentin Mihai 2024-06-11 20:57:25 +03:00
parent d003283939
commit 6da2e35e5b
5 changed files with 8 additions and 112 deletions

View File

@ -1,4 +1,4 @@
import { Component, EventEmitter, Input, OnChanges, OnInit, Output, SimpleChanges } from '@angular/core';
import { Component, EventEmitter, Input, OnInit, Output } from '@angular/core';
import { IComponentLogEntry } from '@red/domain';
import { FormsModule } from '@angular/forms';
import { CircleButtonComponent, IconButtonComponent, IconButtonTypes, IqserDialog } from '@iqser/common-ui';

View File

@ -52,84 +52,4 @@ mat-icon {
margin-right: 26px;
}
}
//div {
// display: flex;
// flex-direction: column;
// gap: 10px;
//
// &:not(:nth-last-child(-n + 2)) {
// border-bottom: 1px solid var(--iqser-separator);
// }
//
// &:nth-of-type(odd) {
// margin-left: 26px;
// }
//
// &:nth-of-type(even) {
// margin-right: 26px;
// }
//}
}
//.rss-row {
// display: flex;
// flex-direction: row;
// border-bottom: 1px solid var(--iqser-separator);
//
// .rss-key {
// font-weight: bold;
// flex: 30;
// text-align: right;
// padding: 4px;
// }
//
// .rss-value {
// padding: 4px;
// flex: 70;
// }
//}
//
//.dialog-content {
// overflow: auto;
//}
//
//.table {
// display: grid;
// grid-template-columns: repeat(2, 1fr);
//
// > div {
// padding: 8px 10px;
// }
//
// .bold {
// font-weight: 600;
// }
//
// .table-header {
// margin: 10px 0;
// border-bottom: 1px solid var(--iqser-separator);
// background-color: var(--iqser-grey-2);
// font-weight: 600;
// }
//}
//
//.annotation-grid {
// display: grid;
// grid-template-columns: 3fr 1fr 1fr 5fr;
//}
//
//ul {
// margin: 0;
//}
//
//.output-data > div:nth-child(8n + 9),
//.output-data > div:nth-child(8n + 10) {
// //.output-data > div:nth-child(8n + 11),
// //.output-data > div:nth-child(8n + 12) {
// background: var(--iqser-grey-8);
//}
//
//.ml-auto {
// margin-left: auto;
//}

View File

@ -1,4 +1,4 @@
import { ChangeDetectorRef, Component, Input, OnInit, signal, ViewChildren } from '@angular/core';
import { Component, Input, OnInit, signal, ViewChildren } from '@angular/core';
import { ComponentLogEntry, Dictionary, File, IComponentLogEntry, WorkflowFileStatuses } from '@red/domain';
import { IconButtonTypes, LoadingService } from '@iqser/common-ui';
import { ComponentLogService } from '@services/files/component-log.service';
@ -61,30 +61,6 @@ export class StructuredComponentManagementComponent implements OnInit {
return this.file.workflowStatus !== WorkflowFileStatuses.APPROVED;
}
exportJSON() {
return firstValueFrom(this._componentLogService.exportJSON(this.file.dossierTemplateId, this.file.dossierId, this.file));
}
exportXML() {
return firstValueFrom(this._componentLogService.exportXML(this.file.dossierTemplateId, this.file.dossierId, this.file));
}
async exportAllInDossier() {
const allFilesInDossier = this._filesMapService.get(this.file.dossierId);
for (const file of allFilesInDossier) {
await firstValueFrom(this._componentLogService.exportJSON(this.file.dossierTemplateId, file.dossierId, file));
await firstValueFrom(this._componentLogService.exportXML(this.file.dossierTemplateId, file.dossierId, file));
}
}
save() {
return this.exportJSON();
}
parseType(type: string) {
return type.replaceAll('_', ' ').replace(/(^\w{1})|(\s+\w{1})/g, letter => letter.toUpperCase());
}
async toggleOpenScmDialogByDefault() {
await this.userPreferences.toggleOpenScmDialogByDefault();
await this.userPreferences.reload();

View File

@ -1,9 +1,9 @@
{
"ADMIN_CONTACT_NAME": null,
"ADMIN_CONTACT_URL": null,
"API_URL": "https://frontend2.iqser.cloud",
"API_URL": "https://dan1.iqser.cloud",
"APP_NAME": "RedactManager",
"IS_DOCUMINE": true,
"IS_DOCUMINE": false,
"RULE_EDITOR_DEV_ONLY": false,
"AUTO_READ_TIME": 3,
"BACKEND_APP_VERSION": "4.4.40",
@ -13,13 +13,13 @@
"MAX_RETRIES_ON_SERVER_ERROR": 3,
"OAUTH_CLIENT_ID": "redaction",
"OAUTH_IDP_HINT": null,
"OAUTH_URL": "https://frontend2.iqser.cloud/auth",
"OAUTH_URL": "https://dan1.iqser.cloud/auth",
"RECENT_PERIOD_IN_HOURS": 24,
"SELECTION_MODE": "structural",
"MANUAL_BASE_URL": "https://docs.redactmanager.com/preview",
"ANNOTATIONS_THRESHOLD": 1000,
"THEME": "scm",
"BASE_TRANSLATIONS_DIRECTORY": "/assets/i18n/scm/",
"THEME": "redact",
"BASE_TRANSLATIONS_DIRECTORY": "/assets/i18n/redact/",
"AVAILABLE_NOTIFICATIONS_DAYS": 30,
"AVAILABLE_OLD_NOTIFICATIONS_MINUTES": 60,
"NOTIFICATIONS_THRESHOLD": 1000,

@ -1 +1 @@
Subproject commit e733adf37436ca81a5c38f08ec2a517124cfd140
Subproject commit 748cce403285c97e14cd3115a828c94c9d5d4520