lesli 5.0.11 → 5.0.12

Sign up to get free protection for your applications and to get access to all the features.
Files changed (152) hide show
  1. checksums.yaml +4 -4
  2. data/app/assets/config/lesli_manifest.js +0 -13
  3. data/app/assets/icons/lesli/engine-security.svg +1 -0
  4. data/app/assets/icons/lesli/engine-shield.svg +1 -0
  5. data/app/assets/images/lesli/lesli-logo.svg +4 -0
  6. data/app/assets/stylesheets/lesli/templates/application.css +21862 -209
  7. data/app/assets/stylesheets/lesli/templates/public.css +19098 -1
  8. data/app/assets/stylesheets/lesli/users/confirmations.css +19219 -0
  9. data/app/assets/stylesheets/lesli/users/passwords.css +19202 -0
  10. data/app/assets/stylesheets/lesli/users/registrations.css +19594 -0
  11. data/app/assets/stylesheets/lesli/users/sessions.css +19594 -1
  12. data/app/controllers/lesli/abouts_controller.rb +12 -18
  13. data/app/controllers/lesli/application_controller.rb +25 -25
  14. data/app/controllers/lesli/application_lesli_controller.rb +5 -6
  15. data/app/controllers/lesli/interfaces/application/authorization.rb +1 -1
  16. data/app/controllers/lesli/interfaces/application/customization.rb +1 -1
  17. data/app/controllers/lesli/interfaces/application/requester.rb +2 -2
  18. data/app/controllers/lesli/interfaces/application/responder.rb +8 -8
  19. data/app/controllers/lesli/interfaces/controllers/actions.rb +250 -0
  20. data/app/controllers/lesli/interfaces/controllers/activities.rb +215 -0
  21. data/app/controllers/lesli/interfaces/controllers/discussions.rb +270 -0
  22. data/app/controllers/lesli/interfaces/controllers/files.rb +467 -0
  23. data/app/controllers/lesli/interfaces/controllers/subscribers.rb +234 -0
  24. data/app/helpers/lesli/assets_helper.rb +4 -4
  25. data/app/helpers/lesli/navigation_helper.rb +38 -81
  26. data/app/lib/lesli/system.rb +4 -3
  27. data/app/models/concerns/account_initializer.rb +46 -42
  28. data/{lib/scss/devise/registrations.scss → app/models/lesli/account/detail.rb} +7 -3
  29. data/app/models/lesli/account.rb +12 -5
  30. data/app/models/lesli/cloud_object/action.rb +70 -0
  31. data/app/models/lesli/cloud_object/activity.rb +311 -0
  32. data/app/models/lesli/cloud_object/custom_field.rb +158 -0
  33. data/app/models/lesli/cloud_object/discussion.rb +219 -0
  34. data/app/models/lesli/cloud_object/subscriber.rb +186 -0
  35. data/app/models/lesli/shared/dashboard.rb +16 -5
  36. data/app/models/lesli/user/session.rb +0 -2
  37. data/app/models/lesli/user.rb +13 -13
  38. data/app/operators/lesli/user_registration_operator.rb +3 -3
  39. data/app/views/lesli/layouts/application-devise.html.erb +6 -6
  40. data/app/views/lesli/layouts/application-lesli.html.erb +1 -1
  41. data/app/views/lesli/partials/_application-data.html.erb +2 -1
  42. data/app/views/lesli/partials/_application-lesli-engines.html.erb +14 -39
  43. data/app/views/lesli/partials/_application-lesli-header.html.erb +4 -4
  44. data/app/views/lesli/partials/_application-lesli-icons.html.erb +1 -1
  45. data/app/views/lesli/partials/_application-lesli-panels.html.erb +7 -7
  46. data/app/views/lesli/wrappers/_application-devise.html.erb +5 -7
  47. data/config/initializers/devise.rb +335 -335
  48. data/config/initializers/lesli.rb +2 -1
  49. data/config/locales/translations.en.yml +4 -0
  50. data/config/locales/translations.es.yml +4 -0
  51. data/config/locales/translations.fr.yml +28 -0
  52. data/config/locales/translations.it.yml +28 -0
  53. data/config/locales/translations.pt.yml +28 -0
  54. data/config/routes.rb +1 -10
  55. data/db/migrate/{v1.0/0010003010_create_lesli_user_details.rb → v1/0010000110_create_lesli_accounts.rb} +19 -13
  56. data/db/migrate/{v1.0/0010000110_create_lesli_accounts.rb → v1/0010001010_create_lesli_account_details.rb} +5 -7
  57. data/db/migrate/{v1.0/0010001010_create_lesli_account_settings.rb → v1/0010001110_create_lesli_account_settings.rb} +2 -2
  58. data/db/seed/development/accounts.rb +10 -7
  59. data/db/seed/development/users.rb +20 -20
  60. data/db/seed/production/accounts.rb +10 -7
  61. data/lib/lesli/engine.rb +2 -12
  62. data/lib/lesli/version.rb +2 -2
  63. data/lib/lesli.rb +0 -1
  64. data/lib/scss/cloud-objects/discussion.scss +8 -5
  65. data/lib/scss/layouts/application-header.scss +3 -1
  66. data/lib/scss/layouts/application-navbar.scss +2 -1
  67. data/lib/scss/{elements/msg.scss → overrides/notification.scss} +16 -18
  68. data/lib/scss/pages/devise-simple.scss +4 -2
  69. data/lib/scss/pages/devise.scss +111 -107
  70. data/lib/scss/panels/panel-notification.scss +1 -1
  71. data/lib/scss/panels/{panel-ticket.scss → panel-support-ticket.scss} +3 -4
  72. data/lib/scss/templates/application.scss +7 -5
  73. data/lib/tasks/lesli/controllers.rake +1 -1
  74. data/lib/tasks/lesli/db.rake +24 -12
  75. data/lib/tasks/lesli_tasks.rake +6 -6
  76. data/lib/vue/application.js +13 -12
  77. data/lib/vue/{refactor/shared/cloudobjects → cloudobjects}/discussion/content.vue +10 -8
  78. data/lib/vue/cloudobjects/discussion/element.vue +170 -0
  79. data/lib/vue/{refactor/shared/cloudobjects → cloudobjects}/discussion/filters.vue +1 -1
  80. data/lib/vue/{refactor/shared/cloudobjects → cloudobjects}/discussion/new.vue +20 -16
  81. data/lib/vue/{refactor/shared/cloudobjects → cloudobjects}/discussion.vue +25 -24
  82. data/lib/vue/{refactor/stores/cloudobjects → cloudobjects/stores}/discussion.js +7 -16
  83. data/lib/vue/layouts/application-header.vue +5 -5
  84. data/lib/vue/panels/{panel-notifications.vue → panel-bell-notifications.vue} +15 -19
  85. data/lib/vue/panels/panel-support-tickets.vue +161 -0
  86. data/lib/vue/panels/stores/bell-notifications.js +46 -0
  87. data/lib/vue/panels/stores/support-tickets.js +103 -0
  88. data/lib/vue/shared/dashboards/apps/edit.vue +10 -10
  89. data/lib/vue/shared/dashboards/components/form.vue +31 -40
  90. data/lib/vue/shared/stores/dashboard.js +2 -0
  91. data/lib/vue/shared/stores/layout.js +2 -1
  92. data/lib/{scss/devise/confirmations.scss → vue/shared/stores/users.js} +22 -21
  93. data/lib/vue/stores/translations.json +109 -2
  94. data/lib/webpack/base.js +9 -8
  95. data/lib/webpack/core.js +8 -6
  96. data/readme.md +16 -15
  97. metadata +49 -76
  98. data/app/assets/icons/lesli/engine-guard.svg +0 -1
  99. data/app/assets/javascripts/lesli/users/sessions.js +0 -1
  100. data/app/controllers/users/confirmations_controller.rb +0 -66
  101. data/app/controllers/users/omniauth_callbacks_controller.rb +0 -30
  102. data/app/controllers/users/passwords_controller.rb +0 -71
  103. data/app/controllers/users/registrations_controller.rb +0 -141
  104. data/app/controllers/users/sessions_controller.rb +0 -141
  105. data/app/controllers/users/unlocks_controller.rb +0 -30
  106. data/app/views/devise/confirmations/new.html.erb +0 -2
  107. data/app/views/devise/confirmations/show.html.erb +0 -63
  108. data/app/views/devise/mailer/confirmation_instructions.html.erb +0 -5
  109. data/app/views/devise/mailer/email_changed.html.erb +0 -7
  110. data/app/views/devise/mailer/password_change.html.erb +0 -3
  111. data/app/views/devise/mailer/reset_password_instructions.html.erb +0 -8
  112. data/app/views/devise/mailer/unlock_instructions.html.erb +0 -7
  113. data/app/views/devise/passwords/edit.html.erb +0 -79
  114. data/app/views/devise/passwords/new.html.erb +0 -75
  115. data/app/views/devise/registrations/edit.html.erb +0 -43
  116. data/app/views/devise/registrations/new.html.erb +0 -147
  117. data/app/views/devise/sessions/new.html.erb +0 -114
  118. data/app/views/devise/shared/_demo.html.erb +0 -7
  119. data/app/views/devise/shared/_error_messages.html.erb +0 -15
  120. data/app/views/devise/shared/_links.html.erb +0 -96
  121. data/app/views/devise/unlocks/new.html.erb +0 -16
  122. data/db/migrate/v1.0/0010000210_create_lesli_roles.rb +0 -59
  123. data/db/migrate/v1.0/0010000310_create_lesli_users.rb +0 -97
  124. data/db/migrate/v1.0/0010003110_create_lesli_user_settings.rb +0 -44
  125. data/db/migrate/v1.0/0010003210_create_lesli_user_sessions.rb +0 -55
  126. data/db/migrate/v1.0/0010003410_create_lesli_user_powers.rb +0 -43
  127. data/db/migrate/v1.0/0010004010_create_lesli_user_logs.rb +0 -45
  128. data/db/migrate/v1.0/0010005010_create_lesli_descriptors.rb +0 -44
  129. data/db/migrate/v1.0/0010005110_create_lesli_descriptor_privileges.rb +0 -45
  130. data/db/migrate/v1.0/0010005210_create_lesli_descriptor_activities.rb +0 -49
  131. data/db/migrate/v1.0/0010005510_create_lesli_role_powers.rb +0 -51
  132. data/db/migrate/v1.0/0010005710_create_lesli_role_privileges.rb +0 -45
  133. data/lib/lesli/routing.rb +0 -26
  134. data/lib/scss/components/editor-richtext.scss +0 -88
  135. data/lib/scss/devise/oauth.scss +0 -34
  136. data/lib/scss/devise/passwords.scss +0 -33
  137. data/lib/scss/devise/sessions.scss +0 -35
  138. data/lib/scss/elements/avatar.scss +0 -48
  139. data/lib/scss/elements/calendar.scss +0 -47
  140. data/lib/scss/elements/toggle.scss +0 -102
  141. data/lib/vue/devise/confirmations.js +0 -33
  142. data/lib/vue/devise/passwords.js +0 -137
  143. data/lib/vue/devise/registrations.js +0 -157
  144. data/lib/vue/devise/sessions.js +0 -148
  145. data/lib/vue/panels/panel-tickets.vue +0 -181
  146. data/lib/vue/refactor/shared/cloudobjects/discussion/element.vue +0 -132
  147. data/lib/vue/shared/stores/account.js +0 -113
  148. /data/app/assets/icons/lesli/{engine-driver.svg → engine-calendar.svg} +0 -0
  149. /data/db/migrate/{v1.0 → v1}/0010000610_create_lesli_system_controllers.rb +0 -0
  150. /data/db/migrate/{v1.0 → v1}/0010000710_create_lesli_system_controller_actions.rb +0 -0
  151. /data/db/migrate/{v1.0 → v1}/0010001210_create_lesli_account_activities.rb +0 -0
  152. /data/db/migrate/{v1.0 → v1}/0010001410_create_lesli_account_logs.rb +0 -0
