lesli_admin 0.4.0 → 0.6.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.
Files changed (34) hide show
  1. checksums.yaml +4 -4
  2. data/app/assets/javascripts/lesli_admin/application.js +1109 -1590
  3. data/app/assets/stylesheets/lesli_admin/application.css +4 -0
  4. data/{lib/vue/apps/dashboards/show.vue → app/controllers/lesli_admin/abouts_controller.rb} +16 -12
  5. data/app/controllers/lesli_admin/accounts_controller.rb +24 -21
  6. data/app/controllers/lesli_admin/dashboard/components_controller.rb +1 -1
  7. data/app/{assets/stylesheets/lesli_admin/application.scss → controllers/lesli_admin/profiles_controller.rb} +20 -5
  8. data/app/models/lesli_admin/dashboard/component.rb +3 -4
  9. data/app/services/lesli_admin/account_service.rb +16 -1
  10. data/app/views/lesli_admin/abouts/show.html.erb +1 -0
  11. data/app/views/lesli_admin/partials/_engine-navigation.html.erb +2 -1
  12. data/config/locales/translations.en.yml +9 -1
  13. data/config/locales/translations.es.yml +9 -1
  14. data/config/locales/translations.fr.yml +39 -0
  15. data/config/locales/translations.it.yml +39 -0
  16. data/config/locales/translations.pt.yml +39 -0
  17. data/config/routes.rb +4 -0
  18. data/db/seed/development.rb +0 -0
  19. data/db/seed/production.rb +0 -0
  20. data/{app/assets/stylesheets/lesli_admin/users.scss → db/seeds.rb} +13 -36
  21. data/lib/lesli_admin/version.rb +2 -2
  22. data/lib/scss/application.scss +0 -0
  23. data/lib/vue/application.js +21 -8
  24. data/lib/vue/apps/about/show.vue +73 -0
  25. data/lib/vue/apps/account/components/form-address.vue +1 -1
  26. data/lib/vue/apps/account/components/form-contact.vue +1 -1
  27. data/lib/vue/apps/account/components/form-information.vue +4 -4
  28. data/lib/vue/apps/account/show.vue +8 -11
  29. data/lib/vue/apps/profile/show.vue +129 -0
  30. data/lib/vue/stores/account.js +111 -0
  31. data/lib/vue/stores/translations.json +182 -2
  32. data/license +674 -0
  33. data/readme.md +14 -6
  34. metadata +17 -5
@@ -0,0 +1,4 @@
1
+ /*!********************************************************************************************************************************************************!*\
2
+ !*** css ./node_modules/css-loader/dist/cjs.js??clonedRuleSet-7.use[1]!./node_modules/sass-loader/dist/cjs.js!../LesliAdmin/lib/scss/application.scss ***!
3
+ \********************************************************************************************************************************************************/
4
+
@@ -1,5 +1,4 @@
1
- <script setup>
2
- /*
1
+ =begin
3
2
 
4
3
  Lesli
5
4
 
@@ -29,13 +28,18 @@ Building a better future, one line of code at a time.
29
28
 
30
29
  // · ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~
31
30
  // ·
32
- */
33
-
34
-
35
- // ·
36
- import LesliDashboard from "Lesli/shared/dashboards/apps/show.vue"
37
-
38
- </script>
39
- <template>
40
- <lesli-dashboard></lesli-dashboard>
41
- </template>
31
+ =end
32
+
33
+ module LesliAdmin
34
+ class AboutsController < 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
+ end
43
+ end
44
+ end
45
+ end
@@ -19,7 +19,7 @@ along with this program. If not, see http://www.gnu.org/licenses/.
19
19
 
20
20
  Lesli · Ruby on Rails SaaS Development Framework.
21
21
 
22
- Made with ♥ by https://www.lesli.tech
22
+ Made with ♥ by LesliTech
23
23
  Building a better future, one line of code at a time.
24
24
 
25
25
  @contact hello@lesli.tech
@@ -32,7 +32,7 @@ Building a better future, one line of code at a time.
32
32
 
33
33
  module LesliAdmin
34
34
  class AccountsController < ApplicationController
