lesli_admin 1.0.1 → 1.1.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.
Files changed (83) hide show
  1. checksums.yaml +4 -4
  2. data/Rakefile +3 -1
  3. data/app/assets/stylesheets/lesli_admin/application.tailwind.css +2 -0
  4. data/app/controllers/lesli_admin/account/currencies_controller.rb +60 -0
  5. data/app/controllers/lesli_admin/account/details_controller.rb +60 -0
  6. data/app/controllers/lesli_admin/account/locations_controller.rb +60 -0
  7. data/app/controllers/lesli_admin/account/settings_controller.rb +60 -0
  8. data/app/controllers/lesli_admin/accounts_controller.rb +5 -4
  9. data/app/helpers/lesli_admin/account/currencies_helper.rb +4 -0
  10. data/app/helpers/lesli_admin/account/details_helper.rb +4 -0
  11. data/app/helpers/lesli_admin/account/locations_helper.rb +4 -0
  12. data/app/helpers/lesli_admin/account/settings_helper.rb +4 -0
  13. data/app/models/lesli_admin/account/currency.rb +4 -0
  14. data/app/models/lesli_admin/account/detail.rb +4 -0
  15. data/app/models/lesli_admin/account/location.rb +4 -0
  16. data/app/models/lesli_admin/account/setting.rb +4 -0
  17. data/app/models/lesli_admin/account.rb +3 -4
  18. data/app/models/lesli_admin/dashboard.rb +0 -3
  19. data/app/services/lesli_admin/account_service.rb +6 -6
  20. data/app/views/lesli_admin/account/currencies/_currency.html.erb +2 -0
  21. data/app/views/lesli_admin/account/currencies/_form.html.erb +17 -0
  22. data/app/views/lesli_admin/account/currencies/edit.html.erb +12 -0
  23. data/app/views/lesli_admin/account/currencies/index.html.erb +16 -0
  24. data/app/views/lesli_admin/account/currencies/new.html.erb +11 -0
  25. data/app/views/lesli_admin/account/currencies/show.html.erb +10 -0
  26. data/app/views/lesli_admin/account/details/_detail.html.erb +2 -0
  27. data/app/views/lesli_admin/account/details/_form.html.erb +17 -0
  28. data/app/views/lesli_admin/account/details/edit.html.erb +12 -0
  29. data/app/views/lesli_admin/account/details/index.html.erb +16 -0
  30. data/app/views/lesli_admin/account/details/new.html.erb +11 -0
  31. data/app/views/lesli_admin/account/details/show.html.erb +10 -0
  32. data/app/views/lesli_admin/account/locations/_form.html.erb +17 -0
  33. data/app/views/lesli_admin/account/locations/_location.html.erb +2 -0
  34. data/app/views/lesli_admin/account/locations/edit.html.erb +12 -0
  35. data/app/views/lesli_admin/account/locations/index.html.erb +16 -0
  36. data/app/views/lesli_admin/account/locations/new.html.erb +11 -0
  37. data/app/views/lesli_admin/account/locations/show.html.erb +10 -0
  38. data/app/views/lesli_admin/account/settings/_form.html.erb +17 -0
  39. data/app/views/lesli_admin/account/settings/_setting.html.erb +2 -0
  40. data/app/views/lesli_admin/account/settings/edit.html.erb +12 -0
  41. data/app/views/lesli_admin/account/settings/index.html.erb +16 -0
  42. data/app/views/lesli_admin/account/settings/new.html.erb +11 -0
  43. data/app/views/lesli_admin/account/settings/show.html.erb +10 -0
  44. data/app/views/lesli_admin/accounts/show.html.erb +3 -3
  45. data/app/views/lesli_admin/dashboards/_component-installed-engines.html.erb +1 -5
  46. data/app/views/lesli_admin/partials/_navigation.html.erb +0 -1
  47. data/app/views/lesli_admin/settings/_defaults.html.erb +71 -0
  48. data/app/views/lesli_admin/settings/_modules.html.erb +57 -0
  49. data/app/views/lesli_admin/settings/show.html.erb +7 -1
  50. data/config/routes.rb +1 -3
  51. data/db/migrate/v1/0101000210_create_lesli_admin_account_details.rb +70 -0
  52. data/db/migrate/v1/{0101003010_create_lesli_admin_dashboards.rb → 0101000313_create_lesli_admin_account_settings.rb} +11 -4
  53. data/db/migrate/v1/0101000410_create_lesli_admin_account_locations.rb +63 -0
  54. data/{app/controllers/lesli_admin/abouts_controller.rb → db/migrate/v1/0101000510_create_lesli_admin_account_currencies.rb} +14 -14
  55. data/db/seeds.rb +1 -1
  56. data/lib/lesli_admin/version.rb +2 -2
  57. data/readme.md +146 -36
  58. metadata +50 -37
  59. data/app/controllers/lesli_admin/dashboard/components_controller.rb +0 -60
  60. data/app/controllers/lesli_admin/profiles_controller.rb +0 -48
  61. data/app/helpers/lesli_admin/profiles_helper.rb +0 -4
  62. data/app/models/lesli_admin/dashboard/component.rb +0 -49
  63. data/app/views/lesli_admin/abouts/show.html.erb +0 -73
  64. data/app/views/lesli_admin/accounts/_account.html.erb +0 -2
  65. data/app/views/lesli_admin/accounts/_form.html.erb +0 -17
  66. data/app/views/lesli_admin/accounts/edit.html.erb +0 -10
  67. data/app/views/lesli_admin/accounts/index.html.erb +0 -34
  68. data/app/views/lesli_admin/accounts/new.html.erb +0 -9
  69. data/app/views/lesli_admin/accounts/update.turbo_stream.erb +0 -3
  70. data/app/views/lesli_admin/profiles/show.html.erb +0 -1
  71. data/lib/scss/application.scss +0 -4
  72. data/lib/vue/application.js +0 -96
  73. data/lib/vue/apps/about/show.vue +0 -74
  74. data/lib/vue/apps/account/components/form-address.vue +0 -119
  75. data/lib/vue/apps/account/components/form-contact.vue +0 -122
  76. data/lib/vue/apps/account/components/form-information.vue +0 -89
  77. data/lib/vue/apps/account/show.vue +0 -87
  78. data/lib/vue/apps/dashboards/components/lesli-version.vue +0 -73
  79. data/lib/vue/apps/profile/show.vue +0 -129
  80. data/lib/vue/stores/account.js +0 -111
  81. data/lib/vue/stores/account_settings.js +0 -342
  82. data/lib/vue/stores/roles.js +0 -89
  83. data/lib/vue/stores/translations.json +0 -162