@@ -105,5 +105,6 @@ Lesli.configure do |config|
105
105
  color_sidebar_hover: "#dee7ec"
106
106
  }
107
107
 
108
- config.path_after_login = "/dashboard"
108
+ config.path_after_login = "/"
109
+ config.path_after_login = "/dashboard" if defined?(LesliDashboard)
109
110
  end
@@ -15,10 +15,14 @@
15
15
  view_status_inactive: Inactive
16
16
  button_settings: Settings
17
17
  button_show: Show
18
+ toolbar_search: Search...
18
19
  users/sessions:
19
20
  view_username: Username
20
21
  dashboards:
21
22
  title: Dashboards
23
+ column_name: Name
24
+ column_default: Default
25
+ view_add_component: Add component
22
26
  application:
23
27
  navigation_logout: Logout
24
28
  navigation_my_profile: My profile
@@ -15,10 +15,14 @@
15
15
  view_status_inactive: Inactivo
16
16
  button_settings: Configuración
17
17
  button_show: Ver
18
+ toolbar_search: Buscar...
18
19
  users/sessions:
19
20
  view_username: Usuario
20
21
  dashboards:
21
22
  title: Dashboards
23
+ column_name: Nombre
24
+ column_default: Default
25
+ view_add_component: Agregar componente
22
26
  application:
23
27
  navigation_logout: Cerrar sesión
24
28
  navigation_my_profile: Mi perfil
@@ -0,0 +1,28 @@
1
+ ---
2
+ :fr:
3
+ lesli:
4
+ shared:
5
+ view_discussions: ":lesli.shared.view_discussions:"
6
+ button_add_new: ":lesli.shared.button_add_new:"
7
+ button_reload: ":lesli.shared.button_reload:"
8
+ view_files: ":lesli.shared.view_files:"
9
+ view_quick_actions: ":lesli.shared.view_quick_actions:"
10
+ button_list: ":lesli.shared.button_list:"
11
+ button_save: ":lesli.shared.button_save:"
12
+ button_delete: ":lesli.shared.button_delete:"
13
+ button_edit: ":lesli.shared.button_edit:"
14
+ view_status_active: ":lesli.shared.view_status_active:"
15
+ view_status_inactive: ":lesli.shared.view_status_inactive:"
16
+ button_settings: ":lesli.shared.button_settings:"
17
+ button_show: ":lesli.shared.button_show:"
18
+ toolbar_search: ":lesli.shared.toolbar_search:"
19
+ users/sessions:
20
+ view_username: ":lesli.users/sessions.view_username:"
21
+ dashboards:
22
+ title: ":lesli.dashboards.title:"
23
+ column_name: ":lesli.dashboards.column_name:"
24
+ column_default: ":lesli.dashboards.column_default:"
25
+ view_add_component: ":lesli.dashboards.view_add_component:"
26
+ application:
27
+ navigation_logout: ":lesli.application.navigation_logout:"
28
+ navigation_my_profile: ":lesli.application.navigation_my_profile:"
@@ -0,0 +1,28 @@
1
+ ---
2
+ :it:
3
+ lesli:
4
+ shared:
5
+ view_discussions: ":lesli.shared.view_discussions:"
6
+ button_add_new: ":lesli.shared.button_add_new:"
7
+ button_reload: ":lesli.shared.button_reload:"
8
+ view_files: ":lesli.shared.view_files:"
9
+ view_quick_actions: ":lesli.shared.view_quick_actions:"
10
+ button_list: ":lesli.shared.button_list:"
11
+ button_save: ":lesli.shared.button_save:"
12
+ button_delete: ":lesli.shared.button_delete:"
13
+ button_edit: ":lesli.shared.button_edit:"
14
+ view_status_active: ":lesli.shared.view_status_active:"
15
+ view_status_inactive: ":lesli.shared.view_status_inactive:"
16
+ button_settings: ":lesli.shared.button_settings:"
17
+ button_show: ":lesli.shared.button_show:"
18
+ toolbar_search: ":lesli.shared.toolbar_search:"
19
+ users/sessions:
20
+ view_username: ":lesli.users/sessions.view_username:"
21
+ dashboards:
22
+ title: ":lesli.dashboards.title:"
23
+ column_name: ":lesli.dashboards.column_name:"
24
+ column_default: ":lesli.dashboards.column_default:"
25
+ view_add_component: ":lesli.dashboards.view_add_component:"
26
+ application:
27
+ navigation_logout: ":lesli.application.navigation_logout:"
28
+ navigation_my_profile: ":lesli.application.navigation_my_profile:"
@@ -0,0 +1,28 @@
1
+ ---
2
+ :pt:
3
+ lesli:
4
+ shared:
5
+ view_discussions: ":lesli.shared.view_discussions:"
6
+ button_add_new: ":lesli.shared.button_add_new:"
7
+ button_reload: ":lesli.shared.button_reload:"
8
+ view_files: ":lesli.shared.view_files:"
9
+ view_quick_actions: ":lesli.shared.view_quick_actions:"
10
+ button_list: ":lesli.shared.button_list:"
11
+ button_save: ":lesli.shared.button_save:"
12
+ button_delete: ":lesli.shared.button_delete:"
13
+ button_edit: ":lesli.shared.button_edit:"
14
+ view_status_active: ":lesli.shared.view_status_active:"
15
+ view_status_inactive: ":lesli.shared.view_status_inactive:"
16
+ button_settings: ":lesli.shared.button_settings:"
17
+ button_show: ":lesli.shared.button_show:"
18
+ toolbar_search: ":lesli.shared.toolbar_search:"
19
+ users/sessions:
20
+ view_username: ":lesli.users/sessions.view_username:"
21
+ dashboards:
22
+ title: ":lesli.dashboards.title:"
23
+ column_name: ":lesli.dashboards.column_name:"
24
+ column_default: ":lesli.dashboards.column_default:"
25
+ view_add_component: ":lesli.dashboards.view_add_component:"
26
+ application:
27
+ navigation_logout: ":lesli.application.navigation_logout:"
28
+ navigation_my_profile: ":lesli.application.navigation_my_profile:"
data/config/routes.rb CHANGED
@@ -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 https://www.lesli.tech
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
@@ -31,15 +31,6 @@ Building a better future, one line of code at a time.
31
31
  =end
32
32
 
33
33
 
34
- # Mount the devise at the deefault path
35
- # TODO:
36
- # The user can define the mount path for the auth framework
37
- # using: "Lesli::Routing.mount_login_at('auth')" so, later
38
- # we will must to check if devise is already mounted before
39
- # to call this method.
40
- Lesli::Routing.mount_login
41
-
42
-
43
34
  # Mount the necessary resources Lesli needs to work properly
44
35
  Lesli::Engine.routes.draw do
45
36
 
@@ -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 https://www.lesli.tech
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
@@ -30,20 +30,26 @@ Building a better future, one line of code at a time.
30
30
  // ·
31
31
  =end
32
32
 
33
- class CreateLesliUserDetails < ActiveRecord::Migration[6.0]
33
+ class CreateLesliAccounts < ActiveRecord::Migration[5.2]
34
34
  def change
35
- create_table :lesli_user_details do |t|
36
- t.string :title
37
- t.string :address
38
-
39
- t.bigint :work_city
40
- t.bigint :work_region
41
- t.bigint :work_address
42
-
43
- t.datetime :deleted_at, index: true
35
+ create_table :lesli_accounts do |t|
36
+ # account status
37
+ # 1. -> :registered
38
+ # 2. -> :onboarding
39
+ # 3. -> :active
40
+ # 4. -> :suspended
41
+ t.integer :status, default: 1, null: false
42
+
43
+ # unique email to identify the account
44
+ t.string :email
45
+
46
+ # name of the account
47
+ t.string :name
48
+
49
+ # Acts as paranoid
50
+ t.datetime :deleted_at, index: true
44
51
  t.timestamps
