Skip to content

Conversation

@smishra367
Copy link
Collaborator

RMA-101184

govindrgraj and others added 24 commits January 18, 2023 22:07
216 build server not supported the NPM and Node and NVM versions.
Hence not able to continue our build process...
feature/RMA-101210: checkin on behalf of vishal
Copy link
Owner

@assureclaims assureclaims left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

still code is missed for supporting reactive form

/**
* request object gets the value from APP and pass to halstack library.
*/
@Input('requests') requests: IfileuploadRequest = null;
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

IfileuploadRequest check the case - Change it to IFileUploadRequest

hasErrorSingleFile: boolean = false;
hasValue: boolean = false;

global_filehit: number = 0;
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

use camel case for all properties and functions name
global_filehit: number = 0; should be like globalFileHit
global_chunkcount: number = 0;
global_actualchunkcount: number = 0;
filedataupload: filemetadata;
GUID: string;
fileEventType: EventType = EventType.PREUPLOAD;
chunkresult: boolean;
Postresp: any;

* @param event
*/
processFiles(event) {
// var len = event.length;
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove comments

// });
this.uploadChunkDoc(eventFiles);
}
uploadChunkDoc(file) {
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should be private if not calling from html

@@ -0,0 +1,7 @@
import { chunkmetadata } from "./chunkmetadata";

export class filemetadata {
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

filemetadata should be pascal case FileMetadata

@@ -0,0 +1,323 @@
import { HttpParams, HttpHeaders } from '@angular/common/http';
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why copied the configuration model file in side dxc-file-input

@@ -0,0 +1,16 @@
import { IRequest } from './configuration.model';
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

changes the name of file this is not a service file this is models related to file upload component. and move the file in modles folder

@@ -0,0 +1,103 @@
export interface ILookup {
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why copy the lookupmodel in side dxc-file input ?

@@ -0,0 +1,25 @@
export declare class Lookup {
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why copy the lookup.ts in side dxc-file input ?

//let data = this.getPreview(file);
this.data[0].eventtype = this.fileEventType;
this.callbackFile.emit(this.data);
alert("File Upload completed"); });
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove alert

import { NgChanges } from "../typings/ng-onchange";
import { FileInputProperties, Space, Spacing } from "./dxc-file-input.types";
import { FileMetaData } from './model/filemetadata';
import { chunkmetadata } from './model/chunkmetadata';
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

chunkmetadata pascal case

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fiile name file.metadata

hasErrorSingleFile: boolean = false;
hasValue: boolean = false;

globalFileHit: number = 0;
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

globalFileHit -> remove

throw new Error(`Error! status: ${response.status}`);
}
}
private async uploadcomplete(theFiles: FileMetaData) {
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

uploadcomplete still not camel case

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants