@dracul/audit-frontend 1.35.11 → 1.39.2
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 +3 -3
- package/src/pages/AuditPage/index.vue +1 -1
- package/src/pages/TestingPage/index.vue +32 -32
- package/src/providers/AuditProvider.js +2 -2
- package/src/providers/gql/Audit/createAudit.graphql +4 -2
- package/src/providers/gql/Audit/fetchAudit.graphql +1 -0
- package/src/providers/gql/Audit/findAudit.graphql +1 -0
- package/src/providers/gql/Audit/paginateAudit.graphql +1 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dracul/audit-frontend",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.39.2",
|
|
4
4
|
"description": "Audit frontend",
|
|
5
5
|
"author": "Cristian Incarnato <cristian.cdi@gmail.com>",
|
|
6
6
|
"publishConfig": {
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
},
|
|
13
13
|
"main": "./src/index.js",
|
|
14
14
|
"dependencies": {
|
|
15
|
-
"@dracul/common-frontend": "^1.
|
|
15
|
+
"@dracul/common-frontend": "^1.39.2",
|
|
16
16
|
"@dracul/dayjs-frontend": "^1.34.0"
|
|
17
17
|
},
|
|
18
18
|
"devDependencies": {
|
|
@@ -38,5 +38,5 @@
|
|
|
38
38
|
"type": "git",
|
|
39
39
|
"url": "git+https://github.com/draculjs/modular-framework.git"
|
|
40
40
|
},
|
|
41
|
-
"gitHead": "
|
|
41
|
+
"gitHead": "c595bab9d319e17421b2d1c9769c24cc59ab5173"
|
|
42
42
|
}
|
|
@@ -22,43 +22,43 @@ export default {
|
|
|
22
22
|
methods: {
|
|
23
23
|
createNewAudit() {
|
|
24
24
|
AuditProvider.createAudit('CREATE', 'Servicio', 'kdsf8rg9c48v', [], {
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
})
|
|
25
|
+
"id": "7a6irev0so3iuiobiw1fpf08z",
|
|
26
|
+
"name": "nuevoservicioTesting",
|
|
27
|
+
"stack": "testing",
|
|
28
|
+
"image": {
|
|
29
|
+
"id": "",
|
|
30
|
+
"fullname": "sndregistry.sondeosglobal.com/docs/snd-docs:latest",
|
|
31
|
+
"domain": "sndregistry.sondeosglobal.com",
|
|
32
|
+
"namespace": "docs",
|
|
33
|
+
"name": "snd-docs",
|
|
34
|
+
"tag": "latest",
|
|
35
|
+
"nameWithTag": "snd-docs:latest"
|
|
36
|
+
},
|
|
37
|
+
"createdAt": "2024-12-09T14:38:53.389502821Z",
|
|
38
|
+
"updatedAt": "2024-12-17T11:31:41.591560506Z",
|
|
39
|
+
"labels": [
|
|
40
|
+
{
|
|
41
|
+
"name": "com.docker.stack.namespace",
|
|
42
|
+
"value": "testing"
|
|
43
|
+
}
|
|
44
|
+
],
|
|
45
|
+
"envs": [
|
|
46
|
+
{
|
|
47
|
+
"name": "CONTROL_VERSION",
|
|
48
|
+
"value": "41873"
|
|
49
|
+
}
|
|
50
|
+
],
|
|
51
|
+
"limits": {},
|
|
52
|
+
"mode": "replic",
|
|
53
|
+
"extraHosts": [],
|
|
54
|
+
"dns": []
|
|
55
|
+
}, 'FORTES')
|
|
56
56
|
},
|
|
57
57
|
updateAudit() {
|
|
58
58
|
AuditProvider.createAudit('UPDATE', 'Servicio', 'kdsf8rg9c48v', [
|
|
59
59
|
{ field: 'name', oldValue: 'debops', newValue: 'devops' },
|
|
60
60
|
{ field: 'image', oldValue: 'sndregistry.sondeosglobal.com/docs/snd-docs', newValue: 'sndregistry.sondeosglobal.com/dockerway/docker-devops:2.13.0' },
|
|
61
|
-
{ field: 'stack', oldValue: 'docker', newValue: 'dockerway'}
|
|
61
|
+
{ field: 'stack', oldValue: 'docker', newValue: 'dockerway' }
|
|
62
62
|
])
|
|
63
63
|
},
|
|
64
64
|
deleteAudit() {
|
|
@@ -41,10 +41,10 @@ class AuditProvider {
|
|
|
41
41
|
})
|
|
42
42
|
}
|
|
43
43
|
|
|
44
|
-
createAudit(action, entity, details, changes, resourceData){
|
|
44
|
+
createAudit(action, entity, details, changes, resourceData, resourceName){
|
|
45
45
|
return this.getGraphqlClient().mutate({
|
|
46
46
|
mutation: require('./gql/Audit/createAudit.graphql'),
|
|
47
|
-
variables: {action, entity, details, changes, resourceData},
|
|
47
|
+
variables: {action, entity, details, changes, resourceData, resourceName},
|
|
48
48
|
fetchPolicy: "no-cache"
|
|
49
49
|
})
|
|
50
50
|
}
|
|
@@ -3,9 +3,10 @@ mutation createAudit(
|
|
|
3
3
|
$entity: String!,
|
|
4
4
|
$details: String,
|
|
5
5
|
$changes: [ChangesInput],
|
|
6
|
-
$resourceData: JSON
|
|
6
|
+
$resourceData: JSON,
|
|
7
|
+
$resourceName: String,
|
|
7
8
|
) {
|
|
8
|
-
createAudit(action: $action, entity: $entity, details: $details, changes: $changes, resourceData: $resourceData) {
|
|
9
|
+
createAudit(action: $action, entity: $entity, details: $details, changes: $changes, resourceData: $resourceData, resourceName: $resourceName) {
|
|
9
10
|
id
|
|
10
11
|
user {
|
|
11
12
|
username
|
|
@@ -19,5 +20,6 @@ mutation createAudit(
|
|
|
19
20
|
newValue
|
|
20
21
|
}
|
|
21
22
|
resourceData
|
|
23
|
+
resourceName
|
|
22
24
|
}
|
|
23
25
|
}
|