45
52
  end
46
- add_reference(:lesli_user_details, :user, foreign_key: { to_table: :lesli_users })
47
- #add_reference(:lesli_user_details, :account_location, foreign_key: { to_table: :account_locations })
53
+ add_index(:lesli_accounts, :email, unique: true)
48
54
  end
49
55
  end
@@ -17,7 +17,7 @@ GNU General Public License for more details.
17
17
  You should have received a copy of the GNU General Public License
18
18
  along with this program. If not, see http://www.gnu.org/licenses/.
19
19
 
20
- Lesli · Ruby on Rails SaaS development platform.
20
+ Lesli · Ruby on Rails SaaS Development Framework.
21
21
 
22
22
  Made with ♥ by https://www.lesli.tech
23
23
  Building a better future, one line of code at a time.
@@ -27,15 +27,12 @@ Building a better future, one line of code at a time.
27
27
  @license GPLv3 http://www.gnu.org/licenses/gpl-3.0.en.html
28
28
 
29
29
  // · ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~
30
- // ·
30
+ // ·
31
31
  =end
32
32
 
33
- class CreateLesliAccounts < ActiveRecord::Migration[5.2]
33
+ class CreateLesliAccountDetails < ActiveRecord::Migration[6.0]
34
34
  def change
35
- create_table :lesli_accounts do |t|
36
- # account status
37
- t.integer :status
38
- t.string :email
35
+ create_table :lesli_account_details do |t|
39
36
 
