@drax/audit-vue 3.1.0 → 3.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"publishConfig": {
|
|
4
4
|
"access": "public"
|
|
5
5
|
},
|
|
6
|
-
"version": "3.
|
|
6
|
+
"version": "3.3.0",
|
|
7
7
|
"type": "module",
|
|
8
8
|
"main": "./src/index.ts",
|
|
9
9
|
"module": "./src/index.ts",
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
"dependencies": {
|
|
27
27
|
"@drax/audit-front": "^3.0.0",
|
|
28
28
|
"@drax/crud-front": "^3.0.0",
|
|
29
|
-
"@drax/crud-share": "^3.
|
|
29
|
+
"@drax/crud-share": "^3.2.0"
|
|
30
30
|
},
|
|
31
31
|
"peerDependencies": {
|
|
32
32
|
"pinia": "^3.0.4",
|
|
@@ -51,5 +51,5 @@
|
|
|
51
51
|
"vue-tsc": "^3.2.4",
|
|
52
52
|
"vuetify": "^3.11.8"
|
|
53
53
|
},
|
|
54
|
-
"gitHead": "
|
|
54
|
+
"gitHead": "fc2385eda786017691d453699801a2f342e5c538"
|
|
55
55
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<script setup lang="ts">
|
|
2
2
|
import {DashboardView} from "@drax/dashboard-vue"
|
|
3
|
-
import {
|
|
3
|
+
import {createAuditDashboard} from "../dashboards/AuditDashboard"
|
|
4
4
|
import {ref} from "vue"
|
|
5
5
|
import { VDateInput } from 'vuetify/labs/VDateInput'
|
|
6
6
|
import type {IDashboardBase, IDashboardCard} from "@drax/dashboard-share";
|
|
@@ -14,7 +14,7 @@ const filters = ref([
|
|
|
14
14
|
]
|
|
15
15
|
)
|
|
16
16
|
|
|
17
|
-
const ad = ref<IDashboardBase>(
|
|
17
|
+
const ad = ref<IDashboardBase>(createAuditDashboard())
|
|
18
18
|
|
|
19
19
|
ad.value.cards?.forEach((card:IDashboardCard) => {
|
|
20
20
|
card.filters = filters.value
|
|
@@ -1,73 +1,78 @@
|
|
|
1
1
|
import type {IDashboardBase} from "@drax/dashboard-share";
|
|
2
2
|
import AuditCrud from "../cruds/AuditCrud";
|
|
3
3
|
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
4
|
+
|
|
5
|
+
function createAuditDashboard(): IDashboardBase {
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
return {
|
|
9
|
+
identifier: "audit",
|
|
10
|
+
title: "Audit Dashboard",
|
|
11
|
+
cards: [
|
|
12
|
+
{
|
|
13
|
+
entity: 'Audit',
|
|
14
|
+
type: "groupBy",
|
|
15
|
+
entityInstance: AuditCrud.instance,
|
|
16
|
+
title: "User Entity Action",
|
|
17
|
+
filters: [],
|
|
18
|
+
layout: {
|
|
19
|
+
cols: 12, sm: 12, md: 12, lg: 12, cardVariant: "outlined", height: 400
|
|
20
|
+
},
|
|
21
|
+
groupBy: {
|
|
22
|
+
fields: ["user", "entity", "action"],
|
|
23
|
+
dateFormat: "day",
|
|
24
|
+
render: "table"
|
|
25
|
+
}
|
|
16
26
|
},
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
27
|
+
{
|
|
28
|
+
entity: 'Audit',
|
|
29
|
+
type: "groupBy",
|
|
30
|
+
entityInstance: AuditCrud.instance,
|
|
31
|
+
title: "User Audits",
|
|
32
|
+
filters: [],
|
|
33
|
+
layout: {
|
|
34
|
+
cols: 12, sm: 12, md: 4, lg: 4, cardVariant: "outlined", height: 400
|
|
35
|
+
},
|
|
36
|
+
groupBy: {
|
|
37
|
+
fields: ["user"],
|
|
38
|
+
dateFormat: "day",
|
|
39
|
+
render: "pie"
|
|
40
|
+
}
|
|
31
41
|
},
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
42
|
+
{
|
|
43
|
+
entity: 'Audit',
|
|
44
|
+
type: "groupBy",
|
|
45
|
+
entityInstance: AuditCrud.instance,
|
|
46
|
+
title: "Entity Audits",
|
|
47
|
+
filters: [],
|
|
48
|
+
layout: {
|
|
49
|
+
cols: 12, sm: 12, md: 4, lg: 4, cardVariant: "outlined", height: 400
|
|
50
|
+
},
|
|
51
|
+
groupBy: {
|
|
52
|
+
fields: ["entity"],
|
|
53
|
+
dateFormat: "day",
|
|
54
|
+
render: "pie"
|
|
55
|
+
}
|
|
46
56
|
},
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
57
|
+
{
|
|
58
|
+
entity: 'Audit',
|
|
59
|
+
type: "groupBy",
|
|
60
|
+
entityInstance: AuditCrud.instance,
|
|
61
|
+
title: "Action Audits",
|
|
62
|
+
filters: [],
|
|
63
|
+
layout: {
|
|
64
|
+
cols: 12, sm: 12, md: 4, lg: 4, cardVariant: "outlined", height: 400
|
|
65
|
+
},
|
|
66
|
+
groupBy: {
|
|
67
|
+
fields: ["action"],
|
|
68
|
+
dateFormat: "day",
|
|
69
|
+
render: "pie"
|
|
70
|
+
}
|
|
61
71
|
},
|
|
62
|
-
groupBy: {
|
|
63
|
-
fields: ["action"],
|
|
64
|
-
dateFormat: "day",
|
|
65
|
-
render: "pie"
|
|
66
|
-
}
|
|
67
|
-
},
|
|
68
72
|
|
|
69
|
-
|
|
73
|
+
]
|
|
74
|
+
}
|
|
70
75
|
}
|
|
71
76
|
|
|
72
|
-
export {
|
|
73
|
-
export default
|
|
77
|
+
export {createAuditDashboard}
|
|
78
|
+
export default createAuditDashboard;
|