35
- before_action :set_account, only: %i[update]
35
+ before_action :set_account, only: %i[show update]
36
36
 
37
37
  # GET /accounts/1
38
38
  # GET /accounts/1.json
@@ -40,7 +40,6 @@ module LesliAdmin
40
40
  respond_to do |format|
41
41
  format.html {}
42
42
  format.json do
43
- set_account
44
43
  respond_with_successful(AccountService.new(current_user, query).show)
45
44
  end
46
45
  end
@@ -99,24 +98,28 @@ module LesliAdmin
99
98
  def account_params
100
99
  params.require(:account).permit(
101
100
  :id,
102
- :company_name,
103
- :company_name_legal,
104
- :company_tagline,
105
- :country,
106
- :city,
107
- :postal_code,
108
- :address,
109
- :region,
110
- :website,
111
- :phone_number_1,
112
- :public_email,
113
- :github,
114
- :twitter,
115
- :youtube,
116
- :linkedin,
117
- :facebook,
118
- :status,
119
- :users_id
101
+ :name,
102
+ detail_attributes: [
103
+ :company_name_legal,
104
+ :company_tagline
105
+ ]
106
+ # :company_name_legal,
107
+ # :company_tagline,
108
+ # :country,
109
+ # :city,
110
+ # :postal_code,
111
+ # :address,
112
+ # :region,
113
+ # :website,
114
+ # :phone_number_1,
115
+ # :public_email,
116
+ # :github,
117
+ # :twitter,
118
+ # :youtube,
119
+ # :linkedin,
120
+ # :facebook,
121
+ # :status,
122
+ # :users_id
120
123
  )
121
124
  end
122
125
  end
@@ -1,4 +1,4 @@
1
- module LesliAudit
1
+ module LesliAdmin
2
2
  class Dashboard::ComponentsController < ApplicationController
3
3
  before_action :set_dashboard_component, only: %i[ show edit update destroy ]
4
4
 
@@ -1,4 +1,5 @@
1
- /*
1
+ =begin
2
+
2
3
  Lesli
3
4
 
4
5
  Copyright (c) 2023, Lesli Technologies, S. A.
@@ -27,7 +28,21 @@ Building a better future, one line of code at a time.
27
28
 
28
29
  // · ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~
29
30
  // ·
30
- */
31
-
32
- body.lesli-admin-users,
33
- body.lesli-admin-profile { @import "users"; }
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
@@ -32,12 +32,11 @@ Building a better future, one line of code at a time.
32
32
 
33
33
  module LesliAdmin
34
34
  class Dashboard::Component < ApplicationRecord
35
-
36
35
  belongs_to :dashboard, inverse_of: :components
37
36
 
38
- def self.component_ids
39
- ["version"]
40
- end
37
+ # def self.component_ids
38
+ # ["version"]
39
+ # end
41
40
  # components_ids: {
42
41
  # list_new_tickets: "list_new_tickets",
43
42
  # list_my_tickets: "list_my_tickets",
@@ -33,7 +33,22 @@ Building a better future, one line of code at a time.
33
33
  module LesliAdmin
34
34
  class AccountService < Lesli::ApplicationLesliService
35
35
  def show
36
- current_user.account
36
+ account = Lesli::Account.left_joins(:detail)
37
+ .where(:id => current_user.account.id)
38
+ .select(:id, :email, :name, :company_name_legal, :company_tagline)
39
+ .first
40
+
41
+ {
42
+ id: account.id,
43
+ name: account.name,
44
+ email: account.email,
45
+ detail_attributes: {
46
+ company_name_legal: account.company_name_legal,
47
+ company_tagline: account.company_tagline
48
+ }
49
+ }
50
+
51
+ #current_user.account.joins(:detail)
37
52
  end
38
53
  end
39
54
  end
@@ -0,0 +1 @@
1
+ <router-view></router-view>
@@ -18,7 +18,7 @@ GNU General Public License for more details.
18
18
  You should have received a copy of the GNU General Public License
19
19
  along with this program. If not, see http://www.gnu.org/licenses/.
20
20
 
21
- Lesli · Ruby on Rails SaaS development platform.
21
+ Lesli · Ruby on Rails SaaS Development Framework.
22
22
 