40
37
  # company information
41
38
  t.string :company_name
@@ -68,5 +65,6 @@ class CreateLesliAccounts < ActiveRecord::Migration[5.2]
68
65
  t.datetime :deleted_at, index: true
69
66
  t.timestamps
70
67
  end
68
+ add_reference(:lesli_account_details, :account, foreign_key: { to_table: :lesli_accounts })
71
69
  end
72
70
  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 https://www.lesli.tech
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
@@ -30,7 +30,7 @@ Building a better future, one line of code at a time.
30
30
  // ·
31
31
  =end
32
32
 
33
- class CreateLesliAccountSettings < ActiveRecord::Migration[6.0]
33
+ class CreateLesliAccountSettings < ActiveRecord::Migration[5.2]
34
34
  def change
35
35
  create_table :lesli_account_settings do |t|
36
36
  t.string :name
@@ -36,12 +36,15 @@ company = Lesli.config.company
36
36
 
37
37
 
38
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!
39
+ Lesli::Account.find_or_create_by(email: company[:email]) do |account|
40
+ account.name = company[:name]
45
41
  account.save!
46
- L2.msg("Account #{ account.company_name } <#{ account.email }> successfully created!")
42
+
43
+ # account.detail.company_name = company[:name]
44
+ # account.detail.public_email = company[:email]
45
+ # account.detail.company_tagline = company[:tag_line] || ""
46
+ # #account.registered!
47
+ # account.detail.save!
48
+
49
+ L2.msg("Account #{ account.name } <#{ account.email }> successfully created!")
47
50
  end
@@ -30,23 +30,23 @@ Building a better future, one line of code at a time.
30
30
  // ·
31
31
  =end
32
32
 
