lesli 5.0.7 → 5.0.10

Sign up to get free protection for your applications and to get access to all the features.
Files changed (213) hide show
  1. checksums.yaml +4 -4
  2. data/app/assets/config/lesli_manifest.js +10 -9
  3. data/app/assets/icons/lesli/engine-lesli.svg +1 -0
  4. data/app/assets/icons/lesli/locale-en.svg +1 -0
  5. data/app/assets/icons/lesli/locale-es.svg +1 -0
  6. data/app/assets/icons/lesli/locale-fr.svg +1 -0
  7. data/app/assets/icons/lesli/locale-it.svg +1 -0
  8. data/app/assets/icons/lesli/locale-pt.svg +1 -0
  9. data/app/assets/javascripts/lesli/users/sessions.js +1 -722
  10. data/app/assets/stylesheets/lesli/templates/application.css +1846 -0
  11. data/app/assets/stylesheets/lesli/templates/public.css +1 -0
  12. data/app/assets/stylesheets/lesli/users/sessions.css +1 -0
  13. data/app/controllers/lesli/application_devise_controller.rb +8 -8
  14. data/app/helpers/lesli/navigation_helper.rb +9 -1
  15. data/app/lib/lesli/system.rb +2 -1
  16. data/app/models/concerns/account_initializer.rb +5 -5
  17. data/app/models/lesli/descriptor.rb +3 -1
  18. data/app/views/lesli/layouts/application-devise.html.erb +3 -2
  19. data/app/views/lesli/layouts/application-lesli.html.erb +1 -1
  20. data/app/views/lesli/layouts/application-public.html.erb +2 -2
  21. data/app/views/lesli/partials/_application-analytics.html.erb +11 -25
  22. data/app/views/lesli/partials/_application-data.html.erb +3 -1
  23. data/app/views/lesli/partials/_application-lesli-header.html.erb +31 -26
  24. data/app/views/lesli/partials/_application-lesli-icons.html.erb +1 -1
  25. data/app/views/lesli/partials/_application-lesli-javascript.html.erb +1 -1
  26. data/app/views/lesli/partials/_application-public-javascript.html.erb +1 -4
  27. data/app/views/lesli/wrappers/_application-devise.html.erb +2 -2
  28. data/config/initializers/lesli.rb +4 -4
  29. data/db/seed/development/users.rb +2 -2
  30. data/db/seed/production/accounts.rb +47 -0
  31. data/db/seed/production/users.rb +76 -0
  32. data/db/seed/production.rb +6 -7
  33. data/db/seeds.rb +9 -16
  34. data/lib/assets/javascripts/lesli/i18n.js +1037 -1037
  35. data/lib/lesli/engine.rb +7 -6
  36. data/lib/lesli/version.rb +2 -2
  37. data/lib/{sass/lesli → scss}/bulma/loader.scss +3 -1
  38. data/{app/assets/stylesheets/lesli/users → lib/scss/devise}/sessions.scss +3 -1
  39. data/lib/{sass/lesli → scss}/fonts/families.scss +3 -3
  40. data/lib/{sass/lesli → scss}/fonts/mdicons.scss +6 -8
  41. data/lib/{sass/lesli → scss}/fonts/remixicons.scss +2 -2
  42. data/lib/{sass/lesli → scss}/layouts/application-header.scss +4 -0
  43. data/lib/{sass/lesli → scss}/layouts/application-sidebar.scss +1 -1
  44. data/lib/{sass/lesli → scss}/pages/devise.scss +5 -1
  45. data/lib/{sass/lesli → scss}/settings/variables.scss +1 -1
  46. data/lib/{sass/lesli → scss}/templates/application.scss +46 -49
  47. data/lib/{sass/lesli → scss}/templates/component.scss +1 -1
  48. data/lib/{sass/lesli → scss}/templates/dashboards.scss +1 -1
  49. data/lib/{sass/lesli → scss}/templates/public.scss +6 -6
  50. data/lib/tasks/lesli/db.rake +45 -26
  51. data/lib/tasks/lesli/docs.rake +47 -0
  52. data/lib/vue/application.js +16 -15
  53. data/lib/vue/devise/sessions.js +1 -1
  54. data/lib/vue/layouts/application-announcements.vue +1 -1
  55. data/lib/vue/layouts/application-engines.vue +1 -1
  56. data/lib/vue/layouts/application-header.vue +10 -10
  57. data/lib/vue/layouts/application-search.vue +1 -1
  58. data/lib/vue/panels/panel-announcements.vue +2 -2
  59. data/lib/vue/panels/panel-files.vue +2 -2
  60. data/lib/vue/panels/panel-notifications.vue +1 -1
  61. data/lib/vue/panels/panel-profile.vue +2 -2
  62. data/lib/vue/panels/panel-tasks.vue +2 -2
  63. data/lib/vue/panels/panel-tickets.vue +2 -2
  64. data/lib/vue/public.js +4 -3
  65. data/lib/vue/{shared → refactor/shared}/cloudobjects/action.vue +1 -1
  66. data/lib/vue/{shared → refactor/shared}/cloudobjects/discussion/content.vue +2 -2
  67. data/lib/vue/{shared → refactor/shared}/cloudobjects/discussion/element.vue +2 -2
  68. data/lib/vue/{shared → refactor/shared}/cloudobjects/discussion/filters.vue +1 -1
  69. data/lib/vue/{shared → refactor/shared}/cloudobjects/discussion/new.vue +1 -1
  70. data/lib/vue/{shared → refactor/shared}/cloudobjects/discussion.vue +4 -4
  71. data/lib/vue/{shared → refactor/shared}/cloudobjects/file/grid.vue +2 -2
  72. data/lib/vue/{shared → refactor/shared}/cloudobjects/file/list.vue +2 -2
  73. data/lib/vue/{shared → refactor/shared}/cloudobjects/file.vue +4 -4
  74. data/lib/vue/{shared → refactor/shared}/workflows2/apps/actions/form.vue +1 -1
  75. data/lib/vue/{shared → refactor/shared}/workflows2/apps/actions/forms/chatroom-form.vue +1 -1
  76. data/lib/vue/{shared → refactor/shared}/workflows2/apps/actions/forms/cloud-object-clone-form.vue +1 -1
  77. data/lib/vue/{shared → refactor/shared}/workflows2/apps/actions/forms/cloud-object-file-form.vue +1 -1
  78. data/lib/vue/{shared → refactor/shared}/workflows2/apps/actions/forms/email-form.vue +1 -1
  79. data/lib/vue/{shared → refactor/shared}/workflows2/apps/actions/forms/notification-form.vue +1 -1
  80. data/lib/vue/{shared → refactor/shared}/workflows2/apps/actions/forms/send-cloud-object-file.vue +1 -1
  81. data/lib/vue/{shared → refactor/shared}/workflows2/apps/actions/forms/task-form.vue +1 -1
  82. data/lib/vue/{shared → refactor/shared}/workflows2/apps/actions/index.vue +1 -1
  83. data/lib/vue/{shared → refactor/shared}/workflows2/apps/checks/form.vue +1 -1
  84. data/lib/vue/{shared → refactor/shared}/workflows2/apps/checks/index.vue +1 -1
  85. data/lib/vue/{shared → refactor/shared}/workflows2/apps/index.vue +1 -1
  86. data/lib/vue/{shared → refactor/shared}/workflows2/apps/new.vue +1 -1
  87. data/lib/vue/{shared → refactor/shared}/workflows2/apps/show.vue +1 -1
  88. data/lib/vue/{shared → refactor/shared}/workflows2/components/associations.vue +1 -1
  89. data/lib/vue/{shared → refactor/shared}/workflows2/components/chart.vue +1 -1
  90. data/lib/vue/{shared → refactor/shared}/workflows2/components/workflow-form.vue +1 -1
  91. data/lib/vue/{shared → refactor/shared}/workflows2/components/workflow-status-dropdown.vue +1 -1
  92. data/lib/vue/refactor/stores/translations.json +60 -0
  93. data/lib/vue/shared/dashboards/apps/edit.vue +1 -1
  94. data/lib/vue/shared/dashboards/apps/index.vue +1 -1
  95. data/lib/vue/shared/dashboards/apps/new.vue +1 -1
  96. data/lib/vue/shared/dashboards/apps/show.vue +4 -2
  97. data/lib/vue/shared/dashboards/components/form.vue +1 -1
  98. data/lib/webpack/base.js +133 -132
  99. data/lib/webpack/core.js +9 -3
  100. data/lib/webpack/engines.js +7 -2
  101. data/lib/webpack/version.js +4 -1
  102. data/readme.md +7 -5
  103. metadata +142 -182
  104. data/app/assets/icons/lesli/cloud-development.svg +0 -1
  105. data/app/assets/icons/lesli/cloud-letter.svg +0 -1
  106. data/app/assets/icons/lesli/icon-module.svg +0 -1
  107. data/app/assets/icons/lesli/logo-android.svg +0 -1
  108. data/app/assets/icons/lesli/logo-bulma.svg +0 -1
  109. data/app/assets/icons/lesli/logo-ios.svg +0 -1
  110. data/app/assets/icons/lesli/logo-linux.svg +0 -1
  111. data/app/assets/icons/lesli/logo-mac.svg +0 -1
  112. data/app/assets/icons/lesli/logo-module.svg +0 -1
  113. data/app/assets/icons/lesli/logo-postgresql.svg +0 -1
  114. data/app/assets/icons/lesli/logo-rails.svg +0 -1
  115. data/app/assets/icons/lesli/logo-ruby.svg +0 -1
  116. data/app/assets/icons/lesli/logo-sass.svg +0 -1
  117. data/app/assets/icons/lesli/logo-vue.svg +0 -1
  118. data/app/assets/icons/lesli/logo-web.svg +0 -1
  119. data/app/assets/icons/lesli/logo-windows.svg +0 -1
  120. data/app/assets/images/lesli/brand/app-logo2.svg +0 -52
  121. data/app/assets/javascripts/lesli/users/confirmations.js +0 -32
  122. data/app/assets/javascripts/lesli/users/passwords.js +0 -742
  123. data/app/assets/javascripts/lesli/users/registrations.js +0 -742
  124. data/lib/assets/javascripts/lesli/translations.js +0 -15
  125. data/lib/sass/lesli/elements/form.scss +0 -43
  126. data/lib/sass/lesli/elements/header.scss +0 -44
  127. data/lib/sass/lesli/elements/panel.scss +0 -65
  128. data/lib/sass/lesli/elements/tab.scss +0 -48
  129. /data/app/assets/fonts/lesli/Domine/{Domine-VariableFont_wght.ttf → Domine-Variable.ttf} +0 -0
  130. /data/app/assets/icons/lesli/{cloud-admin.svg → engine-admin.svg} +0 -0
  131. /data/app/assets/icons/lesli/{cloud-audit.svg → engine-audit.svg} +0 -0
  132. /data/app/assets/icons/lesli/{cloud-babel.svg → engine-babel.svg} +0 -0
  133. /data/app/assets/icons/lesli/{cloud-bell.svg → engine-bell.svg} +0 -0
  134. /data/app/assets/icons/lesli/{cloud-books.svg → engine-books.svg} +0 -0
  135. /data/app/assets/icons/lesli/{cloud-lesli.svg → engine-dashboard.svg} +0 -0
  136. /data/app/assets/icons/lesli/{cloud-dispatcher.svg → engine-dispatcher.svg} +0 -0
  137. /data/app/assets/icons/lesli/{cloud-driver.svg → engine-driver.svg} +0 -0
  138. /data/app/assets/icons/lesli/{cloud-focus.svg → engine-focus.svg} +0 -0
  139. /data/app/assets/icons/lesli/{cloud-guard.svg → engine-guard.svg} +0 -0
  140. /data/app/assets/icons/lesli/{cloud-kb.svg → engine-kb.svg} +0 -0
  141. /data/app/assets/icons/lesli/{cloud-leaf.svg → engine-leaf.svg} +0 -0
  142. /data/app/assets/icons/lesli/{cloud-word.svg → engine-letter.svg} +0 -0
  143. /data/app/assets/icons/lesli/{cloud-mailer.svg → engine-mailer.svg} +0 -0
  144. /data/app/assets/icons/lesli/{cloud-one.svg → engine-one.svg} +0 -0
  145. /data/app/assets/icons/lesli/{cloud-profile.svg → engine-profile.svg} +0 -0
  146. /data/app/assets/icons/lesli/{cloud-proposal.svg → engine-proposal.svg} +0 -0
  147. /data/app/assets/icons/lesli/{cloud-scraper.svg → engine-scraper.svg} +0 -0
  148. /data/app/assets/icons/lesli/{cloud-shared.svg → engine-shared.svg} +0 -0
  149. /data/app/assets/icons/lesli/{cloud-storage.svg → engine-storage.svg} +0 -0
  150. /data/app/assets/icons/lesli/{cloud-support.svg → engine-support.svg} +0 -0
  151. /data/app/assets/icons/lesli/{cloud-talk.svg → engine-talk.svg} +0 -0
  152. /data/app/assets/icons/lesli/{cloud-team.svg → engine-team.svg} +0 -0
  153. /data/app/assets/icons/lesli/{cloud-time.svg → engine-time.svg} +0 -0
  154. /data/lib/{sass/lesli → scss}/cloud-objects/discussion.scss +0 -0
  155. /data/lib/{sass/lesli → scss}/cloud-objects/file.scss +0 -0
  156. /data/lib/{sass/lesli → scss}/components/editor-richtext.scss +0 -0
  157. /data/lib/{sass/lesli → scss}/components/keypad.scss +0 -0
  158. /data/{app/assets/stylesheets/lesli/users → lib/scss/devise}/confirmations.scss +0 -0
  159. /data/{app/assets/stylesheets/lesli/users → lib/scss/devise}/oauth.scss +0 -0
  160. /data/{app/assets/stylesheets/lesli/users → lib/scss/devise}/passwords.scss +0 -0
  161. /data/{app/assets/stylesheets/lesli/users → lib/scss/devise}/registrations.scss +0 -0
  162. /data/lib/{sass/lesli → scss}/elements/autocomplete.scss +0 -0
  163. /data/lib/{sass/lesli → scss}/elements/avatar.scss +0 -0
  164. /data/lib/{sass/lesli → scss}/elements/calendar.scss +0 -0
  165. /data/lib/{sass/lesli → scss}/elements/card.scss +0 -0
  166. /data/lib/{sass/lesli → scss}/elements/empty.scss +0 -0
  167. /data/lib/{sass/lesli → scss}/elements/file-uploader.scss +0 -0
  168. /data/lib/{sass/lesli → scss}/elements/gallery.scss +0 -0
  169. /data/lib/{sass/lesli → scss}/elements/input-tag.scss +0 -0
  170. /data/lib/{sass/lesli → scss}/elements/loading.scss +0 -0
  171. /data/lib/{sass/lesli → scss}/elements/map.scss +0 -0
  172. /data/lib/{sass/lesli → scss}/elements/msg.scss +0 -0
  173. /data/lib/{sass/lesli → scss}/elements/navbar.scss +0 -0
  174. /data/lib/{sass/lesli → scss}/elements/table.scss +0 -0
  175. /data/lib/{sass/lesli → scss}/elements/toggle.scss +0 -0
  176. /data/lib/{sass/lesli → scss}/elements/toolbar.scss +0 -0
  177. /data/lib/{sass/lesli → scss}/helpers/display.scss +0 -0
  178. /data/lib/{sass/lesli → scss}/helpers/tooltip.scss +0 -0
  179. /data/lib/{sass/lesli → scss}/layouts/application-announcements.scss +0 -0
  180. /data/lib/{sass/lesli → scss}/layouts/application-component.scss +0 -0
  181. /data/lib/{sass/lesli → scss}/layouts/application-container.scss +0 -0
  182. /data/lib/{sass/lesli → scss}/layouts/application-engines.scss +0 -0
  183. /data/lib/{sass/lesli → scss}/layouts/application-footer.scss +0 -0
  184. /data/lib/{sass/lesli → scss}/layouts/application-navbar.scss +0 -0
  185. /data/lib/{sass/lesli → scss}/layouts/application-search.scss +0 -0
  186. /data/lib/{sass/lesli → scss}/overrides/sweetalert.scss +0 -0
  187. /data/lib/{sass/lesli → scss}/pages/devise-simple.scss +0 -0
  188. /data/lib/{sass/lesli → scss}/pages/invites.scss +0 -0
  189. /data/lib/{sass/lesli → scss}/panels/panel-announcements.scss +0 -0
  190. /data/lib/{sass/lesli → scss}/panels/panel-notification.scss +0 -0
  191. /data/lib/{sass/lesli → scss}/panels/panel-profile.scss +0 -0
  192. /data/lib/{sass/lesli → scss}/panels/panel-tasks.scss +0 -0
  193. /data/lib/{sass/lesli → scss}/panels/panel-ticket.scss +0 -0
  194. /data/lib/{sass/lesli → scss}/shared/workflow-status-progress.scss +0 -0
  195. /data/lib/{sass/lesli → scss}/templates/empty.scss +0 -0
  196. /data/lib/{sass/lesli → scss}/templates/pdf.scss +0 -0
  197. /data/lib/vue/{stores → refactor/stores}/cloudobjects/action.js +0 -0
  198. /data/lib/vue/{stores → refactor/stores}/cloudobjects/discussion.js +0 -0
  199. /data/lib/vue/{stores → refactor/stores}/cloudobjects/file.js +0 -0
  200. /data/lib/vue/{stores → refactor/stores}/entities/announcements.js +0 -0
  201. /data/lib/vue/{stores → refactor/stores}/entities/dashboard.js +0 -0
  202. /data/lib/vue/{stores → refactor/stores}/entities/workflow.js +0 -0
  203. /data/lib/vue/{stores → refactor/stores}/panels/announcements.js +0 -0
  204. /data/lib/vue/{stores → refactor/stores}/panels/notification.js +0 -0
  205. /data/lib/vue/{stores → refactor/stores}/panels/task.js +0 -0
  206. /data/lib/vue/{stores → refactor/stores}/panels/tickets.js +0 -0
  207. /data/lib/vue/{stores → refactor/stores}/role.js +0 -0
  208. /data/lib/vue/{stores → refactor/stores}/users.js +0 -0
  209. /data/lib/vue/{stores → shared}/services/firebase.js +0 -0
  210. /data/lib/vue/{stores → shared}/services/translator.js +0 -0
  211. /data/lib/vue/{stores → shared/stores}/account.js +0 -0
  212. /data/lib/vue/{stores/search.js → shared/stores/command.js} +0 -0
  213. /data/lib/vue/{stores → shared/stores}/layout.js +0 -0
