Skip to content

Commit 6e80653

Browse files
committed
Remove warnings
1 parent 0723eba commit 6e80653

33 files changed

+89
-156
lines changed

src/adabas/jobs.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ export class JobAdmin {
2727
private status: any;
2828
constructor(dbInput: any) {
2929
this.status = dbInput;
30+
console.log("JOBS struct: "+JSON.stringify(dbInput));
3031
}
3132
start() {
3233
console.log("Starting ...");

src/components/ActivityDisplay.vue

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -129,11 +129,7 @@
129129

130130
<script lang="ts">
131131
import { Component, Prop, Vue } from "vue-property-decorator";
132-
import { authHeader } from "../user/auth-header";
133-
import { config } from "../store/config";
134-
import { userService } from "../user/service";
135132
import Sidebar from "./Sidebar.vue";
136-
import { AdabasAdmin } from "../adabas/admin";
137133
import store from "../store/index";
138134
import StatusBar from "./StatusBar.vue";
139135
import Url from "./Url.vue";
@@ -162,12 +158,12 @@ export default class ActivityDisplay extends Vue {
162158
this.$data.activity = response;
163159
});
164160
}
165-
searchArray(s: any[]) {
161+
searchArray(s: any[]): any {
166162
return this.$data.activity.filter((row: any) => {
167163
return s.indexOf(row.Name) > -1;
168164
});
169165
}
170-
search(s: string) {
166+
search(s: string): any {
171167
return this.$data.activity.filter((row: any) => {
172168
return row.Name.startsWith(s);
173169
});

src/components/BarChart.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ import { Component } from 'vue-property-decorator';
2626
mixins: [mixins.reactiveProp]
2727
})
2828
export default class CommitChart extends Bar {
29-
mounted () {
29+
mounted (): void {
3030
// Overwriting base render method with actual data.
3131
this.renderChart({
3232
labels: ['CL','BT','ET'],

src/components/BufferPoolData.vue

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -181,9 +181,6 @@
181181

182182
<script lang="ts">
183183
import { Component, Prop, Vue } from "vue-property-decorator";
184-
import { authHeader } from "../user/auth-header";
185-
import { config } from "../store/config";
186-
import { userService } from "../user/service";
187184
import Sidebar from "./Sidebar.vue";
188185
import store from "../store/index";
189186
import StatusBar from "./StatusBar.vue";
@@ -213,7 +210,7 @@ export default class BufferPoolData extends Vue {
213210
this.$data.bufferPoolSize = this.searchValue("Size");
214211
});
215212
}
216-
searchValue(s: string) {
213+
searchValue(s: string): number {
217214
let v = this.$data.bufferpool.filter((row: any) => {
218215
return row.Name === s;
219216
});
@@ -222,7 +219,7 @@ export default class BufferPoolData extends Vue {
222219
}
223220
return 0;
224221
}
225-
search(s: string) {
222+
search(s: string): any {
226223
return this.$data.bufferpool.filter((row: any) => {
227224
return row.Name.startsWith(s);
228225
});

src/components/CheckpointList.vue

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -118,9 +118,6 @@
118118

119119
<script lang="ts">
120120
import { Component, Prop, Vue } from "vue-property-decorator";
121-
import { authHeader } from "../user/auth-header";
122-
import { config } from "../store/config";
123-
import { userService } from "../user/service";
124121
import Sidebar from "./Sidebar.vue";
125122
import store from "../store/index";
126123
import StatusBar from "./StatusBar.vue";
@@ -168,15 +165,15 @@ export default class CheckpointList extends Vue {
168165
this.$data.fromTime = this.convertTime(currentdate);
169166
this.updateCheckpoints();
170167
}
171-
updateCheckpoints() {
168+
updateCheckpoints(): void {
172169
let to = this.$data.to + "+" + this.$data.toTime;
173170
let from = this.$data.from + "+" + this.$data.fromTime;
174171
const db = store.getters.search(this.url);
175172
db.checkpoints(from, to).then((response: any) => {
176173
this.$data.checkpoints = response;
177174
});
178175
}
179-
convertDate(currentdate: Date) {
176+
convertDate(currentdate: Date): string {
180177
return (
181178
new String(currentdate.getFullYear()).padStart(4, "0") +
182179
"-" +
@@ -185,7 +182,7 @@ export default class CheckpointList extends Vue {
185182
new String(currentdate.getDate()).padStart(2, "0")
186183
);
187184
}
188-
convertTime(currentdate: Date) {
185+
convertTime(currentdate: Date): string {
189186
return (
190187
new String(currentdate.getHours()).padStart(2, "0") +
191188
":" +
@@ -194,7 +191,7 @@ export default class CheckpointList extends Vue {
194191
new String(currentdate.getSeconds()).padStart(2, "0")
195192
);
196193
}
197-
onContext(ctx: any) {
194+
onContext(ctx: any): void {
198195
this.updateCheckpoints();
199196
}
200197
}

src/components/CommandqueueList.vue

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,9 +59,6 @@
5959

6060
<script lang="ts">
6161
import { Component, Prop, Vue } from "vue-property-decorator";
62-
import { authHeader } from "../user/auth-header";
63-
import { config } from "../store/config";
64-
import { userService } from "../user/service";
6562
import Sidebar from "./Sidebar.vue";
6663
import StatusBar from "./StatusBar.vue";
6764
import store from "../store/index";

src/components/CommandstatsData.vue

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -84,9 +84,6 @@
8484

8585
<script lang="ts">
8686
import { Component, Prop, Vue } from "vue-property-decorator";
87-
import { authHeader } from "../user/auth-header";
88-
import { config } from "../store/config";
89-
import { userService } from "../user/service";
9087
import Sidebar from "./Sidebar.vue";
9188
import store from "../store/index";
9289
import BarChart from "./BarChart";

src/components/ContainerList.vue

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -62,9 +62,6 @@
6262

6363
<script lang="ts">
6464
import { Component, Prop, Vue } from "vue-property-decorator";
65-
import { authHeader } from "../user/auth-header";
66-
import { config } from "../store/config";
67-
import { userService } from "../user/service";
6865
import Sidebar from "./Sidebar.vue";
6966
import store from "../store/index";
7067
import StatusBar from "./StatusBar.vue";
@@ -96,7 +93,6 @@ export default class DatabaseList extends Vue {
9693
};
9794
}
9895
created() {
99-
console.log("Container list ..." + this.url);
10096
const db = store.getters.search(this.url);
10197
db.containerList().then((response: any) => {
10298
this.$data.containers = response;

src/components/CreateDatabase.vue

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -336,14 +336,13 @@ export default class CreateDatabase extends Vue {
336336
this.$data.createJob.Job.Name = "CreateJob-" + new Date().getTime();
337337
}
338338
handleOk(bvModalEvt: any) {
339-
console.log("Handle OK");
340339
if (this.$data.useJob) {
341340
this.createDatabaseJob();
342341
} else {
343342
this.createDatabaseAPI();
344343
}
345344
}
346-
createDatabaseAPI() {
345+
createDatabaseAPI(): void {
347346
const getConfig = {
348347
headers: authHeader("application/json"),
349348
};
@@ -362,10 +361,10 @@ export default class CreateDatabase extends Vue {
362361
);
363362
});
364363
}
365-
changeUseJob() {
364+
changeUseJob(): void {
366365
console.log("Change use job "+this.$data.useJob);
367366
}
368-
createDatabaseJob() {
367+
createDatabaseJob(): void {
369368
this.$data.createJob.Job.Parameters = [];
370369
this.$data.createJob.Job.Parameters.push({
371370
Parameter: "dbid=" + this.$data.createDatabase.Dbid,
@@ -430,7 +429,7 @@ export default class CreateDatabase extends Vue {
430429
// });
431430
insertJob(this.$data.createJob);
432431
}
433-
replaceValue(str: string) {
432+
replaceValue(str: string): string {
434433
const regex = /\$\{([^$]*)\}/gm;
435434
let m;
436435
let newstr = str;

src/components/CreateFile.vue

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -178,8 +178,7 @@ export default class CreateFile extends Vue {
178178
this.$data.fdtFields.push(fdtField);
179179
});
180180
}
181-
handleFileUpload() {
182-
console.log("FILE: " + this.$data.file.name + " " + this.$data.file.value);
181+
handleFileUpload(): void {
183182
if (!this.$data.file) {
184183
return;
185184
}
@@ -219,8 +218,7 @@ export default class CreateFile extends Vue {
219218
};
220219
reader.readAsText(this.$data.file);
221220
}
222-
handleOk(bvModalEvt: any) {
223-
console.log("Handle OK");
221+
handleOk(bvModalEvt: any): void {
224222
const getConfig = {
225223
headers: authHeader("application/json"),
226224
};

0 commit comments

Comments
 (0)