lesli_audit 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (76) hide show
  1. checksums.yaml +7 -0
  2. data/Rakefile +5 -0
  3. data/app/assets/config/lesli_audit_manifest.js +38 -0
  4. data/app/assets/images/lesli_audit/audit-logo.svg +72 -0
  5. data/app/assets/javascripts/lesli_audit/application.js +3592 -0
  6. data/app/assets/stylesheets/lesli_audit/application.scss +35 -0
  7. data/app/assets/stylesheets/lesli_audit/dashboard.scss +0 -0
  8. data/app/controllers/lesli_audit/analytics_controller.rb +36 -0
  9. data/app/controllers/lesli_audit/application_controller.rb +4 -0
  10. data/app/controllers/lesli_audit/dashboards_controller.rb +59 -0
  11. data/app/helpers/lesli_audit/analytics_helper.rb +4 -0
  12. data/app/helpers/lesli_audit/application_helper.rb +4 -0
  13. data/app/helpers/lesli_audit/dashboards_helper.rb +4 -0
  14. data/app/jobs/lesli_audit/application_job.rb +4 -0
  15. data/app/mailers/lesli_audit/application_mailer.rb +6 -0
  16. data/app/models/lesli_audit/analytic.rb +4 -0
  17. data/app/models/lesli_audit/application_record.rb +5 -0
  18. data/app/models/lesli_audit/dashboard.rb +4 -0
  19. data/app/services/lesli_audit/account/activity_services.rb +69 -0
  20. data/app/services/lesli_audit/analytic_service.rb +151 -0
  21. data/app/services/lesli_audit/analytics/trend_services.rb +84 -0
  22. data/app/services/lesli_audit/analytics/visitor_service.rb +166 -0
  23. data/app/services/lesli_audit/request_services.rb +71 -0
  24. data/app/services/lesli_audit/users/activity_services.rb +61 -0
  25. data/app/services/lesli_audit/users/log_services.rb +62 -0
  26. data/app/services/lesli_audit/users/registration_services.rb +62 -0
  27. data/app/services/lesli_audit/users/role_services.rb +61 -0
  28. data/app/services/lesli_audit/users/working_hour_services.rb +78 -0
  29. data/app/views/lesli_audit/analytics/_analytic.html.erb +2 -0
  30. data/app/views/lesli_audit/analytics/_form.html.erb +17 -0
  31. data/app/views/lesli_audit/analytics/edit.html.erb +10 -0
  32. data/app/views/lesli_audit/analytics/index.html.erb +1 -0
  33. data/app/views/lesli_audit/analytics/new.html.erb +9 -0
  34. data/app/views/lesli_audit/analytics/show.html.erb +10 -0
  35. data/app/views/lesli_audit/dashboards/_dashboard.html.erb +2 -0
  36. data/app/views/lesli_audit/dashboards/_form.html.erb +17 -0
  37. data/app/views/lesli_audit/dashboards/edit.html.erb +10 -0
  38. data/app/views/lesli_audit/dashboards/index.html.erb +14 -0
  39. data/app/views/lesli_audit/dashboards/new.html.erb +9 -0
  40. data/app/views/lesli_audit/dashboards/show.html.erb +1 -0
  41. data/app/views/lesli_audit/partials/_engine-navigation.html.erb +39 -0
  42. data/config/routes.rb +45 -0
  43. data/db/migrate/v1.0/0803000110_create_lesli_audit_accounts.rb +42 -0
  44. data/db/migrate/v1.0/0803050110_create_lesli_audit_dashboards.rb +51 -0
  45. data/db/migrate/v1.0/0803050210_create_lesli_audit_dashboard_components.rb +53 -0
  46. data/lib/lesli_audit/engine.rb +18 -0
  47. data/lib/lesli_audit/version.rb +3 -0
  48. data/lib/lesli_audit.rb +6 -0
  49. data/lib/tasks/lesli_audit_tasks.rake +4 -0
  50. data/lib/vue/application.js +102 -0
  51. data/lib/vue/apps/accounts/activities.vue +48 -0
  52. data/lib/vue/apps/analytics/index.vue +18 -0
  53. data/lib/vue/apps/analytics/requests.vue +67 -0
  54. data/lib/vue/apps/analytics/trends.vue +149 -0
  55. data/lib/vue/apps/analytics/visitors.vue +91 -0
  56. data/lib/vue/apps/requests/index.vue +123 -0
  57. data/lib/vue/apps/security/passwords.vue +52 -0
  58. data/lib/vue/apps/security/sessions.vue +63 -0
  59. data/lib/vue/apps/users/activities.vue +49 -0
  60. data/lib/vue/apps/users/logs.vue +49 -0
  61. data/lib/vue/apps/users/registrations.vue +98 -0
  62. data/lib/vue/apps/users/roles.vue +70 -0
  63. data/lib/vue/apps/users/workingHours.vue +52 -0
  64. data/lib/vue/stores/accounts/activities.js +87 -0
  65. data/lib/vue/stores/analytics/visitors.js +130 -0
  66. data/lib/vue/stores/request.js +70 -0
  67. data/lib/vue/stores/security/password.js +75 -0
  68. data/lib/vue/stores/security/session.js +78 -0
  69. data/lib/vue/stores/users/activities.js +76 -0
  70. data/lib/vue/stores/users/logs.js +74 -0
  71. data/lib/vue/stores/users/registrations.js +61 -0
  72. data/lib/vue/stores/users/roles.js +52 -0
  73. data/lib/vue/stores/users/working_hours.js +92 -0
  74. data/license +674 -0
  75. data/readme.md +120 -0
  76. metadata +134 -0