23
23
  Made with ♥ by https://www.lesli.tech
24
24
  Building a better future, one line of code at a time.
@@ -34,6 +34,7 @@ Building a better future, one line of code at a time.
34
34
 
35
35
  <%= navigation_item(lesli_admin.dashboard_path, "Dashboard", "ri-dashboard-3-line"); %>
36
36
  <%= navigation_item(lesli_admin.account_path, "Account", "ri-building-4-line"); %>
37
+ <%= navigation_item(lesli_admin.about_path, "About", "ri-star-line"); %>
37
38
 
38
39
  <%#= navigation_item(lesli.account_path, "Localization", "ri-time-line"); %>
39
40
  <%#= navigation_item(lesli.account_path, "Theming", "ri-paint-brush-line"); %>
@@ -6,6 +6,7 @@
6
6
  tab_general_information: General Information
7
7
  column_company_name: Company name
8
8
  column_company_name_legal: Legal name
9
+ view_subtitle_social_media: Social media
9
10
  column_city: City
10
11
  column_tag_line: Slogan
11
12
  column_postal_code: Postal code
@@ -17,7 +18,6 @@
17
18
  column_public_email: Public email
18
19
  column_phone_number: Phonenumber
19
20
  column_website: Website
20
- view_subtitle_social_media: Social media
21
21
  lesli:
22
22
  shared:
23
23
  view_discussions: Discussions
@@ -29,3 +29,11 @@
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
+ toolbar_search: Search...
37
+ application:
38
+ navigation_logout: Logout
39
+ navigation_my_profile: My profile
@@ -6,6 +6,7 @@
6
6
  tab_general_information: Información General
7
7
  column_company_name: Nombre de Empresa
8
8
  column_company_name_legal: Razon social
9
+ view_subtitle_social_media: Redes sociales
9
10
  column_city: Ciudad
10
11
  column_tag_line: Slogan
11
12
  column_postal_code: Código postal
@@ -17,7 +18,6 @@
17
18
  column_public_email: Email publico
18
19
  column_phone_number: Teléfono