@@ -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.
@@ -58,7 +58,7 @@ Building a better future, one line of code at a time.
58
58
  <%# Logo container %>
59
59
  <div class="logo has-text-centered mb-4">
60
60
  <%= image_tag(
61
- "#{lesli_instance_code}/brand/app-auth.svg", # dynamic path to the instance main logo
61
+ "#{lesli_instance_code}/brand/app-auth.svg", # dynamic path to the instance main logo
62
62
  :class => "#{lesli_instance_code}-logo", # dynamic class according to the instance
63
63
  :alt => "Main logo")
64
64
  %>
@@ -53,10 +53,10 @@ Lesli.configure do |config|
53
53
  :es => "Español", # Español/Spanish
54
54
  # :uk => "украї́нська", # украї́нська/Ukrainian
55
55
  # :sr => "Српски", # Српски/Srpski/Serbian
56
- # :it => "Italiano", # Italiano/Italian
56
+ :it => "Italiano", # Italiano/Italian
57
57
  # :hr => "Hrvatski", # Hrvatski/Croatian
58
- # :fr => "Français", # French
59
- # :pt => "Português", # Portuguese
58
+ :fr => "Français", # French
59
+ :pt => "Português", # Portuguese
60
60
  # :tr => "Türkçe", # Turkish
61
61
  # :ro => "Română", # Romanian
