lesli_admin 0.5.0 → 0.6.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 +1454 -163
- data/app/assets/stylesheets/lesli_admin/application.css +4 -0
- data/{lib/vue/apps/dashboards/show.vue → app/controllers/lesli_admin/abouts_controller.rb} +16 -12
- data/app/controllers/lesli_admin/accounts_controller.rb +24 -21
- data/app/controllers/lesli_admin/dashboard/components_controller.rb +1 -1
- data/app/models/lesli_admin/dashboard/component.rb +3 -4
- data/app/services/lesli_admin/account_service.rb +16 -1
- data/app/views/lesli_admin/abouts/show.html.erb +1 -0
- data/app/views/lesli_admin/partials/_engine-navigation.html.erb +2 -1
- data/config/locales/translations.en.yml +4 -3
- data/config/locales/translations.es.yml +4 -3
- data/config/locales/translations.fr.yml +39 -0
- data/config/locales/translations.it.yml +39 -0
- data/config/locales/translations.pt.yml +39 -0
- data/config/routes.rb +2 -0
- data/db/seed/development.rb +0 -0
- data/db/seed/production.rb +0 -0
- data/{app/assets/stylesheets/lesli_admin/application.scss → db/seeds.rb} +16 -5
- data/lib/lesli_admin/version.rb +2 -2
- data/lib/scss/application.scss +0 -0
- data/lib/vue/application.js +19 -14
- data/lib/vue/apps/about/show.vue +73 -0
- data/lib/vue/apps/account/components/form-address.vue +1 -1
- data/lib/vue/apps/account/components/form-contact.vue +1 -1
- data/lib/vue/apps/account/components/form-information.vue +4 -4
- data/lib/vue/apps/account/show.vue +8 -11
- data/lib/vue/apps/profile/show.vue +129 -0
- data/lib/vue/stores/account.js +111 -0
- data/lib/vue/stores/translations.json +164 -0
- data/license +674 -0
- data/readme.md +14 -6
- metadata +16 -4
@@ -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
|
-
|
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
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
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
|
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
|
-
:
|
103
|
-
:
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
:
|
108
|
-
:
|
109
|
-
:
|
110
|
-
:
|
111
|
-
:
|
112
|
-
:
|
113
|
-
:
|
114
|
-
:
|
115
|
-
:
|
116
|
-
:
|
117
|
-
:
|
118
|
-
:
|
119
|
-
:
|
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
|
@@ -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
|
-
|
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
|
-
|
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
|
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"); %>
|
@@ -2,13 +2,11 @@
|
|
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
|
8
5
|
view_title: Account information
|
9
6
|
tab_general_information: General Information
|
10
7
|
column_company_name: Company name
|
11
8
|
column_company_name_legal: Legal name
|
9
|
+
view_subtitle_social_media: Social media
|
12
10
|
column_city: City
|
13
11
|
column_tag_line: Slogan
|
14
12
|
column_postal_code: Postal code
|
@@ -18,6 +16,8 @@
|
|
18
16
|
column_country: Country
|
19
17
|
column_address: Address
|
20
18
|
column_public_email: Public email
|
19
|
+
column_phone_number: Phonenumber
|
20
|
+
column_website: Website
|
21
21
|
lesli:
|
22
22
|
shared:
|
23
23
|
view_discussions: Discussions
|
@@ -33,6 +33,7 @@
|
|
33
33
|
view_status_inactive: Inactive
|
34
34
|
button_settings: Settings
|
35
35
|
button_show: Show
|
36
|
+
toolbar_search: Search...
|
36
37
|
application:
|
37
38
|
navigation_logout: Logout
|
38
39
|
navigation_my_profile: My profile
|
@@ -2,13 +2,11 @@
|
|
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
|
8
5
|
view_title: Informacion de cuenta
|
9
6
|
tab_general_information: Información General
|
10
7
|
column_company_name: Nombre de Empresa
|
11
8
|
column_company_name_legal: Razon social
|
9
|
+
view_subtitle_social_media: Redes sociales
|
12
10
|
column_city: Ciudad
|
13
11
|
column_tag_line: Slogan
|
14
12
|
column_postal_code: Código postal
|
@@ -18,6 +16,8 @@
|
|
18
16
|
column_country: País
|
19
17
|
column_address: Dirección
|
20
18
|
column_public_email: Email publico
|
19
|
+
column_phone_number: Teléfono
|
20
|
+
column_website: Sitio web
|
21
21
|
lesli:
|
22
22
|
shared:
|
23
23
|
view_discussions: Discusiones
|
@@ -33,6 +33,7 @@
|
|
33
33
|
view_status_inactive: Inactivo
|
34
34
|
button_settings: Configuración
|
35
35
|
button_show: Ver
|
36
|
+
toolbar_search: Buscar...
|
36
37
|
application:
|
37
38
|
navigation_logout: Cerrar sesión
|
38
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
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
|
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,7 +28,17 @@ Building a better future, one line of code at a time.
|
|
27
28
|
|
28
29
|
// · ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~
|
29
30
|
// ·
|
30
|
-
|
31
|
+
=end
|
32
|
+
|
33
|
+
|
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"))
|
43
|
+
|
31
44
|
|
32
|
-
body.lesli-admin-users,
|
33
|
-
body.lesli-admin-profile { }
|
data/lib/lesli_admin/version.rb
CHANGED
File without changes
|
data/lib/vue/application.js
CHANGED
@@ -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
|
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,29 +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
|
-
|
55
|
+
import appProfileShow from "LesliAdmin/vue/apps/profile/show.vue"
|
53
56
|
|
54
57
|
|
55
58
|
// ·
|
56
|
-
import componentDashboardLesliVersion from "LesliAdmin/apps/dashboards/components/lesli-version.vue"
|
59
|
+
import componentDashboardLesliVersion from "LesliAdmin/vue/apps/dashboards/components/lesli-version.vue"
|
57
60
|
|
58
61
|
|
59
62
|
// ·
|
@@ -84,8 +87,10 @@ application("LesliAdmin", [{
|
|
84
87
|
}, {
|
85
88
|
path: "/account",
|
86
89
|
component: applicationAccountShow
|
87
|
-
}
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
90
|
+
}, {
|
91
|
+
path: "/about",
|
92
|
+
component: applicationAboutShow
|
93
|
+
}, {
|
94
|
+
path: "/profile",
|
95
|
+
component: appProfileShow
|
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 { ref, reactive, onMounted, watch, computed } from "vue"
|
|
36
36
|
|
37
37
|
|
38
38
|
// · import lesli stores
|
39
|
-
import { useAccount } from "
|
39
|
+
import { useAccount } from "LesliAdmin/vue/stores/account"
|
40
40
|
|
41
41
|
|
42
42
|
// · implement stores
|
@@ -56,21 +56,21 @@ const translations = {
|
|
56
56
|
<div class="field">
|
57
57
|
<label class="label">{{ translations.admin.column_company_name }}</label>
|
58
58
|
<div class="control">
|
59
|
-
<input class="input" type="text" v-model="storeAccount.
|
59
|
+
<input class="input" type="text" v-model="storeAccount.account.name" >
|
60
60
|
</div>
|
61
61
|
</div>
|
62
62
|
|
63
63
|
<div class="field">
|
64
64
|
<label class="label">{{ translations.admin.column_company_name_legal }}</label>
|
65
65
|
<div class="control">
|
66
|
-
<input class="input" type="text" v-model="storeAccount.
|
66
|
+
<input class="input" type="text" v-model="storeAccount.account.detail_attributes.company_name_legal">
|
67
67
|
</div>
|
68
68
|
</div>
|
69
69
|
|
70
70
|
<div class="field">
|
71
71
|
<label class="label">{{ translations.admin.column_tag_line }}</label>
|
72
72
|
<div class="control">
|
73
|
-
<input class="input" type="text" v-model="storeAccount.
|
73
|
+
<input class="input" type="text" v-model="storeAccount.account.detail_attributes.company_tagline">
|
74
74
|
</div>
|
75
75
|
</div>
|
76
76
|
|