lesli_admin 1.0.1 → 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.
Files changed (83) hide show
  1. checksums.yaml +4 -4
  2. data/Rakefile +3 -1
  3. data/app/assets/stylesheets/lesli_admin/application.tailwind.css +2 -0
  4. data/app/controllers/lesli_admin/account/currencies_controller.rb +60 -0
  5. data/app/controllers/lesli_admin/account/details_controller.rb +60 -0
  6. data/app/controllers/lesli_admin/account/locations_controller.rb +60 -0
  7. data/app/controllers/lesli_admin/account/settings_controller.rb +60 -0
  8. data/app/controllers/lesli_admin/accounts_controller.rb +5 -4
  9. data/app/helpers/lesli_admin/account/currencies_helper.rb +4 -0
  10. data/app/helpers/lesli_admin/account/details_helper.rb +4 -0
  11. data/app/helpers/lesli_admin/account/locations_helper.rb +4 -0
  12. data/app/helpers/lesli_admin/account/settings_helper.rb +4 -0
  13. data/app/models/lesli_admin/account/currency.rb +4 -0
  14. data/app/models/lesli_admin/account/detail.rb +4 -0
  15. data/app/models/lesli_admin/account/location.rb +4 -0
  16. data/app/models/lesli_admin/account/setting.rb +4 -0
  17. data/app/models/lesli_admin/account.rb +3 -4
  18. data/app/models/lesli_admin/dashboard.rb +0 -3
  19. data/app/services/lesli_admin/account_service.rb +6 -6
  20. data/app/views/lesli_admin/account/currencies/_currency.html.erb +2 -0
  21. data/app/views/lesli_admin/account/currencies/_form.html.erb +17 -0
  22. data/app/views/lesli_admin/account/currencies/edit.html.erb +12 -0
  23. data/app/views/lesli_admin/account/currencies/index.html.erb +16 -0
  24. data/app/views/lesli_admin/account/currencies/new.html.erb +11 -0
  25. data/app/views/lesli_admin/account/currencies/show.html.erb +10 -0
  26. data/app/views/lesli_admin/account/details/_detail.html.erb +2 -0
  27. data/app/views/lesli_admin/account/details/_form.html.erb +17 -0
  28. data/app/views/lesli_admin/account/details/edit.html.erb +12 -0
  29. data/app/views/lesli_admin/account/details/index.html.erb +16 -0
  30. data/app/views/lesli_admin/account/details/new.html.erb +11 -0
  31. data/app/views/lesli_admin/account/details/show.html.erb +10 -0
  32. data/app/views/lesli_admin/account/locations/_form.html.erb +17 -0
  33. data/app/views/lesli_admin/account/locations/_location.html.erb +2 -0
  34. data/app/views/lesli_admin/account/locations/edit.html.erb +12 -0
  35. data/app/views/lesli_admin/account/locations/index.html.erb +16 -0
  36. data/app/views/lesli_admin/account/locations/new.html.erb +11 -0
  37. data/app/views/lesli_admin/account/locations/show.html.erb +10 -0
  38. data/app/views/lesli_admin/account/settings/_form.html.erb +17 -0
  39. data/app/views/lesli_admin/account/settings/_setting.html.erb +2 -0
  40. data/app/views/lesli_admin/account/settings/edit.html.erb +12 -0
  41. data/app/views/lesli_admin/account/settings/index.html.erb +16 -0
  42. data/app/views/lesli_admin/account/settings/new.html.erb +11 -0
  43. data/app/views/lesli_admin/account/settings/show.html.erb +10 -0
  44. data/app/views/lesli_admin/accounts/show.html.erb +3 -3
  45. data/app/views/lesli_admin/dashboards/_component-installed-engines.html.erb +1 -5
  46. data/app/views/lesli_admin/partials/_navigation.html.erb +0 -1
  47. data/app/views/lesli_admin/settings/_defaults.html.erb +71 -0
  48. data/app/views/lesli_admin/settings/_modules.html.erb +57 -0
  49. data/app/views/lesli_admin/settings/show.html.erb +7 -1
  50. data/config/routes.rb +1 -3
  51. data/db/migrate/v1/0101000210_create_lesli_admin_account_details.rb +70 -0
  52. data/db/migrate/v1/{0101003010_create_lesli_admin_dashboards.rb → 0101000313_create_lesli_admin_account_settings.rb} +11 -4
  53. data/db/migrate/v1/0101000410_create_lesli_admin_account_locations.rb +63 -0
  54. data/{app/controllers/lesli_admin/abouts_controller.rb → db/migrate/v1/0101000510_create_lesli_admin_account_currencies.rb} +14 -14
  55. data/db/seeds.rb +1 -1
  56. data/lib/lesli_admin/version.rb +2 -2
  57. data/readme.md +146 -36
  58. metadata +50 -37
  59. data/app/controllers/lesli_admin/dashboard/components_controller.rb +0 -60
  60. data/app/controllers/lesli_admin/profiles_controller.rb +0 -48
  61. data/app/helpers/lesli_admin/profiles_helper.rb +0 -4
  62. data/app/models/lesli_admin/dashboard/component.rb +0 -49
  63. data/app/views/lesli_admin/abouts/show.html.erb +0 -73
  64. data/app/views/lesli_admin/accounts/_account.html.erb +0 -2
  65. data/app/views/lesli_admin/accounts/_form.html.erb +0 -17
  66. data/app/views/lesli_admin/accounts/edit.html.erb +0 -10
  67. data/app/views/lesli_admin/accounts/index.html.erb +0 -34
  68. data/app/views/lesli_admin/accounts/new.html.erb +0 -9
  69. data/app/views/lesli_admin/accounts/update.turbo_stream.erb +0 -3
  70. data/app/views/lesli_admin/profiles/show.html.erb +0 -1
  71. data/lib/scss/application.scss +0 -4
  72. data/lib/vue/application.js +0 -96
  73. data/lib/vue/apps/about/show.vue +0 -74
  74. data/lib/vue/apps/account/components/form-address.vue +0 -119
  75. data/lib/vue/apps/account/components/form-contact.vue +0 -122
  76. data/lib/vue/apps/account/components/form-information.vue +0 -89
  77. data/lib/vue/apps/account/show.vue +0 -87
  78. data/lib/vue/apps/dashboards/components/lesli-version.vue +0 -73
  79. data/lib/vue/apps/profile/show.vue +0 -129
  80. data/lib/vue/stores/account.js +0 -111
  81. data/lib/vue/stores/account_settings.js +0 -342
  82. data/lib/vue/stores/roles.js +0 -89
  83. data/lib/vue/stores/translations.json +0 -162