62
62
  # :bg => "български" # Bulgarian
@@ -100,5 +100,5 @@ Lesli.configure do |config|
100
100
  color_sidebar_hover: "#dee7ec"
101
101
  }
102
102
 
103
- config.path_after_login = "/admin"
103
+ config.path_after_login = "/dashboard"
104
104
  end
@@ -44,9 +44,9 @@ user.account.save!
44
44
  # core development users
45
45
  [
46
46
  ["ldonis@lesli.tech", "owner", "Luis", "Donis"],
47
- ["admin@lesli.tech", "sysadmin","Admin","Lesli"],
47
+ ["admin@lesli.tech", "admin","Admin","Lesli"],
48
48
  ["guest@lesli.tech", "limited", "Guest","Lesli"],
49
- ["test@lesli.tech", "sysadmin", "Test", "Lesli"],
49
+ ["test@lesli.tech", "admin", "Test", "Lesli"],
50
50
  ].each do |user|
51
51
  create_development_user(user[0], user[1], user[2], user[3])
52
52
  end
@@ -0,0 +1,47 @@
1
+ =begin
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
+ =end
32
+
33
+
34
+ # get settings
35
+ company = Lesli.config.company
36
+
37
+
38
+ # create account
39
+ Lesli::Account.find_or_create_by(company_name: company[:name]) do |account|
40
+ account.email = company[:email]
41
+ account.company_name = company[:name]
42
+ account.public_email = company[:email]
43
+ account.company_tagline = company[:tag_line] || ""
44
+ #account.registered!
45
+ account.save!
46
+ L2.msg("Account #{ account.company_name } <#{ account.email }> successfully created!")
47
+ end
@@ -0,0 +1,76 @@
1
+ =begin
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
+ =end
32
+
33
+
34
+ L2.msg "Loading production users:"
35
+
36
+
37
+ # get the account information
38
+ account = Lesli::Account.first
39
+
40
+
41
+ # try to extract the domain name from the main email address
42
+ email_domain = account[:email].scan(/.*@(\S+)/)&.first&.first
43
+
44
+
45
+ # get the emails for the initial accounts
46
+ emailowner = account[:email]
47
+ emailadmin = "admin@#{email_domain}"
48
+ emailguest = "guest@#{email_domain}"
49
+
50
+
51
+ # build a random password for the owner, admin and guest users
52
+ passowner = Devise.friendly_token(40)
53
+ passadmin = Devise.friendly_token(40)
54
+ passguest = Devise.friendly_token(40)
55
+
56
+
57
+ # create the owner user for the account,
58
+ userowner = create_development_user(emailowner, "owner", "Owner", account[:company_name], password:passowner)
59
+ useradmin = create_development_user(emailadmin, "admin", "Admin", account[:company_name], password:passadmin)
60
+ userguest = create_development_user(emailguest, "limited", "Guest", account[:company_name], password:passguest)
61
+
62
+
63
+ # print some separators so will be easy to find these messages later
64
+ L2.br(5); L2.br; L2.line; L2.line; L2.line; L2.line;
65
+
66
+
67
+ # print the owner user credentials, so we can save those credentials
68
+ L2.success(
69
+ "Owner user created successfully with email: #{emailowner} and password: #{passowner}",
70
+ "Admin user created successfully with email: #{emailadmin} and password: #{passadmin}",
71
+ "Admin user created successfully with email: #{emailguest} and password: #{passguest}"
72
+ )
73
+
74
+
75
+ # print some separators so will be easy to find these messages later
76
+ L2.line; L2.line; L2.line; L2.line; L2.br(5);L2.br(5);
@@ -1,4 +1,5 @@
1
1
  =begin
