lesli_audit 1.0.2 → 1.1.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.
- checksums.yaml +4 -4
- data/app/controllers/lesli_audit/users_controller.rb +1 -2
- data/app/controllers/lesli_audit/visitors_controller.rb +14 -0
- data/app/interfaces/lesli_audit/logger_interface.rb +22 -29
- data/app/services/lesli_audit/user_service.rb +105 -12
- data/app/services/lesli_audit/{analytic_service.rb → visitor_service.rb} +121 -24
- data/app/views/lesli_audit/partials/_navigation.html.erb +1 -1
- data/app/views/lesli_audit/requests/index.html.erb +1 -1
- data/app/views/lesli_audit/users/index.html.erb +36 -4
- data/app/views/lesli_audit/visitors/index.html.erb +118 -0
- data/config/routes.rb +1 -1
- data/db/migrate/v1.0/0501110210_create_lesli_audit_account_devices.rb +2 -1
- data/db/seed/devices.rb +23 -15
- data/db/seed/users.rb +117 -0
- data/db/seeds.rb +2 -2
- data/lib/lesli_audit/version.rb +2 -2
- metadata +10 -50
- data/app/assets/config/lesli_audit_manifest.js +0 -37
- data/app/controllers/lesli_audit/analytics_controller.rb +0 -23
- data/app/controllers/lesli_audit/user_journals_controller.rb +0 -60
- data/app/helpers/lesli_audit/analytics_helper.rb +0 -4
- data/app/views/lesli_audit/analytics/index.html.erb +0 -44
- data/app/views/lesli_audit/user_journals/_form.html.erb +0 -17
- data/app/views/lesli_audit/user_journals/_user_journal.html.erb +0 -2
- data/app/views/lesli_audit/user_journals/edit.html.erb +0 -12
- data/app/views/lesli_audit/user_journals/index.html.erb +0 -16
- data/app/views/lesli_audit/user_journals/new.html.erb +0 -11
- data/app/views/lesli_audit/user_journals/show.html.erb +0 -10
- data/app/views/lesli_audit/users/show.html.erb +0 -10
- data/lib/scss/application.scss +0 -31
- data/lib/vue/application.js +0 -146
- data/lib/vue/apps/accounts/activities.vue +0 -48
- data/lib/vue/apps/analytics/index.vue +0 -56
- data/lib/vue/apps/analytics/trends.vue +0 -148
- data/lib/vue/apps/dashboards/components/roles.vue +0 -71
- data/lib/vue/apps/dashboards/components/users.vue +0 -71
- data/lib/vue/apps/dashboards/show.vue +0 -8
- data/lib/vue/apps/requests/index.vue +0 -125
- data/lib/vue/apps/security/passwords.vue +0 -52
- data/lib/vue/apps/security/sessions.vue +0 -63
- data/lib/vue/apps/users/activities.vue +0 -49
- data/lib/vue/apps/users/index.vue +0 -89
- data/lib/vue/apps/users/logs.vue +0 -49
- data/lib/vue/apps/users/registrations.vue +0 -73
- data/lib/vue/apps/users/roles.vue +0 -70
- data/lib/vue/apps/users/workingHours.vue +0 -52
- data/lib/vue/components/requests.vue +0 -63
- data/lib/vue/components/visitors.vue +0 -76
- data/lib/vue/stores/accounts/activities.js +0 -87
- data/lib/vue/stores/analytics.js +0 -127
- data/lib/vue/stores/request.js +0 -70
- data/lib/vue/stores/security/password.js +0 -75
- data/lib/vue/stores/security/session.js +0 -78
- data/lib/vue/stores/translations.json +0 -162
- data/lib/vue/stores/users/activities.js +0 -76
- data/lib/vue/stores/users/logs.js +0 -74
- data/lib/vue/stores/users/registrations.js +0 -61
- data/lib/vue/stores/users/roles.js +0 -52
- data/lib/vue/stores/users/working_hours.js +0 -92
- data/lib/vue/stores/users.js +0 -56
|
@@ -1,87 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
Copyright (c) 2022, all rights reserved.
|
|
3
|
-
|
|
4
|
-
All the information provided by this platform is protected by international laws related to
|
|
5
|
-
industrial property, intellectual property, copyright and relative international laws.
|
|
6
|
-
All intellectual or industrial property rights of the code, texts, trade mark, design,
|
|
7
|
-
pictures and any other information belongs to the owner of this platform.
|
|
8
|
-
|
|
9
|
-
Without the written permission of the owner, any replication, modification,
|
|
10
|
-
transmission, publication is strictly forbidden.
|
|
11
|
-
|
|
12
|
-
For more information read the license file including with this software.
|
|
13
|
-
|
|
14
|
-
// · ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~
|
|
15
|
-
// ·
|
|
16
|
-
*/
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
// ·
|
|
20
|
-
import { defineStore } from "pinia"
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
// ·
|
|
24
|
-
export const useAccountsActivities = defineStore("accountsActivities", {
|
|
25
|
-
state: () => {
|
|
26
|
-
return {
|
|
27
|
-
loading: false,
|
|
28
|
-
pagination: {},
|
|
29
|
-
records: [],
|
|
30
|
-
columns: [{
|
|
31
|
-
field: "id",
|
|
32
|
-
label: "ID"
|
|
33
|
-
}, {
|
|
34
|
-
field: "title",
|
|
35
|
-
label: "Title"
|
|
36
|
-
}, {
|
|
37
|
-
field: "description",
|
|
38
|
-
label: "Description"
|
|
39
|
-
}, {
|
|
40
|
-
field: "system_process",
|
|
41
|
-
label: "Process"
|
|
42
|
-
}, {
|
|
43
|
-
field: "system_module",
|
|
44
|
-
label: "Module"
|
|
45
|
-
}, {
|
|
46
|
-
field: "created_at_date",
|
|
47
|
-
label: "Date"
|
|
48
|
-
},{
|
|
49
|
-
field: "send_to",
|
|
50
|
-
label: "Send to"
|
|
51
|
-
}]
|
|
52
|
-
}
|
|
53
|
-
},
|
|
54
|
-
actions: {
|
|
55
|
-
|
|
56
|
-
fetchIfEmpty() {
|
|
57
|
-
if (this.records.length <= 0) {
|
|
58
|
-
this.fetch()
|
|
59
|
-
}
|
|
60
|
-
},
|
|
61
|
-
|
|
62
|
-
search(string) {
|
|
63
|
-
this.http.get(this.url.audit("accounts/activities").search(string)).then(result => {
|
|
64
|
-
this.records = result.records
|
|
65
|
-
this.pagination = result.pagination
|
|
66
|
-
}).catch(error => {
|
|
67
|
-
this.msg.danger("Error while trying to fetch data")
|
|
68
|
-
}).finally(() => {
|
|
69
|
-
this.loading = false
|
|
70
|
-
})
|
|
71
|
-
},
|
|
72
|
-
|
|
73
|
-
fetch() {
|
|
74
|
-
this.$reset()
|
|
75
|
-
this.loading = true
|
|
76
|
-
this.http.get(this.url.audit("accounts/activities")).then(result => {
|
|
77
|
-
this.records = result.records
|
|
78
|
-
this.pagination = result.pagination
|
|
79
|
-
}).catch(error => {
|
|
80
|
-
|
|
81
|
-
}).finally(() => {
|
|
82
|
-
this.loading = false
|
|
83
|
-
})
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
}
|
|
87
|
-
})
|
data/lib/vue/stores/analytics.js
DELETED
|
@@ -1,127 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
|
|
3
|
-
Lesli
|
|
4
|
-
|
|
5
|
-
Copyright (c) 2023, Lesli Technologies, S. A.
|
|
6
|
-
|
|
7
|
-
This program is free software: you can redistribute it and/or modify
|
|
8
|
-
it under the terms of the GNU General Public License as published by
|
|
9
|
-
the Free Software Foundation, either version 3 of the License, or
|
|
10
|
-
(at your option) any later version.
|
|
11
|
-
|
|
12
|
-
This program is distributed in the hope that it will be useful,
|
|
13
|
-
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
14
|
-
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
15
|
-
GNU General Public License for more details.
|
|
16
|
-
|
|
17
|
-
You should have received a copy of the GNU General Public License
|
|
18
|
-
along with this program. If not, see http://www.gnu.org/licenses/.
|
|
19
|
-
|
|
20
|
-
Lesli · Ruby on Rails SaaS Development Framework.
|
|
21
|
-
|
|
22
|
-
Made with ♥ by LesliTech
|
|
23
|
-
Building a better future, one line of code at a time.
|
|
24
|
-
|
|
25
|
-
@contact hello@lesli.tech
|
|
26
|
-
@website https://www.lesli.tech
|
|
27
|
-
@license GPLv3 http://www.gnu.org/licenses/gpl-3.0.en.html
|
|
28
|
-
|
|
29
|
-
// · ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~
|
|
30
|
-
// ·
|
|
31
|
-
*/
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
// ·
|
|
35
|
-
import { defineStore } from "pinia"
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
// ·
|
|
39
|
-
export const useAnalytics = defineStore("analytics", {
|
|
40
|
-
state: () => {
|
|
41
|
-
return {
|
|
42
|
-
users: {
|
|
43
|
-
loading: false,
|
|
44
|
-
pagination: {},
|
|
45
|
-
records: [],
|
|
46
|
-
columns: [{
|
|
47
|
-
field: 'email',
|
|
48
|
-
label: 'User'
|
|
49
|
-
}, {
|
|
50
|
-
field: 'resources',
|
|
51
|
-
label: 'Resources'
|
|
52
|
-
}, {
|
|
53
|
-
field: 'requests',
|
|
54
|
-
label: 'Requests'
|
|
55
|
-
}]
|
|
56
|
-
},
|
|
57
|
-
visitors: {
|
|
58
|
-
loading: false,
|
|
59
|
-
pagination: {},
|
|
60
|
-
records: []
|
|
61
|
-
},
|
|
62
|
-
controllers: {
|
|
63
|
-
loading: false,
|
|
64
|
-
pagination: {},
|
|
65
|
-
records: [],
|
|
66
|
-
columns: [{
|
|
67
|
-
field: 'request_controller',
|
|
68
|
-
label: 'Controller'
|
|
69
|
-
}, {
|
|
70
|
-
field: 'requests',
|
|
71
|
-
label: 'Requests'
|
|
72
|
-
}]
|
|
73
|
-
},
|
|
74
|
-
trends: {
|
|
75
|
-
loading: false,
|
|
76
|
-
recordsDays: [],
|
|
77
|
-
recordsHours: []
|
|
78
|
-
}
|
|
79
|
-
}
|
|
80
|
-
},
|
|
81
|
-
actions: {
|
|
82
|
-
|
|
83
|
-
fetchVisits() {
|
|
84
|
-
this.visitors.loading = true
|
|
85
|
-
this.http.get(this.url.audit("analytics/visitors")).then(result => {
|
|
86
|
-
this.visitors.records = result.map(record => {
|
|
87
|
-
record.date = this.date(record.date).date()
|
|
88
|
-
return record
|
|
89
|
-
}).reverse()
|
|
90
|
-
}).finally(() => {
|
|
91
|
-
this.visitors.loading = false
|
|
92
|
-
})
|
|
93
|
-
},
|
|
94
|
-
|
|
95
|
-
fetchUsers() {
|
|
96
|
-
this.users.loading = true
|
|
97
|
-
this.http.get(this.url.audit("analytics/users")).then(result => {
|
|
98
|
-
this.users.records = result
|
|
99
|
-
}).finally(() => {
|
|
100
|
-
this.users.loading = false
|
|
101
|
-
})
|
|
102
|
-
},
|
|
103
|
-
|
|
104
|
-
fetchControllers() {
|
|
105
|
-
this.controllers.loading = true
|
|
106
|
-
this.http.get(this.url.audit("analytics/controllers")).then(result => {
|
|
107
|
-
this.controllers.records = result
|
|
108
|
-
}).finally(() => {
|
|
109
|
-
this.controllers.loading = false
|
|
110
|
-
})
|
|
111
|
-
},
|
|
112
|
-
|
|
113
|
-
time(period,initalDate, endDate){
|
|
114
|
-
this.http.get(this.url.audit("analytics/trends")
|
|
115
|
-
.filter({ groupBy: [period], startDate: [initalDate], finalDate: [endDate] }))
|
|
116
|
-
.then(result => {
|
|
117
|
-
if (period ==='day'){
|
|
118
|
-
this.trends.recordsDays = result
|
|
119
|
-
} else if (period ==='hour'){
|
|
120
|
-
this.trends.recordsHours = result
|
|
121
|
-
}
|
|
122
|
-
}).finally(() => {
|
|
123
|
-
this.loading = false
|
|
124
|
-
})
|
|
125
|
-
}
|
|
126
|
-
}
|
|
127
|
-
})
|
data/lib/vue/stores/request.js
DELETED
|
@@ -1,70 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
Copyright (c) 2022, all rights reserved.
|
|
3
|
-
|
|
4
|
-
All the information provided by this platform is protected by international laws related to
|
|
5
|
-
industrial property, intellectual property, copyright and relative international laws.
|
|
6
|
-
All intellectual or industrial property rights of the code, texts, trade mark, design,
|
|
7
|
-
pictures and any other information belongs to the owner of this platform.
|
|
8
|
-
|
|
9
|
-
Without the written permission of the owner, any replication, modification,
|
|
10
|
-
transmission, publication is strictly forbidden.
|
|
11
|
-
|
|
12
|
-
For more information read the license file including with this software.
|
|
13
|
-
|
|
14
|
-
// · ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~
|
|
15
|
-
// ·
|
|
16
|
-
*/
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
// ·
|
|
20
|
-
import { defineStore } from "pinia"
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
// ·
|
|
24
|
-
export const useRequests = defineStore("Requests", {
|
|
25
|
-
state: () => {
|
|
26
|
-
return {
|
|
27
|
-
date: "",
|
|
28
|
-
loading: false,
|
|
29
|
-
pagination: {},
|
|
30
|
-
records: []
|
|
31
|
-
}
|
|
32
|
-
},
|
|
33
|
-
actions: {
|
|
34
|
-
|
|
35
|
-
search(string) {
|
|
36
|
-
console.log(string)
|
|
37
|
-
this.fetchLogs(this.url.audit("requests").search(string), false)
|
|
38
|
-
},
|
|
39
|
-
|
|
40
|
-
sort(column, direction) {
|
|
41
|
-
this.fetchLogs(this.url.audit("requests").order(column, direction), false)
|
|
42
|
-
},
|
|
43
|
-
|
|
44
|
-
paginate(page) {
|
|
45
|
-
this.fetchLogs(this.url.audit("requests").paginate(page), false)
|
|
46
|
-
},
|
|
47
|
-
|
|
48
|
-
fetch() {
|
|
49
|
-
if (this.records.length <= 0) {
|
|
50
|
-
this.getRequests()
|
|
51
|
-
}
|
|
52
|
-
},
|
|
53
|
-
|
|
54
|
-
getRequests(url=this.url.audit("requests"), loading=true) {
|
|
55
|
-
|
|
56
|
-
this.loading = loading
|
|
57
|
-
|
|
58
|
-
this.http.get(url).then(result => {
|
|
59
|
-
this.records = result.records
|
|
60
|
-
this.pagination = result.pagination
|
|
61
|
-
}).catch(error => {
|
|
62
|
-
|
|
63
|
-
}).finally(() => {
|
|
64
|
-
this.loading = false
|
|
65
|
-
})
|
|
66
|
-
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
}
|
|
70
|
-
})
|
|
@@ -1,75 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
Copyright (c) 2022, all rights reserved.
|
|
3
|
-
|
|
4
|
-
All the information provided by this platform is protected by international laws related to
|
|
5
|
-
industrial property, intellectual property, copyright and relative international laws.
|
|
6
|
-
All intellectual or industrial property rights of the code, texts, trade mark, design,
|
|
7
|
-
pictures and any other information belongs to the owner of this platform.
|
|
8
|
-
|
|
9
|
-
Without the written permission of the owner, any replication, modification,
|
|
10
|
-
transmission, publication is strictly forbidden.
|
|
11
|
-
|
|
12
|
-
For more information read the license file including with this software.
|
|
13
|
-
|
|
14
|
-
// · ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~
|
|
15
|
-
// ·
|
|
16
|
-
*/
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
// ·
|
|
20
|
-
import { defineStore } from "pinia"
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
// ·
|
|
24
|
-
export const useSecurityPassword = defineStore("securityPassword", {
|
|
25
|
-
state: () => {
|
|
26
|
-
return {
|
|
27
|
-
loading: false,
|
|
28
|
-
pagination: {},
|
|
29
|
-
records: [],
|
|
30
|
-
columns: [{
|
|
31
|
-
field: "id",
|
|
32
|
-
label: "ID"
|
|
33
|
-
}, {
|
|
34
|
-
field: "name",
|
|
35
|
-
label: "Name"
|
|
36
|
-
}, {
|
|
37
|
-
field: "email",
|
|
38
|
-
label: "Email"
|
|
39
|
-
}, {
|
|
40
|
-
field: "title",
|
|
41
|
-
label: "Title"
|
|
42
|
-
}, {
|
|
43
|
-
field: "description",
|
|
44
|
-
label: "Description"
|
|
45
|
-
}, {
|
|
46
|
-
field: "created_at_date",
|
|
47
|
-
label: "Date"
|
|
48
|
-
}]
|
|
49
|
-
}
|
|
50
|
-
},
|
|
51
|
-
actions: {
|
|
52
|
-
|
|
53
|
-
fetchIfEmpty() {
|
|
54
|
-
if (this.records.length <= 0) {
|
|
55
|
-
this.fetch()
|
|
56
|
-
}
|
|
57
|
-
},
|
|
58
|
-
search(string) {
|
|
59
|
-
this.fetch(this.url.audit("security/passwords").filter({ cat: ["user_password_reset"]}).search(string))
|
|
60
|
-
},
|
|
61
|
-
|
|
62
|
-
fetch(url = this.url.audit("security/passwords").filter({ cat: ["user_password_reset"]})) {
|
|
63
|
-
this.loading = true
|
|
64
|
-
this.http.get(url).then(result => {
|
|
65
|
-
this.records = result.records
|
|
66
|
-
this.pagination = result.pagination
|
|
67
|
-
}).catch(error => {
|
|
68
|
-
this.msg.danger("Error while trying to fetch data")
|
|
69
|
-
}).finally(() => {
|
|
70
|
-
this.loading = false
|
|
71
|
-
})
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
}
|
|
75
|
-
})
|
|
@@ -1,78 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
Copyright (c) 2022, all rights reserved.
|
|
3
|
-
|
|
4
|
-
All the information provided by this platform is protected by international laws related to
|
|
5
|
-
industrial property, intellectual property, copyright and relative international laws.
|
|
6
|
-
All intellectual or industrial property rights of the code, texts, trade mark, design,
|
|
7
|
-
pictures and any other information belongs to the owner of this platform.
|
|
8
|
-
|
|
9
|
-
Without the written permission of the owner, any replication, modification,
|
|
10
|
-
transmission, publication is strictly forbidden.
|
|
11
|
-
|
|
12
|
-
For more information read the license file including with this software.
|
|
13
|
-
|
|
14
|
-
// · ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~
|
|
15
|
-
// ·
|
|
16
|
-
*/
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
// ·
|
|
20
|
-
import { defineStore } from "pinia"
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
// ·
|
|
24
|
-
export const useSecuritySession = defineStore("securitySession", {
|
|
25
|
-
state: () => {
|
|
26
|
-
return {
|
|
27
|
-
loading: false,
|
|
28
|
-
pagination: {},
|
|
29
|
-
records: [],
|
|
30
|
-
columns: [ {
|
|
31
|
-
field: "log_id",
|
|
32
|
-
label: "ID"
|
|
33
|
-
},{
|
|
34
|
-
field: "id",
|
|
35
|
-
label: "User ID"
|
|
36
|
-
}, {
|
|
37
|
-
field: "name",
|
|
38
|
-
label: "Name"
|
|
39
|
-
}, {
|
|
40
|
-
field: "email",
|
|
41
|
-
label: "Email"
|
|
42
|
-
}, {
|
|
43
|
-
field: "title",
|
|
44
|
-
label: "Title"
|
|
45
|
-
}, {
|
|
46
|
-
field: "description",
|
|
47
|
-
label: "Description"
|
|
48
|
-
}, {
|
|
49
|
-
field: "created_at_date",
|
|
50
|
-
label: "Date"
|
|
51
|
-
}]
|
|
52
|
-
}
|
|
53
|
-
},
|
|
54
|
-
actions: {
|
|
55
|
-
|
|
56
|
-
fetchIfEmpty() {
|
|
57
|
-
if (this.records.length <= 0) {
|
|
58
|
-
this.fetch()
|
|
59
|
-
}
|
|
60
|
-
},
|
|
61
|
-
search(string) {
|
|
62
|
-
fetch(this.url.audit("security/sessions").search(string))
|
|
63
|
-
},
|
|
64
|
-
|
|
65
|
-
fetch(url=this.url.audit("security/sessions")) {
|
|
66
|
-
this.loading = true
|
|
67
|
-
this.http.get(url).then(result => {
|
|
68
|
-
this.records = result.records
|
|
69
|
-
this.pagination = result.pagination
|
|
70
|
-
}).catch(error => {
|
|
71
|
-
this.msg.danger("Error while trying to fetch data")
|
|
72
|
-
}).finally(() => {
|
|
73
|
-
this.loading = false
|
|
74
|
-
})
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
}
|
|
78
|
-
})
|
|
@@ -1,162 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"en": {
|
|
3
|
-
"lesli": {
|
|
4
|
-
"application": {
|
|
5
|
-
"navigation_logout": "Logout",
|
|
6
|
-
"navigation_my_profile": "My profile"
|
|
7
|
-
},
|
|
8
|
-
"dashboards": {
|
|
9
|
-
"column_default": "Default",
|
|
10
|
-
"column_name": "Name",
|
|
11
|
-
"title": "Dashboards",
|
|
12
|
-
"view_add_component": "Add component"
|
|
13
|
-
},
|
|
14
|
-
"shared": {
|
|
15
|
-
"button_add_new": "Add new",
|
|
16
|
-
"button_delete": "Delete",
|
|
17
|
-
"button_edit": "Edit",
|
|
18
|
-
"button_list": "List",
|
|
19
|
-
"button_reload": "Reload",
|
|
20
|
-
"button_save": "Save",
|
|
21
|
-
"button_settings": "Settings",
|
|
22
|
-
"button_show": "Show",
|
|
23
|
-
"message_operation_error": "Operation failed. Please try again.",
|
|
24
|
-
"message_operation_success": "Operation completed successfully",
|
|
25
|
-
"toolbar_search": "Search...",
|
|
26
|
-
"view_discussions": "Discussions",
|
|
27
|
-
"view_files": "Files",
|
|
28
|
-
"view_quick_actions": "Quick actions",
|
|
29
|
-
"view_status_active": "Active",
|
|
30
|
-
"view_status_inactive": "Inactive"
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
},
|
|
34
|
-
"es": {
|
|
35
|
-
"lesli": {
|
|
36
|
-
"application": {
|
|
37
|
-
"navigation_logout": "Cerrar sesión",
|
|
38
|
-
"navigation_my_profile": "Mi perfil"
|
|
39
|
-
},
|
|
40
|
-
"dashboards": {
|
|
41
|
-
"column_default": "Default",
|
|
42
|
-
"column_name": "Nombre",
|
|
43
|
-
"title": "Dashboards",
|
|
44
|
-
"view_add_component": "Agregar componente"
|
|
45
|
-
},
|
|
46
|
-
"shared": {
|
|
47
|
-
"button_add_new": "Agregar nuevo",
|
|
48
|
-
"button_delete": "Eliminar",
|
|
49
|
-
"button_edit": "Editar",
|
|
50
|
-
"button_list": "Lista",
|
|
51
|
-
"button_reload": "Recargar",
|
|
52
|
-
"button_save": "Guardar",
|
|
53
|
-
"button_settings": "Configuración",
|
|
54
|
-
"button_show": "Ver",
|
|
55
|
-
"message_operation_error": "Operación fallida. Por favor, inténtelo de nuevo.",
|
|
56
|
-
"message_operation_success": "Operacion realizada satisfactoriamente",
|
|
57
|
-
"toolbar_search": "Buscar...",
|
|
58
|
-
"view_discussions": "Discusiones",
|
|
59
|
-
"view_files": "Archivos",
|
|
60
|
-
"view_quick_actions": "Acciones rapidas",
|
|
61
|
-
"view_status_active": "Activo",
|
|
62
|
-
"view_status_inactive": "Inactivo"
|
|
63
|
-
}
|
|
64
|
-
}
|
|
65
|
-
},
|
|
66
|
-
"fr": {
|
|
67
|
-
"lesli": {
|
|
68
|
-
"application": {
|
|
69
|
-
"navigation_logout": ":lesli.application.navigation_logout:",
|
|
70
|
-
"navigation_my_profile": ":lesli.application.navigation_my_profile:"
|
|
71
|
-
},
|
|
72
|
-
"dashboards": {
|
|
73
|
-
"column_default": ":lesli.dashboards.column_default:",
|
|
74
|
-
"column_name": ":lesli.dashboards.column_name:",
|
|
75
|
-
"title": ":lesli.dashboards.title:",
|
|
76
|
-
"view_add_component": ":lesli.dashboards.view_add_component:"
|
|
77
|
-
},
|
|
78
|
-
"shared": {
|
|
79
|
-
"button_add_new": ":lesli.shared.button_add_new:",
|
|
80
|
-
"button_delete": ":lesli.shared.button_delete:",
|
|
81
|
-
"button_edit": ":lesli.shared.button_edit:",
|
|
82
|
-
"button_list": ":lesli.shared.button_list:",
|
|
83
|
-
"button_reload": ":lesli.shared.button_reload:",
|
|
84
|
-
"button_save": ":lesli.shared.button_save:",
|
|
85
|
-
"button_settings": ":lesli.shared.button_settings:",
|
|
86
|
-
"button_show": ":lesli.shared.button_show:",
|
|
87
|
-
"message_operation_error": ":lesli.shared.message_operation_error:",
|
|
88
|
-
"message_operation_success": ":lesli.shared.message_operation_success:",
|
|
89
|
-
"toolbar_search": ":lesli.shared.toolbar_search:",
|
|
90
|
-
"view_discussions": ":lesli.shared.view_discussions:",
|
|
91
|
-
"view_files": ":lesli.shared.view_files:",
|
|
92
|
-
"view_quick_actions": ":lesli.shared.view_quick_actions:",
|
|
93
|
-
"view_status_active": ":lesli.shared.view_status_active:",
|
|
94
|
-
"view_status_inactive": ":lesli.shared.view_status_inactive:"
|
|
95
|
-
}
|
|
96
|
-
}
|
|
97
|
-
},
|
|
98
|
-
"it": {
|
|
99
|
-
"lesli": {
|
|
100
|
-
"application": {
|
|
101
|
-
"navigation_logout": ":lesli.application.navigation_logout:",
|
|
102
|
-
"navigation_my_profile": ":lesli.application.navigation_my_profile:"
|
|
103
|
-
},
|
|
104
|
-
"dashboards": {
|
|
105
|
-
"column_default": ":lesli.dashboards.column_default:",
|
|
106
|
-
"column_name": ":lesli.dashboards.column_name:",
|
|
107
|
-
"title": ":lesli.dashboards.title:",
|
|
108
|
-
"view_add_component": ":lesli.dashboards.view_add_component:"
|
|
109
|
-
},
|
|
110
|
-
"shared": {
|
|
111
|
-
"button_add_new": ":lesli.shared.button_add_new:",
|
|
112
|
-
"button_delete": ":lesli.shared.button_delete:",
|
|
113
|
-
"button_edit": ":lesli.shared.button_edit:",
|
|
114
|
-
"button_list": ":lesli.shared.button_list:",
|
|
115
|
-
"button_reload": ":lesli.shared.button_reload:",
|
|
116
|
-
"button_save": ":lesli.shared.button_save:",
|
|
117
|
-
"button_settings": ":lesli.shared.button_settings:",
|
|
118
|
-
"button_show": ":lesli.shared.button_show:",
|
|
119
|
-
"message_operation_error": ":lesli.shared.message_operation_error:",
|
|
120
|
-
"message_operation_success": ":lesli.shared.message_operation_success:",
|
|
121
|
-
"toolbar_search": ":lesli.shared.toolbar_search:",
|
|
122
|
-
"view_discussions": ":lesli.shared.view_discussions:",
|
|
123
|
-
"view_files": ":lesli.shared.view_files:",
|
|
124
|
-
"view_quick_actions": ":lesli.shared.view_quick_actions:",
|
|
125
|
-
"view_status_active": ":lesli.shared.view_status_active:",
|
|
126
|
-
"view_status_inactive": ":lesli.shared.view_status_inactive:"
|
|
127
|
-
}
|
|
128
|
-
}
|
|
129
|
-
},
|
|
130
|
-
"pt": {
|
|
131
|
-
"lesli": {
|
|
132
|
-
"application": {
|
|
133
|
-
"navigation_logout": ":lesli.application.navigation_logout:",
|
|
134
|
-
"navigation_my_profile": ":lesli.application.navigation_my_profile:"
|
|
135
|
-
},
|
|
136
|
-
"dashboards": {
|
|
137
|
-
"column_default": ":lesli.dashboards.column_default:",
|
|
138
|
-
"column_name": ":lesli.dashboards.column_name:",
|
|
139
|
-
"title": ":lesli.dashboards.title:",
|
|
140
|
-
"view_add_component": ":lesli.dashboards.view_add_component:"
|
|
141
|
-
},
|
|
142
|
-
"shared": {
|
|
143
|
-
"button_add_new": ":lesli.shared.button_add_new:",
|
|
144
|
-
"button_delete": ":lesli.shared.button_delete:",
|
|
145
|
-
"button_edit": ":lesli.shared.button_edit:",
|
|
146
|
-
"button_list": ":lesli.shared.button_list:",
|
|
147
|
-
"button_reload": ":lesli.shared.button_reload:",
|
|
148
|
-
"button_save": ":lesli.shared.button_save:",
|
|
149
|
-
"button_settings": ":lesli.shared.button_settings:",
|
|
150
|
-
"button_show": ":lesli.shared.button_show:",
|
|
151
|
-
"message_operation_error": ":lesli.shared.message_operation_error:",
|
|
152
|
-
"message_operation_success": ":lesli.shared.message_operation_success:",
|
|
153
|
-
"toolbar_search": ":lesli.shared.toolbar_search:",
|
|
154
|
-
"view_discussions": ":lesli.shared.view_discussions:",
|
|
155
|
-
"view_files": ":lesli.shared.view_files:",
|
|
156
|
-
"view_quick_actions": ":lesli.shared.view_quick_actions:",
|
|
157
|
-
"view_status_active": ":lesli.shared.view_status_active:",
|
|
158
|
-
"view_status_inactive": ":lesli.shared.view_status_inactive:"
|
|
159
|
-
}
|
|
160
|
-
}
|
|
161
|
-
}
|
|
162
|
-
}
|
|
@@ -1,76 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
Copyright (c) 2022, all rights reserved.
|
|
3
|
-
|
|
4
|
-
All the information provided by this platform is protected by international laws related to
|
|
5
|
-
industrial property, intellectual property, copyright and relative international laws.
|
|
6
|
-
All intellectual or industrial property rights of the code, texts, trade mark, design,
|
|
7
|
-
pictures and any other information belongs to the owner of this platform.
|
|
8
|
-
|
|
9
|
-
Without the written permission of the owner, any replication, modification,
|
|
10
|
-
transmission, publication is strictly forbidden.
|
|
11
|
-
|
|
12
|
-
For more information read the license file including with this software.
|
|
13
|
-
|
|
14
|
-
// · ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~
|
|
15
|
-
// ·
|
|
16
|
-
*/
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
// ·
|
|
20
|
-
import { defineStore } from "pinia"
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
// ·
|
|
24
|
-
export const useUsersActivities = defineStore("usersActivities", {
|
|
25
|
-
state: () => {
|
|
26
|
-
return {
|
|
27
|
-
loading: false,
|
|
28
|
-
pagination: {},
|
|
29
|
-
records: [],
|
|
30
|
-
columns: [{
|
|
31
|
-
field: "id",
|
|
32
|
-
label: "User Id"
|
|
33
|
-
}, {
|
|
34
|
-
field: "email",
|
|
35
|
-
label: "Email"
|
|
36
|
-
}, {
|
|
37
|
-
field: "field_name",
|
|
38
|
-
label: "Column"
|
|
39
|
-
}, {
|
|
40
|
-
field: "value_from",
|
|
41
|
-
label: "From"
|
|
42
|
-
}, {
|
|
43
|
-
field: "value_to",
|
|
44
|
-
label: "To"
|
|
45
|
-
}, {
|
|
46
|
-
field: "category",
|
|
47
|
-
label: "Category"
|
|
48
|
-
}, {
|
|
49
|
-
field: "created_at_date",
|
|
50
|
-
label: "Date"
|
|
51
|
-
}]
|
|
52
|
-
}
|
|
53
|
-
},
|
|
54
|
-
actions: {
|
|
55
|
-
|
|
56
|
-
fetchIfEmpty() {
|
|
57
|
-
if (this.records.length <= 0) {
|
|
58
|
-
this.fetch()
|
|
59
|
-
}
|
|
60
|
-
},
|
|
61
|
-
|
|
62
|
-
fetch() {
|
|
63
|
-
this.$reset()
|
|
64
|
-
this.loading = true
|
|
65
|
-
this.http.get(this.url.audit("users/activities")).then(result => {
|
|
66
|
-
this.records = result.records
|
|
67
|
-
this.pagination = result.pagination
|
|
68
|
-
}).catch(error => {
|
|
69
|
-
|
|
70
|
-
}).finally(() => {
|
|
71
|
-
this.loading = false
|
|
72
|
-
})
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
}
|
|
76
|
-
})
|