33
-
34
- # get settings
35
- company = Lesli.config.company
36
-
37
-
38
- # Create company user
39
- user = create_development_user(company[:email], "owner", company[:name], "")
40
- user.account.user = user
41
- user.account.save!
42
-
43
-
44
- # core development users
45
- [
46
- ["ldonis@lesli.tech", "owner", "Luis", "Donis"],
47
- ["admin@lesli.tech", "admin","Admin","Lesli"],
48
- ["guest@lesli.tech", "limited", "Guest","Lesli"],
49
- ["test@lesli.tech", "admin", "Test", "Lesli"],
50
- ].each do |user|
51
- create_development_user(user[0], user[1], user[2], user[3])
52
- end
33
+ if defined? LesliSecurity
34
+
35
+ # get settings
36
+ company = Lesli.config.company
37
+
38
+ # Create company user
39
+ user = create_development_user(company[:email], "owner", company[:name], "")
40
+ user.account.user = user
41
+ user.account.save!
42
+
43
+ # core development users
44
+ [
45
+ ["ldonis@lesli.tech", "owner", "Luis", "Donis"],
46
+ ["admin@lesli.tech", "admin","Admin","Lesli"],
47
+ ["guest@lesli.tech", "limited", "Guest","Lesli"],
48
+ ["test@lesli.tech", "admin", "Test", "Lesli"],
49
+ ].each do |user|
50
+ create_development_user(user[0], user[1], user[2], user[3])
51
+ end
52
+ end
@@ -36,12 +36,15 @@ company = Lesli.config.company
36
36
 
37
37
 
38
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!
39
+ Lesli::Account.find_or_create_by(email: company[:email]) do |account|
40
+ account.name = company[:name]
45
41
  account.save!
46
- L2.msg("Account #{ account.company_name } <#{ account.email }> successfully created!")
42
+
43
+ # account.detail.company_name = company[:name]
44
+ # account.detail.public_email = company[:email]
45
+ # account.detail.company_tagline = company[:tag_line] || ""
46
+ # #account.registered!
47
+ # account.detail.save!
48
+
49
+ L2.msg("Account #{ account.name } <#{ account.email }> successfully created!")
47
50
  end
data/lib/lesli/engine.rb CHANGED
@@ -36,9 +36,9 @@ require "kaminari"
36
36
 
37
37
  # · Tools used to build the Lesli Framework
38
38
  require "L2"
39
- require "devise"
39
+ #require "devise"
40
+ require "ancestry"
40
41
  require "useragent"
41
- #require "flag-icons-rails"
42
42
  require "acts_as_paranoid"
43
43
 
44
44
  module Lesli
@@ -65,14 +65,6 @@ module Lesli
65
65
  # Lesli Framework configuration
66
66
 
67
67
 
68
- # Include lib/assets folder in the asset pipeline
69
- #config.assets.paths << root.join("lib", "assets")
70
-
71
- #config.assets.paths << root.join("lib", "sass")
72
-
73
- # Include third-party assets
74
- #config.assets.paths << root.join("vendor")
75
-
76
68
  # Default languages
77
69
  config.i18n.default_locale = :en
78
70
  config.i18n.available_locales = [:en]
@@ -98,8 +90,6 @@ module Lesli
98
90
  from: config.company.dig(:email)
99
91
  }
100
92
 
101
-
102
-
103
93
  # Mailer url options for development
