lesli_audit 0.4.0 → 0.5.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (33) hide show
  1. checksums.yaml +4 -4
  2. data/app/assets/javascripts/lesli_audit/application.js +1994 -1735
  3. data/app/controllers/lesli_audit/dashboard/components_controller.rb +60 -0
  4. data/app/controllers/lesli_audit/dashboards_controller.rb +26 -49
  5. data/app/helpers/lesli_audit/dashboard/components_helper.rb +4 -0
  6. data/app/models/lesli_audit/account.rb +7 -0
  7. data/app/models/lesli_audit/dashboard/component.rb +18 -0
  8. data/app/models/lesli_audit/dashboard.rb +30 -2
  9. data/app/views/lesli_audit/dashboard/components/_component.html.erb +2 -0
  10. data/app/views/lesli_audit/dashboard/components/_form.html.erb +17 -0
  11. data/app/views/lesli_audit/dashboard/components/edit.html.erb +1 -0
  12. data/app/views/lesli_audit/dashboard/components/index.html.erb +14 -0
  13. data/app/views/lesli_audit/dashboard/components/new.html.erb +9 -0
  14. data/app/views/lesli_audit/dashboard/components/show.html.erb +1 -0
  15. data/app/views/lesli_audit/dashboards/edit.html.erb +1 -10
  16. data/config/locales/translations.en.yml +16 -1
  17. data/config/locales/translations.es.yml +16 -1
  18. data/config/routes.rb +13 -1
  19. data/db/seeds.rb +4 -1
  20. data/lib/lesli_audit/version.rb +1 -1
  21. data/lib/vue/application.js +43 -1
  22. data/lib/vue/apps/dashboards/components/roles.vue +71 -0
  23. data/lib/vue/apps/dashboards/components/users.vue +71 -0
  24. data/lib/vue/apps/dashboards/show.vue +8 -0
  25. data/lib/vue/components/visitors.vue +3 -3
  26. data/lib/vue/stores/translations.json +32 -22
  27. metadata +19 -8
  28. data/app/assets/javascripts/lesli_audit/application.js.LICENSE.txt +0 -327
  29. /data/db/migrate/v1.0/{0803000110_create_lesli_audit_accounts.rb → 0503000110_create_lesli_audit_accounts.rb} +0 -0
  30. /data/db/migrate/v1.0/{0803050110_create_lesli_audit_dashboards.rb → 0503050110_create_lesli_audit_dashboards.rb} +0 -0
  31. /data/db/migrate/v1.0/{0803050210_create_lesli_audit_dashboard_components.rb → 0503050210_create_lesli_audit_dashboard_components.rb} +0 -0
  32. /data/db/migrate/v1.0/{0803100010_create_lesli_audit_account_requests.rb → 0503100010_create_lesli_audit_account_requests.rb} +0 -0
  33. /data/db/migrate/v1.0/{0803110010_create_lesli_audit_user_requests.rb → 0503110010_create_lesli_audit_user_requests.rb} +0 -0