@@ -1,89 +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 Development Platform.
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
- // ·
34
- import { defineStore } from "pinia"
35
-
36
-
37
- // ·
38
- export const useRoles = defineStore("administration.roles", {
39
- state: () => {
40
- return {
41
- list: [],
42
- index: {
43
- pagination: {},
44
- records: []
45
- }
46
- }
47
- },
48
- actions: {
49
-
50
- fetchList() {
51
- if (!this.list.length > 0) {
52
- this.getList()
53
- }
54
- },
55
-
56
- // Get the list of role user is able to work with
57
- // according to object level permissions
58
- getList() {
59
- this.http.get(this.url.admin("roles/list")).then(result => {
60
- this.list = result
61
-
62
- // parse the list of roles to be used in select control
63
- /*
64
- this.listOptions = []
65
- this.listOptions = result.map(role => {
66
- return {
67
- label: role.name,
68
- value: role.id
69
- }
70
- })
71
- */
72
- })
73
- },
74
-
75
- fetchRoles() {
76
- if (!this.list.length > 0) {
77
- this.getRoles()
78
- }
79
- },
80
-
81
- // Get the list of role user is able to work with
82
- // according to object level permissions
83
- getRoles() {
84
- this.http.get(this.url.admin("roles")).then(result => {
85
- this.index = result
86
- })
87
- },
88
- }
89
- })
@@ -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
- }