19
20
  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,11 @@
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
+ toolbar_search: Buscar...
37
+ application:
38
+ navigation_logout: Cerrar sesión
39
+ navigation_my_profile: Mi perfil
@@ -0,0 +1,39 @@
1
+ ---
2
+ :fr:
3
+ lesli_admin:
4
+ accounts:
5
+ view_title: ":lesli_admin.accounts.view_title:"
6
+ tab_general_information: ":lesli_admin.accounts.tab_general_information:"
7
+ column_company_name: ":lesli_admin.accounts.column_company_name:"
8
+ column_company_name_legal: ":lesli_admin.accounts.column_company_name_legal:"
9
+ view_subtitle_social_media: ":lesli_admin.accounts.view_subtitle_social_media:"
10
+ column_city: ":lesli_admin.accounts.column_city:"
11
+ column_tag_line: ":lesli_admin.accounts.column_tag_line:"
12
+ column_postal_code: ":lesli_admin.accounts.column_postal_code:"
13
+ column_region: ":lesli_admin.accounts.column_region:"
14
+ tab_contact: ":lesli_admin.accounts.tab_contact:"
15
+ tab_address: ":lesli_admin.accounts.tab_address:"
16
+ column_country: ":lesli_admin.accounts.column_country:"
17
+ column_address: ":lesli_admin.accounts.column_address:"
18
+ column_public_email: ":lesli_admin.accounts.column_public_email:"
19
+ column_phone_number: ":lesli_admin.accounts.column_phone_number:"
20
+ column_website: ":lesli_admin.accounts.column_website:"
21
+ lesli:
22
+ shared:
23
+ view_discussions: ":lesli.shared.view_discussions:"
24
+ button_add_new: ":lesli.shared.button_add_new:"
25
+ button_reload: ":lesli.shared.button_reload:"
26
+ view_files: ":lesli.shared.view_files:"
27
+ view_quick_actions: ":lesli.shared.view_quick_actions:"
28
+ button_list: ":lesli.shared.button_list:"
29
+ button_save: ":lesli.shared.button_save:"
30
+ button_delete: ":lesli.shared.button_delete:"
31
+ button_edit: ":lesli.shared.button_edit:"
32
+ view_status_active: ":lesli.shared.view_status_active:"
33
+ view_status_inactive: ":lesli.shared.view_status_inactive:"
34
+ button_settings: ":lesli.shared.button_settings:"
35
+ button_show: ":lesli.shared.button_show:"
36
+ toolbar_search: ":lesli.shared.toolbar_search:"
37
+ application:
38
+ navigation_logout: ":lesli.application.navigation_logout:"
39
+ navigation_my_profile: ":lesli.application.navigation_my_profile:"
@@ -0,0 +1,39 @@
1
+ ---
2
+ :it:
3
+ lesli_admin:
4
+ accounts:
5
+ view_title: ":lesli_admin.accounts.view_title:"
6
+ tab_general_information: ":lesli_admin.accounts.tab_general_information:"
7
+ column_company_name: ":lesli_admin.accounts.column_company_name:"
8
+ column_company_name_legal: ":lesli_admin.accounts.column_company_name_legal:"
9
+ view_subtitle_social_media: ":lesli_admin.accounts.view_subtitle_social_media:"
10
+ column_city: ":lesli_admin.accounts.column_city:"
11
+ column_tag_line: ":lesli_admin.accounts.column_tag_line:"
12
+ column_postal_code: ":lesli_admin.accounts.column_postal_code:"
13
+ column_region: ":lesli_admin.accounts.column_region:"
14
+ tab_contact: ":lesli_admin.accounts.tab_contact:"
15
+ tab_address: ":lesli_admin.accounts.tab_address:"
16
+ column_country: ":lesli_admin.accounts.column_country:"
17
+ column_address: ":lesli_admin.accounts.column_address:"
18
+ column_public_email: ":lesli_admin.accounts.column_public_email:"
19
+ column_phone_number: ":lesli_admin.accounts.column_phone_number:"
20
+ column_website: ":lesli_admin.accounts.column_website:"
21
+ lesli:
22
+ shared:
23
+ view_discussions: ":lesli.shared.view_discussions:"
24
+ button_add_new: ":lesli.shared.button_add_new:"
25
+ button_reload: ":lesli.shared.button_reload:"
26
+ view_files: ":lesli.shared.view_files:"
27
+ view_quick_actions: ":lesli.shared.view_quick_actions:"
28
+ button_list: ":lesli.shared.button_list:"
29
+ button_save: ":lesli.shared.button_save:"
30
+ button_delete: ":lesli.shared.button_delete:"
31
+ button_edit: ":lesli.shared.button_edit:"
32
+ view_status_active: ":lesli.shared.view_status_active:"
33
+ view_status_inactive: ":lesli.shared.view_status_inactive:"
34
+ button_settings: ":lesli.shared.button_settings:"
35
+ button_show: ":lesli.shared.button_show:"
36
+ toolbar_search: ":lesli.shared.toolbar_search:"
37
+ application:
38
+ navigation_logout: ":lesli.application.navigation_logout:"
39
+ navigation_my_profile: ":lesli.application.navigation_my_profile:"
@@ -0,0 +1,39 @@
1
+ ---
2
+ :pt:
3
+ lesli_admin:
4
+ accounts:
5
+ view_title: ":lesli_admin.accounts.view_title:"
6
+ tab_general_information: ":lesli_admin.accounts.tab_general_information:"
7
+ column_company_name: ":lesli_admin.accounts.column_company_name:"
8
+ column_company_name_legal: ":lesli_admin.accounts.column_company_name_legal:"
9
+ view_subtitle_social_media: ":lesli_admin.accounts.view_subtitle_social_media:"
10
+ column_city: ":lesli_admin.accounts.column_city:"
11
+ column_tag_line: ":lesli_admin.accounts.column_tag_line:"
12
+ column_postal_code: ":lesli_admin.accounts.column_postal_code:"
13
+ column_region: ":lesli_admin.accounts.column_region:"
14
+ tab_contact: ":lesli_admin.accounts.tab_contact:"
15
+ tab_address: ":lesli_admin.accounts.tab_address:"
16
+ column_country: ":lesli_admin.accounts.column_country:"
17
+ column_address: ":lesli_admin.accounts.column_address:"
18
+ column_public_email: ":lesli_admin.accounts.column_public_email:"
19
+ column_phone_number: ":lesli_admin.accounts.column_phone_number:"
20
+ column_website: ":lesli_admin.accounts.column_website:"
21
+ lesli:
22
+ shared:
23
+ view_discussions: ":lesli.shared.view_discussions:"
24
+ button_add_new: ":lesli.shared.button_add_new:"
25
+ button_reload: ":lesli.shared.button_reload:"
26
+ view_files: ":lesli.shared.view_files:"
27
+ view_quick_actions: ":lesli.shared.view_quick_actions:"
28
+ button_list: ":lesli.shared.button_list:"
29
+ button_save: ":lesli.shared.button_save:"
30
+ button_delete: ":lesli.shared.button_delete:"
31
+ button_edit: ":lesli.shared.button_edit:"
32
+ view_status_active: ":lesli.shared.view_status_active:"
33
+ view_status_inactive: ":lesli.shared.view_status_inactive:"
34
+ button_settings: ":lesli.shared.button_settings:"
35
+ button_show: ":lesli.shared.button_show:"
36
+ toolbar_search: ":lesli.shared.toolbar_search:"
37
+ application:
38
+ navigation_logout: ":lesli.application.navigation_logout:"
39
+ navigation_my_profile: ":lesli.application.navigation_my_profile:"
data/config/routes.rb CHANGED
@@ -48,4 +48,8 @@ LesliAdmin::Engine.routes.draw do
48
48
  end
