lesli 5.0.7 → 5.0.10
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_manifest.js +10 -9
- data/app/assets/icons/lesli/engine-lesli.svg +1 -0
- data/app/assets/icons/lesli/locale-en.svg +1 -0
- data/app/assets/icons/lesli/locale-es.svg +1 -0
- data/app/assets/icons/lesli/locale-fr.svg +1 -0
- data/app/assets/icons/lesli/locale-it.svg +1 -0
- data/app/assets/icons/lesli/locale-pt.svg +1 -0
- data/app/assets/javascripts/lesli/users/sessions.js +1 -722
- data/app/assets/stylesheets/lesli/templates/application.css +1846 -0
- data/app/assets/stylesheets/lesli/templates/public.css +1 -0
- data/app/assets/stylesheets/lesli/users/sessions.css +1 -0
- data/app/controllers/lesli/application_devise_controller.rb +8 -8
- data/app/helpers/lesli/navigation_helper.rb +9 -1
- data/app/lib/lesli/system.rb +2 -1
- data/app/models/concerns/account_initializer.rb +5 -5
- data/app/models/lesli/descriptor.rb +3 -1
- data/app/views/lesli/layouts/application-devise.html.erb +3 -2
- data/app/views/lesli/layouts/application-lesli.html.erb +1 -1
- data/app/views/lesli/layouts/application-public.html.erb +2 -2
- data/app/views/lesli/partials/_application-analytics.html.erb +11 -25
- data/app/views/lesli/partials/_application-data.html.erb +3 -1
- data/app/views/lesli/partials/_application-lesli-header.html.erb +31 -26
- data/app/views/lesli/partials/_application-lesli-icons.html.erb +1 -1
- data/app/views/lesli/partials/_application-lesli-javascript.html.erb +1 -1
- data/app/views/lesli/partials/_application-public-javascript.html.erb +1 -4
- data/app/views/lesli/wrappers/_application-devise.html.erb +2 -2
- data/config/initializers/lesli.rb +4 -4
- data/db/seed/development/users.rb +2 -2
- data/db/seed/production/accounts.rb +47 -0
- data/db/seed/production/users.rb +76 -0
- data/db/seed/production.rb +6 -7
- data/db/seeds.rb +9 -16
- data/lib/assets/javascripts/lesli/i18n.js +1037 -1037
- data/lib/lesli/engine.rb +7 -6
- data/lib/lesli/version.rb +2 -2
- data/lib/{sass/lesli → scss}/bulma/loader.scss +3 -1
- data/{app/assets/stylesheets/lesli/users → lib/scss/devise}/sessions.scss +3 -1
- data/lib/{sass/lesli → scss}/fonts/families.scss +3 -3
- data/lib/{sass/lesli → scss}/fonts/mdicons.scss +6 -8
- data/lib/{sass/lesli → scss}/fonts/remixicons.scss +2 -2
- data/lib/{sass/lesli → scss}/layouts/application-header.scss +4 -0
- data/lib/{sass/lesli → scss}/layouts/application-sidebar.scss +1 -1
- data/lib/{sass/lesli → scss}/pages/devise.scss +5 -1
- data/lib/{sass/lesli → scss}/settings/variables.scss +1 -1
- data/lib/{sass/lesli → scss}/templates/application.scss +46 -49
- data/lib/{sass/lesli → scss}/templates/component.scss +1 -1
- data/lib/{sass/lesli → scss}/templates/dashboards.scss +1 -1
- data/lib/{sass/lesli → scss}/templates/public.scss +6 -6
- data/lib/tasks/lesli/db.rake +45 -26
- data/lib/tasks/lesli/docs.rake +47 -0
- data/lib/vue/application.js +16 -15
- data/lib/vue/devise/sessions.js +1 -1
- data/lib/vue/layouts/application-announcements.vue +1 -1
- data/lib/vue/layouts/application-engines.vue +1 -1
- data/lib/vue/layouts/application-header.vue +10 -10
- data/lib/vue/layouts/application-search.vue +1 -1
- data/lib/vue/panels/panel-announcements.vue +2 -2
- data/lib/vue/panels/panel-files.vue +2 -2
- data/lib/vue/panels/panel-notifications.vue +1 -1
- data/lib/vue/panels/panel-profile.vue +2 -2
- data/lib/vue/panels/panel-tasks.vue +2 -2
- data/lib/vue/panels/panel-tickets.vue +2 -2
- data/lib/vue/public.js +4 -3
- data/lib/vue/{shared → refactor/shared}/cloudobjects/action.vue +1 -1
- data/lib/vue/{shared → refactor/shared}/cloudobjects/discussion/content.vue +2 -2
- data/lib/vue/{shared → refactor/shared}/cloudobjects/discussion/element.vue +2 -2
- data/lib/vue/{shared → refactor/shared}/cloudobjects/discussion/filters.vue +1 -1
- data/lib/vue/{shared → refactor/shared}/cloudobjects/discussion/new.vue +1 -1
- data/lib/vue/{shared → refactor/shared}/cloudobjects/discussion.vue +4 -4
- data/lib/vue/{shared → refactor/shared}/cloudobjects/file/grid.vue +2 -2
- data/lib/vue/{shared → refactor/shared}/cloudobjects/file/list.vue +2 -2
- data/lib/vue/{shared → refactor/shared}/cloudobjects/file.vue +4 -4
- data/lib/vue/{shared → refactor/shared}/workflows2/apps/actions/form.vue +1 -1
- data/lib/vue/{shared → refactor/shared}/workflows2/apps/actions/forms/chatroom-form.vue +1 -1
- data/lib/vue/{shared → refactor/shared}/workflows2/apps/actions/forms/cloud-object-clone-form.vue +1 -1
- data/lib/vue/{shared → refactor/shared}/workflows2/apps/actions/forms/cloud-object-file-form.vue +1 -1
- data/lib/vue/{shared → refactor/shared}/workflows2/apps/actions/forms/email-form.vue +1 -1
- data/lib/vue/{shared → refactor/shared}/workflows2/apps/actions/forms/notification-form.vue +1 -1
- data/lib/vue/{shared → refactor/shared}/workflows2/apps/actions/forms/send-cloud-object-file.vue +1 -1
- data/lib/vue/{shared → refactor/shared}/workflows2/apps/actions/forms/task-form.vue +1 -1
- data/lib/vue/{shared → refactor/shared}/workflows2/apps/actions/index.vue +1 -1
- data/lib/vue/{shared → refactor/shared}/workflows2/apps/checks/form.vue +1 -1
- data/lib/vue/{shared → refactor/shared}/workflows2/apps/checks/index.vue +1 -1
- data/lib/vue/{shared → refactor/shared}/workflows2/apps/index.vue +1 -1
- data/lib/vue/{shared → refactor/shared}/workflows2/apps/new.vue +1 -1
- data/lib/vue/{shared → refactor/shared}/workflows2/apps/show.vue +1 -1
- data/lib/vue/{shared → refactor/shared}/workflows2/components/associations.vue +1 -1
- data/lib/vue/{shared → refactor/shared}/workflows2/components/chart.vue +1 -1
- data/lib/vue/{shared → refactor/shared}/workflows2/components/workflow-form.vue +1 -1
- data/lib/vue/{shared → refactor/shared}/workflows2/components/workflow-status-dropdown.vue +1 -1
- data/lib/vue/refactor/stores/translations.json +60 -0
- data/lib/vue/shared/dashboards/apps/edit.vue +1 -1
- data/lib/vue/shared/dashboards/apps/index.vue +1 -1
- data/lib/vue/shared/dashboards/apps/new.vue +1 -1
- data/lib/vue/shared/dashboards/apps/show.vue +4 -2
- data/lib/vue/shared/dashboards/components/form.vue +1 -1
- data/lib/webpack/base.js +133 -132
- data/lib/webpack/core.js +9 -3
- data/lib/webpack/engines.js +7 -2
- data/lib/webpack/version.js +4 -1
- data/readme.md +7 -5
- metadata +142 -182
- data/app/assets/icons/lesli/cloud-development.svg +0 -1
- data/app/assets/icons/lesli/cloud-letter.svg +0 -1
- data/app/assets/icons/lesli/icon-module.svg +0 -1
- data/app/assets/icons/lesli/logo-android.svg +0 -1
- data/app/assets/icons/lesli/logo-bulma.svg +0 -1
- data/app/assets/icons/lesli/logo-ios.svg +0 -1
- data/app/assets/icons/lesli/logo-linux.svg +0 -1
- data/app/assets/icons/lesli/logo-mac.svg +0 -1
- data/app/assets/icons/lesli/logo-module.svg +0 -1
- data/app/assets/icons/lesli/logo-postgresql.svg +0 -1
- data/app/assets/icons/lesli/logo-rails.svg +0 -1
- data/app/assets/icons/lesli/logo-ruby.svg +0 -1
- data/app/assets/icons/lesli/logo-sass.svg +0 -1
- data/app/assets/icons/lesli/logo-vue.svg +0 -1
- data/app/assets/icons/lesli/logo-web.svg +0 -1
- data/app/assets/icons/lesli/logo-windows.svg +0 -1
- data/app/assets/images/lesli/brand/app-logo2.svg +0 -52
- data/app/assets/javascripts/lesli/users/confirmations.js +0 -32
- data/app/assets/javascripts/lesli/users/passwords.js +0 -742
- data/app/assets/javascripts/lesli/users/registrations.js +0 -742
- data/lib/assets/javascripts/lesli/translations.js +0 -15
- data/lib/sass/lesli/elements/form.scss +0 -43
- data/lib/sass/lesli/elements/header.scss +0 -44
- data/lib/sass/lesli/elements/panel.scss +0 -65
- data/lib/sass/lesli/elements/tab.scss +0 -48
- /data/app/assets/fonts/lesli/Domine/{Domine-VariableFont_wght.ttf → Domine-Variable.ttf} +0 -0
- /data/app/assets/icons/lesli/{cloud-admin.svg → engine-admin.svg} +0 -0
- /data/app/assets/icons/lesli/{cloud-audit.svg → engine-audit.svg} +0 -0
- /data/app/assets/icons/lesli/{cloud-babel.svg → engine-babel.svg} +0 -0
- /data/app/assets/icons/lesli/{cloud-bell.svg → engine-bell.svg} +0 -0
- /data/app/assets/icons/lesli/{cloud-books.svg → engine-books.svg} +0 -0
- /data/app/assets/icons/lesli/{cloud-lesli.svg → engine-dashboard.svg} +0 -0
- /data/app/assets/icons/lesli/{cloud-dispatcher.svg → engine-dispatcher.svg} +0 -0
- /data/app/assets/icons/lesli/{cloud-driver.svg → engine-driver.svg} +0 -0
- /data/app/assets/icons/lesli/{cloud-focus.svg → engine-focus.svg} +0 -0
- /data/app/assets/icons/lesli/{cloud-guard.svg → engine-guard.svg} +0 -0
- /data/app/assets/icons/lesli/{cloud-kb.svg → engine-kb.svg} +0 -0
- /data/app/assets/icons/lesli/{cloud-leaf.svg → engine-leaf.svg} +0 -0
- /data/app/assets/icons/lesli/{cloud-word.svg → engine-letter.svg} +0 -0
- /data/app/assets/icons/lesli/{cloud-mailer.svg → engine-mailer.svg} +0 -0
- /data/app/assets/icons/lesli/{cloud-one.svg → engine-one.svg} +0 -0
- /data/app/assets/icons/lesli/{cloud-profile.svg → engine-profile.svg} +0 -0
- /data/app/assets/icons/lesli/{cloud-proposal.svg → engine-proposal.svg} +0 -0
- /data/app/assets/icons/lesli/{cloud-scraper.svg → engine-scraper.svg} +0 -0
- /data/app/assets/icons/lesli/{cloud-shared.svg → engine-shared.svg} +0 -0
- /data/app/assets/icons/lesli/{cloud-storage.svg → engine-storage.svg} +0 -0
- /data/app/assets/icons/lesli/{cloud-support.svg → engine-support.svg} +0 -0
- /data/app/assets/icons/lesli/{cloud-talk.svg → engine-talk.svg} +0 -0
- /data/app/assets/icons/lesli/{cloud-team.svg → engine-team.svg} +0 -0
- /data/app/assets/icons/lesli/{cloud-time.svg → engine-time.svg} +0 -0
- /data/lib/{sass/lesli → scss}/cloud-objects/discussion.scss +0 -0
- /data/lib/{sass/lesli → scss}/cloud-objects/file.scss +0 -0
- /data/lib/{sass/lesli → scss}/components/editor-richtext.scss +0 -0
- /data/lib/{sass/lesli → scss}/components/keypad.scss +0 -0
- /data/{app/assets/stylesheets/lesli/users → lib/scss/devise}/confirmations.scss +0 -0
- /data/{app/assets/stylesheets/lesli/users → lib/scss/devise}/oauth.scss +0 -0
- /data/{app/assets/stylesheets/lesli/users → lib/scss/devise}/passwords.scss +0 -0
- /data/{app/assets/stylesheets/lesli/users → lib/scss/devise}/registrations.scss +0 -0
- /data/lib/{sass/lesli → scss}/elements/autocomplete.scss +0 -0
- /data/lib/{sass/lesli → scss}/elements/avatar.scss +0 -0
- /data/lib/{sass/lesli → scss}/elements/calendar.scss +0 -0
- /data/lib/{sass/lesli → scss}/elements/card.scss +0 -0
- /data/lib/{sass/lesli → scss}/elements/empty.scss +0 -0
- /data/lib/{sass/lesli → scss}/elements/file-uploader.scss +0 -0
- /data/lib/{sass/lesli → scss}/elements/gallery.scss +0 -0
- /data/lib/{sass/lesli → scss}/elements/input-tag.scss +0 -0
- /data/lib/{sass/lesli → scss}/elements/loading.scss +0 -0
- /data/lib/{sass/lesli → scss}/elements/map.scss +0 -0
- /data/lib/{sass/lesli → scss}/elements/msg.scss +0 -0
- /data/lib/{sass/lesli → scss}/elements/navbar.scss +0 -0
- /data/lib/{sass/lesli → scss}/elements/table.scss +0 -0
- /data/lib/{sass/lesli → scss}/elements/toggle.scss +0 -0
- /data/lib/{sass/lesli → scss}/elements/toolbar.scss +0 -0
- /data/lib/{sass/lesli → scss}/helpers/display.scss +0 -0
- /data/lib/{sass/lesli → scss}/helpers/tooltip.scss +0 -0
- /data/lib/{sass/lesli → scss}/layouts/application-announcements.scss +0 -0
- /data/lib/{sass/lesli → scss}/layouts/application-component.scss +0 -0
- /data/lib/{sass/lesli → scss}/layouts/application-container.scss +0 -0
- /data/lib/{sass/lesli → scss}/layouts/application-engines.scss +0 -0
- /data/lib/{sass/lesli → scss}/layouts/application-footer.scss +0 -0
- /data/lib/{sass/lesli → scss}/layouts/application-navbar.scss +0 -0
- /data/lib/{sass/lesli → scss}/layouts/application-search.scss +0 -0
- /data/lib/{sass/lesli → scss}/overrides/sweetalert.scss +0 -0
- /data/lib/{sass/lesli → scss}/pages/devise-simple.scss +0 -0
- /data/lib/{sass/lesli → scss}/pages/invites.scss +0 -0
- /data/lib/{sass/lesli → scss}/panels/panel-announcements.scss +0 -0
- /data/lib/{sass/lesli → scss}/panels/panel-notification.scss +0 -0
- /data/lib/{sass/lesli → scss}/panels/panel-profile.scss +0 -0
- /data/lib/{sass/lesli → scss}/panels/panel-tasks.scss +0 -0
- /data/lib/{sass/lesli → scss}/panels/panel-ticket.scss +0 -0
- /data/lib/{sass/lesli → scss}/shared/workflow-status-progress.scss +0 -0
- /data/lib/{sass/lesli → scss}/templates/empty.scss +0 -0
- /data/lib/{sass/lesli → scss}/templates/pdf.scss +0 -0
- /data/lib/vue/{stores → refactor/stores}/cloudobjects/action.js +0 -0
- /data/lib/vue/{stores → refactor/stores}/cloudobjects/discussion.js +0 -0
- /data/lib/vue/{stores → refactor/stores}/cloudobjects/file.js +0 -0
- /data/lib/vue/{stores → refactor/stores}/entities/announcements.js +0 -0
- /data/lib/vue/{stores → refactor/stores}/entities/dashboard.js +0 -0
- /data/lib/vue/{stores → refactor/stores}/entities/workflow.js +0 -0
- /data/lib/vue/{stores → refactor/stores}/panels/announcements.js +0 -0
- /data/lib/vue/{stores → refactor/stores}/panels/notification.js +0 -0
- /data/lib/vue/{stores → refactor/stores}/panels/task.js +0 -0
- /data/lib/vue/{stores → refactor/stores}/panels/tickets.js +0 -0
- /data/lib/vue/{stores → refactor/stores}/role.js +0 -0
- /data/lib/vue/{stores → refactor/stores}/users.js +0 -0
- /data/lib/vue/{stores → shared}/services/firebase.js +0 -0
- /data/lib/vue/{stores → shared}/services/translator.js +0 -0
- /data/lib/vue/{stores → shared/stores}/account.js +0 -0
- /data/lib/vue/{stores/search.js → shared/stores/command.js} +0 -0
- /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
|
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
|
-
|
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
|
-
|
56
|
+
:it => "Italiano", # Italiano/Italian
|
57
57
|
# :hr => "Hrvatski", # Hrvatski/Croatian
|
58
|
-
|
59
|
-
|
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 = "/
|
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", "
|
47
|
+
["admin@lesli.tech", "admin","Admin","Lesli"],
|
48
48
|
["guest@lesli.tech", "limited", "Guest","Lesli"],
|
49
|
-
["test@lesli.tech", "
|
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);
|
data/db/seed/production.rb
CHANGED
@@ -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 ·
|
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 "#{
|
34
|
-
load "#{
|
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
|
-
#
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
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")
|