lesli_admin 0.4.0 → 0.5.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/assets/javascripts/lesli_admin/application.js +1597 -3369
- data/app/assets/stylesheets/lesli_admin/application.scss +1 -1
- data/app/{assets/stylesheets/lesli_admin/users.scss → controllers/lesli_admin/profiles_controller.rb} +20 -39
- data/config/locales/translations.en.yml +10 -3
- data/config/locales/translations.es.yml +10 -3
- data/config/routes.rb +2 -0
- data/lib/lesli_admin/version.rb +1 -1
- data/lib/vue/application.js +9 -1
- data/lib/vue/stores/translations.json +18 -2
- metadata +3 -3
@@ -1,4 +1,5 @@
|
|
1
|
-
|
1
|
+
=begin
|
2
|
+
|
2
3
|
Lesli
|
3
4
|
|
4
5
|
Copyright (c) 2023, Lesli Technologies, S. A.
|
@@ -27,41 +28,21 @@ Building a better future, one line of code at a time.
|
|
27
28
|
|
28
29
|
// · ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~
|
29
30
|
// ·
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
}
|
49
|
-
|
50
|
-
form.information {
|
51
|
-
max-width: 80%;
|
52
|
-
}
|
53
|
-
|
54
|
-
// · roles management cards
|
55
|
-
.roles-types {
|
56
|
-
display: grid;
|
57
|
-
grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
|
58
|
-
grid-auto-rows: minmax(198px, auto);
|
59
|
-
gap: 20px;
|
60
|
-
|
61
|
-
&-item {
|
62
|
-
width: 100%;
|
63
|
-
height: 135px;
|
64
|
-
border-radius: 8px;
|
65
|
-
margin: 5px;
|
66
|
-
}
|
67
|
-
}
|
31
|
+
=end
|
32
|
+
|
33
|
+
module LesliAdmin
|
34
|
+
class ProfilesController < ApplicationController
|
35
|
+
before_action :set_account, only: %i[update]
|
36
|
+
|
37
|
+
# GET /profile
|
38
|
+
# GET /profile.json
|
39
|
+
def show
|
40
|
+
respond_to do |format|
|
41
|
+
format.html {}
|
42
|
+
format.json do
|
43
|
+
respond_with_successful()
|
44
|
+
end
|
45
|
+
end
|
46
|
+
end
|
47
|
+
end
|
48
|
+
end
|
@@ -2,6 +2,9 @@
|
|
2
2
|
:en:
|
3
3
|
lesli_admin:
|
4
4
|
accounts:
|
5
|
+
column_phone_number: Phonenumber
|
6
|
+
column_website: Website
|
7
|
+
view_subtitle_social_media: Social media
|
5
8
|
view_title: Account information
|
6
9
|
tab_general_information: General Information
|
7
10
|
column_company_name: Company name
|
@@ -15,9 +18,6 @@
|
|
15
18
|
column_country: Country
|
16
19
|
column_address: Address
|
17
20
|
column_public_email: Public email
|
18
|
-
column_phone_number: Phonenumber
|
19
|
-
column_website: Website
|
20
|
-
view_subtitle_social_media: Social media
|
21
21
|
lesli:
|
22
22
|
shared:
|
23
23
|
view_discussions: Discussions
|
@@ -29,3 +29,10 @@
|
|
29
29
|
button_save: Save
|
30
30
|
button_delete: Delete
|
31
31
|
button_edit: Edit
|
32
|
+
view_status_active: Active
|
33
|
+
view_status_inactive: Inactive
|
34
|
+
button_settings: Settings
|
35
|
+
button_show: Show
|
36
|
+
application:
|
37
|
+
navigation_logout: Logout
|
38
|
+
navigation_my_profile: My profile
|
@@ -2,6 +2,9 @@
|
|
2
2
|
:es:
|
3
3
|
lesli_admin:
|
4
4
|
accounts:
|
5
|
+
column_phone_number: Teléfono
|
6
|
+
column_website: Sitio web
|
7
|
+
view_subtitle_social_media: Redes sociales
|
5
8
|
view_title: Informacion de cuenta
|
6
9
|
tab_general_information: Información General
|
7
10
|
column_company_name: Nombre de Empresa
|
@@ -15,9 +18,6 @@
|
|
15
18
|
column_country: País
|
16
19
|
column_address: Dirección
|
17
20
|
column_public_email: Email publico
|
18
|
-
column_phone_number: Teléfono
|
19
|
-
column_website: Sitio web
|
20
|
-
view_subtitle_social_media: Redes sociales
|
21
21
|
lesli:
|
22
22
|
shared:
|
23
23
|
view_discussions: Discusiones
|
@@ -29,3 +29,10 @@
|
|
29
29
|
button_save: Guardar
|
30
30
|
button_delete: Eliminar
|
31
31
|
button_edit: Editar
|
32
|
+
view_status_active: Activo
|
33
|
+
view_status_inactive: Inactivo
|
34
|
+
button_settings: Configuración
|
35
|
+
button_show: Ver
|
36
|
+
application:
|
37
|
+
navigation_logout: Cerrar sesión
|
38
|
+
navigation_my_profile: Mi perfil
|
data/config/routes.rb
CHANGED
data/lib/lesli_admin/version.rb
CHANGED
data/lib/vue/application.js
CHANGED
@@ -48,6 +48,10 @@ import appDashboardShow from "Lesli/shared/dashboards/apps/show.vue"
|
|
48
48
|
import appDashboardEdit from "Lesli/shared/dashboards/apps/edit.vue"
|
49
49
|
|
50
50
|
|
51
|
+
// ·
|
52
|
+
//import applicationProfileShow from "LesliGuard/apps/users/show.vue"
|
53
|
+
|
54
|
+
|
51
55
|
// ·
|
52
56
|
import componentDashboardLesliVersion from "LesliAdmin/apps/dashboards/components/lesli-version.vue"
|
53
57
|
|
@@ -80,4 +84,8 @@ application("LesliAdmin", [{
|
|
80
84
|
}, {
|
81
85
|
path: "/account",
|
82
86
|
component: applicationAccountShow
|
83
|
-
}
|
87
|
+
}//, {
|
88
|
+
// path: "/profile",
|
89
|
+
// component: applicationProfileShow
|
90
|
+
// }
|
91
|
+
])
|
@@ -1,6 +1,10 @@
|
|
1
1
|
{
|
2
2
|
"en": {
|
3
3
|
"lesli": {
|
4
|
+
"application": {
|
5
|
+
"navigation_logout": "Logout",
|
6
|
+
"navigation_my_profile": "My profile"
|
7
|
+
},
|
4
8
|
"shared": {
|
5
9
|
"button_add_new": "Add new",
|
6
10
|
"button_delete": "Delete",
|
@@ -8,9 +12,13 @@
|
|
8
12
|
"button_list": "List",
|
9
13
|
"button_reload": "Reload",
|
10
14
|
"button_save": "Save",
|
15
|
+
"button_settings": "Settings",
|
16
|
+
"button_show": "Show",
|
11
17
|
"view_discussions": "Discussions",
|
12
18
|
"view_files": "Files",
|
13
|
-
"view_quick_actions": "Quick actions"
|
19
|
+
"view_quick_actions": "Quick actions",
|
20
|
+
"view_status_active": "Active",
|
21
|
+
"view_status_inactive": "Inactive"
|
14
22
|
}
|
15
23
|
},
|
16
24
|
"lesli_admin": {
|
@@ -36,6 +44,10 @@
|
|
36
44
|
},
|
37
45
|
"es": {
|
38
46
|
"lesli": {
|
47
|
+
"application": {
|
48
|
+
"navigation_logout": "Cerrar sesión",
|
49
|
+
"navigation_my_profile": "Mi perfil"
|
50
|
+
},
|
39
51
|
"shared": {
|
40
52
|
"button_add_new": "Agregar nuevo",
|
41
53
|
"button_delete": "Eliminar",
|
@@ -43,9 +55,13 @@
|
|
43
55
|
"button_list": "Lista",
|
44
56
|
"button_reload": "Recargar",
|
45
57
|
"button_save": "Guardar",
|
58
|
+
"button_settings": "Configuración",
|
59
|
+
"button_show": "Ver",
|
46
60
|
"view_discussions": "Discusiones",
|
47
61
|
"view_files": "Archivos",
|
48
|
-
"view_quick_actions": "Acciones rapidas"
|
62
|
+
"view_quick_actions": "Acciones rapidas",
|
63
|
+
"view_status_active": "Activo",
|
64
|
+
"view_status_inactive": "Inactivo"
|
49
65
|
}
|
50
66
|
},
|
51
67
|
"lesli_admin": {
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: lesli_admin
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 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:
|
11
|
+
date: 2024-02-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -50,11 +50,11 @@ files:
|
|
50
50
|
- app/assets/images/lesli_admin/admin-logo.svg
|
51
51
|
- app/assets/javascripts/lesli_admin/application.js
|
52
52
|
- app/assets/stylesheets/lesli_admin/application.scss
|
53
|
-
- app/assets/stylesheets/lesli_admin/users.scss
|
54
53
|
- app/controllers/lesli_admin/accounts_controller.rb
|
55
54
|
- app/controllers/lesli_admin/application_controller.rb
|
56
55
|
- app/controllers/lesli_admin/dashboard/components_controller.rb
|
57
56
|
- app/controllers/lesli_admin/dashboards_controller.rb
|
57
|
+
- app/controllers/lesli_admin/profiles_controller.rb
|
58
58
|
- app/helpers/lesli_admin/application_helper.rb
|
59
59
|
- app/helpers/lesli_admin/dashboards_helper.rb
|
60
60
|
- app/helpers/lesli_admin/profiles_helper.rb
|