lesli_admin 0.4.0 → 0.5.0

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.
@@ -30,4 +30,4 @@ Building a better future, one line of code at a time.
30
30
  */
31
31
 
32
32
  body.lesli-admin-users,
33
- body.lesli-admin-profile { @import "users"; }
33
+ body.lesli-admin-profile { }
@@ -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
- .user-information-card {
35
- figure {
36
- display: flex;
37
- align-items: center;
38
- justify-content: center;
39
- border-radius: 50%;
40
- background-color: lesli-css-color(silver, 100);
41
- border: 2px solid var(--lesli-color-primary, lesli-css-color(blue));
42
- }
43
- .alternative-avatar {
44
- font-weight: 200;
45
- font-size: 3rem;
46
- color: var(--lesli-color-primary, lesli-css-color(blue));
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
@@ -48,4 +48,6 @@ LesliAdmin::Engine.routes.draw do
48
48
  end
49
49
 
50
50
  resource :account, only: [:show, :update]
51
+
52
+ resource :profile, only: [:show]
51
53
  end
@@ -1,4 +1,4 @@
1
1
  module LesliAdmin
2
- VERSION = "0.4.0"
2
+ VERSION = "0.5.0"
3
3
  BUILD = "1697000148"
4
4
  end
@@ -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.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-12-25 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
@@ -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