lesli_admin 0.2.0 → 0.4.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/config/lesli_admin_manifest.js +0 -1
- data/app/assets/javascripts/lesli_admin/application.js +362 -831
- data/app/assets/stylesheets/lesli_admin/application.scss +2 -1
- data/app/controllers/lesli_admin/accounts_controller.rb +3 -5
- data/app/controllers/lesli_admin/dashboard/components_controller.rb +60 -0
- data/app/controllers/lesli_admin/dashboards_controller.rb +26 -50
- data/app/models/lesli_admin/account.rb +7 -29
- data/app/{controllers/lesli_admin/profiles_controller.rb → models/lesli_admin/dashboard/component.rb} +13 -19
- data/app/models/lesli_admin/dashboard.rb +58 -0
- data/app/{controllers/lesli_admin/users_controller.rb → services/lesli_admin/account_service.rb} +6 -20
- data/app/views/lesli_admin/dashboards/edit.html.erb +29 -7
- data/app/views/lesli_admin/dashboards/index.html.erb +29 -11
- data/app/views/lesli_admin/dashboards/new.html.erb +29 -6
- data/app/views/lesli_admin/dashboards/show.html.erb +31 -0
- data/app/views/lesli_admin/partials/_engine-navigation.html.erb +0 -1
- data/config/locales/translations.en.yml +29 -4
- data/config/locales/translations.es.yml +29 -4
- data/config/routes.rb +46 -5
- data/db/migrate/0101000110_create_lesli_admin_accounts.rb +42 -0
- data/db/migrate/0101050110_create_lesli_admin_dashboards.rb +51 -0
- data/db/migrate/0101050210_create_lesli_admin_dashboard_components.rb +53 -0
- data/lib/lesli_admin/engine.rb +1 -0
- data/lib/lesli_admin/version.rb +2 -2
- data/lib/vue/application.js +28 -15
- data/lib/vue/apps/account/components/{address-form.vue → form-address.vue} +27 -42
- data/lib/vue/apps/account/components/form-contact.vue +122 -0
- data/lib/vue/apps/account/components/form-information.vue +13 -31
- data/lib/vue/apps/account/show.vue +14 -13
- data/lib/vue/apps/{users/components/integrations-information.vue → dashboards/components/lesli-version.vue} +36 -26
- data/lib/vue/apps/{profile/components/change-email.vue → dashboards/show.vue} +9 -6
- data/lib/vue/stores/translations.json +62 -10
- data/readme.md +3 -3
- metadata +30 -30
- data/app/assets/javascripts/lesli_admin/translations.js +0 -2291
- data/app/views/lesli_admin/dashboards/_dashboard.html.erb +0 -2
- data/app/views/lesli_admin/dashboards/_form.html.erb +0 -17
- data/app/views/lesli_admin/profiles/edit.html.erb +0 -10
- data/app/views/lesli_admin/profiles/index.html.erb +0 -14
- data/app/views/lesli_admin/profiles/new.html.erb +0 -9
- data/lib/vue/apps/account/components/contact-form.vue +0 -162
- data/lib/vue/apps/dashboard/show.vue +0 -31
- data/lib/vue/apps/profile/components/subscriptions.vue +0 -94
- data/lib/vue/apps/profile/show.vue +0 -148
- data/lib/vue/apps/users/components/information-card.vue +0 -116
- data/lib/vue/apps/users/components/information-form.vue +0 -177
- data/lib/vue/apps/users/components/management-roles.vue +0 -109
- data/lib/vue/apps/users/components/management-security.vue +0 -113
- data/lib/vue/apps/users/components/management-sessions.vue +0 -106
- data/lib/vue/apps/users/components/management-settings.vue +0 -94
- data/lib/vue/apps/users/index.vue +0 -207
- data/lib/vue/apps/users/new.vue +0 -181
- data/lib/vue/apps/users/show.vue +0 -116
- data/lib/vue/stores/users.js +0 -150
@@ -1,6 +1,5 @@
|
|
1
1
|
<script setup>
|
2
2
|
/*
|
3
|
-
|
4
3
|
Lesli
|
5
4
|
|
6
5
|
Copyright (c) 2023, Lesli Technologies, S. A.
|
@@ -18,44 +17,55 @@ GNU General Public License for more details.
|
|
18
17
|
You should have received a copy of the GNU General Public License
|
19
18
|
along with this program. If not, see http://www.gnu.org/licenses/.
|
20
19
|
|
21
|
-
Lesli ·
|
20
|
+
Lesli · Ruby on Rails SaaS Development Framework.
|
22
21
|
|
23
22
|
Made with ♥ by https://www.lesli.tech
|
24
23
|
Building a better future, one line of code at a time.
|
25
24
|
|
26
25
|
@contact hello@lesli.tech
|
27
|
-
@website https://lesli.tech
|
26
|
+
@website https://www.lesli.tech
|
28
27
|
@license GPLv3 http://www.gnu.org/licenses/gpl-3.0.en.html
|
29
28
|
|
30
|
-
// · ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~
|
29
|
+
// · ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~
|
31
30
|
// ·
|
32
|
-
|
33
31
|
*/
|
34
32
|
|
35
33
|
|
36
|
-
|
34
|
+
// ·
|
35
|
+
import { onMounted, inject, ref } from "vue"
|
36
|
+
|
37
|
+
|
38
|
+
// ·
|
39
|
+
const url = inject("url")
|
40
|
+
const http = inject("http")
|
41
|
+
|
37
42
|
|
38
|
-
|
43
|
+
// ·
|
44
|
+
const lesliVersion = ref({
|
45
|
+
name: "",
|
46
|
+
code: "",
|
47
|
+
path: "",
|
48
|
+
version: "",
|
49
|
+
build: ""
|
50
|
+
})
|
39
51
|
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
}
|
46
|
-
|
52
|
+
|
53
|
+
// ·
|
54
|
+
onMounted(() => {
|
55
|
+
http.get(url.lesli("about")).then(result => {
|
56
|
+
lesliVersion.value = result.find(engine => engine.name == "Lesli")
|
57
|
+
}).catch(error => {
|
58
|
+
console.log(error)
|
59
|
+
})
|
60
|
+
})
|
47
61
|
</script>
|
48
62
|
<template>
|
49
|
-
<
|
50
|
-
<
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
</lesli-button>
|
58
|
-
</div>
|
59
|
-
</div>
|
60
|
-
</section>
|
63
|
+
<lesli-card>
|
64
|
+
<h6 class="title is-6 mb-2">
|
65
|
+
{{ lesliVersion.name }}
|
66
|
+
</h6>
|
67
|
+
<p class="p-0 m-0">version: {{ lesliVersion.version }}</p>
|
68
|
+
<p class="p-0 m-0">buid: {{ lesliVersion.build }}</p>
|
69
|
+
<p class="p-0 m-0">path: {{ lesliVersion.path }}</p>
|
70
|
+
</lesli-card>
|
61
71
|
</template>
|
@@ -18,21 +18,24 @@ 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 ·
|
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.
|
25
25
|
|
26
26
|
@contact hello@lesli.tech
|
27
|
-
@website https://lesli.tech
|
27
|
+
@website https://www.lesli.tech
|
28
28
|
@license GPLv3 http://www.gnu.org/licenses/gpl-3.0.en.html
|
29
29
|
|
30
|
-
// · ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~
|
30
|
+
// · ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~
|
31
31
|
// ·
|
32
|
-
|
33
32
|
*/
|
34
33
|
|
35
|
-
</script>
|
36
34
|
|
35
|
+
// ·
|
36
|
+
import LesliDashboard from "Lesli/shared/dashboards/apps/show.vue"
|
37
|
+
|
38
|
+
</script>
|
37
39
|
<template>
|
38
|
-
|
40
|
+
<lesli-dashboard></lesli-dashboard>
|
41
|
+
</template>
|
@@ -1,20 +1,72 @@
|
|
1
1
|
{
|
2
2
|
"en": {
|
3
|
-
"
|
4
|
-
"
|
5
|
-
|
3
|
+
"lesli": {
|
4
|
+
"shared": {
|
5
|
+
"button_add_new": "Add new",
|
6
|
+
"button_delete": "Delete",
|
7
|
+
"button_edit": "Edit",
|
8
|
+
"button_list": "List",
|
9
|
+
"button_reload": "Reload",
|
10
|
+
"button_save": "Save",
|
11
|
+
"view_discussions": "Discussions",
|
12
|
+
"view_files": "Files",
|
13
|
+
"view_quick_actions": "Quick actions"
|
14
|
+
}
|
6
15
|
},
|
7
|
-
"
|
8
|
-
"
|
16
|
+
"lesli_admin": {
|
17
|
+
"accounts": {
|
18
|
+
"column_address": "Address",
|
19
|
+
"column_city": "City",
|
20
|
+
"column_company_name": "Company name",
|
21
|
+
"column_company_name_legal": "Legal name",
|
22
|
+
"column_country": "Country",
|
23
|
+
"column_phone_number": "Phonenumber",
|
24
|
+
"column_postal_code": "Postal code",
|
25
|
+
"column_public_email": "Public email",
|
26
|
+
"column_region": "Region",
|
27
|
+
"column_tag_line": "Slogan",
|
28
|
+
"column_website": "Website",
|
29
|
+
"tab_address": "Address",
|
30
|
+
"tab_contact": "Contact",
|
31
|
+
"tab_general_information": "General Information",
|
32
|
+
"view_subtitle_social_media": "Social media",
|
33
|
+
"view_title": "Account information"
|
34
|
+
}
|
9
35
|
}
|
10
36
|
},
|
11
37
|
"es": {
|
12
|
-
"
|
13
|
-
"
|
14
|
-
|
38
|
+
"lesli": {
|
39
|
+
"shared": {
|
40
|
+
"button_add_new": "Agregar nuevo",
|
41
|
+
"button_delete": "Eliminar",
|
42
|
+
"button_edit": "Editar",
|
43
|
+
"button_list": "Lista",
|
44
|
+
"button_reload": "Recargar",
|
45
|
+
"button_save": "Guardar",
|
46
|
+
"view_discussions": "Discusiones",
|
47
|
+
"view_files": "Archivos",
|
48
|
+
"view_quick_actions": "Acciones rapidas"
|
49
|
+
}
|
15
50
|
},
|
16
|
-
"
|
17
|
-
"
|
51
|
+
"lesli_admin": {
|
52
|
+
"accounts": {
|
53
|
+
"column_address": "Dirección",
|
54
|
+
"column_city": "Ciudad",
|
55
|
+
"column_company_name": "Nombre de Empresa",
|
56
|
+
"column_company_name_legal": "Razon social",
|
57
|
+
"column_country": "País",
|
58
|
+
"column_phone_number": "Teléfono",
|
59
|
+
"column_postal_code": "Código postal",
|
60
|
+
"column_public_email": "Email publico",
|
61
|
+
"column_region": "Región",
|
62
|
+
"column_tag_line": "Slogan",
|
63
|
+
"column_website": "Sitio web",
|
64
|
+
"tab_address": "Dirección",
|
65
|
+
"tab_contact": "Contacto",
|
66
|
+
"tab_general_information": "Información General",
|
67
|
+
"view_subtitle_social_media": "Redes sociales",
|
68
|
+
"view_title": "Informacion de cuenta"
|
69
|
+
}
|
18
70
|
}
|
19
71
|
}
|
20
72
|
}
|
data/readme.md
CHANGED
@@ -6,7 +6,7 @@
|
|
6
6
|
<hr/>
|
7
7
|
<p align="center">
|
8
8
|
<a target="blank" href="https://rubygems.org/gems/lesli_admin">
|
9
|
-
<img src="https://badge.fury.io/rb/lesli_admin.svg" alt="Gem Version" height="
|
9
|
+
<img src="https://badge.fury.io/rb/lesli_admin.svg" alt="Gem Version" height="24">
|
10
10
|
</a>
|
11
11
|
</p>
|
12
12
|
<hr/>
|
@@ -32,12 +32,12 @@ end
|
|
32
32
|
|
33
33
|
|
34
34
|
### Documentation
|
35
|
-
* [
|
35
|
+
* [website](https://www.lesli.dev/admin/)
|
36
36
|
* [database](./docs/database.md)
|
37
37
|
* [documentation](https://www.lesli.dev/documentation/)
|
38
38
|
|
39
39
|
|
40
|
-
### Get in touch
|
40
|
+
### Get in touch with Lesli
|
41
41
|
|
42
42
|
* [Website: https://www.lesli.tech](https://www.lesli.tech)
|
43
43
|
* [Email: hello@lesli.tech](hello@lesli.tech)
|
metadata
CHANGED
@@ -1,29 +1,43 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: lesli_admin
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.4.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-
|
11
|
+
date: 2023-12-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - "
|
17
|
+
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
19
|
version: 7.0.6
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- - "
|
24
|
+
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: 7.0.6
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: lesli
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '5'
|
34
|
+
type: :runtime
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '5'
|
27
41
|
description: Administration area for the Lesli Framework
|
28
42
|
email:
|
29
43
|
- hello@lesli.tech
|
@@ -35,14 +49,12 @@ files:
|
|
35
49
|
- app/assets/config/lesli_admin_manifest.js
|
36
50
|
- app/assets/images/lesli_admin/admin-logo.svg
|
37
51
|
- app/assets/javascripts/lesli_admin/application.js
|
38
|
-
- app/assets/javascripts/lesli_admin/translations.js
|
39
52
|
- app/assets/stylesheets/lesli_admin/application.scss
|
40
53
|
- app/assets/stylesheets/lesli_admin/users.scss
|
41
54
|
- app/controllers/lesli_admin/accounts_controller.rb
|
42
55
|
- app/controllers/lesli_admin/application_controller.rb
|
56
|
+
- app/controllers/lesli_admin/dashboard/components_controller.rb
|
43
57
|
- app/controllers/lesli_admin/dashboards_controller.rb
|
44
|
-
- app/controllers/lesli_admin/profiles_controller.rb
|
45
|
-
- app/controllers/lesli_admin/users_controller.rb
|
46
58
|
- app/helpers/lesli_admin/application_helper.rb
|
47
59
|
- app/helpers/lesli_admin/dashboards_helper.rb
|
48
60
|
- app/helpers/lesli_admin/profiles_helper.rb
|
@@ -50,6 +62,9 @@ files:
|
|
50
62
|
- app/mailers/lesli_admin/application_mailer.rb
|
51
63
|
- app/models/lesli_admin/account.rb
|
52
64
|
- app/models/lesli_admin/application_record.rb
|
65
|
+
- app/models/lesli_admin/dashboard.rb
|
66
|
+
- app/models/lesli_admin/dashboard/component.rb
|
67
|
+
- app/services/lesli_admin/account_service.rb
|
53
68
|
- app/views/layouts/lesli_admin/application.html.erb
|
54
69
|
- app/views/lesli_admin/accounts/_account.html.erb
|
55
70
|
- app/views/lesli_admin/accounts/_form.html.erb
|
@@ -57,16 +72,11 @@ files:
|
|
57
72
|
- app/views/lesli_admin/accounts/index.html.erb
|
58
73
|
- app/views/lesli_admin/accounts/new.html.erb
|
59
74
|
- app/views/lesli_admin/accounts/show.html.erb
|
60
|
-
- app/views/lesli_admin/dashboards/_dashboard.html.erb
|
61
|
-
- app/views/lesli_admin/dashboards/_form.html.erb
|
62
75
|
- app/views/lesli_admin/dashboards/edit.html.erb
|
63
76
|
- app/views/lesli_admin/dashboards/index.html.erb
|
64
77
|
- app/views/lesli_admin/dashboards/new.html.erb
|
65
78
|
- app/views/lesli_admin/dashboards/show.html.erb
|
66
79
|
- app/views/lesli_admin/partials/_engine-navigation.html.erb
|
67
|
-
- app/views/lesli_admin/profiles/edit.html.erb
|
68
|
-
- app/views/lesli_admin/profiles/index.html.erb
|
69
|
-
- app/views/lesli_admin/profiles/new.html.erb
|
70
80
|
- app/views/lesli_admin/profiles/show.html.erb
|
71
81
|
- app/views/lesli_admin/users/edit.html.erb
|
72
82
|
- app/views/lesli_admin/users/index.html.erb
|
@@ -75,33 +85,23 @@ files:
|
|
75
85
|
- config/locales/translations.en.yml
|
76
86
|
- config/locales/translations.es.yml
|
77
87
|
- config/routes.rb
|
88
|
+
- db/migrate/0101000110_create_lesli_admin_accounts.rb
|
89
|
+
- db/migrate/0101050110_create_lesli_admin_dashboards.rb
|
90
|
+
- db/migrate/0101050210_create_lesli_admin_dashboard_components.rb
|
78
91
|
- lib/lesli_admin.rb
|
79
92
|
- lib/lesli_admin/engine.rb
|
80
93
|
- lib/lesli_admin/version.rb
|
81
94
|
- lib/tasks/lesli_admin_tasks.rake
|
82
95
|
- lib/vue/application.js
|
83
|
-
- lib/vue/apps/account/components/address
|
84
|
-
- lib/vue/apps/account/components/contact
|
96
|
+
- lib/vue/apps/account/components/form-address.vue
|
97
|
+
- lib/vue/apps/account/components/form-contact.vue
|
85
98
|
- lib/vue/apps/account/components/form-information.vue
|
86
99
|
- lib/vue/apps/account/show.vue
|
87
|
-
- lib/vue/apps/
|
88
|
-
- lib/vue/apps/
|
89
|
-
- lib/vue/apps/profile/components/subscriptions.vue
|
90
|
-
- lib/vue/apps/profile/show.vue
|
91
|
-
- lib/vue/apps/users/components/information-card.vue
|
92
|
-
- lib/vue/apps/users/components/information-form.vue
|
93
|
-
- lib/vue/apps/users/components/integrations-information.vue
|
94
|
-
- lib/vue/apps/users/components/management-roles.vue
|
95
|
-
- lib/vue/apps/users/components/management-security.vue
|
96
|
-
- lib/vue/apps/users/components/management-sessions.vue
|
97
|
-
- lib/vue/apps/users/components/management-settings.vue
|
98
|
-
- lib/vue/apps/users/index.vue
|
99
|
-
- lib/vue/apps/users/new.vue
|
100
|
-
- lib/vue/apps/users/show.vue
|
100
|
+
- lib/vue/apps/dashboards/components/lesli-version.vue
|
101
|
+
- lib/vue/apps/dashboards/show.vue
|
101
102
|
- lib/vue/stores/account_settings.js
|
102
103
|
- lib/vue/stores/roles.js
|
103
104
|
- lib/vue/stores/translations.json
|
104
|
-
- lib/vue/stores/users.js
|
105
105
|
- readme.md
|
106
106
|
homepage: https://www.lesli.dev/
|
107
107
|
licenses:
|
@@ -118,7 +118,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
118
118
|
requirements:
|
119
119
|
- - ">="
|
120
120
|
- !ruby/object:Gem::Version
|
121
|
-
version: '
|
121
|
+
version: '2.7'
|
122
122
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
123
123
|
requirements:
|
124
124
|
- - ">="
|