2
+
2
3
  Lesli
3
4
 
4
5
  Copyright (c) 2023, Lesli Technologies, S. A.
@@ -16,20 +17,18 @@ GNU General Public License for more details.
16
17
  You should have received a copy of the GNU General Public License
17
18
  along with this program. If not, see http://www.gnu.org/licenses/.
18
19
 
19
- Lesli · Your Smart Business Assistant.
20
+ Lesli · Ruby on Rails SaaS Development Framework.
20
21
 
21
22
  Made with ♥ by https://www.lesli.tech
22
23
  Building a better future, one line of code at a time.
23
24
 
24
25
  @contact hello@lesli.tech
25
- @website https://lesli.tech
26
+ @website https://www.lesli.tech
26
27
  @license GPLv3 http://www.gnu.org/licenses/gpl-3.0.en.html
27
28
 
28
- // · ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~
29
+ // · ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~
29
30
  // ·
30
-
31
31
  =end
32
32
 
33
- load "#{Rails.root}/db/seed/production/accounts.rb"
34
- load "#{Rails.root}/db/seed/production/users.rb"
35
- load "#{Rails.root}/db/seed/production/template.rb"
33
+ load "#{Lesli::Engine.root}/db/seed/production/accounts.rb"
34
+ load "#{Lesli::Engine.root}/db/seed/production/users.rb"
data/db/seeds.rb CHANGED
@@ -31,19 +31,12 @@ Building a better future, one line of code at a time.
31
31
  =end
32
32
 
33
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
- if Rails.env.development?
38
- L2.msg(
39
- "Lesli",
40
- "Version: #{Lesli::VERSION}",
41
- "Build: #{Lesli::BUILD}")
42
-
43
- # including tools for seeders
44
- load Lesli::Engine.root.join("db", "seed", "tools.rb")
45
-
46
-
47
- # loading core seeders
48
- load Lesli::Engine.root.join("db", "seed", "#{Rails.env.downcase}.rb")
49
- end
34
+ L2.msg("Lesli", "Version: #{Lesli::VERSION}", "Build: #{Lesli::BUILD}")
35
+
36
+
37
+ # including tools for seeders
38
+ load Lesli::Engine.root.join("db", "seed", "tools.rb")
39
+
40
+
41
+ # loading Lesli seeders
42
+ load Lesli::Engine.root.join("db", "seed", "#{Rails.env.downcase}.rb")