Skip to content

Commit 10a5b6e

Browse files
committed
Remove log, fix parameter view
1 parent d2386bc commit 10a5b6e

File tree

7 files changed

+63
-27
lines changed

7 files changed

+63
-27
lines changed

src/adabas/admin.ts

Lines changed: 14 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ export class AdabasAdmin {
8585
.get(config.Url() + "/adabas/database/" + this.status.Dbid + "/nuclog", getConfig);
8686
return response.data.Log.Log;
8787
}
88-
catch (error:any) {
88+
catch (error: any) {
8989
if (error.response.status == 401 || error.response.status == 403) {
9090
userService.logout();
9191
location.reload();
@@ -175,7 +175,7 @@ export class AdabasAdmin {
175175
};
176176
try {
177177
return axios
178-
.delete(config.Url() + "/adabas/database/" + this.status.Dbid+"/commandstats", getConfig);
178+
.delete(config.Url() + "/adabas/database/" + this.status.Dbid + "/commandstats", getConfig);
179179
}
180180
catch (error: any) {
181181
if (error.response) {
@@ -233,8 +233,8 @@ export class AdabasAdmin {
233233
information(): Promise<any> {
234234
return triggerCallCommand(this.status.Dbid, 13);
235235
}
236-
// Retrieve current Adabas cluster information
237-
cluster(): Promise<any> {
236+
// Retrieve current Adabas cluster information
237+
cluster(): Promise<any> {
238238
return triggerCallCommand(this.status.Dbid, 14);
239239
}
240240
// Retrieve current Adabas TCP connections
@@ -274,10 +274,16 @@ export class AdabasAdmin {
274274
.post(config.Url() + "/adabas/database/"
275275
+ this.status.Dbid + ":feofplog", {}, getConfig)
276276
.catch((error: any) => {
277-
console.log("Error "+JSON.stringify(error));
277+
console.log("Error " + JSON.stringify(error));
278+
if (error.response) {
279+
if (error.response.status == 401 || error.response.status == 403) {
280+
userService.logout();
281+
location.reload();
282+
}
283+
}
278284
});
279285
}
280-
// Delete the given Adabas file number (all data is removed as well)!!
286+
// Delete the given Adabas file number (all data is removed as well)!!
281287
async deleteFile(file: number): Promise<any> {
282288
const getConfig = {
283289
headers: authHeader("application/json"),
@@ -452,7 +458,7 @@ export class AdabasAdmin {
452458
}
453459
}
454460
else {
455-
console.log("Unknown " + element);
461+
console.log("Unknown HWM parameter: " + element);
456462
}
457463
});
458464
return highwater;
@@ -465,7 +471,7 @@ export class AdabasAdmin {
465471
};
466472
try {
467473
return axios
468-
.delete(config.Url() + "/adabas/database/" + this.status.Dbid+"/hwm", getConfig);
474+
.delete(config.Url() + "/adabas/database/" + this.status.Dbid + "/hwm", getConfig);
469475
}
470476
catch (error: any) {
471477
if (error.response) {

src/adabas/file.ts

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ import { triggerCall } from "./admin";
2121
import { authHeader } from "../user/auth-header";
2222
import axios, { AxiosResponse } from "axios";
2323
import { config } from "../store/config";
24+
import { userService } from "../user/service";
2425

2526
export class FilePathBrowser {
2627
private current = "";
@@ -91,6 +92,12 @@ export class FilePathBrowser {
9192
console.log(
9293
error.response.statusText + ":" + JSON.stringify(error.response)
9394
);
95+
if (error.response) {
96+
if (error.response.status == 401 || error.response.status == 403) {
97+
userService.logout();
98+
location.reload();
99+
}
100+
}
94101
});
95102
}
96103
async deleteFile(fileName: string): Promise<any> {
@@ -110,6 +117,12 @@ export class FilePathBrowser {
110117
console.log(
111118
error.response.statusText + ":" + JSON.stringify(error.response)
112119
);
120+
if (error.response) {
121+
if (error.response.status == 401 || error.response.status == 403) {
122+
userService.logout();
123+
location.reload();
124+
}
125+
}
113126
});
114127
}
115128
}

src/components/BufferFlushData.vue

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,6 @@ export default defineComponent({
223223
if (!response) {
224224
return;
225225
}
226-
// console.log("RESPONSE: "+JSON.stringify(response));
227226
bufferflush.value = response.Statistics;
228227
data.value = [];
229228
response.Statistics.LStat.forEach((l)=>{

src/components/CommandstatsData.vue

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -248,14 +248,6 @@ export default defineComponent({
248248
</script>
249249

250250
<style>
251-
.commandstatsdata {
252-
font-family: Avenir, Helvetica, Arial, sans-serif;
253-
-webkit-font-smoothing: antialiased;
254-
-moz-osx-font-smoothing: grayscale;
255-
text-align: center;
256-
color: #2c3e50;
257-
margin-top: 60px;
258-
}
259251
h3 {
260252
margin: 40px 0 0;
261253
}

src/components/Configuration.vue

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -584,7 +584,6 @@ export default class Configuration extends Vue {
584584
del_installation(location: string): void {
585585
console.log('Delete installation : ' + location);
586586
this.$data.config.Module.Installation.forEach((element: any) => {
587-
console.log('Installation -> ' + JSON.stringify(element));
588587
if (element.Location === location) {
589588
console.log('Remove -> ' + location);
590589
element.Deleted = true;

src/components/MonitorData.vue

Lines changed: 15 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,18 @@
1+
<!--
2+
* Copyright (c) 2020 Software AG (http://www.softwareag.com/)
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* http://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.-->
15+
116
<template>
217
<div class="monitordata p-2">
318
<Sidebar :url="url" />
@@ -279,14 +294,6 @@ export default defineComponent({
279294
</script>
280295

281296
<style>
282-
.monitordata {
283-
font-family: Avenir, Helvetica, Arial, sans-serif;
284-
-webkit-font-smoothing: antialiased;
285-
-moz-osx-font-smoothing: grayscale;
286-
text-align: center;
287-
color: #2c3e50;
288-
margin-top: 60px;
289-
}
290297
h3 {
291298
margin: 40px 0 0;
292299
}

src/components/ParameterList.vue

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -291,7 +291,27 @@ export default class ParameterList extends Vue {
291291
getParameterInfo() {
292292
this.$data.db.parameterInfo().then((response: any) => {
293293
this.$data.parameters.forEach((element: any) => {
294-
let v = response.filter((f: any) => f.Acronym === element.Name);
294+
let name = element.Name;
295+
switch (element.Name) {
296+
case 'ADATCPATB':
297+
name = 'TCPATB';
298+
break;
299+
case 'ADATCPCONNECTIONS':
300+
name = 'TCPCONNECTIONS';
301+
break;
302+
case 'ADATCPPORT':
303+
name = 'PORTNUMBER';
304+
break;
305+
case 'ADATCPRECEIVER':
306+
name = 'TCPRECEIVER';
307+
break;
308+
case 'SSLPORT':
309+
name = 'SSLPORTNUMBER';
310+
break;
311+
default:
312+
break;
313+
}
314+
let v = response.filter((f: any) => f.Acronym === name);
295315
if (v.length > 0) {
296316
element.Description = v[0].Description;
297317
element.OnlineValue = v[0].OnlineValue;

0 commit comments

Comments
 (0)