104
94
  config.action_mailer.default_url_options ||= {
105
95
  host: "http://0.0.0.0:3000"
data/lib/lesli/version.rb CHANGED
@@ -1,4 +1,4 @@
1
1
  module Lesli
2
- VERSION = "5.0.11"
3
- BUILD = "1710042648"
2
+ VERSION = "5.0.12"
3
+ BUILD = "1713121383"
4
4
  end
data/lib/lesli.rb CHANGED
@@ -1,5 +1,4 @@
1
1
  require "lesli/configuration"
2
- require "lesli/routing"
3
2
  require "lesli/version"
4
3
  require "lesli/engine"
5
4
 
@@ -17,9 +17,9 @@ GNU General Public License for more details.
17
17
  You should have received a copy of the GNU General Public License
18
18
  along with this program. If not, see http://www.gnu.org/licenses/.
19
19
 
20
- Lesli · Ruby on Rails SaaS development platform.
20
+ Lesli · Ruby on Rails SaaS Development Framework.
21
21
 
22
- Made with ♥ by https://www.lesli.tech
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
@@ -27,12 +27,15 @@ Building a better future, one line of code at a time.
27
27
  @license GPLv3 http://www.gnu.org/licenses/gpl-3.0.en.html
28
28
 
29
29
  // · ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~
30
- // ·
31
-
30
+ // ·
32
31
  */
33
32
 
34
- .discussion {
33
+ .lesli-cloud-object-discussion {
34
+ max-width: 1000px;
35
+ }
35
36
 
37
+ .discussion {
38
+
36
39
  &-content {
37
40
  display: flex;
38
41
  flex-direction: column;
@@ -113,7 +113,8 @@ header.lesli-application-header {
113
113
  // icons
114
114
  [class^="ri-"] {
115
115
  font-size: 25px;
116
- }
116
+ color: lesli-css-color(black, 700);
117
+ }
117
118
 
118
119
  .count {
119
120
  top: -8px;
@@ -136,6 +137,7 @@ header.lesli-application-header {
136
137
 
137
138
  .dropdown-trigger .ri-user-smile-line {
138
139
  font-size: 26px;
140
+ color: lesli-css-color(black, 700);
139
141
  }
140
142
 
141
143
  .dropdown-menu {
@@ -40,9 +40,10 @@ nav.lesli-application-navigation {
40
40
  justify-content: center;
41
41
 
42
42
  li a {
43
- padding: 1rem 1.1rem;
44
43
  display: flex;
44
+ padding: 1rem 1.1rem;
45
45
  align-items: center;
46
+ color: lesli-css-color(black, 700);
46
47
 
47
48
  // link label
48
49
  span.text {
@@ -17,7 +17,7 @@ GNU General Public License for more details.
17
17
  You should have received a copy of the GNU General Public License
18
18
  along with this program. If not, see http://www.gnu.org/licenses/.
19
19
 
20
- Lesli · Ruby on Rails SaaS development platform.
20
+ Lesli · Ruby on Rails SaaS Development Framework.
21
21
 
22
22
  Made with ♥ by https://www.lesli.tech
23
23
  Building a better future, one line of code at a time.
@@ -27,29 +27,27 @@ Building a better future, one line of code at a time.
27
27
  @license GPLv3 http://www.gnu.org/licenses/gpl-3.0.en.html
28
28
 
29
29
  // · ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~
30
- // ·
31
-
30
+ // ·
32
31
  */
33
32
 
34
33
 
35
34
  // ·
36
35
  .lesli-msg {
37
36
  position: fixed;
38
- border-radius: 8px;
39
- padding: 12px 24px;
40
- z-index: 9999;
41
-
42
- // center element and content
43
- top: 10px;
44
- left: 0px;
45
- right: 0px;
46
- margin: 0px auto;
47
- max-width: 300px;
48
- text-align: center;
49
- animation: lesli-msg-move-in-top cubic-bezier(.22, .58, .12, .98) .4s;
50
-
51
- &.hide {
52
- animation: lesli-msg-fade-out cubic-bezier(.22, .58, .12, .98) .4s forwards;
37
+ width: 100%;
38
+ top: 40px;
39
+
40
+ .lesli-msg-content {
41
+ text-align: center;
42
+ margin-bottom: 2px;
43
+ //animation: lesli-msg-move-in-top cubic-bezier(.22, .58, .12, .98) .4s;
44
+ &.hide {
45
+ animation: lesli-msg-fade-out cubic-bezier(.22, .58, .12, .98) .2s forwards;
46
+ }
47
+
48
+ .notification {
49
+ display: inline-block;
50
+ }
53
51
  }
54
52
  }
55
53
 
@@ -30,10 +30,12 @@ Building a better future, one line of code at a time.
30
30
  // ·
31
31
  */
32
32
 
33
- @import "lesli/templates/public";
34
- @import "lesli/fonts/remixicons.scss";
33
+
34
+ // ·
35
+ @import "Lesli/scss/templates/public";
35
36
 
36
37
 
38
+ // ·
37
39
  main {
38
40
  background: white;
39
41