lesli 5.0.4 → 5.0.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/assets/icons/lesli/cloud-letter.svg +1 -0
- data/app/assets/icons/readme.md +1 -1
- data/app/assets/images/lesli/brand/app-logo2.svg +52 -0
- data/app/assets/javascripts/lesli/users/passwords.js +85 -119
- data/app/assets/javascripts/lesli/users/registrations.js +85 -119
- data/app/assets/javascripts/lesli/users/sessions.js +76 -130
- data/app/controllers/lesli/application_controller.rb +3 -3
- data/app/controllers/lesli/application_lesli_controller.rb +2 -2
- data/app/controllers/lesli/interfaces/application/authorization.rb +1 -1
- data/app/controllers/lesli/interfaces/application/requester.rb +1 -1
- data/app/controllers/lesli/shared/dashboards_controller.rb +308 -0
- data/app/controllers/lesli/system_controllers_controller.rb +63 -0
- data/app/controllers/users/confirmations_controller.rb +1 -1
- data/app/controllers/users/passwords_controller.rb +7 -10
- data/app/controllers/users/sessions_controller.rb +2 -1
- data/app/helpers/lesli/general_helper.rb +1 -1
- data/app/helpers/lesli/navigation_helper.rb +23 -22
- data/app/lib/lesli/system.rb +3 -1
- data/app/mailers/lesli/devise_mailer.rb +1 -1
- data/app/models/concerns/account_initializer.rb +31 -4
- data/app/models/concerns/user_extensions.rb +8 -6
- data/app/models/concerns/user_security.rb +1 -1
- data/app/models/lesli/account.rb +4 -1
- data/app/models/lesli/application_lesli_record.rb +1 -1
- data/app/models/lesli/descriptor/privilege.rb +1 -0
- data/app/models/lesli/descriptor.rb +1 -4
- data/app/models/lesli/role/power.rb +3 -3
- data/app/models/lesli/shared/dashboard.rb +162 -0
- data/app/models/lesli/system_controller.rb +1 -0
- data/app/models/lesli/user/session.rb +4 -27
- data/app/models/lesli/user.rb +2 -3
- data/app/operators/lesli/controller_operator.rb +148 -0
- data/app/operators/lesli/descriptor_privilege_operator.rb +1 -1
- data/app/operators/lesli/{role_power_operator.rb → role_descriptor_operator.rb} +24 -7
- data/app/views/devise/passwords/new.html.erb +1 -1
- data/app/views/lesli/partials/_application-data.html.erb +7 -0
- data/app/views/lesli/partials/_application-lesli-engines.html.erb +3 -3
- data/app/views/lesli/partials/_application-lesli-icons.html.erb +1 -1
- data/config/initializers/lesli.rb +2 -0
- data/config/locales/translations.en.yml +24 -0
- data/config/locales/translations.es.yml +24 -0
- data/config/routes.rb +6 -2
- data/db/migrate/v1.0/0010005010_create_lesli_descriptors.rb +1 -1
- data/db/migrate/v1.0/0010005510_create_lesli_role_powers.rb +7 -0
- data/db/seed/development/users.rb +0 -1
- data/db/seeds.rb +16 -29
- data/lib/lesli/version.rb +1 -1
- data/lib/mailer_previews/devise_mailer_preview.rb +7 -0
- data/lib/sass/lesli/components/editor-richtext.scss +10 -0
- data/lib/sass/lesli/layouts/application-navbar.scss +1 -1
- data/lib/sass/lesli/templates/application.scss +4 -0
- data/lib/{tasks/lesli/role.rake → sass/lesli/templates/component.scss} +6 -21
- data/lib/tasks/lesli/controllers.rake +1 -91
- data/lib/tasks/lesli/db.rake +37 -6
- data/lib/tasks/lesli/dev.rake +66 -0
- data/lib/tasks/lesli/engine.rake +59 -0
- data/lib/tasks/lesli_tasks.rake +13 -0
- data/lib/vue/application.js +64 -61
- data/lib/vue/devise/passwords.js +8 -8
- data/lib/vue/devise/registrations.js +2 -2
- data/lib/vue/devise/sessions.js +11 -6
- data/lib/vue/layouts/application-header.vue +12 -8
- data/lib/vue/public.js +2 -5
- data/lib/vue/shared/dashboards/apps/edit.vue +215 -0
- data/lib/vue/{apps → shared}/dashboards/apps/index.vue +3 -5
- data/lib/vue/{apps → shared}/dashboards/apps/show.vue +26 -16
- data/lib/vue/{apps → shared}/dashboards/components/form.vue +31 -43
- data/lib/vue/shared/stores/dashboard.js +251 -0
- data/lib/vue/shared/stores/systemController.js +67 -0
- data/lib/vue/stores/translations.json +48 -74
- data/lib/vue/stores/{user.js → users.js} +3 -7
- data/lib/webpack/base.js +4 -2
- data/lib/webpack/core.js +1 -1
- data/readme.md +1 -1
- metadata +51 -40
- data/lib/vue/apps/dashboards/apps/edit.vue +0 -105
- data/lib/vue/apps/dashboards/components/preview.vue +0 -172
- /data/app/assets/icons/lesli/{cloud-vault.svg → cloud-guard.svg} +0 -0
- /data/app/assets/icons/lesli/{cloud-help.svg → cloud-support.svg} +0 -0
- /data/lib/vue/{apps → shared}/cloudobjects/action.vue +0 -0
- /data/lib/vue/{apps → shared}/cloudobjects/discussion/content.vue +0 -0
- /data/lib/vue/{apps → shared}/cloudobjects/discussion/element.vue +0 -0
- /data/lib/vue/{apps → shared}/cloudobjects/discussion/filters.vue +0 -0
- /data/lib/vue/{apps → shared}/cloudobjects/discussion/new.vue +0 -0
- /data/lib/vue/{apps → shared}/cloudobjects/discussion.vue +0 -0
- /data/lib/vue/{apps → shared}/cloudobjects/file/grid.vue +0 -0
- /data/lib/vue/{apps → shared}/cloudobjects/file/list.vue +0 -0
- /data/lib/vue/{apps → shared}/cloudobjects/file.vue +0 -0
- /data/lib/vue/{apps → shared}/dashboards/apps/new.vue +0 -0
- /data/lib/vue/{apps → shared}/workflows2/apps/actions/form.vue +0 -0
- /data/lib/vue/{apps → shared}/workflows2/apps/actions/forms/chatroom-form.vue +0 -0
- /data/lib/vue/{apps → shared}/workflows2/apps/actions/forms/cloud-object-clone-form.vue +0 -0
- /data/lib/vue/{apps → shared}/workflows2/apps/actions/forms/cloud-object-file-form.vue +0 -0
- /data/lib/vue/{apps → shared}/workflows2/apps/actions/forms/email-form.vue +0 -0
- /data/lib/vue/{apps → shared}/workflows2/apps/actions/forms/notification-form.vue +0 -0
- /data/lib/vue/{apps → shared}/workflows2/apps/actions/forms/send-cloud-object-file.vue +0 -0
- /data/lib/vue/{apps → shared}/workflows2/apps/actions/forms/task-form.vue +0 -0
- /data/lib/vue/{apps → shared}/workflows2/apps/actions/index.vue +0 -0
- /data/lib/vue/{apps → shared}/workflows2/apps/checks/form.vue +0 -0
- /data/lib/vue/{apps → shared}/workflows2/apps/checks/index.vue +0 -0
- /data/lib/vue/{apps → shared}/workflows2/apps/index.vue +0 -0
- /data/lib/vue/{apps → shared}/workflows2/apps/new.vue +0 -0
- /data/lib/vue/{apps → shared}/workflows2/apps/show.vue +0 -0
- /data/lib/vue/{apps → shared}/workflows2/components/associations.vue +0 -0
- /data/lib/vue/{apps → shared}/workflows2/components/chart.vue +0 -0
- /data/lib/vue/{apps → shared}/workflows2/components/workflow-form.vue +0 -0
- /data/lib/vue/{apps → shared}/workflows2/components/workflow-status-dropdown.vue +0 -0
@@ -0,0 +1,251 @@
|
|
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 · Your Smart Business Assistant.
|
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://lesli.tech
|
27
|
+
@license GPLv3 http://www.gnu.org/licenses/gpl-3.0.en.html
|
28
|
+
|
29
|
+
// · ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~
|
30
|
+
// ·
|
31
|
+
|
32
|
+
*/
|
33
|
+
|
34
|
+
|
35
|
+
// ·
|
36
|
+
import { defineStore } from "pinia"
|
37
|
+
|
38
|
+
|
39
|
+
// ·
|
40
|
+
export const useDashboard = defineStore("shared.dashboard", {
|
41
|
+
state: () => {
|
42
|
+
return {
|
43
|
+
|
44
|
+
engine: null,
|
45
|
+
loading: false,
|
46
|
+
|
47
|
+
dashboards: [],
|
48
|
+
|
49
|
+
dashboard: {
|
50
|
+
components: []
|
51
|
+
},
|
52
|
+
|
53
|
+
options: {
|
54
|
+
component_ids: []
|
55
|
+
},
|
56
|
+
|
57
|
+
selected_dashboard_component: {},
|
58
|
+
deleted_components: [],
|
59
|
+
default_component_configuration:{
|
60
|
+
index: 1,
|
61
|
+
layout: 4
|
62
|
+
},
|
63
|
+
new_component_id: ""
|
64
|
+
}
|
65
|
+
},
|
66
|
+
actions: {
|
67
|
+
|
68
|
+
setEngine(engine) {
|
69
|
+
this.engine = engine.replace("lesli_", "")
|
70
|
+
},
|
71
|
+
|
72
|
+
getDashboard(id="default") {
|
73
|
+
this.http.get(this.url[this.engine]("dashboards/:id", id)).then(result => {
|
74
|
+
let components = result.components
|
75
|
+
this.dashboard = result
|
76
|
+
this.dashboard.components = []
|
77
|
+
|
78
|
+
// Parse components so they can be rendered
|
79
|
+
components.forEach((component) => {
|
80
|
+
component.component_id = component.component_id.replaceAll('_','-')
|
81
|
+
this.dashboard.components.push(component)
|
82
|
+
})
|
83
|
+
})
|
84
|
+
},
|
85
|
+
|
86
|
+
getDashboardOptions(){
|
87
|
+
|
88
|
+
const url = this.url[this.engine]('dashboards/options')
|
89
|
+
|
90
|
+
this.http.get(url).then(result => {
|
91
|
+
result["component_ids"].forEach((component)=>{
|
92
|
+
this.options["component_ids"].push({
|
93
|
+
label: component.text.replaceAll('_','-'),
|
94
|
+
value: component.value
|
95
|
+
})
|
96
|
+
})
|
97
|
+
}).catch(error => {
|
98
|
+
this.msg.danger(I18n.t("core.shared.messages_danger_internal_error"))
|
99
|
+
})
|
100
|
+
},
|
101
|
+
|
102
|
+
|
103
|
+
|
104
|
+
|
105
|
+
|
106
|
+
|
107
|
+
/**
|
108
|
+
* @description This action is used to fetch the list of dashboards
|
109
|
+
*/
|
110
|
+
fetchDashboards(url) {
|
111
|
+
this.loading = true
|
112
|
+
|
113
|
+
if (!url) url = this.url[this.engine]('dashboards')
|
114
|
+
|
115
|
+
this.http.get(url).then(result => {
|
116
|
+
this.loading = false
|
117
|
+
this.dashboards = result.dashboards.map(dashboard => {
|
118
|
+
dashboard.created_at = this.date2(dashboard.created_at).dateTime().toString()
|
119
|
+
dashboard.updated_at = this.date2(dashboard.updated_at).dateTime().toString()
|
120
|
+
return dashboard
|
121
|
+
})
|
122
|
+
}).catch(error => {
|
123
|
+
this.msg.danger(I18n.t("core.shared.messages_danger_internal_error"))
|
124
|
+
})
|
125
|
+
},
|
126
|
+
/**
|
127
|
+
* @param {string} search_string String to search for
|
128
|
+
* @description This action is used to search for a string in the dashboards
|
129
|
+
*/
|
130
|
+
searchDashboards(search_string){
|
131
|
+
const url = this.url[this.engine]('dashboards').search(search_string)
|
132
|
+
this.fetchDashboards(url)
|
133
|
+
},
|
134
|
+
/**
|
135
|
+
* @description This action is used to reset the dashboard
|
136
|
+
*/
|
137
|
+
resetDashboard(){
|
138
|
+
this.dashboard = {
|
139
|
+
components: []
|
140
|
+
}
|
141
|
+
this.deleted_components = []
|
142
|
+
this.selected_dashboard_component = {}
|
143
|
+
this.new_component_id = ""
|
144
|
+
},
|
145
|
+
/**
|
146
|
+
* @description This action is used to update a dashboard
|
147
|
+
*/
|
148
|
+
updateDashboard(){
|
149
|
+
this.loading = true
|
150
|
+
let data = {
|
151
|
+
dashboard: {
|
152
|
+
name: this.dashboard.name,
|
153
|
+
default: this.dashboard.default,
|
154
|
+
roles_id: this.dashboard.roles_id,
|
155
|
+
components_attributes: this.dashboard.components.map((component)=>{
|
156
|
+
let parsed_component = {...component}
|
157
|
+
// We check if the id is a valid integer or a placeholder. If it is a placeholder, we set it to null
|
158
|
+
if(isNaN(parsed_component.id)){
|
159
|
+
parsed_component.id = null
|
160
|
+
}
|
161
|
+
|
162
|
+
return parsed_component
|
163
|
+
})
|
164
|
+
}
|
165
|
+
}
|
166
|
+
|
167
|
+
data.dashboard.components_attributes = data.dashboard.components_attributes.concat(this.deleted_components)
|
168
|
+
|
169
|
+
const url = this.url[this.engine](`dashboards/${this.dashboard.id}`)
|
170
|
+
|
171
|
+
return this.http.put(url, data).then(result => {
|
172
|
+
this.msg.success(I18n.t("core.users.messages_success_operation"))
|
173
|
+
this.loading = false
|
174
|
+
}).catch(error => {
|
175
|
+
this.msg.danger(I18n.t("core.shared.messages_danger_internal_error"))
|
176
|
+
})
|
177
|
+
},
|
178
|
+
/**
|
179
|
+
* @description This action is used to post a dashboard
|
180
|
+
*/
|
181
|
+
async postDashboard(){
|
182
|
+
this.loading = true
|
183
|
+
let data = {
|
184
|
+
dashboard: {
|
185
|
+
name: this.dashboard.name,
|
186
|
+
default: this.dashboard.default,
|
187
|
+
roles_id: this.dashboard.roles_id,
|
188
|
+
components_attributes: this.dashboard.components.map((component)=>{
|
189
|
+
let parsed_component = {...component}
|
190
|
+
parsed_component.id = null
|
191
|
+
|
192
|
+
return parsed_component
|
193
|
+
})
|
194
|
+
}
|
195
|
+
}
|
196
|
+
|
197
|
+
const url = this.url[this.engine]('dashboards')
|
198
|
+
|
199
|
+
return this.http.post(url, data).then(result => {
|
200
|
+
this.msg.success(I18n.t("core.users.messages_success_operation"))
|
201
|
+
this.loading = false
|
202
|
+
}).catch(error => {
|
203
|
+
this.msg.danger(I18n.t("core.shared.messages_danger_internal_error"))
|
204
|
+
})
|
205
|
+
},
|
206
|
+
/**
|
207
|
+
* @description This action is used to get dashboard options
|
208
|
+
*/
|
209
|
+
|
210
|
+
/**
|
211
|
+
* @description This action is used to get the information for a dashboard
|
212
|
+
*/
|
213
|
+
fetchDashboard(dashboard_id){
|
214
|
+
|
215
|
+
this.loading = true
|
216
|
+
|
217
|
+
const url = this.url[this.engine]('dashboards/:dashboardId', { dashboardId: dashboard_id })
|
218
|
+
|
219
|
+
return this.http.get(url).then(result => {
|
220
|
+
|
221
|
+
let components = result.components
|
222
|
+
this.dashboard = result
|
223
|
+
this.dashboard.components = []
|
224
|
+
|
225
|
+
// Parse components so they can be rendered
|
226
|
+
components.forEach((component) => {
|
227
|
+
component.component_id = component.component_id.replaceAll('_','-')
|
228
|
+
this.dashboard.components.push(component)
|
229
|
+
})
|
230
|
+
|
231
|
+
this.loading = false
|
232
|
+
}).catch(error => {
|
233
|
+
this.msg.danger(I18n.t("core.shared.messages_danger_internal_error"))
|
234
|
+
})
|
235
|
+
},
|
236
|
+
/**
|
237
|
+
* @description This action is used to delete a dashboard
|
238
|
+
*/
|
239
|
+
async deleteDashboard(){
|
240
|
+
this.loading = true
|
241
|
+
const url = this.url[this.engine]('dashboards/:dashboardId', { dashboardId: this.dashboard.id })
|
242
|
+
|
243
|
+
return this.http.delete(url).then(result => {
|
244
|
+
this.msg.success(I18n.t("core.users.messages_success_operation"))
|
245
|
+
this.loading = false
|
246
|
+
}).catch(error => {
|
247
|
+
this.msg.danger(I18n.t("core.shared.messages_danger_internal_error"))
|
248
|
+
})
|
249
|
+
}
|
250
|
+
}
|
251
|
+
})
|
@@ -0,0 +1,67 @@
|
|
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
|
+
// ·
|
34
|
+
import { defineStore } from "pinia"
|
35
|
+
|
36
|
+
|
37
|
+
// ·
|
38
|
+
export const useSystemController = defineStore("lesli.systemController", {
|
39
|
+
state: () => {
|
40
|
+
return {
|
41
|
+
options: { categories: []},
|
42
|
+
controllerActions: {},
|
43
|
+
}
|
44
|
+
},
|
45
|
+
actions: {
|
46
|
+
|
47
|
+
fetchControllers() {
|
48
|
+
this.http.get(this.url.lesli("system_controllers")).then(result => {
|
49
|
+
result.forEach(controllerAction => {
|
50
|
+
if (!this.controllerActions[controllerAction.action]) {
|
51
|
+
this.controllerActions[controllerAction.action] = []
|
52
|
+
}
|
53
|
+
controllerAction['active'] = false
|
54
|
+
this.controllerActions[controllerAction.action].push(controllerAction)
|
55
|
+
})
|
56
|
+
}).catch(error => {
|
57
|
+
console.log(error)
|
58
|
+
})
|
59
|
+
},
|
60
|
+
|
61
|
+
fetchOptions() {
|
62
|
+
this.http.get(this.url.admin("system_controllers/options")).then(result => {
|
63
|
+
this.options = result
|
64
|
+
})
|
65
|
+
}
|
66
|
+
}
|
67
|
+
})
|
@@ -1,85 +1,59 @@
|
|
1
1
|
{
|
2
2
|
"en": {
|
3
3
|
"lesli": {
|
4
|
-
"
|
5
|
-
"
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
"
|
14
|
-
|
15
|
-
|
16
|
-
"
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
"
|
22
|
-
|
23
|
-
|
24
|
-
"
|
25
|
-
}
|
26
|
-
|
27
|
-
|
28
|
-
"shared": {
|
29
|
-
"title_lesli": ":lesli.shared.title_lesli:"
|
30
|
-
},
|
31
|
-
"users": {
|
32
|
-
"title_users": "Users"
|
33
|
-
}
|
34
|
-
},
|
35
|
-
"lesli_driver": {
|
36
|
-
"shared": {
|
37
|
-
"title_lesli": ":lesli.shared.title_lesli:"
|
38
|
-
},
|
39
|
-
"users": {
|
40
|
-
"title_users": "Users"
|
4
|
+
"application": {
|
5
|
+
"navigation_logout": "Logout",
|
6
|
+
"navigation_my_profile": "My profile"
|
7
|
+
},
|
8
|
+
"dashboards": {
|
9
|
+
"title": "Dashboards"
|
10
|
+
},
|
11
|
+
"shared": {
|
12
|
+
"button_add_new": "Add new",
|
13
|
+
"button_delete": "Delete",
|
14
|
+
"button_edit": "Edit",
|
15
|
+
"button_list": "List",
|
16
|
+
"button_reload": "Reload",
|
17
|
+
"button_save": "Save",
|
18
|
+
"button_settings": "Settings",
|
19
|
+
"button_show": "Show",
|
20
|
+
"view_discussions": "Discussions",
|
21
|
+
"view_files": "Files",
|
22
|
+
"view_quick_actions": "Quick actions",
|
23
|
+
"view_status_active": "Active",
|
24
|
+
"view_status_inactive": "Inactive"
|
25
|
+
},
|
26
|
+
"users/sessions": {
|
27
|
+
"view_username": "Username"
|
41
28
|
}
|
42
29
|
}
|
43
30
|
},
|
44
31
|
"es": {
|
45
32
|
"lesli": {
|
46
|
-
"
|
47
|
-
"
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
"
|
56
|
-
|
57
|
-
|
58
|
-
"
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
"
|
64
|
-
|
65
|
-
|
66
|
-
"
|
67
|
-
}
|
68
|
-
|
69
|
-
|
70
|
-
"shared": {
|
71
|
-
"title_lesli": "Lesli en español "
|
72
|
-
},
|
73
|
-
"users": {
|
74
|
-
"title_users": "Usuarios"
|
75
|
-
}
|
76
|
-
},
|
77
|
-
"lesli_driver": {
|
78
|
-
"shared": {
|
79
|
-
"title_lesli": "Lesli en español "
|
80
|
-
},
|
81
|
-
"users": {
|
82
|
-
"title_users": "Usuarios"
|
33
|
+
"application": {
|
34
|
+
"navigation_logout": "Cerrar sesión",
|
35
|
+
"navigation_my_profile": "Mi perfil"
|
36
|
+
},
|
37
|
+
"dashboards": {
|
38
|
+
"title": "Dashboards"
|
39
|
+
},
|
40
|
+
"shared": {
|
41
|
+
"button_add_new": "Agregar nuevo",
|
42
|
+
"button_delete": "Eliminar",
|
43
|
+
"button_edit": "Editar",
|
44
|
+
"button_list": "Lista",
|
45
|
+
"button_reload": "Recargar",
|
46
|
+
"button_save": "Guardar",
|
47
|
+
"button_settings": "Configuración",
|
48
|
+
"button_show": "Ver",
|
49
|
+
"view_discussions": "Discusiones",
|
50
|
+
"view_files": "Archivos",
|
51
|
+
"view_quick_actions": "Acciones rapidas",
|
52
|
+
"view_status_active": "Activo",
|
53
|
+
"view_status_inactive": "Inactivo"
|
54
|
+
},
|
55
|
+
"users/sessions": {
|
56
|
+
"view_username": "Usuario"
|
83
57
|
}
|
84
58
|
}
|
85
59
|
}
|
@@ -35,23 +35,19 @@ import { defineStore } from "pinia"
|
|
35
35
|
|
36
36
|
|
37
37
|
// ·
|
38
|
-
export const
|
38
|
+
export const useUsers = defineStore("lesli.users", {
|
39
39
|
state: () => {
|
40
40
|
return {
|
41
|
-
|
41
|
+
list: []
|
42
42
|
}
|
43
43
|
},
|
44
44
|
actions: {
|
45
45
|
|
46
46
|
getUsersList() {
|
47
|
-
|
48
|
-
// get an specifick user if id is provided
|
49
47
|
this.http.get(this.url.lesli("users/list")).then(result => {
|
50
|
-
|
48
|
+
this.list = result
|
51
49
|
}).catch(error => {
|
52
50
|
this.msg.danger(I18n.t("core.shared.messages_danger_internal_error"))
|
53
|
-
}).finally(() => {
|
54
|
-
this.loading = false
|
55
51
|
})
|
56
52
|
}
|
57
53
|
}
|
data/lib/webpack/base.js
CHANGED
@@ -116,15 +116,17 @@ module.exports = env => {
|
|
116
116
|
LesliAdmin: path.resolve("../", "LesliAdmin", "lib", "vue"),
|
117
117
|
LesliAudit: path.resolve("../", "LesliAudit", "lib", "vue"),
|
118
118
|
LesliBabel: path.resolve("../", "LesliBabel", "lib", "vue"),
|
119
|
-
|
119
|
+
LesliGuard: path.resolve("../", "LesliGuard", "lib", "vue"),
|
120
|
+
LesliLetter: path.resolve("../", "LesliLetter", "lib", "vue"),
|
120
121
|
LesliDriver: path.resolve("../", "LesliDriver", "lib", "vue"),
|
122
|
+
LesliSupport: path.resolve("../", "LesliSupport", "lib", "vue"),
|
123
|
+
|
121
124
|
|
122
125
|
|
123
126
|
CloudAdmin: path.resolve("app", "vue", "admin"),
|
124
127
|
CloudTalk: path.resolve("engines", "cloud_talk", "lib", "vue"),
|
125
128
|
CloudTeam: path.resolve("engines", "cloud_team", "lib", "vue"),
|
126
129
|
CloudTime: path.resolve("engines", "cloud_time", "lib", "vue"),
|
127
|
-
CloudHelp: path.resolve("engines", "cloud_help", "lib", "vue"),
|
128
130
|
CloudWork: path.resolve("engines", "cloud_work", "lib", "vue"),
|
129
131
|
CloudBabel: path.resolve("engines", "cloud_babel", "lib", "vue"),
|
130
132
|
CloudFocus: path.resolve("engines", "cloud_focus", "lib", "vue"),
|
data/lib/webpack/core.js
CHANGED
@@ -66,7 +66,7 @@ module.exports = (env, requestedEngines) => {
|
|
66
66
|
"lesli/users/registrations": "Lesli/devise/registrations.js",
|
67
67
|
"lesli/users/confirmations": "Lesli/devise/confirmations.js",
|
68
68
|
"lesli/users/passwords": "Lesli/devise/passwords.js",
|
69
|
-
|
69
|
+
|
70
70
|
},
|
71
71
|
output: {
|
72
72
|
path: path.resolve("app", "assets", "javascripts")
|