data/readme.md ADDED
@@ -0,0 +1,120 @@
1
+ <p align="center">
2
+ <img width="200" alt="Lesli logo" src="./app/assets/images/lesli/brand/app-logo.svg" />
3
+ </p>
4
+
5
+ <h3 align="center">Ruby on Rails SaaS Development Framework.</h3>
6
+
7
+ <hr/>
8
+
9
+ ## Introduction
10
+
11
+ Lesli is a SaaS development framework designed to build highly scalable, secure and customizable software products.
12
+
13
+ Built-on top of Ruby on Rails, Postgres, Vuejs, Bulma, SASS and many more awesome open-source libraries, packages, gems and tools.
14
+
15
+ Lesli is completely open source and comes with features and tools that can save you years of development effort, additionally, our pre-built modules can seamlessly extend Lesli's functionality, allowing you to build your own SaaS in a matter of minutes.
16
+
17
+ <br />
18
+ <hr />
19
+ <p align="center">
20
+ Lesli is currently in alpha, but we're excited about the promising improvements coming soon!
21
+ </p>
22
+ <hr />
23
+ <br />
24
+ <br />
25
+
26
+ Lesli is officially released and supported as of version 5
27
+
28
+ > Lesli goes beyond being just a starter-kit, template, admin panel or dashboard. Lesli is a Ruby on Rails gem that you can use to build modules (a.k.a. engines) and standard Rails applications leveraging its robust set of built-in features, generators, components, and industry standards. With Lesli, you have the flexibility to extend existing functionalities or develop fully customized software tailored to your specific needs.
29
+
30
+
31
+ ## Documentation
32
+ * [Roadmap](./docs/roadmap.md)
33
+ * [Core database](./docs/database.md)
34
+ * [Main documentation](https://www.lesli.dev/documentation/)
35
+
36
+
37
+ ## Installation
38
+
39
+ __Get the latest stable version of Lesli__
40
+
41
+ ```ruby
42
+ # Gemfile
43
+ gem "lesli"
44
+ ```
45
+
46
+ __Run bundle install:__
47
+
48
+ ```shell
49
+ bundle install
50
+ ```
51
+
52
+ __Generate the init files:__
53
+
54
+ ```shell
55
+ rails g lesli:install
56
+ ```
57
+
58
+ __Load the database and demo data:__
59
+
60
+ ```shell
61
+ rake rake lesli:db:setup
62
+ ```
63
+
64
+ __Run server__
65
+ ```shell
66
+ rails s # for development
67
+ rails s --binding=0.0.0.0 # debug in local network
68
+ RAILS_SERVE_STATIC_FILES=true rails s --environment=production # production mode
69
+ ```
70
+
71
+ For more details about the installation check the official [documentation.](https://www.lesli.dev/documentation)
72
+
73
+
74
+
75
+ ## Development
76
+
77
+ __Get the latest version of Lesli source code__
78
+
79
+ ```shell
80
+ # clone the lesli repo inside your engine folder: RailsApp/engines
81
+ git clone https://github.com/LesliTech/Lesli.git
82
+ ```
83
+
84
+ __Load Lesli as a Gem__
85
+ ```ruby
86
+ gem "lesli", path: "engines/Lesli"
87
+ ```
88
+
89
+ __Install the necessary Gems to run Lesli:__
90
+
91
+ ```shell
92
+ bundle install
93
+ ```
94
+
95
+ __Work with the database:__
96
+
97
+ ```shell
98
+ # Hard reset for development:
99
+ rake lesli:db:reset
100
+ ```
101
+
102
+ __Run server__
103
+ ```shell
104
+ rails s
105
+ rails s --binding=0.0.0.0
106
+ rails s --environment=test
107
+ rails s --environment=development
108
+ RAILS_SERVE_STATIC_FILES=true rails s --environment=production
109
+ ```
110
+
111
+
112
+ ## License
113
+ ------
114
+ Software developed in [Guatemala](http://visitguatemala.com/) by [LesliTech](https://www.lesli.tech) distributed under the *General Public License v 3.0* you can read the full license [here](http://www.gnu.org/licenses/gpl-3.0.html)
115
+
116
+ <br>
117
+
118
+ <p align="center">
119
+ <img alt="Lesli logo" width="100" src="./app/assets/images/lesli/brand/app-icon.svg" />
120
+ </p>
metadata ADDED
@@ -0,0 +1,134 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: lesli_audit
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - The Lesli Development Team
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2023-10-01 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: rails
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '7'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '7'
27
+ description: System logs & activities analytics for The Lesli Framework
28
+ email:
29
+ - hello@lesli.tech
30
+ executables: []
31
+ extensions: []
32
+ extra_rdoc_files: []
33
+ files:
34
+ - Rakefile
35
+ - app/assets/config/lesli_audit_manifest.js
36
+ - app/assets/images/lesli_audit/audit-logo.svg
37
+ - app/assets/javascripts/lesli_audit/application.js
38
+ - app/assets/stylesheets/lesli_audit/application.scss
39
+ - app/assets/stylesheets/lesli_audit/dashboard.scss
40
+ - app/controllers/lesli_audit/analytics_controller.rb
41
+ - app/controllers/lesli_audit/application_controller.rb
42
+ - app/controllers/lesli_audit/dashboards_controller.rb
43
+ - app/helpers/lesli_audit/analytics_helper.rb
44
+ - app/helpers/lesli_audit/application_helper.rb
45
+ - app/helpers/lesli_audit/dashboards_helper.rb
46
+ - app/jobs/lesli_audit/application_job.rb
47
+ - app/mailers/lesli_audit/application_mailer.rb
48
+ - app/models/lesli_audit/analytic.rb
49
+ - app/models/lesli_audit/application_record.rb
50
+ - app/models/lesli_audit/dashboard.rb
51
+ - app/services/lesli_audit/account/activity_services.rb
52
+ - app/services/lesli_audit/analytic_service.rb
53
+ - app/services/lesli_audit/analytics/trend_services.rb
54
+ - app/services/lesli_audit/analytics/visitor_service.rb
55
+ - app/services/lesli_audit/request_services.rb
56
+ - app/services/lesli_audit/users/activity_services.rb
57
+ - app/services/lesli_audit/users/log_services.rb
58
+ - app/services/lesli_audit/users/registration_services.rb
59
+ - app/services/lesli_audit/users/role_services.rb
60
+ - app/services/lesli_audit/users/working_hour_services.rb
61
+ - app/views/lesli_audit/analytics/_analytic.html.erb
62
+ - app/views/lesli_audit/analytics/_form.html.erb
63
+ - app/views/lesli_audit/analytics/edit.html.erb
64
+ - app/views/lesli_audit/analytics/index.html.erb
65
+ - app/views/lesli_audit/analytics/new.html.erb
66
+ - app/views/lesli_audit/analytics/show.html.erb
67
+ - app/views/lesli_audit/dashboards/_dashboard.html.erb
68
+ - app/views/lesli_audit/dashboards/_form.html.erb
69
+ - app/views/lesli_audit/dashboards/edit.html.erb
70
+ - app/views/lesli_audit/dashboards/index.html.erb
71
+ - app/views/lesli_audit/dashboards/new.html.erb
72
+ - app/views/lesli_audit/dashboards/show.html.erb
73
+ - app/views/lesli_audit/partials/_engine-navigation.html.erb
74
+ - config/routes.rb
75
+ - db/migrate/v1.0/0803000110_create_lesli_audit_accounts.rb
76
+ - db/migrate/v1.0/0803050110_create_lesli_audit_dashboards.rb
77
+ - db/migrate/v1.0/0803050210_create_lesli_audit_dashboard_components.rb
78
+ - lib/lesli_audit.rb
79
+ - lib/lesli_audit/engine.rb
80
+ - lib/lesli_audit/version.rb
81
+ - lib/tasks/lesli_audit_tasks.rake
82
+ - lib/vue/application.js
83
+ - lib/vue/apps/accounts/activities.vue
84
+ - lib/vue/apps/analytics/index.vue
85
+ - lib/vue/apps/analytics/requests.vue
86
+ - lib/vue/apps/analytics/trends.vue
87
+ - lib/vue/apps/analytics/visitors.vue
88
+ - lib/vue/apps/requests/index.vue
89
+ - lib/vue/apps/security/passwords.vue
90
+ - lib/vue/apps/security/sessions.vue
91
+ - lib/vue/apps/users/activities.vue
92
+ - lib/vue/apps/users/logs.vue
93
+ - lib/vue/apps/users/registrations.vue
94
+ - lib/vue/apps/users/roles.vue
95
+ - lib/vue/apps/users/workingHours.vue
96
+ - lib/vue/stores/accounts/activities.js
97
+ - lib/vue/stores/analytics/visitors.js
98
+ - lib/vue/stores/request.js
99
+ - lib/vue/stores/security/password.js
100
+ - lib/vue/stores/security/session.js
101
+ - lib/vue/stores/users/activities.js
102
+ - lib/vue/stores/users/logs.js
103
+ - lib/vue/stores/users/registrations.js
104
+ - lib/vue/stores/users/roles.js
105
+ - lib/vue/stores/users/working_hours.js
106
+ - license
107
+ - readme.md
108
+ homepage: https://www.lesli.dev/
109
+ licenses:
110
+ - GPL-3.0
111
+ metadata:
112
+ homepage_uri: https://www.lesli.dev/
113
+ changelog_uri: https://github.com/LesliTech/LesliAudit
114
+ source_code_uri: https://github.com/LesliTech/LesliAudit
115
+ post_install_message:
116
+ rdoc_options: []
117
+ require_paths:
118
+ - lib
119
+ required_ruby_version: !ruby/object:Gem::Requirement
120
+ requirements:
121
+ - - ">="
122
+ - !ruby/object:Gem::Version
123
+ version: '0'
124
+ required_rubygems_version: !ruby/object:Gem::Requirement
125
+ requirements:
126
+ - - ">="
127
+ - !ruby/object:Gem::Version
128
+ version: '0'
129
+ requirements: []
130
+ rubygems_version: 3.3.7
131
+ signing_key:
132
+ specification_version: 4
133
+ summary: System logs & activities analytics for The Lesli Framework
134
+ test_files: []