lesli_admin 0.5.0 → 0.6.1
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.
- checksums.yaml +4 -4
- data/app/assets/javascripts/lesli_admin/application.js +1 -3863
- data/app/assets/stylesheets/lesli_admin/application.css +1 -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 +49 -46
- 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 +17 -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 +6 -3
- data/config/locales/translations.es.yml +6 -3
- data/config/locales/translations.fr.yml +41 -0
- data/config/locales/translations.it.yml +41 -0
- data/config/locales/translations.pt.yml +41 -0
- data/config/routes.rb +5 -16
- 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 +74 -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 +174 -0
- data/license +674 -0
- data/readme.md +14 -6
- metadata +16 -4
@@ -0,0 +1 @@
|
|
1
|
+
|
@@ -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,31 +40,30 @@ 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
|
47
46
|
end
|
48
47
|
|
49
|
-
# GET /accounts/new
|
50
|
-
def new
|
51
|
-
end
|
48
|
+
# # GET /accounts/new
|
49
|
+
# def new
|
50
|
+
# end
|
52
51
|
|
53
|
-
# GET /accounts/1/edit
|
54
|
-
def edit
|
55
|
-
end
|
52
|
+
# # GET /accounts/1/edit
|
53
|
+
# def edit
|
54
|
+
# end
|
56
55
|
|
57
|
-
# POST /accounts
|
58
|
-
# POST /accounts.json
|
59
|
-
def create
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
end
|
56
|
+
# # POST /accounts
|
57
|
+
# # POST /accounts.json
|
58
|
+
# def create
|
59
|
+
# current_user.account.company_name = account_params[:company_name]
|
60
|
+
# current_user.account.status = 'active'
|
61
|
+
# current_user.account.save
|
62
|
+
# if current_user.account.errors.any?
|
63
|
+
# return respond_with_error(current_user.errors.full_messages.to_sentence)
|
64
|
+
# end
|
65
|
+
# respond_with_successful
|
66
|
+
# end
|
68
67
|
|
69
68
|
# PATCH/PUT /accounts/1
|
70
69
|
# PATCH/PUT /accounts/1.json
|
@@ -78,15 +77,15 @@ module LesliAdmin
|
|
78
77
|
|
79
78
|
# DELETE /accounts/1
|
80
79
|
# DELETE /accounts/1.json
|
81
|
-
def destroy
|
82
|
-
|
80
|
+
# def destroy
|
81
|
+
# return respond_with_not_found unless @account
|
83
82
|
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
end
|
83
|
+
# @account.destroy
|
84
|
+
# respond_to do |format|
|
85
|
+
# format.html { redirect_to accounts_url, notice: 'Account was successfully destroyed.' }
|
86
|
+
# format.json { head :no_content }
|
87
|
+
# end
|
88
|
+
# end
|
90
89
|
|
91
90
|
private
|
92
91
|
|
@@ -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,23 @@ 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, :status, :company_name_legal, :company_tagline)
|
39
|
+
.first
|
40
|
+
|
41
|
+
{
|
42
|
+
id: account.id,
|
43
|
+
name: account.name,
|
44
|
+
email: account.email,
|
45
|
+
status: account.status,
|
46
|
+
detail_attributes: {
|
47
|
+
company_name_legal: account.company_name_legal,
|
48
|
+
company_tagline: account.company_tagline
|
49
|
+
}
|
50
|
+
}
|
51
|
+
|
52
|
+
#current_user.account.joins(:detail)
|
37
53
|
end
|
38
54
|
end
|
39
55
|
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,9 @@
|
|
33
33
|
view_status_inactive: Inactive
|
34
34
|
button_settings: Settings
|
35
35
|
button_show: Show
|
36
|
+
toolbar_search: Search...
|
37
|
+
message_operation_success: Operation completed successfully
|
38
|
+
message_operation_error: Operation failed. Please try again.
|
36
39
|
application:
|
37
40
|
navigation_logout: Logout
|
38
41
|
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,9 @@
|
|
33
33
|
view_status_inactive: Inactivo
|
34
34
|
button_settings: Configuración
|
35
35
|
button_show: Ver
|
36
|
+
toolbar_search: Buscar...
|
37
|
+
message_operation_success: Operacion realizada satisfactoriamente
|
38
|
+
message_operation_error: Operación fallida. Por favor, inténtelo de nuevo.
|
36
39
|
application:
|
37
40
|
navigation_logout: Cerrar sesión
|
38
41
|
navigation_my_profile: Mi perfil
|
@@ -0,0 +1,41 @@
|
|
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
|
+
message_operation_success: ":lesli.shared.message_operation_success:"
|
38
|
+
message_operation_error: ":lesli.shared.message_operation_error:"
|
39
|
+
application:
|
40
|
+
navigation_logout: ":lesli.application.navigation_logout:"
|
41
|
+
navigation_my_profile: ":lesli.application.navigation_my_profile:"
|
@@ -0,0 +1,41 @@
|
|
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
|
+
message_operation_success: ":lesli.shared.message_operation_success:"
|
38
|
+
message_operation_error: ":lesli.shared.message_operation_error:"
|
39
|
+
application:
|
40
|
+
navigation_logout: ":lesli.application.navigation_logout:"
|
41
|
+
navigation_my_profile: ":lesli.application.navigation_my_profile:"
|
@@ -0,0 +1,41 @@
|
|
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
|
+
message_operation_success: ":lesli.shared.message_operation_success:"
|
38
|
+
message_operation_error: ":lesli.shared.message_operation_error:"
|
39
|
+
application:
|
40
|
+
navigation_logout: ":lesli.application.navigation_logout:"
|
41
|
+
navigation_my_profile: ":lesli.application.navigation_my_profile:"
|
data/config/routes.rb
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
|
3
3
|
Lesli
|
4
4
|
|
5
|
-
Copyright (c)
|
5
|
+
Copyright (c) 2024, Lesli Technologies, S. A.
|
6
6
|
|
7
7
|
This program is free software: you can redistribute it and/or modify
|
8
8
|
it under the terms of the GNU General Public License as published by
|
@@ -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,22 +32,11 @@ Building a better future, one line of code at a time.
|
|
32
32
|
|
33
33
|
LesliAdmin::Engine.routes.draw do
|
34
34
|
|
35
|
-
|
36
|
-
root to: "dashboards#show"
|
37
|
-
|
38
|
-
# Dashboard management
|
39
|
-
resource :dashboard, only: [:show]
|
40
|
-
resources :dashboards do
|
41
|
-
collection do
|
42
|
-
post "list" => :index
|
43
|
-
get :options
|
44
|
-
end
|
45
|
-
scope module: :dashboard do
|
46
|
-
resources :components
|
47
|
-
end
|
48
|
-
end
|
35
|
+
Lesli::Routing.mount_dashboard_for(LesliAdmin)
|
49
36
|
|
50
37
|
resource :account, only: [:show, :update]
|
51
38
|
|
52
39
|
resource :profile, only: [:show]
|
40
|
+
|
41
|
+
resource :about, only: [:show]
|
53
42
|
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
|
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
|
+
}])
|