49
49
 
50
50
  resource :account, only: [:show, :update]
51
+
52
+ resource :profile, only: [:show]
53
+
54
+ resource :about, only: [:show]
51
55
  end
File without changes
File without changes
@@ -1,4 +1,5 @@
1
- /*
1
+ =begin
2
+
2
3
  Lesli
3
4
 
4
5
  Copyright (c) 2023, Lesli Technologies, S. A.
@@ -18,7 +19,7 @@ along with this program. If not, see http://www.gnu.org/licenses/.
18
19
 
19
20
  Lesli · Ruby on Rails SaaS Development Framework.
20
21
 
21
- Made with ♥ by https://www.lesli.tech
22
+ Made with ♥ by LesliTech
22
23
  Building a better future, one line of code at a time.
23
24
 
24
25
  @contact hello@lesli.tech
@@ -27,41 +28,17 @@ Building a better future, one line of code at a time.
27
28
 
28
29
  // · ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~
29
30
  // ·
30
- */
31
-
31
+ =end
32
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
33
 
50
- form.information {
51
- max-width: 80%;
52
- }
34
+ # IMPORTANT:
35
+ # Seed files are only for development, if you need to create default resources
36
+ # for production you must use the initializer method in the Engine account model
37
+ L2.msg(
38
+ "LesliAudit",
39
+ "Version: #{LesliAdmin::VERSION}",
40
+ "Build: #{LesliAdmin::BUILD}",
41
+ "Env: #{Rails.env}")
42
+ #load(LesliAdmin::Engine.root.join("db", "seed", "#{ Rails.env.downcase }.rb"))
53
43
 
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
44
 
61
- &-item {
62
- width: 100%;
63
- height: 135px;
64
- border-radius: 8px;
65
- margin: 5px;
66
- }
67
- }
@@ -1,4 +1,4 @@
1
1
  module LesliAdmin
2
- VERSION = "0.4.0"
3
- BUILD = "1697000148"
2
+ VERSION = "0.6.0"
3
+ BUILD = "1713121383"
4
4
  end
File without changes
@@ -18,7 +18,7 @@ along with this program. If not, see http://www.gnu.org/licenses/.
18
18
 
19
19
  Lesli · Ruby on Rails SaaS Development Framework.
20
20
 
21
- Made with ♥ by https://www.lesli.tech
21
+ Made with ♥ by LesliTech
22
22
  Building a better future, one line of code at a time.
23
23
 
24
24
  @contact hello@lesli.tech
@@ -31,25 +31,32 @@ Building a better future, one line of code at a time.
31
31
 
32
32
 