@@ -1,34 +0,0 @@
1
- <%
2
- =begin
3
-
4
- Lesli
5
-
6
- Copyright (c) 2023, Lesli Technologies, S. A.
7
-
8
- This program is free software: you can redistribute it and/or modify
9
- it under the terms of the GNU General Public License as published by
10
- the Free Software Foundation, either version 3 of the License, or
11
- (at your option) any later version.
12
-
13
- This program is distributed in the hope that it will be useful,
14
- but WITHOUT ANY WARRANTY; without even the implied warranty of
15
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16
- GNU General Public License for more details.
17
-
18
- You should have received a copy of the GNU General Public License
19
- along with this program. If not, see http://www.gnu.org/licenses/.
20
-
21
- Lesli · Ruby on Rails SaaS development platform.
22
-
23
- Made with ♥ by https://www.lesli.tech
24
- Building a better future, one line of code at a time.
25
-
26
- @contact hello@lesli.tech
27
- @website https://www.lesli.tech
28
- @license GPLv3 http://www.gnu.org/licenses/gpl-3.0.en.html
29
-
30
- // · ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~
31
- // ·
32
- =end
33
- %>
34
- <router-view></router-view>
@@ -1,9 +0,0 @@
1
- <h1>New account</h1>
2
-
3
- <%= render "form", account: @account %>
4
-
5
- <br>
6
-
7
- <div>
8
- <%= link_to "Back to accounts", accounts_path %>
9
- </div>
@@ -1,3 +0,0 @@
1
- <%= turbo_stream.replace "application-lesli-notifications" do %>
2
- <%= render "lesli/partials/application-lesli-notifications" %>
3
- <% end %>
@@ -1 +0,0 @@
1
- <router-view></router-view>
@@ -1,4 +0,0 @@
1
-
2
- .lesli.dashboards {
3
- @import "Lesli/scss/templates/dashboards";
4
- }
@@ -1,96 +0,0 @@
1
- /*
2
- Lesli
3
-
4
- Copyright (c) 2023, Lesli Technologies, S. A.
5
-
6
- This program is free software: you can redistribute it and/or modify
7
- it under the terms of the GNU General Public License as published by
8
- the Free Software Foundation, either version 3 of the License, or
9
- (at your option) any later version.
10
-
11
- This program is distributed in the hope that it will be useful,
12
- but WITHOUT ANY WARRANTY; without even the implied warranty of
13
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14
- GNU General Public License for more details.
15
-
16
- You should have received a copy of the GNU General Public License
17
- along with this program. If not, see http://www.gnu.org/licenses/.
18
-
19
- Lesli · Ruby on Rails SaaS Development Framework.
20
-
21
- Made with ♥ by LesliTech
22
- Building a better future, one line of code at a time.
23
-
24
- @contact hello@lesli.tech
25
- @website https://www.lesli.tech
26
- @license GPLv3 http://www.gnu.org/licenses/gpl-3.0.en.html
27
-
28
- // · ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~
29
- // ·
30
- */
31
-
32
-
33
- // · Import Lesli builders
34
- import application from "Lesli/vue/application"
35
- import translation from "Lesli/vue/translation"
36
-
37
-
38
- // · Import engine translations
39
- import translations from "LesliAdmin/vue/stores/translations.json"
40
-
41
-
42
- // · Import engine applications
43
- import applicationAccountShow from "LesliAdmin/vue/apps/account/show.vue"
44
-
45
- // ·
46
- import applicationAboutShow from "LesliAdmin/vue/apps/about/show.vue"
47
-
48
-
49
- // ·
50
- import appDashboardShow from "Lesli/vue/shared/dashboards/apps/show.vue"
51
- import appDashboardEdit from "Lesli/vue/shared/dashboards/apps/edit.vue"
52
-
53
-
54
- // ·
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"
60
-
61
-
62
- // ·
63
- const dashboardProps = {
64
- components: {
65
- "admin-lesli-version": componentDashboardLesliVersion
66
- }
67
- }
68
-
69
-
70
- // · Buil Lesli translations
71
- translation(translations)
72
-
73
-
74
- // · Build a new Lesli application
75
- application("LesliAdmin", [{
76
- path: "/",
77
- component: appDashboardShow,
78
- props: dashboardProps
79
- }, {
80
- path: "/dashboard",
81
- component: appDashboardShow,
82
- props: dashboardProps
83
- }, {
84
- path: "/dashboards/:id/edit",
85
- component: appDashboardEdit,
86
- props: dashboardProps
87
- }, {
88
- path: "/account",
89
- component: applicationAccountShow
90
- }, {
91
- path: "/about",
92
- component: applicationAboutShow
93
- }, {
94
- path: "/profile",
95
- component: appProfileShow
96
- }])
@@ -1,74 +0,0 @@
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
- const dayjs = require("dayjs")
37
-
38
- // ·
39
- const url = inject("url")
40
- const http = inject("http")
41
- const date = inject("date")
42
-
43
-
44
- // ·
45
- const lesliVersions = ref([])
46
-
47
-
48
- // ·
49
- onMounted(() => {
50
- http.get(url.lesli("about")).then(result => {
51
- lesliVersions.value = result
52
- }).catch(error => {
53
- console.log(error)
54
- })
55
- })
56
- </script>
57
- <template>
58
- <lesli-application-container>
59
- <lesli-header title="Lesli system">
60
- </lesli-header>
61
- <div class="columns is-multiline is-variable is-4 dashboard-components">
62
- <div class="column is-3" v-for="lesliVersion in lesliVersions">
63
- <lesli-application-component>
64
- <h5 class="title is-size-5 mb-2">{{ lesliVersion.name }}</h5>
65
- <p class="p-0 m-0 has-text-grey has-text-weight-semibold">{{ lesliVersion.description }}</p>
66
- <hr class="my-2" />
67
- <p class="p-0 m-0 has-text-weight-medium">Version: {{ lesliVersion.version }}</p>
68
- <p class="p-0 m-0 has-text-weight-medium">Buid: {{ lesliVersion.build }}</p>
69
- <p class="p-0 m-0 has-text-weight-medium">Path: {{ lesliVersion.path }}</p>
70
- </lesli-application-component>
71
- </div>
72
- </div>
73
- </lesli-application-container>
74
- </template>
@@ -1,119 +0,0 @@
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
- // · import vue tools
35
- import { onMounted, computed, ref } from "vue"
36
-
37
-
38
- // · import lesli stores
39
- import { useAccount } from "LesliAdmin/vue/stores/account"
40
-
41
-
42
- // · implement stores
43
- const storeAccount = useAccount()
44
-
45
-
46
- // · translations
47
- const translations = {
48
- shared: i18n.t("lesli.shared"),
49
- admin: i18n.t("lesli_admin.accounts"),
50
- }
51
-
52
-
53
- // ·
54
- const streetNumber = ref("")
55
- const postalCode = ref("")
56
-
57
-
58
- // ·
59
- onMounted(() => {
60
- //storeAccount.getOptions()
61
- })
62
-
63
- </script>
64
- <template>
65
- <lesli-form flat @submit="storeAccount.update">
66
- <div class="field">
67
- <label class="label">{{ translations.admin.column_address }}</label>
68
- <div class="control">
69
- <input class="input" type="text" v-model="storeAccount.accountInfo.address" />
70
- </div>
71
- </div>
72
-
73
- <div class="field">
74
- <label class="label">{{ translations.admin.column_postal_code }}</label>
75
- <div class="control">
76
- <input class="input" type="text" v-model="storeAccount.accountInfo.postal_code" />
77
- </div>
78
- </div>
79
-
80
- <div class="field">
81
- <label class="label">{{ translations.admin.column_city }}</label>
82
- <div class="control">
83
- <input class="input" type="text" v-model="storeAccount.accountInfo.city" />
84
- </div>
85
- </div>
86
-
87
- <div class="field">
88
- <label class="label">{{ translations.admin.column_country }}</label>
89
- <div class="control">
90
- <lesli-select
91
- :options="storeAccount.options.countries"
92
- v-model="storeAccount.accountInfo.country">
93
- </lesli-select>
94
- </div>
95
- </div>
96
-
97
- <div class="field">
98
- <label class="label">{{ translations.admin.column_region }}</label>
99
- <div class="control">
100
- <lesli-select
101
- :options="storeAccount.options.regions"
102
- v-model="storeAccount.accountInfo.region">
103
- </lesli-select>
104
- </div>
105
- </div>
106
-
107
- <div class="field">
108
- <div class="field-body">
109
- <div class="field">
110
- <div class="control">
111
- <lesli-button icon="save">
112
- {{ translations.shared.button_save }}
113
- </lesli-button>
114
- </div>
115
- </div>
116
- </div>
117
- </div>
118
- </lesli-form>
119
- </template>
@@ -1,122 +0,0 @@
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
- // · import vue tools
35
- import { computed } from "vue"
36
-
37
-
38
- // · import lesli stores
39
- import { useAccount } from "LesliAdmin/vue/stores/account"
40
-
41
-
42
- // · implement stores
43
- const storeAccount = useAccount()
44
-
45
-
46
- // · translations
47
- const translations = {
48
- shared: i18n.t("lesli.shared"),
49
- admin: i18n.t("lesli_admin.accounts"),
50
- }
51
-
52
-
53
- // . get reactive info from onboarding store
54
- const companyInfo = computed(()=> storeOnboarding.companyInfo)
55
-
56
- </script>
57
- <template>
58
- <lesli-form flat @submit="storeAccount.update">
59
- <div class="field">
60
- <label class="label">{{ translations.admin.column_public_email }}</label>
61
- <div class="control">
62
- <input class="input" type="text" v-model="storeAccount.accountInfo.public_email" />
63
- </div>
64
- </div>
65
-
66
- <div class="field">
67
- <label class="label">{{translations.admin.column_phone_number}}</label>
68
- <div class="control">
69
- <input class="input" type="text" v-model="storeAccount.accountInfo.phone_number_1" />
70
- </div>
71
- </div>
72
-
73
- <p class="my-5">{{translations.admin.view_subtitle_social_media }}</p>
74
-
75
- <div class="field">
76
- <label class="label">Github</label>
77
- <div class="control">
78
- <input class="input" type="text" v-model="storeAccount.accountInfo.github" />
79
- </div>
80
- </div>
81
-
82
- <div class="field">
83
- <label class="label">Twitter</label>
84
- <div class="control">
85
- <input class="input" type="text" v-model="storeAccount.accountInfo.twitter" />
86
- </div>
87
- </div>
88
-
89
- <div class="field">
90
- <label class="label">YouTube</label>
91
- <div class="control">
92
- <input class="input" type="text" v-model="storeAccount.accountInfo.youtube" />
93
- </div>
94
- </div>
95
-
96
- <div class="field">
97
- <label class="label">Linkedin</label>
98
- <div class="control">
99
- <input class="input" type="text" v-model="storeAccount.accountInfo.linkedin" />
100
- </div>
101
- </div>
102
-
103
- <div class="field">
104
- <label class="label">Facebook</label>
105
- <div class="control">
106
- <input class="input" type="text" v-model="storeAccount.accountInfo.facebook" />
107
- </div>
108
- </div>
109
-
110
- <div class="field">
111
- <div class="field-body">
112
- <div class="field">
113
- <div class="control">
114
- <lesli-button icon="save">
115
- {{ translations.shared.button_save }}
116
- </lesli-button>
117
- </div>
118
- </div>
119
- </div>
120
- </div>
121
- </lesli-form>
122
- </template>
@@ -1,89 +0,0 @@
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
- // · import vue tools
35
- import { ref, reactive, onMounted, watch, computed } from "vue"
36
-
37
-
38
- // · import lesli stores
39
- import { useAccount } from "LesliAdmin/vue/stores/account"
40
-
41
-
42
- // · implement stores
43
- const storeAccount = useAccount()
44
-
45
-
46
- // ·
47
- const translations = {
48
- shared: i18n.t("lesli.shared"),
49
- admin: i18n.t("lesli_admin.accounts"),
50
- }
51
-
52
- </script>
53
- <template>
54
- <lesli-form flat @submit="storeAccount.update">
55
-
56
- <div class="field">
57
- <label class="label">{{ translations.admin.column_company_name }}</label>
58
- <div class="control">
59
- <input class="input" type="text" v-model="storeAccount.account.name" >
60
- </div>
61
- </div>
62
-
63
- <div class="field">
64
- <label class="label">{{ translations.admin.column_company_name_legal }}</label>
65
- <div class="control">
66
- <input class="input" type="text" v-model="storeAccount.account.detail_attributes.company_name_legal">
67
- </div>
68
- </div>
69
-
70
- <div class="field">
71
- <label class="label">{{ translations.admin.column_tag_line }}</label>
72
- <div class="control">
73
- <input class="input" type="text" v-model="storeAccount.account.detail_attributes.company_tagline">
74
- </div>
75
- </div>
76
-
77
- <div class="field">
78
- <div class="field-body">
79
- <div class="field">
80
- <div class="control">
81
- <lesli-button icon="save">
82
- {{ translations.shared.button_save }}
83
- </lesli-button>
84
- </div>
85
- </div>
86
- </div>
87
- </div>
88
- </lesli-form>
89
- </template>
@@ -1,87 +0,0 @@
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
- // · import vue tools
35
- import { computed, onMounted } from "vue"
36
-
37
-
38
- // · import lesli stores
39
- import { useAccount } from "LesliAdmin/vue/stores/account"
40
-
41
-
42
- // · import account components
43
- import formInformation from "./components/form-information.vue"
44
- import formAddress from "./components/form-address.vue"
45
- import formContact from "./components/form-contact.vue"
46
-
47
-
48
- // · implement stores
49
- const storeAccount = useAccount()
50
-
51
-
52
- // · translations
53
- const translations = {
54
- admin: i18n.t("lesli_admin.accounts")
55
- }
56
-
57
-
58
- // . get reactive info from onboarding store
59
- const companyInfo = computed(()=> storeOnboarding.companyInfo)
60
-
61
-
62
- // .
63
- onMounted(() => {
64
- storeAccount.get()
65
- })
66
-
67
- </script>
68
- <template>
69
- <lesli-application-container>
70
- <lesli-header :title="translations.admin.view_title">
71
- </lesli-header>
72
- <lesli-tabs>
73
- <lesli-tab-item :title="translations.admin.tab_general_information" icon="business">
74
- <form-information></form-information>
75
- </lesli-tab-item>
76
- <!--
77
- <lesli-tab-item :title="translations.admin.tab_address" icon="location_on">
78
- <form-address></form-address>
79
- </lesli-tab-item>
80
-
81
- <lesli-tab-item :title="translations.admin.tab_contact" icon="contact_page">
82
- <form-contact></form-contact>
83
- </lesli-tab-item>
84
- -->
85
- </lesli-tabs>
86
- </lesli-application-container>
87
- </template>