@@ -1,37 +1,47 @@
1
1
  {
2
2
  "en": {
3
3
  "lesli": {
4
- "shared": {
5
- "title_lesli": ":lesli.shared.title_lesli:"
4
+ "application": {
5
+ "navigation_logout": "Logout",
6
+ "navigation_my_profile": "My profile"
6
7
  },
7
- "users": {
8
- "title_users": "Users"
9
- }
10
- },
11
- "lesli_audit": {
12
8
  "shared": {
13
- "title_lesli": ":lesli.shared.title_lesli:"
14
- },
15
- "users": {
16
- "title_users": "Users"
9
+ "button_add_new": "Add new",
10
+ "button_delete": "Delete",
11
+ "button_edit": "Edit",
12
+ "button_list": "List",
13
+ "button_reload": "Reload",
14
+ "button_save": "Save",
15
+ "button_settings": "Settings",
16
+ "button_show": "Show",
17
+ "view_discussions": "Discussions",
18
+ "view_files": "Files",
19
+ "view_quick_actions": "Quick actions",
20
+ "view_status_active": "Active",
21
+ "view_status_inactive": "Inactive"
17
22
  }
18
23
  }
19
24
  },
20
25
  "es": {
21
26
  "lesli": {
22
- "shared": {
23
- "title_lesli": "Lesli en español "
27
+ "application": {
28
+ "navigation_logout": "Cerrar sesión",
29
+ "navigation_my_profile": "Mi perfil"
24
30
  },
25
- "users": {
26
- "title_users": "Usuarios"
27
- }
28
- },
29
- "lesli_audit": {
30
31
  "shared": {
31
- "title_lesli": "Lesli en español "
32
- },
33
- "users": {
34
- "title_users": "Usuarios"
32
+ "button_add_new": "Agregar nuevo",
33
+ "button_delete": "Eliminar",
34
+ "button_edit": "Editar",
35
+ "button_list": "Lista",
36
+ "button_reload": "Recargar",
37
+ "button_save": "Guardar",
38
+ "button_settings": "Configuración",
39
+ "button_show": "Ver",
40
+ "view_discussions": "Discusiones",
41
+ "view_files": "Archivos",
42
+ "view_quick_actions": "Acciones rapidas",
43
+ "view_status_active": "Activo",
44
+ "view_status_inactive": "Inactivo"
35
45
  }
36
46
  }
37
47
  }
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lesli_audit
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.5.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - The Lesli Development Team
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-11-02 00:00:00.000000000 Z
11
+ date: 2024-02-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -35,18 +35,19 @@ files:
35
35
  - app/assets/config/lesli_audit_manifest.js
36
36
  - app/assets/images/lesli_audit/audit-logo.svg
37
37
  - app/assets/javascripts/lesli_audit/application.js
38
- - app/assets/javascripts/lesli_audit/application.js.LICENSE.txt
39
38
  - app/assets/stylesheets/lesli_audit/application.scss
40
39
  - app/assets/stylesheets/lesli_audit/dashboard.scss
41
40
  - app/controllers/lesli_audit/accounts_controller.rb
42
41
  - app/controllers/lesli_audit/analytics_controller.rb
43
42
  - app/controllers/lesli_audit/application_controller.rb
43
+ - app/controllers/lesli_audit/dashboard/components_controller.rb
44
44
  - app/controllers/lesli_audit/dashboards_controller.rb
45
45
  - app/controllers/lesli_audit/requests_controller.rb
46
46
  - app/controllers/lesli_audit/users_controller.rb
47
47
  - app/helpers/lesli_audit/accounts_helper.rb
48
48
  - app/helpers/lesli_audit/analytics_helper.rb
49
49
  - app/helpers/lesli_audit/application_helper.rb
50
+ - app/helpers/lesli_audit/dashboard/components_helper.rb
50
51
  - app/helpers/lesli_audit/dashboards_helper.rb
51
52
  - app/helpers/lesli_audit/requests_helper.rb
52
53
  - app/helpers/lesli_audit/users_helper.rb
@@ -58,6 +59,7 @@ files:
58
59
  - app/models/lesli_audit/analytic.rb
59
60
  - app/models/lesli_audit/application_record.rb
60
61
  - app/models/lesli_audit/dashboard.rb
62
+ - app/models/lesli_audit/dashboard/component.rb
61
63
  - app/models/lesli_audit/request.rb
62
64
  - app/models/lesli_audit/user.rb
63
65
  - app/models/lesli_audit/user_request.rb
@@ -83,6 +85,12 @@ files:
83
85
  - app/views/lesli_audit/analytics/index.html.erb
84
86
  - app/views/lesli_audit/analytics/new.html.erb
85
87
  - app/views/lesli_audit/analytics/show.html.erb
88
+ - app/views/lesli_audit/dashboard/components/_component.html.erb
89
+ - app/views/lesli_audit/dashboard/components/_form.html.erb
90
+ - app/views/lesli_audit/dashboard/components/edit.html.erb
91
+ - app/views/lesli_audit/dashboard/components/index.html.erb
92
+ - app/views/lesli_audit/dashboard/components/new.html.erb
93
+ - app/views/lesli_audit/dashboard/components/show.html.erb
86
94
  - app/views/lesli_audit/dashboards/_dashboard.html.erb
87
95
  - app/views/lesli_audit/dashboards/_form.html.erb
88
96
  - app/views/lesli_audit/dashboards/edit.html.erb
@@ -105,11 +113,11 @@ files:
105
113
  - config/locales/translations.en.yml
106
114
  - config/locales/translations.es.yml
107
115
  - config/routes.rb
108
- - db/migrate/v1.0/0803000110_create_lesli_audit_accounts.rb
109
- - db/migrate/v1.0/0803050110_create_lesli_audit_dashboards.rb
110
- - db/migrate/v1.0/0803050210_create_lesli_audit_dashboard_components.rb
111
- - db/migrate/v1.0/0803100010_create_lesli_audit_account_requests.rb
112
- - db/migrate/v1.0/0803110010_create_lesli_audit_user_requests.rb
116
+ - db/migrate/v1.0/0503000110_create_lesli_audit_accounts.rb
117
+ - db/migrate/v1.0/0503050110_create_lesli_audit_dashboards.rb
118
+ - db/migrate/v1.0/0503050210_create_lesli_audit_dashboard_components.rb
119
+ - db/migrate/v1.0/0503100010_create_lesli_audit_account_requests.rb
120
+ - db/migrate/v1.0/0503110010_create_lesli_audit_user_requests.rb
113
121
  - db/seed/development.rb
114
122
  - db/seed/production.rb
115
123
  - db/seed/test.rb
@@ -122,6 +130,9 @@ files:
122
130
  - lib/vue/apps/accounts/activities.vue
123
131
  - lib/vue/apps/analytics/index.vue
124
132
  - lib/vue/apps/analytics/trends.vue
133
+ - lib/vue/apps/dashboards/components/roles.vue
134
+ - lib/vue/apps/dashboards/components/users.vue
135
+ - lib/vue/apps/dashboards/show.vue
125
136
  - lib/vue/apps/requests/index.vue
126
137
  - lib/vue/apps/security/passwords.vue
127
138
  - lib/vue/apps/security/sessions.vue
@@ -1,327 +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
- */
32
-
33
- /*
34
-
35
- Lesli
36
-
37
- Copyright (c) 2023, Lesli Technologies, S. A.
38
-
39
- This program is free software: you can redistribute it and/or modify
40
- it under the terms of the GNU General Public License as published by
41
- the Free Software Foundation, either version 3 of the License, or
42
- (at your option) any later version.
43
-
44
- This program is distributed in the hope that it will be useful,
45
- but WITHOUT ANY WARRANTY; without even the implied warranty of
46
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
47
- GNU General Public License for more details.
48
-
49
- You should have received a copy of the GNU General Public License
50
- along with this program. If not, see http://www.gnu.org/licenses/.
51
-
52
- Lesli · Your Smart Business Assistant.
53
-
54
- Made with ♥ by https://www.lesli.tech
55
- Building a better future, one line of code at a time.
56
-
57
- @contact hello@lesli.tech
58
- @website https://lesli.tech
59
- @license GPLv3 http://www.gnu.org/licenses/gpl-3.0.en.html
60
-
61
- // · ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~
62
- // ·
63
-
64
- */
65
-
66
- /*
67
-
68
- Lesli
69
-
70
- Copyright (c) 2023, Lesli Technologies, S. A.
71
-
72
- This program is free software: you can redistribute it and/or modify
73
- it under the terms of the GNU General Public License as published by
74
- the Free Software Foundation, either version 3 of the License, or
75
- (at your option) any later version.
76
-
77
- This program is distributed in the hope that it will be useful,
78
- but WITHOUT ANY WARRANTY; without even the implied warranty of
79
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
80
- GNU General Public License for more details.
81
-
82
- You should have received a copy of the GNU General Public License
83
- along with this program. If not, see http://www.gnu.org/licenses/.
84
-
85
- Lesli · Your Smart Business Assistant.
86
-
87
- Made with ♥ by https://www.lesli.tech
88
- Building a better future, one line of code at a time.
89
-
90
- @contact hello@lesli.tech
91
- @website https://lesli.tech
92
- @license GPLv3 http://www.gnu.org/licenses/gpl-3.0.en.html
93
-
94
- // · ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~
95
- // ·
96
- */
97
-
98
- /*
99
- Lesli
100
-
101
- Copyright (c) 2023, Lesli Technologies, S. A.
102
-
103
- This program is free software: you can redistribute it and/or modify
104
- it under the terms of the GNU General Public License as published by
105
- the Free Software Foundation, either version 3 of the License, or
106
- (at your option) any later version.
107
-
108
- This program is distributed in the hope that it will be useful,
109
- but WITHOUT ANY WARRANTY; without even the implied warranty of
110
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
111
- GNU General Public License for more details.
112
-
113
- You should have received a copy of the GNU General Public License
114
- along with this program. If not, see http://www.gnu.org/licenses/.
115
-
116
- Lesli · Ruby on Rails SaaS Development Framework.
117
-
118
- Made with ♥ by https://www.lesli.tech
119
- Building a better future, one line of code at a time.
120
-
121
- @contact hello@lesli.tech
122
- @website https://www.lesli.dev
123
- @license GPLv3 http://www.gnu.org/licenses/gpl-3.0.en.html
124
-
125
- // · ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~
126
- // ·
127
- */
128
-
129
- /*
130
- Lesli
131
-
132
- Copyright (c) 2023, Lesli Technologies, S. A.
133
-
134
- This program is free software: you can redistribute it and/or modify
135
- it under the terms of the GNU General Public License as published by
136
- the Free Software Foundation, either version 3 of the License, or
137
- (at your option) any later version.
138
-
139
- This program is distributed in the hope that it will be useful,
140
- but WITHOUT ANY WARRANTY; without even the implied warranty of
141
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
142
- GNU General Public License for more details.
143
-
144
- You should have received a copy of the GNU General Public License
145
- along with this program. If not, see http://www.gnu.org/licenses/.
146
-
147
- Lesli · Ruby on Rails SaaS Development Framework.
148
-
149
- Made with ♥ by https://www.lesli.tech
150
- Building a better future, one line of code at a time.
151
-
152
- @contact hello@lesli.tech
153
- @website https://www.lesli.tech
154
- @license GPLv3 http://www.gnu.org/licenses/gpl-3.0.en.html
155
-
156
- // · ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~
157
- // ·
158
- */
159
-
160
- /*
161
- Lesli
162
-
163
- Copyright (c) 2023, Lesli Technologies, S. A.
164
-
165
- This program is free software: you can redistribute it and/or modify
166
- it under the terms of the GNU General Public License as published by
167
- the Free Software Foundation, either version 3 of the License, or
168
- (at your option) any later version.
169
-
170
- This program is distributed in the hope that it will be useful,
171
- but WITHOUT ANY WARRANTY; without even the implied warranty of
172
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
173
- GNU General Public License for more details.
174
-
175
- You should have received a copy of the GNU General Public License
176
- along with this program. If not, see http://www.gnu.org/licenses/.
177
-
178
- Lesli · Ruby on Rails SaaS development platform.
179
-
180
- Made with ♥ by https://www.lesli.tech
181
- Building a better future, one line of code at a time.
182
-
183
- @contact hello@lesli.tech
184
- @website https://www.lesli.tech
185
- @license GPLv3 http://www.gnu.org/licenses/gpl-3.0.en.html
186
-
187
- // · ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~
188
- // ·
189
- */
190
-
191
- /*
192
- Lesli
193
-
194
- Copyright (c) 2020, Lesli Technologies, S. A.
195
-
196
- This program is free software: you can redistribute it and/or modify
197
- it under the terms of the GNU General Public License as published by
198
- the Free Software Foundation, either version 3 of the License, or
199
- (at your option) any later version.
200
-
201
- This program is distributed in the hope that it will be useful,
202
- but WITHOUT ANY WARRANTY; without even the implied warranty of
203
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
204
- GNU General Public License for more details.
205
-
206
- You should have received a copy of the GNU General Public License
207
- along with this program. If not, see <http://www.gnu.org/licenses/>.
208
-
209
- Lesli JS - JavaScript utilities for JavaScript applications
210
-
211
- Powered by LesliTech
212
- Building a better future, one line of code at a time.
213
-
214
- @contact <hello@lesli.tech>
215
- @website <https://lesli.tech>
216
- @license GPLv3 http://www.gnu.org/licenses/gpl-3.0.en.html
217
-
218
- // · ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~
219
- // ·
220
- */
221
-
222
- /*
223
- Lesli
224
-
225
- Copyright (c) 2021, Lesli Technologies, S. A.
226
-
227
- This program is free software: you can redistribute it and/or modify
228
- it under the terms of the GNU General Public License as published by
229
- the Free Software Foundation, either version 3 of the License, or
230
- (at your option) any later version.
231
-
232
- This program is distributed in the hope that it will be useful,
233
- but WITHOUT ANY WARRANTY; without even the implied warranty of
234
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
235
- GNU General Public License for more details.
236
-
237
- You should have received a copy of the GNU General Public License
238
- along with this program. If not, see <http://www.gnu.org/licenses/>.
239
-
240
- Lesli JS - JavaScript utilities for JavaScript applications
241
-
242
- Powered by LesliTech
243
- Building a better future, one line of code at a time.
244
-
245
- @contact <hello@lesli.tech>
246
- @website <https://lesli.tech>
247
- @license GPLv3 http://www.gnu.org/licenses/gpl-3.0.en.html
248
-
249
- // · ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~
250
- // ·
251
- */
252
-
253
- /*
254
- Lesli
255
-
256
- Copyright (c) 2023, Lesli Technologies, S. A.
257
-
258
- This program is free software: you can redistribute it and/or modify
259
- it under the terms of the GNU General Public License as published by
260
- the Free Software Foundation, either version 3 of the License, or
261
- (at your option) any later version.
262
-
263
- This program is distributed in the hope that it will be useful,
264
- but WITHOUT ANY WARRANTY; without even the implied warranty of
265
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
266
- GNU General Public License for more details.
267
-
268
- You should have received a copy of the GNU General Public License
269
- along with this program. If not, see http://www.gnu.org/licenses/.
270
-
271
- Lesli · Ruby on Rails SaaS Development Framework.
272
-
273
- Made with ♥ by https://www.lesli.tech
274
- Building a better future, one line of code at a time.
275
-
276
- @contact hello@lesli.tech
277
- @website https://www.lesli.dev
278
- @license GPLv3 http://www.gnu.org/licenses/gpl-3.0.en.html
279
-
280
- // · ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~
281
- // ·
282
- */
283
-
284
- /*
285
- Lesli
286
-
287
- Copyright (c) 2023, Lesli Technologies, S. A.
288
-
289
- This program is free software: you can redistribute it and/or modify
290
- it under the terms of the GNU General Public License as published by
291
- the Free Software Foundation, either version 3 of the License, or
292
- (at your option) any later version.
293
-
294
- This program is distributed in the hope that it will be useful,
295
- but WITHOUT ANY WARRANTY; without even the implied warranty of
296
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
297
- GNU General Public License for more details.
298
-
299
- You should have received a copy of the GNU General Public License
300
- along with this program. If not, see http://www.gnu.org/licenses/.
301
-
302
- Lesli · Ruby on Rails SaaS Development Framework.
303
-
304
- Made with ♥ by https://www.lesli.tech
305
- Building a better future, one line of code at a time.
306
-
307
- @contact hello@lesli.tech
308
- @website https://www.lesli.tech
309
- @license GPLv3 http://www.gnu.org/licenses/gpl-3.0.en.html
310
-
311
- // · ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~
312
- // ·
313
- */
314
-
315
- /*!
316
- * ApexCharts v3.41.1
317
- * (c) 2018-2023 ApexCharts
318
- * Released under the MIT License.
319
- */
320
-
321
- /*! svg.draggable.js - v2.2.2 - 2019-01-08
322
- * https://github.com/svgdotjs/svg.draggable.js
323
- * Copyright (c) 2019 Wout Fierens; Licensed MIT */
324
-
325
- /*! svg.filter.js - v2.0.2 - 2016-02-24
326
- * https://github.com/wout/svg.filter.js
327
- * Copyright (c) 2016 Wout Fierens; Licensed MIT */