Skip to content

Commit ff13e2e

Browse files
committed
Add nucleus log select
1 parent c006d01 commit ff13e2e

File tree

6 files changed

+137
-65
lines changed

6 files changed

+137
-65
lines changed

package-lock.json

Lines changed: 91 additions & 40 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
"bootstrap-vue": "^2.21.2",
1717
"chart.js": "^3.6.1",
1818
"follow-redirects": "^1.14.8",
19-
"glob-parent": "^5.1.2",
19+
"glob-parent": "^6.0.2",
2020
"jquery": "^3.6.0",
2121
"mutationobserver-shim": "^0.3.7",
2222
"nanoid": "^3.1.31",
@@ -25,9 +25,10 @@
2525
"nth-check": "^2.0.1",
2626
"popper.js": "^1.16.1",
2727
"portal-vue": "^2.1.7",
28-
"postcss": "^8.2.13",
28+
"postcss": "^8.4.6",
2929
"register-service-worker": "^1.7.2",
3030
"set-value": "^4.1.0",
31+
"tslib": "^2.3.1",
3132
"vue": "^2.6.14",
3233
"vue-chart-3": "^2.0.1",
3334
"vue-class-component": "^7.2.6",

src/adabas/admin.ts

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ const AdminCommands = [
5252
{ command: "permission", path: ["RBAC"] },
5353
{ command: "permission?list=userrole", path: ["RBAC"] },
5454
{ command: "permission/", path: ["RBAC"] },
55+
{ command: "nuclog/?list=true", path: ["NucleusLogs"] },
5556
]
5657

5758

@@ -77,15 +78,19 @@ export class AdabasAdmin {
7778
return this.status.Name;
7879
}
7980
// Provide text file of Nucleus Log
80-
async nucleusLog(): Promise<any> {
81+
nucleusLogList(): Promise<any> {
82+
return triggerCallCommand(this.status.Dbid, 20);
83+
}
84+
// Provide text file of Nucleus Log
85+
async nucleusLog(s:string): Promise<any> {
8186
const getConfig = {
8287
headers: authHeader("application/json"),
8388
useCredentails: true,
8489
};
85-
store.commit('SET_URL', { url: config.Url() + "/adabas/database/" + this.status.Dbid + "/nuclog", method: "get" });
90+
store.commit('SET_URL', { url: config.Url() + "/adabas/database/" + this.status.Dbid + "/nuclog?name="+s, method: "get" });
8691
try {
8792
const response = await axios
88-
.get(config.Url() + "/adabas/database/" + this.status.Dbid + "/nuclog", getConfig);
93+
.get(config.Url() + "/adabas/database/" + this.status.Dbid + "/nuclog?name="+s, getConfig);
8994
return response.data.Log.Log;
9095
}
9196
catch (error: any) {

src/components/Configuration.vue

Lines changed: 10 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -175,10 +175,7 @@
175175
<label> The configuration are applied when the action is set. </label>
176176
<b-tabs content-class="mt-3">
177177
<b-tab title="Server services" active>
178-
<b-card
179-
header="Server configuration"
180-
header-class="info-header"
181-
>
178+
<b-card header="Server configuration" header-class="info-header">
182179
<b-card-body>
183180
<b-container fluid>
184181
<b-row class="my-1">
@@ -221,10 +218,7 @@
221218
:fields="serviceFields" /></b-col></b-row
222219
></b-container> </b-card-body
223220
></b-card>
224-
<b-card
225-
header-class="info-header"
226-
header="Job Store"
227-
size="sm"
221+
<b-card header-class="info-header" header="Job Store" size="sm"
228222
><b-card-body>
229223
<b-container>
230224
<b-row>
@@ -316,9 +310,7 @@
316310
></b-container>
317311
</b-tab>
318312
<b-tab title="Data access">
319-
<b-card
320-
header-class="info-header"
321-
header="Map repositories"
313+
<b-card header-class="info-header" header="Map repositories"
322314
><b-card-body>
323315
<b-button
324316
v-b-toggle.mapFile-collapse
@@ -345,9 +337,7 @@
345337
</div> </template
346338
></b-table> </b-card-body
347339
></b-card>
348-
<b-card
349-
header="Classic database access"
350-
header-class="info-header"
340+
<b-card header="Classic database access" header-class="info-header"
351341
><b-card-body>
352342
<b-container fluid>
353343
<b-row
@@ -451,7 +441,12 @@
451441
<b-form-input v-model="row.item.readPermission" />
452442
</template>
453443
<template v-slot:cell(writePermission)="row">
454-
<b-form-select v-model="selected" :options="options" size="sm" class="mt-3"></b-form-select>
444+
<b-form-select
445+
v-model="selected"
446+
:options="options"
447+
size="sm"
448+
class="mt-3"
449+
></b-form-select>
455450
</template>
456451
<template v-slot:cell(delete)="row">
457452
<div class="mx-auto text-center">

0 commit comments

Comments
 (0)