33
33
  // · Import Lesli builders
34
- import application from "Lesli/application"
35
- import translation from "Lesli/translation"
34
+ import application from "Lesli/vue/application"
35
+ import translation from "Lesli/vue/translation"
36
36
 
37
37
 
38
38
  // · Import engine translations
39
- import translations from "LesliAdmin/stores/translations.json"
39
+ import translations from "LesliAdmin/vue/stores/translations.json"
40
40
 
41
41
 
42
42
  // · Import engine applications
43
- import applicationAccountShow from "LesliAdmin/apps/account/show.vue"
43
+ import applicationAccountShow from "LesliAdmin/vue/apps/account/show.vue"
44
+
45
+ // ·
46
+ import applicationAboutShow from "LesliAdmin/vue/apps/about/show.vue"
44
47
 
45
48
 
46
49
  // ·
47
- import appDashboardShow from "Lesli/shared/dashboards/apps/show.vue"
48
- import appDashboardEdit from "Lesli/shared/dashboards/apps/edit.vue"
50
+ import appDashboardShow from "Lesli/vue/shared/dashboards/apps/show.vue"
51
+ import appDashboardEdit from "Lesli/vue/shared/dashboards/apps/edit.vue"
49
52
 
50
53
 
51
54
  // ·
52
- import componentDashboardLesliVersion from "LesliAdmin/apps/dashboards/components/lesli-version.vue"
55
+ import appProfileShow from "LesliAdmin/vue/apps/profile/show.vue"
56
+
57
+
58
+ // ·
59
+ import componentDashboardLesliVersion from "LesliAdmin/vue/apps/dashboards/components/lesli-version.vue"
53
60
 
54
61
 
55
62
  // ·
@@ -80,4 +87,10 @@ application("LesliAdmin", [{
80
87
  }, {
81
88
  path: "/account",
82
89
  component: applicationAccountShow
90
+ }, {
91
+ path: "/about",
92
+ component: applicationAboutShow
93
+ }, {
94
+ path: "/profile",
95
+ component: appProfileShow
83
96
  }])
@@ -0,0 +1,73 @@
1
+ <script setup>
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
+ import { onMounted, inject, ref } from "vue"
36
+
37
+
38
+ // ·
39
+ const url = inject("url")
40
+ const http = inject("http")
41
+
42
+
43
+ // ·
44
+ const lesliVersions = ref([])
45
+
46
+
47
+ // ·
48
+ onMounted(() => {
49
+ http.get(url.lesli("about")).then(result => {
50
+ lesliVersions.value = result
51
+ }).catch(error => {
52
+ console.log(error)
53
+ })
54
+ })
55
+ </script>
56
+ <template>
57
+ <lesli-application-container>
58
+ <lesli-header title="Lesli system">
59
+ </lesli-header>
60
+ <div class="columns is-multiline is-variable is-4 dashboard-components">
61
+ <div class="column is-3" v-for="lesliVersion in lesliVersions">
62
+ <lesli-card>
63
+ <h6 class="title is-6 mb-2">
64
+ {{ lesliVersion.name }}
65
+ </h6>
66
+ <p class="p-0 m-0">version: {{ lesliVersion.version }}</p>
67
+ <p class="p-0 m-0">buid: {{ lesliVersion.build }}</p>
68
+ <p class="p-0 m-0">path: {{ lesliVersion.path }}</p>
69
+ </lesli-card>
70
+ </div>
71
+ </div>
72
+ </lesli-application-container>
73
+ </template>
@@ -36,7 +36,7 @@ import { onMounted, computed, ref } from "vue"
36
36
 
37
37
 
38
38
  // · import lesli stores
39
- import { useAccount } from "Lesli/stores/account"
39
+ import { useAccount } from "LesliAdmin/vue/stores/account"
40
40
 
41
41
 
42
42
  // · implement stores
@@ -36,7 +36,7 @@ import { computed } from "vue"
36
36
 
37
37
 
38
38
  // · import lesli stores
39
- import { useAccount } from "Lesli/stores/account"
39
+ import { useAccount } from "LesliAdmin/vue/stores/account"
40
40
 
41
41
 
42
42
  // · implement stores