lesli_audit 1.0.2 → 1.1.1
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/assets/stylesheets/lesli_audit/application.tailwind.css +2 -0
- 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/models/concerns/lesli_audit/user_associations.rb +11 -0
- 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 +75 -37
- data/app/views/lesli_audit/visitors/index.html.erb +164 -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/engine.rb +6 -0
- data/lib/lesli_audit/version.rb +2 -2
- data/readme.md +113 -49
- metadata +12 -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
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: lesli_audit
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.
|
|
4
|
+
version: 1.1.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- The Lesli Development Team
|
|
@@ -15,28 +15,28 @@ dependencies:
|
|
|
15
15
|
requirements:
|
|
16
16
|
- - "~>"
|
|
17
17
|
- !ruby/object:Gem::Version
|
|
18
|
-
version:
|
|
18
|
+
version: 5.1.0
|
|
19
19
|
type: :runtime
|
|
20
20
|
prerelease: false
|
|
21
21
|
version_requirements: !ruby/object:Gem::Requirement
|
|
22
22
|
requirements:
|
|
23
23
|
- - "~>"
|
|
24
24
|
- !ruby/object:Gem::Version
|
|
25
|
-
version:
|
|
25
|
+
version: 5.1.0
|
|
26
26
|
- !ruby/object:Gem::Dependency
|
|
27
|
-
name:
|
|
27
|
+
name: device_detector
|
|
28
28
|
requirement: !ruby/object:Gem::Requirement
|
|
29
29
|
requirements:
|
|
30
30
|
- - "~>"
|
|
31
31
|
- !ruby/object:Gem::Version
|
|
32
|
-
version:
|
|
32
|
+
version: 1.1.3
|
|
33
33
|
type: :runtime
|
|
34
34
|
prerelease: false
|
|
35
35
|
version_requirements: !ruby/object:Gem::Requirement
|
|
36
36
|
requirements:
|
|
37
37
|
- - "~>"
|
|
38
38
|
- !ruby/object:Gem::Version
|
|
39
|
-
version:
|
|
39
|
+
version: 1.1.3
|
|
40
40
|
description: Logs Activities & Analytics for The Lesli Framework
|
|
41
41
|
email:
|
|
42
42
|
- hello@lesli.tech
|
|
@@ -45,20 +45,18 @@ extensions: []
|
|
|
45
45
|
extra_rdoc_files: []
|
|
46
46
|
files:
|
|
47
47
|
- Rakefile
|
|
48
|
-
- app/assets/config/lesli_audit_manifest.js
|
|
49
48
|
- app/assets/images/lesli_audit/audit-logo.svg
|
|
50
49
|
- app/assets/javascripts/lesli_audit/application.js
|
|
51
50
|
- app/assets/stylesheets/lesli_audit/application.css
|
|
51
|
+
- app/assets/stylesheets/lesli_audit/application.tailwind.css
|
|
52
52
|
- app/controllers/lesli_audit/accounts_controller.rb
|
|
53
|
-
- app/controllers/lesli_audit/analytics_controller.rb
|
|
54
53
|
- app/controllers/lesli_audit/application_controller.rb
|
|
55
54
|
- app/controllers/lesli_audit/dashboards_controller.rb
|
|
56
55
|
- app/controllers/lesli_audit/logs_controller.rb
|
|
57
56
|
- app/controllers/lesli_audit/requests_controller.rb
|
|
58
|
-
- app/controllers/lesli_audit/user_journals_controller.rb
|
|
59
57
|
- app/controllers/lesli_audit/users_controller.rb
|
|
58
|
+
- app/controllers/lesli_audit/visitors_controller.rb
|
|
60
59
|
- app/helpers/lesli_audit/accounts_helper.rb
|
|
61
|
-
- app/helpers/lesli_audit/analytics_helper.rb
|
|
62
60
|
- app/helpers/lesli_audit/application_helper.rb
|
|
63
61
|
- app/helpers/lesli_audit/dashboards_helper.rb
|
|
64
62
|
- app/helpers/lesli_audit/logs_helper.rb
|
|
@@ -68,6 +66,7 @@ files:
|
|
|
68
66
|
- app/interfaces/lesli_audit/logger_interface.rb
|
|
69
67
|
- app/jobs/lesli_audit/application_job.rb
|
|
70
68
|
- app/mailers/lesli_audit/application_mailer.rb
|
|
69
|
+
- app/models/concerns/lesli_audit/user_associations.rb
|
|
71
70
|
- app/models/lesli_audit/account.rb
|
|
72
71
|
- app/models/lesli_audit/account_device.rb
|
|
73
72
|
- app/models/lesli_audit/account_log.rb
|
|
@@ -77,11 +76,10 @@ files:
|
|
|
77
76
|
- app/models/lesli_audit/user_journal.rb
|
|
78
77
|
- app/models/lesli_audit/user_log.rb
|
|
79
78
|
- app/models/lesli_audit/user_request.rb
|
|
80
|
-
- app/services/lesli_audit/analytic_service.rb
|
|
81
79
|
- app/services/lesli_audit/log_service.rb
|
|
82
80
|
- app/services/lesli_audit/request_service.rb
|
|
83
81
|
- app/services/lesli_audit/user_service.rb
|
|
84
|
-
- app/
|
|
82
|
+
- app/services/lesli_audit/visitor_service.rb
|
|
85
83
|
- app/views/lesli_audit/dashboards/_component-calendar.html.erb
|
|
86
84
|
- app/views/lesli_audit/dashboards/edit.html.erb
|
|
87
85
|
- app/views/lesli_audit/dashboards/index.html.erb
|
|
@@ -91,14 +89,8 @@ files:
|
|
|
91
89
|
- app/views/lesli_audit/logs/show.html.erb
|
|
92
90
|
- app/views/lesli_audit/partials/_navigation.html.erb
|
|
93
91
|
- app/views/lesli_audit/requests/index.html.erb
|
|
94
|
-
- app/views/lesli_audit/user_journals/_form.html.erb
|
|
95
|
-
- app/views/lesli_audit/user_journals/_user_journal.html.erb
|
|
96
|
-
- app/views/lesli_audit/user_journals/edit.html.erb
|
|
97
|
-
- app/views/lesli_audit/user_journals/index.html.erb
|
|
98
|
-
- app/views/lesli_audit/user_journals/new.html.erb
|
|
99
|
-
- app/views/lesli_audit/user_journals/show.html.erb
|
|
100
92
|
- app/views/lesli_audit/users/index.html.erb
|
|
101
|
-
- app/views/lesli_audit/
|
|
93
|
+
- app/views/lesli_audit/visitors/index.html.erb
|
|
102
94
|
- config/locales/translations.en.yml
|
|
103
95
|
- config/locales/translations.es.yml
|
|
104
96
|
- config/locales/translations.fr.yml
|
|
@@ -114,43 +106,13 @@ files:
|
|
|
114
106
|
- db/migrate/v1.0/0501120310_create_lesli_audit_user_requests.rb
|
|
115
107
|
- db/seed/devices.rb
|
|
116
108
|
- db/seed/requests.rb
|
|
109
|
+
- db/seed/users.rb
|
|
117
110
|
- db/seeds.rb
|
|
118
111
|
- db/version_structure.rb
|
|
119
112
|
- lib/lesli_audit.rb
|
|
120
113
|
- lib/lesli_audit/engine.rb
|
|
121
114
|
- lib/lesli_audit/version.rb
|
|
122
|
-
- lib/scss/application.scss
|
|
123
115
|
- lib/tasks/lesli_audit_tasks.rake
|
|
124
|
-
- lib/vue/application.js
|
|
125
|
-
- lib/vue/apps/accounts/activities.vue
|
|
126
|
-
- lib/vue/apps/analytics/index.vue
|
|
127
|
-
- lib/vue/apps/analytics/trends.vue
|
|
128
|
-
- lib/vue/apps/dashboards/components/roles.vue
|
|
129
|
-
- lib/vue/apps/dashboards/components/users.vue
|
|
130
|
-
- lib/vue/apps/dashboards/show.vue
|
|
131
|
-
- lib/vue/apps/requests/index.vue
|
|
132
|
-
- lib/vue/apps/security/passwords.vue
|
|
133
|
-
- lib/vue/apps/security/sessions.vue
|
|
134
|
-
- lib/vue/apps/users/activities.vue
|
|
135
|
-
- lib/vue/apps/users/index.vue
|
|
136
|
-
- lib/vue/apps/users/logs.vue
|
|
137
|
-
- lib/vue/apps/users/registrations.vue
|
|
138
|
-
- lib/vue/apps/users/roles.vue
|
|
139
|
-
- lib/vue/apps/users/workingHours.vue
|
|
140
|
-
- lib/vue/components/requests.vue
|
|
141
|
-
- lib/vue/components/visitors.vue
|
|
142
|
-
- lib/vue/stores/accounts/activities.js
|
|
143
|
-
- lib/vue/stores/analytics.js
|
|
144
|
-
- lib/vue/stores/request.js
|
|
145
|
-
- lib/vue/stores/security/password.js
|
|
146
|
-
- lib/vue/stores/security/session.js
|
|
147
|
-
- lib/vue/stores/translations.json
|
|
148
|
-
- lib/vue/stores/users.js
|
|
149
|
-
- lib/vue/stores/users/activities.js
|
|
150
|
-
- lib/vue/stores/users/logs.js
|
|
151
|
-
- lib/vue/stores/users/registrations.js
|
|
152
|
-
- lib/vue/stores/users/roles.js
|
|
153
|
-
- lib/vue/stores/users/working_hours.js
|
|
154
116
|
- license
|
|
155
117
|
- readme.md
|
|
156
118
|
homepage: https://www.lesli.dev/
|
|
@@ -1,37 +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 platform.
|
|
21
|
-
|
|
22
|
-
Made with ♥ by https://www.lesli.tech
|
|
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
|
-
//= link_tree ../images/lesli_audit .png
|
|
34
|
-
//= link_tree ../images/lesli_audit .jpg
|
|
35
|
-
//= link_tree ../images/lesli_audit .svg
|
|
36
|
-
|
|
37
|
-
//= link lesli_audit/application.css
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
module LesliAudit
|
|
2
|
-
class AnalyticsController < ApplicationController
|
|
3
|
-
|
|
4
|
-
# GET /analytics
|
|
5
|
-
def index
|
|
6
|
-
@visitors = AnalyticService.new(current_user, query).visitors
|
|
7
|
-
@requests = AnalyticService.new(current_user, query).requests
|
|
8
|
-
@browsers = AnalyticService.new(current_user, query).browsers
|
|
9
|
-
@platforms = AnalyticService.new(current_user, query).devices
|
|
10
|
-
end
|
|
11
|
-
|
|
12
|
-
private
|
|
13
|
-
|
|
14
|
-
# Use callbacks to share common setup or constraints between actions.
|
|
15
|
-
def set_analytic
|
|
16
|
-
end
|
|
17
|
-
|
|
18
|
-
# Only allow a list of trusted parameters through.
|
|
19
|
-
def analytic_params
|
|
20
|
-
params.fetch(:analytic, {})
|
|
21
|
-
end
|
|
22
|
-
end
|
|
23
|
-
end
|
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
module LesliAudit
|
|
2
|
-
class UserJournalsController < ApplicationController
|
|
3
|
-
before_action :set_user_journal, only: %i[ show edit update destroy ]
|
|
4
|
-
|
|
5
|
-
# GET /user_journals
|
|
6
|
-
def index
|
|
7
|
-
@user_journals = UserJournal.all
|
|
8
|
-
end
|
|
9
|
-
|
|
10
|
-
# GET /user_journals/1
|
|
11
|
-
def show
|
|
12
|
-
end
|
|
13
|
-
|
|
14
|
-
# GET /user_journals/new
|
|
15
|
-
def new
|
|
16
|
-
@user_journal = UserJournal.new
|
|
17
|
-
end
|
|
18
|
-
|
|
19
|
-
# GET /user_journals/1/edit
|
|
20
|
-
def edit
|
|
21
|
-
end
|
|
22
|
-
|
|
23
|
-
# POST /user_journals
|
|
24
|
-
def create
|
|
25
|
-
@user_journal = UserJournal.new(user_journal_params)
|
|
26
|
-
|
|
27
|
-
if @user_journal.save
|
|
28
|
-
redirect_to @user_journal, notice: "User journal was successfully created."
|
|
29
|
-
else
|
|
30
|
-
render :new, status: :unprocessable_content
|
|
31
|
-
end
|
|
32
|
-
end
|
|
33
|
-
|
|
34
|
-
# PATCH/PUT /user_journals/1
|
|
35
|
-
def update
|
|
36
|
-
if @user_journal.update(user_journal_params)
|
|
37
|
-
redirect_to @user_journal, notice: "User journal was successfully updated.", status: :see_other
|
|
38
|
-
else
|
|
39
|
-
render :edit, status: :unprocessable_content
|
|
40
|
-
end
|
|
41
|
-
end
|
|
42
|
-
|
|
43
|
-
# DELETE /user_journals/1
|
|
44
|
-
def destroy
|
|
45
|
-
@user_journal.destroy!
|
|
46
|
-
redirect_to user_journals_path, notice: "User journal was successfully destroyed.", status: :see_other
|
|
47
|
-
end
|
|
48
|
-
|
|
49
|
-
private
|
|
50
|
-
# Use callbacks to share common setup or constraints between actions.
|
|
51
|
-
def set_user_journal
|
|
52
|
-
@user_journal = UserJournal.find(params.expect(:id))
|
|
53
|
-
end
|
|
54
|
-
|
|
55
|
-
# Only allow a list of trusted parameters through.
|
|
56
|
-
def user_journal_params
|
|
57
|
-
params.fetch(:user_journal, {})
|
|
58
|
-
end
|
|
59
|
-
end
|
|
60
|
-
end
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
<% @visitors = @visitors.reverse %>
|
|
3
|
-
|
|
4
|
-
<%= render(LesliView::Layout::Container.new("audit-analytics")) do %>
|
|
5
|
-
<%= render(LesliView::Components::Header.new("Analytics")) %>
|
|
6
|
-
|
|
7
|
-
<%= render(LesliView::Charts::Line.new(
|
|
8
|
-
title:"Visitors",
|
|
9
|
-
database_to_dataset: @visitors
|
|
10
|
-
))%>
|
|
11
|
-
<br>
|
|
12
|
-
<div class="columns">
|
|
13
|
-
<div class="column">
|
|
14
|
-
<%= render(LesliView::Elements::Table.new(
|
|
15
|
-
columns: [{
|
|
16
|
-
label: "Controller",
|
|
17
|
-
field: "request_controller"
|
|
18
|
-
},{
|
|
19
|
-
label:"Requests",
|
|
20
|
-
field:"requests"
|
|
21
|
-
}],
|
|
22
|
-
records: @requests
|
|
23
|
-
)) %>
|
|
24
|
-
</div>
|
|
25
|
-
</div>
|
|
26
|
-
|
|
27
|
-
<div class="columns">
|
|
28
|
-
<div class="column">
|
|
29
|
-
<%= render(LesliView::Charts::Bar.new(
|
|
30
|
-
title: "Platforms",
|
|
31
|
-
database_to_datasets: @platforms
|
|
32
|
-
))%>
|
|
33
|
-
</div>
|
|
34
|
-
</div>
|
|
35
|
-
|
|
36
|
-
<div class="columns">
|
|
37
|
-
<div class="column">
|
|
38
|
-
<%= render(LesliView::Charts::Bar.new(
|
|
39
|
-
title: "Browsers",
|
|
40
|
-
database_to_datasets: @browsers
|
|
41
|
-
))%>
|
|
42
|
-
</div>
|
|
43
|
-
</div>
|
|
44
|
-
<% end %>
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
<%= form_with(model: user_journal) do |form| %>
|
|
2
|
-
<% if user_journal.errors.any? %>
|
|
3
|
-
<div style="color: red">
|
|
4
|
-
<h2><%= pluralize(user_journal.errors.count, "error") %> prohibited this user_journal from being saved:</h2>
|
|
5
|
-
|
|
6
|
-
<ul>
|
|
7
|
-
<% user_journal.errors.each do |error| %>
|
|
8
|
-
<li><%= error.full_message %></li>
|
|
9
|
-
<% end %>
|
|
10
|
-
</ul>
|
|
11
|
-
</div>
|
|
12
|
-
<% end %>
|
|
13
|
-
|
|
14
|
-
<div>
|
|
15
|
-
<%= form.submit %>
|
|
16
|
-
</div>
|
|
17
|
-
<% end %>
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
<% content_for :title, "Editing user journal" %>
|
|
2
|
-
|
|
3
|
-
<h1>Editing user journal</h1>
|
|
4
|
-
|
|
5
|
-
<%= render "form", user_journal: @user_journal %>
|
|
6
|
-
|
|
7
|
-
<br>
|
|
8
|
-
|
|
9
|
-
<div>
|
|
10
|
-
<%= link_to "Show this user journal", @user_journal %> |
|
|
11
|
-
<%= link_to "Back to user journals", user_journals_path %>
|
|
12
|
-
</div>
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
<p style="color: green"><%= notice %></p>
|
|
2
|
-
|
|
3
|
-
<% content_for :title, "User journals" %>
|
|
4
|
-
|
|
5
|
-
<h1>User journals</h1>
|
|
6
|
-
|
|
7
|
-
<div id="user_journals">
|
|
8
|
-
<% @user_journals.each do |user_journal| %>
|
|
9
|
-
<%= render user_journal %>
|
|
10
|
-
<p>
|
|
11
|
-
<%= link_to "Show this user journal", user_journal %>
|
|
12
|
-
</p>
|
|
13
|
-
<% end %>
|
|
14
|
-
</div>
|
|
15
|
-
|
|
16
|
-
<%= link_to "New user journal", new_user_journal_path %>
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
<p style="color: green"><%= notice %></p>
|
|
2
|
-
|
|
3
|
-
<%= render @user_journal %>
|
|
4
|
-
|
|
5
|
-
<div>
|
|
6
|
-
<%= link_to "Edit this user journal", edit_user_journal_path(@user_journal) %> |
|
|
7
|
-
<%= link_to "Back to user journals", user_journals_path %>
|
|
8
|
-
|
|
9
|
-
<%= button_to "Destroy this user journal", @user_journal, method: :delete %>
|
|
10
|
-
</div>
|
data/lib/scss/application.scss
DELETED
|
@@ -1,31 +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 https://www.lesli.tech
|
|
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
|
-
*/
|
data/lib/vue/application.js
DELETED
|
@@ -1,146 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
Lesli
|
|
3
|
-
|
|
4
|
-
Copyright (c) 2023, Lesli Technologies, S. A.
|
|
5
|
-
|
|
6
|
-
This program is free software: you can redistribute it and/or modify
|
|
7
|
-
it under the terms of the GNU General Public License as published by
|
|
8
|
-
the Free Software Foundation, either version 3 of the License, or
|
|
9
|
-
(at your option) any later version.
|
|
10
|
-
|
|
11
|
-
This program is distributed in the hope that it will be useful,
|
|
12
|
-
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
13
|
-
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
14
|
-
GNU General Public License for more details.
|
|
15
|
-
|
|
16
|
-
You should have received a copy of the GNU General Public License
|
|
17
|
-
along with this program. If not, see http://www.gnu.org/licenses/.
|
|
18
|
-
|
|
19
|
-
Lesli · Ruby on Rails SaaS Development Framework.
|
|
20
|
-
|
|
21
|
-
Made with ♥ by https://www.lesli.tech
|
|
22
|
-
Building a better future, one line of code at a time.
|
|
23
|
-
|
|
24
|
-
@contact hello@lesli.tech
|
|
25
|
-
@website https://www.lesli.tech
|
|
26
|
-
@license GPLv3 http://www.gnu.org/licenses/gpl-3.0.en.html
|
|
27
|
-
|
|
28
|
-
// · ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~
|
|
29
|
-
// ·
|
|
30
|
-
*/
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
// · Import Lesli builders
|
|
34
|
-
import application from "Lesli/vue/application"
|
|
35
|
-
import translation from "Lesli/vue/translation"
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
// · Import engine translations
|
|
39
|
-
import translations from "LesliAudit/vue/stores/translations.json"
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
// ·
|
|
43
|
-
import appAnalytics from "LesliAudit/vue/apps/analytics/index.vue"
|
|
44
|
-
import appRequests from "LesliAudit/vue/apps/requests/index.vue"
|
|
45
|
-
import appUsers from "LesliAudit/vue/apps/users/index.vue"
|
|
46
|
-
|
|
47
|
-
//import appDashboardShow from "LesliAudit/vue/apps/dashboards/show.vue"
|
|
48
|
-
import appDashboardShow from "Lesli/vue/shared/dashboards/apps/show.vue"
|
|
49
|
-
import appDashboardEdit from "Lesli/vue/shared/dashboards/apps/edit.vue"
|
|
50
|
-
|
|
51
|
-
// ·
|
|
52
|
-
/*
|
|
53
|
-
import dashboard from "Lesli/vue/shared/dashboards/apps/show.vue"
|
|
54
|
-
import appUsersRegistrations from "CloudAudit/apps/users/registrations.vue"
|
|
55
|
-
import appUsersWorkingHours from "CloudAudit/apps/users/workingHours.vue"
|
|
56
|
-
import appUsersActivities from "CloudAudit/apps/users/activities.vue"
|
|
57
|
-
import appUsersLogs from "CloudAudit/apps/users/logs.vue"
|
|
58
|
-
import appUsersRoles from "CloudAudit/apps/users/roles.vue"
|
|
59
|
-
|
|
60
|
-
import appAnalyticsVisitors from "CloudAudit/apps/analytics/visitors.vue"
|
|
61
|
-
import appAnalyticsTrends from "CloudAudit/apps/analytics/trends.vue"
|
|
62
|
-
|
|
63
|
-
import appAccountsActivities from "CloudAudit/apps/accounts/activities.vue"
|
|
64
|
-
|
|
65
|
-
import appSecuritySessions from "CloudAudit/apps/security/sessions.vue"
|
|
66
|
-
import appSecurityPasswords from "CloudAudit/apps/security/passwords.vue"
|
|
67
|
-
*/
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
// ·
|
|
71
|
-
import componentDashboardUsers from "LesliAudit/vue/apps/dashboards/components/users.vue"
|
|
72
|
-
import componentDashboardRoles from "LesliAudit/vue/apps/dashboards/components/roles.vue"
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
// ·
|
|
76
|
-
const dashboardProps = {
|
|
77
|
-
components: {
|
|
78
|
-
// "audit-users": componentDashboardUsers,
|
|
79
|
-
// "audit-roles": componentDashboardRoles
|
|
80
|
-
}
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
// · Buil Lesli translations
|
|
85
|
-
translation(translations)
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
// · Build a new Lesli application
|
|
89
|
-
application("LesliAudit", [{
|
|
90
|
-
path: "/",
|
|
91
|
-
component: appDashboardShow,
|
|
92
|
-
props: dashboardProps
|
|
93
|
-
}, {
|
|
94
|
-
path: "/dashboard",
|
|
95
|
-
component: appDashboardShow,
|
|
96
|
-
props: dashboardProps
|
|
97
|
-
}, {
|
|
98
|
-
path: "/dashboards/:id/edit",
|
|
99
|
-
component: appDashboardEdit,
|
|
100
|
-
props: dashboardProps
|
|
101
|
-
}, {
|
|
102
|
-
path: "/analytics",
|
|
103
|
-
component: appAnalytics,
|
|
104
|
-
props: { engine: "audit" }
|
|
105
|
-
}, {
|
|
106
|
-
path: "/requests",
|
|
107
|
-
component: appRequests
|
|
108
|
-
}, {
|
|
109
|
-
path: "/users",
|
|
110
|
-
component: appUsers,
|
|
111
|
-
}
|
|
112
|
-
/*{
|
|
113
|
-
path: "/",
|
|
114
|
-
component: dashboard,
|
|
115
|
-
props: { engine: "audit" }
|
|
116
|
-
}, {
|
|
117
|
-
path: "/users/working_hours",
|
|
118
|
-
component: appUsersWorkingHours,
|
|
119
|
-
}, {
|
|
120
|
-
path: "/users/activities",
|
|
121
|
-
component: appUsersActivities,
|
|
122
|
-
}, {
|
|
123
|
-
path: "/users/logs",
|
|
124
|
-
component: appUsersLogs,
|
|
125
|
-
}, {
|
|
126
|
-
path: "/users/registrations",
|
|
127
|
-
component: appUsersRegistrations,
|
|
128
|
-
}, {
|
|
129
|
-
path: "/users/roles",
|
|
130
|
-
component: appUsersRoles,
|
|
131
|
-
}, {
|
|
132
|
-
path: "/accounts/activities",
|
|
133
|
-
component: appAccountsActivities,
|
|
134
|
-
}, {
|
|
135
|
-
path: "/analytics/visitors",
|
|
136
|
-
component: appAnalyticsVisitors,
|
|
137
|
-
}, {
|
|
138
|
-
path: "/analytics/trends",
|
|
139
|
-
component: appAnalyticsTrends
|
|
140
|
-
}, {
|
|
141
|
-
path: "/security/sessions",
|
|
142
|
-
component: appSecuritySessions
|
|
143
|
-
}, {
|
|
144
|
-
path: "/security/passwords",
|
|
145
|
-
component: appSecurityPasswords
|
|
146
|
-
}*/])
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
<script setup>
|
|
2
|
-
/*
|
|
3
|
-
Copyright (c) 2022, all rights reserved.
|
|
4
|
-
|
|
5
|
-
All the information provided by this platform is protected by international laws related to
|
|
6
|
-
industrial property, intellectual property, copyright and relative international laws.
|
|
7
|
-
All intellectual or industrial property rights of the code, texts, trade mark, design,
|
|
8
|
-
pictures and any other information belongs to the owner of this platform.
|
|
9
|
-
|
|
10
|
-
Without the written permission of the owner, any replication, modification,
|
|
11
|
-
transmission, publication is strictly forbidden.
|
|
12
|
-
|
|
13
|
-
For more information read the license file including with this software.
|
|
14
|
-
|
|
15
|
-
// · ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~
|
|
16
|
-
// ·
|
|
17
|
-
*/
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
// · import vue tools
|
|
21
|
-
import { ref, reactive, onMounted, watch, computed } from "vue"
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
// · import stores
|
|
25
|
-
import { useAccountsActivities } from "CloudAudit/stores/accounts/activities"
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
// · implement stores
|
|
29
|
-
const storeAccountsActivities = useAccountsActivities()
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
// · initializing
|
|
33
|
-
onMounted(() => {
|
|
34
|
-
storeAccountsActivities.fetchIfEmpty()
|
|
35
|
-
})
|
|
36
|
-
|
|
37
|
-
</script>
|
|
38
|
-
<template>
|
|
39
|
-
<section class="application-component">
|
|
40
|
-
<lesli-header title="Account activities"></lesli-header>
|
|
41
|
-
<lesli-toolbar @reload="storeAccountsActivities.fetch()" @search="storeAccountsActivities.search"></lesli-toolbar>
|
|
42
|
-
<lesli-table
|
|
43
|
-
:columns="storeAccountsActivities.columns"
|
|
44
|
-
:records="storeAccountsActivities.records">
|
|
45
|
-
</lesli-table>
|
|
46
|
-
</section>
|
|
47
|
-
</template>
|
|
48
|
-
|