Skip to content

Commit ab89fa4

Browse files
committed
Remove console.log entries
1 parent 538955b commit ab89fa4

File tree

9 files changed

+0
-22
lines changed

9 files changed

+0
-22
lines changed

src/app/configure/configure.component.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,6 @@ export class ConfigureComponent implements OnInit {
194194
)
195195
this.config.githubPersonalToken = this.ghPersonalAccessToken.value;
196196
this.entityApiService.postConfiguration(this.config).subscribe(() => {
197-
console.log("configuration updated");
198197
this.close();
199198
});
200199
this.close();

src/app/infobox/infobox.component.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,6 @@ export class InfoboxComponent implements OnInit, OnDestroy {
8383
this.messages.forEach((msg) => {
8484
this.currentDisplay = this.currentDisplay + msg.message + "\n";
8585
});
86-
console.log(this.currentDisplay);
8786
}
8887
}, 100);
8988
}

src/app/select-modbus/select-modbus.component.ts

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,6 @@ export class SelectModbusComponent implements AfterViewInit, OnDestroy {
126126
this.readBussesFromServer();
127127
});
128128
this.paramSubscription = this.route.queryParams.subscribe((params) => {
129-
console.log(params);
130129
if (params["busid"] != undefined) {
131130
this.preselectedBusId = params["busid"];
132131
}
@@ -397,11 +396,6 @@ export class SelectModbusComponent implements AfterViewInit, OnDestroy {
397396
return this.selectedBaudRate !== undefined && br == this.selectedBaudRate;
398397
}
399398

400-
onSelectBaudRateChange(newValue: MatSelectChange | undefined | null) {
401-
if (newValue) {
402-
console.log("nothing to do?");
403-
}
404-
}
405399
listSlaves(idx: number) {
406400
this.saveBus(idx).then((busid) => {
407401
this.readBussesFromServer().then(() => {

src/app/select-slave/select-slave.component.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -412,7 +412,6 @@ export class SelectSlaveComponent extends SessionStorage implements OnInit {
412412
this.entityApiService
413413
.deleteSlave(this.bus.busId, slave.slaveid)
414414
.subscribe(() => {
415-
console.log("Device deleted");
416415
let dIdx = this.uiSlaves.findIndex(
417416
(uis) => uis.slave.slaveid == slave.slaveid,
418417
);
@@ -577,6 +576,5 @@ export class SelectSlaveComponent extends SessionStorage implements OnInit {
577576
}
578577
copy2Clipboard(text: string) {
579578
this.clipboard.copy(text);
580-
console.log("copy" + text)
581579
}
582580
}

src/app/services/api-service.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,6 @@ export class ApiService {
5656
msg += err.statusText;
5757
if (!err.error && !err.statusText && err.message) msg = err.message;
5858
alert(msg);
59-
console.log(JSON.stringify(err));
6059
}
6160
};
6261
}
@@ -86,7 +85,6 @@ export class ApiService {
8685
this.getFullUri(apiUri.modbusSpecification) +
8786
`?busid=${busid}&slaveid=${slaveid}`;
8887
if (specification) f = f + `&spec=${specification}`;
89-
console.log(f);
9088
return this.httpClient.get<ImodbusSpecification>(f).pipe(
9189
catchError((err) => {
9290
this.errorHandler(err);
@@ -336,7 +334,6 @@ export class ApiService {
336334
},
337335
};
338336
let f = this.getFullUri(apiUri.slave) + `?busid=${busid}`;
339-
console.log(JSON.stringify(device));
340337
return this.httpClient.post<Islave>(f, device, httpOptions).pipe(
341338
catchError((err) => {
342339
this.errorHandler(err);
@@ -519,7 +516,6 @@ export class ApiService {
519516
spec: ImodbusSpecification,
520517
language: string,
521518
): Observable<Imessage[]> {
522-
console.log( "Validate: " + JSON.stringify(spec, null, "\t"))
523519
return this.httpClient
524520
.post<
525521
Imessage[]

src/app/specification/entity/entity.component.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -159,9 +159,6 @@ export class EntityComponent
159159
return true;
160160
}
161161

162-
onChangeSelectOption() {
163-
if (this.selectPropertiesFormGroup.valid) console.log("OK");
164-
}
165162
@Input({ required: true })
166163
specificationMethods: ISpecificationMethods;
167164

src/app/specification/specification/specification.component.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -589,7 +589,6 @@ export class SpecificationComponent
589589
: null,
590590
)
591591
.subscribe((spec) => {
592-
console.log("posted " + spec.filename);
593592
this.entityApiService
594593
.getModbusSpecification(this.busId, this.slaveid, spec.filename)
595594
.subscribe((spec) => {

src/app/specification/translation/translation.component.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,6 @@ export class TranslationComponent implements OnInit, OnDestroy {
176176
this.translationFormGroup.removeControl(field);
177177
}
178178
} catch (e) {
179-
console.log("error");
180179
}
181180
this.translationFormGroup.updateValueAndValidity();
182181

src/app/specification/upload-files/upload-files.component.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,6 @@ export class UploadFilesComponent implements OnInit,OnChanges {
139139
this.entityApiService
140140
.postFile(this.currentSpecification.filename, usage, fd)
141141
.subscribe((event) => {
142-
console.log( "dropped file " + files.length)
143142
this.currentSpecification!.files = event;
144143
if (usage == SpecificationFileUsage.img)
145144
this.generateImageGalleryItems();
@@ -167,7 +166,6 @@ export class UploadFilesComponent implements OnInit,OnChanges {
167166
usage: usage,
168167
})
169168
.subscribe((files) => {
170-
console.log( "add file " + files.length)
171169

172170
this.currentSpecification!.files = files as IimageAndDocumentUrl[];
173171
if (usage == SpecificationFileUsage.img)
@@ -227,7 +225,6 @@ export class UploadFilesComponent implements OnInit,OnChanges {
227225
uploadedFile.usage,
228226
)
229227
.subscribe((files) => {
230-
console.log( "delete file " + files.length)
231228
this.currentSpecification!.files = files;
232229
if (uploadedFile.usage == SpecificationFileUsage.img)
233230
this.generateImageGalleryItems();

0 commit comments

Comments
 (0)