lesli 5.0.1 → 5.0.3

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 +7 -4
  3. data/app/assets/fonts/lesli/Domine/Domine-VariableFont_wght.ttf +0 -0
  4. data/app/assets/fonts/lesli/Domine/OFL.txt +2 -0
  5. data/app/assets/javascripts/lesli/users/passwords.js +776 -0
  6. data/app/assets/javascripts/lesli/users/registrations.js +776 -0
  7. data/app/assets/javascripts/lesli/users/sessions.js +776 -1
  8. data/app/assets/stylesheets/lesli/users/passwords.scss +5 -6
  9. data/app/assets/stylesheets/lesli/users/registrations.scss +5 -6
  10. data/app/assets/stylesheets/lesli/users/sessions.scss +5 -10
  11. data/app/controllers/lesli/abouts_controller.rb +66 -0
  12. data/app/controllers/lesli/application_lesli_controller.rb +0 -1
  13. data/app/controllers/lesli/interfaces/application/logger.rb +9 -9
  14. data/app/controllers/lesli/roles_controller.rb +43 -0
  15. data/{lib/sass/lesli/devise/registrations.scss.erb → app/controllers/lesli/users_controller.rb} +18 -23
  16. data/app/controllers/users/registrations_controller.rb +137 -58
  17. data/app/helpers/lesli/assets_helper.rb +2 -2
  18. data/app/helpers/lesli/general_helper.rb +1 -1
  19. data/app/helpers/lesli/navigation_helper.rb +7 -10
  20. data/app/helpers/lesli/system_helper.rb +1 -1
  21. data/app/lib/lesli/system.rb +7 -3
  22. data/app/mailers/lesli/application_lesli_mailer.rb +199 -0
  23. data/app/mailers/lesli/application_mailer.rb +7 -0
  24. data/app/mailers/lesli/devise_mailer.rb +33 -0
  25. data/app/models/concerns/user_guard.rb +3 -4
  26. data/app/models/lesli/account.rb +29 -0
  27. data/{lib/sass/lesli/pages/passes.scss → app/models/lesli/descriptor.rb} +14 -8
  28. data/app/models/lesli/role.rb +90 -0
  29. data/app/models/lesli/system_controller.rb +1 -0
  30. data/app/models/lesli/user/detail.rb +55 -0
  31. data/{lib/sass/lesli/pages/otps.scss → app/models/lesli/user/role.rb} +13 -9
  32. data/app/models/lesli/user.rb +4 -3
  33. data/app/services/lesli/role_service.rb +45 -0
  34. data/app/services/lesli/user_service.rb +69 -0
  35. data/app/views/devise/passwords/new.html.erb +72 -12
  36. data/app/views/devise/registrations/new.html.erb +146 -28
  37. data/app/views/devise/sessions/new.html.erb +11 -78
  38. data/app/views/devise/shared/_links.html.erb +96 -25
  39. data/app/views/lesli/emails/devise_mailer/confirmation_instructions.html.erb +23 -0
  40. data/app/views/lesli/emails/user_mailer/invitation.html.erb +23 -0
  41. data/app/views/lesli/layouts/application-devise.html.erb +1 -1
  42. data/app/views/lesli/layouts/application-public.html.erb +2 -2
  43. data/app/views/lesli/layouts/mailer.html.erb +13 -0
  44. data/app/views/lesli/layouts/mailer.text.erb +1 -0
  45. data/app/views/lesli/partials/_application-lesli-header.html.erb +27 -41
  46. data/app/views/lesli/partials/_application-lesli-javascript.html.erb +10 -6
  47. data/app/views/lesli/partials/_application-public-javascript.html.erb +12 -8
  48. data/{lib/sass/lesli/devise/confirmations.scss.erb → app/views/lesli/wrappers/_application-devise-simple.erb} +30 -46
  49. data/app/views/lesli/wrappers/{_application-auth.html.erb → _application-devise.html.erb} +15 -0
  50. data/config/initializers/{lesli_defaults.rb → lesli.rb} +4 -2
  51. data/config/locales/translations.en.yml +7 -0
  52. data/config/locales/translations.es.yml +7 -0
  53. data/config/routes.rb +24 -17
  54. data/db/migrate/v1.0/0010000210_create_lesli_roles.rb +1 -1
  55. data/db/{tables/0010003010_create_user_details.rb → migrate/v1.0/0010003010_create_lesli_user_details.rb} +6 -6
  56. data/db/{tables/0010003510_create_user_roles.rb → migrate/v1.0/0010003410_create_lesli_user_roles.rb} +4 -4
  57. data/db/{tables/0010005010_create_descriptors.rb → migrate/v1.0/0010005010_create_lesli_descriptors.rb} +5 -6
  58. data/db/{tables/0010005110_create_descriptor_privileges.rb → migrate/v1.0/0010005110_create_lesli_descriptor_privileges.rb} +8 -7
  59. data/db/{tables/0010005210_create_descriptor_activities.rb → migrate/v1.0/0010005210_create_lesli_descriptor_activities.rb} +6 -8
  60. data/db/seeds.rb +0 -2
  61. data/lib/lesli/engine.rb +25 -2
  62. data/lib/lesli/routing.rb +26 -0
  63. data/lib/lesli/version.rb +2 -2
  64. data/lib/lesli.rb +1 -0
  65. data/lib/{sass/lesli/pages/mfas.scss → mailer_previews/devise_mailer_preview.rb} +12 -6
  66. data/lib/sass/lesli/bulma/loader.scss +3 -0
  67. data/lib/sass/lesli/elements/header.scss +1 -1
  68. data/lib/sass/lesli/fonts/families.scss +3 -3
  69. data/lib/sass/lesli/layouts/application-container.scss +4 -0
  70. data/lib/sass/lesli/{devise/passwords.scss.erb → pages/devise-simple.scss} +38 -38
  71. data/lib/sass/lesli/{templates → pages}/devise.scss +4 -26
  72. data/lib/sass/lesli/settings/variables.scss +1 -1
  73. data/lib/sass/lesli/templates/application.scss +8 -4
  74. data/lib/sass/lesli/templates/dashboards.scss +8 -0
  75. data/lib/sass/lesli/templates/public.scss +2 -3
  76. data/lib/tasks/lesli/controllers.rake +33 -0
  77. data/lib/tasks/lesli/db.rake +88 -0
  78. data/lib/tasks/lesli/git.rake +74 -0
  79. data/lib/tasks/lesli_tasks.rake +70 -20
  80. data/lib/vue/devise/registrations.js +10 -15
  81. data/lib/vue/layouts/application-container.vue +10 -2
  82. data/lib/vue/layouts/application-header.vue +10 -3
  83. data/lib/vue/stores/account.js +113 -0
  84. data/lib/vue/stores/role.js +243 -0
  85. data/lib/vue/stores/translations.json +86 -0
  86. data/lib/vue/stores/user.js +102 -0
  87. data/lib/{sass/lesli/devise/sessions.scss → vue/translation.js} +14 -5
  88. data/lib/webpack/base.js +2 -2
  89. data/lib/webpack/core.js +2 -0
  90. data/readme.md +74 -55
  91. data/vendor/bulma/LICENSE +21 -0
  92. data/vendor/bulma/bulma.sass +10 -0
  93. data/vendor/bulma/css/bulma-rtl.css +11851 -0
  94. data/vendor/bulma/css/bulma-rtl.min.css +1 -0
  95. data/vendor/bulma/css/bulma.css +11851 -0
  96. data/vendor/bulma/css/bulma.min.css +1 -0
  97. data/vendor/bulma/sass/base/_all.sass +6 -0
  98. data/vendor/bulma/sass/base/animations.sass +5 -0
  99. data/vendor/bulma/sass/base/generic.sass +145 -0
  100. data/vendor/bulma/sass/base/helpers.sass +1 -0
  101. data/vendor/bulma/sass/base/minireset.sass +79 -0
  102. data/vendor/bulma/sass/components/_all.sass +15 -0
  103. data/vendor/bulma/sass/components/breadcrumb.sass +77 -0
  104. data/vendor/bulma/sass/components/card.sass +103 -0
  105. data/vendor/bulma/sass/components/dropdown.sass +83 -0
  106. data/vendor/bulma/sass/components/level.sass +79 -0
  107. data/vendor/bulma/sass/components/media.sass +59 -0
  108. data/vendor/bulma/sass/components/menu.sass +59 -0
  109. data/vendor/bulma/sass/components/message.sass +101 -0
  110. data/vendor/bulma/sass/components/modal.sass +117 -0
  111. data/vendor/bulma/sass/components/navbar.sass +446 -0
  112. data/vendor/bulma/sass/components/pagination.sass +167 -0
  113. data/vendor/bulma/sass/components/panel.sass +121 -0
  114. data/vendor/bulma/sass/components/tabs.sass +176 -0
  115. data/vendor/bulma/sass/elements/_all.sass +16 -0
  116. data/vendor/bulma/sass/elements/box.sass +26 -0
  117. data/vendor/bulma/sass/elements/button.sass +357 -0
  118. data/vendor/bulma/sass/elements/container.sass +29 -0
  119. data/vendor/bulma/sass/elements/content.sass +162 -0
  120. data/vendor/bulma/sass/elements/form.sass +1 -0
  121. data/vendor/bulma/sass/elements/icon.sass +46 -0
  122. data/vendor/bulma/sass/elements/image.sass +73 -0
  123. data/vendor/bulma/sass/elements/notification.sass +52 -0
  124. data/vendor/bulma/sass/elements/other.sass +31 -0
  125. data/vendor/bulma/sass/elements/progress.sass +73 -0
  126. data/vendor/bulma/sass/elements/table.sass +134 -0
  127. data/vendor/bulma/sass/elements/tag.sass +140 -0
  128. data/vendor/bulma/sass/elements/title.sass +70 -0
  129. data/vendor/bulma/sass/form/_all.sass +9 -0
  130. data/vendor/bulma/sass/form/checkbox-radio.sass +22 -0
  131. data/vendor/bulma/sass/form/file.sass +184 -0
  132. data/vendor/bulma/sass/form/input-textarea.sass +66 -0
  133. data/vendor/bulma/sass/form/select.sass +88 -0
  134. data/vendor/bulma/sass/form/shared.sass +60 -0
  135. data/vendor/bulma/sass/form/tools.sass +215 -0
  136. data/vendor/bulma/sass/grid/_all.sass +5 -0
  137. data/vendor/bulma/sass/grid/columns.sass +513 -0
  138. data/vendor/bulma/sass/grid/tiles.sass +36 -0
  139. data/vendor/bulma/sass/helpers/_all.sass +12 -0
  140. data/vendor/bulma/sass/helpers/color.sass +39 -0
  141. data/vendor/bulma/sass/helpers/flexbox.sass +35 -0
  142. data/vendor/bulma/sass/helpers/float.sass +10 -0
  143. data/vendor/bulma/sass/helpers/other.sass +14 -0
  144. data/vendor/bulma/sass/helpers/overflow.sass +2 -0
  145. data/vendor/bulma/sass/helpers/position.sass +7 -0
  146. data/vendor/bulma/sass/helpers/spacing.sass +31 -0
  147. data/vendor/bulma/sass/helpers/typography.sass +103 -0
  148. data/vendor/bulma/sass/helpers/visibility.sass +122 -0
  149. data/vendor/bulma/sass/layout/_all.sass +6 -0
  150. data/vendor/bulma/sass/layout/footer.sass +11 -0
  151. data/vendor/bulma/sass/layout/hero.sass +153 -0
  152. data/vendor/bulma/sass/layout/section.sass +17 -0
  153. data/vendor/bulma/sass/utilities/_all.sass +9 -0
  154. data/vendor/bulma/sass/utilities/animations.sass +1 -0
  155. data/vendor/bulma/sass/utilities/controls.sass +49 -0
  156. data/vendor/bulma/sass/utilities/derived-variables.sass +114 -0
  157. data/vendor/bulma/sass/utilities/extends.sass +25 -0
  158. data/vendor/bulma/sass/utilities/functions.sass +135 -0
  159. data/vendor/bulma/sass/utilities/initial-variables.sass +79 -0
  160. data/vendor/bulma/sass/utilities/mixins.sass +303 -0
  161. data/vendor/lesli-css/_index.scss +34 -0
  162. data/vendor/lesli-css/lesli.scss +51 -0
  163. data/{app/assets/stylesheets/lesli/users/devise.scss → vendor/lesli-css/license} +7 -11
  164. data/vendor/lesli-css/src/base/fonts.scss +50 -0
  165. data/vendor/lesli-css/src/base/normalize.scss +118 -0
  166. data/vendor/lesli-css/src/components/blockquote.scss +61 -0
  167. data/vendor/lesli-css/src/components/columns.scss +92 -0
  168. data/vendor/lesli-css/src/components/container.scss +47 -0
  169. data/vendor/lesli-css/src/components/grid.scss +0 -0
  170. data/vendor/lesli-css/src/components/navigation.scss +59 -0
  171. data/vendor/lesli-css/src/functions/colors.scss +184 -0
  172. data/vendor/lesli-css/src/helpers/units.scss +44 -0
  173. data/vendor/lesli-css/src/mixins/breakpoint.scss +184 -0
  174. data/vendor/lesli-css/src/mixins/flex.scss +80 -0
  175. data/vendor/lesli-css/src/mixins/scrollbar.scss +46 -0
  176. data/vendor/lesli-css/src/settings/variables.scss +26 -0
  177. data/vendor/lesli-css/tests/base/normalize.spec.scss +125 -0
  178. data/vendor/lesli-css/tests/functions/colors.spec.scss +117 -0
  179. data/vendor/lesli-css/tests/mixins/breakpoint.spec.scss +429 -0
  180. data/vendor/lesli-css/tests/mixins/scrollbar.spec.scss +82 -0
  181. data/vendor/lesli-css/vendor/normalize.scss +351 -0
  182. data/vendor/remixicon/License +201 -0
  183. data/vendor/remixicon/fonts/remixicon.css +2583 -0
  184. metadata +290 -51
  185. data/app/assets/fonts/lesli/Domine/Domine-Bold.ttf +0 -0
  186. data/app/assets/fonts/lesli/Domine/Domine-Regular.ttf +0 -0
  187. data/app/controllers/lesli/profiles_controller.rb +0 -60
  188. data/app/helpers/lesli/profiles_helper.rb +0 -4
  189. data/app/models/lesli/profile.rb +0 -4
  190. data/app/views/lesli/devise/sessions/_form.html.erb +0 -17
  191. data/app/views/lesli/devise/sessions/_session.html.erb +0 -2
  192. data/app/views/lesli/devise/sessions/edit.html.erb +0 -10
  193. data/app/views/lesli/devise/sessions/index.html.erb +0 -14
  194. data/app/views/lesli/devise/sessions/new.html.erb +0 -9
  195. data/app/views/lesli/devise/sessions/show.html.erb +0 -10
  196. data/app/views/lesli/profiles/_form.html.erb +0 -17
  197. data/app/views/lesli/profiles/_profile.html.erb +0 -2
  198. data/app/views/lesli/profiles/edit.html.erb +0 -10
  199. data/app/views/lesli/profiles/index.html.erb +0 -14
  200. data/app/views/lesli/profiles/new.html.erb +0 -9
  201. data/app/views/lesli/profiles/show.html.erb +0 -10
  202. data/lib/sass/lesli/pages/dashboards.scss +0 -57
  203. data/lib/tasks/db.rb +0 -76
  204. data/lib/vue/stores/profile.js +0 -90
  205. data/lib/vue/stores/workflow2.js +0 -345
  206. data/lib/vue/stores/workflows/actions.js +0 -327
  207. data/lib/vue/stores/workflows/associations.js +0 -130
  208. data/lib/vue/stores/workflows/checks.js +0 -210
  209. /data/lib/vue/stores/{announcements.js → entities/announcements.js} +0 -0
  210. /data/lib/vue/stores/{dashboard.js → entities/dashboard.js} +0 -0
  211. /data/lib/vue/stores/{workflow.js → entities/workflow.js} +0 -0
  212. /data/lib/vue/stores/{cloud-bell → panels}/notification.js +0 -0
  213. /data/lib/vue/stores/{firebase.js → services/firebase.js} +0 -0
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lesli
3
3
  version: !ruby/object:Gem::Version
4
- version: 5.0.1
4
+ version: 5.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - The Lesli Development Team
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-10-06 00:00:00.000000000 Z
11
+ date: 2023-10-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -16,14 +16,160 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '7'
19
+ version: '7.0'
20
+ - - "<"
21
+ - !ruby/object:Gem::Version
22
+ version: '7.1'
23
+ type: :runtime
24
+ prerelease: false
25
+ version_requirements: !ruby/object:Gem::Requirement
26
+ requirements:
27
+ - - "~>"
28
+ - !ruby/object:Gem::Version
29
+ version: '7.0'
30
+ - - "<"
31
+ - !ruby/object:Gem::Version
32
+ version: '7.1'
33
+ - !ruby/object:Gem::Dependency
34
+ name: sprockets-rails
35
+ requirement: !ruby/object:Gem::Requirement
36
+ requirements:
37
+ - - "~>"
38
+ - !ruby/object:Gem::Version
39
+ version: 3.4.2
40
+ type: :runtime
41
+ prerelease: false
42
+ version_requirements: !ruby/object:Gem::Requirement
43
+ requirements:
44
+ - - "~>"
45
+ - !ruby/object:Gem::Version
46
+ version: 3.4.2
47
+ - !ruby/object:Gem::Dependency
48
+ name: sassc-rails
49
+ requirement: !ruby/object:Gem::Requirement
50
+ requirements:
51
+ - - "~>"
52
+ - !ruby/object:Gem::Version
53
+ version: 2.1.2
54
+ type: :runtime
55
+ prerelease: false
56
+ version_requirements: !ruby/object:Gem::Requirement
57
+ requirements:
58
+ - - "~>"
59
+ - !ruby/object:Gem::Version
60
+ version: 2.1.2
61
+ - !ruby/object:Gem::Dependency
62
+ name: i18n-js
63
+ requirement: !ruby/object:Gem::Requirement
64
+ requirements:
65
+ - - "~>"
66
+ - !ruby/object:Gem::Version
67
+ version: 4.2.3
68
+ type: :runtime
69
+ prerelease: false
70
+ version_requirements: !ruby/object:Gem::Requirement
71
+ requirements:
72
+ - - "~>"
73
+ - !ruby/object:Gem::Version
74
+ version: 4.2.3
75
+ - !ruby/object:Gem::Dependency
76
+ name: pg
77
+ requirement: !ruby/object:Gem::Requirement
78
+ requirements:
79
+ - - "~>"
80
+ - !ruby/object:Gem::Version
81
+ version: 1.5.3
82
+ type: :runtime
83
+ prerelease: false
84
+ version_requirements: !ruby/object:Gem::Requirement
85
+ requirements:
86
+ - - "~>"
87
+ - !ruby/object:Gem::Version
88
+ version: 1.5.3
89
+ - !ruby/object:Gem::Dependency
90
+ name: acts_as_paranoid
91
+ requirement: !ruby/object:Gem::Requirement
92
+ requirements:
93
+ - - "~>"
94
+ - !ruby/object:Gem::Version
95
+ version: 0.8.1
96
+ type: :runtime
97
+ prerelease: false
98
+ version_requirements: !ruby/object:Gem::Requirement
99
+ requirements:
100
+ - - "~>"
101
+ - !ruby/object:Gem::Version
102
+ version: 0.8.1
103
+ - !ruby/object:Gem::Dependency
104
+ name: kaminari
105
+ requirement: !ruby/object:Gem::Requirement
106
+ requirements:
107
+ - - "~>"
108
+ - !ruby/object:Gem::Version
109
+ version: 1.2.2
110
+ type: :runtime
111
+ prerelease: false
112
+ version_requirements: !ruby/object:Gem::Requirement
113
+ requirements:
114
+ - - "~>"
115
+ - !ruby/object:Gem::Version
116
+ version: 1.2.2
117
+ - !ruby/object:Gem::Dependency
118
+ name: L2
119
+ requirement: !ruby/object:Gem::Requirement
120
+ requirements:
121
+ - - "~>"
122
+ - !ruby/object:Gem::Version
123
+ version: 0.5.2
20
124
  type: :runtime
21
125
  prerelease: false
22
126
  version_requirements: !ruby/object:Gem::Requirement
23
127
  requirements:
24
128
  - - "~>"
25
129
  - !ruby/object:Gem::Version
26
- version: '7'
130
+ version: 0.5.2
131
+ - !ruby/object:Gem::Dependency
132
+ name: devise
133
+ requirement: !ruby/object:Gem::Requirement
134
+ requirements:
135
+ - - "~>"
136
+ - !ruby/object:Gem::Version
137
+ version: 4.9.2
138
+ type: :runtime
139
+ prerelease: false
140
+ version_requirements: !ruby/object:Gem::Requirement
141
+ requirements:
142
+ - - "~>"
143
+ - !ruby/object:Gem::Version
144
+ version: 4.9.2
145
+ - !ruby/object:Gem::Dependency
146
+ name: useragent
147
+ requirement: !ruby/object:Gem::Requirement
148
+ requirements:
149
+ - - "~>"
150
+ - !ruby/object:Gem::Version
151
+ version: 0.16.10
152
+ type: :runtime
153
+ prerelease: false
154
+ version_requirements: !ruby/object:Gem::Requirement
155
+ requirements:
156
+ - - "~>"
157
+ - !ruby/object:Gem::Version
158
+ version: 0.16.10
159
+ - !ruby/object:Gem::Dependency
160
+ name: flag-icons-rails
161
+ requirement: !ruby/object:Gem::Requirement
162
+ requirements:
163
+ - - '='
164
+ - !ruby/object:Gem::Version
165
+ version: 3.4.6.1
166
+ type: :runtime
167
+ prerelease: false
168
+ version_requirements: !ruby/object:Gem::Requirement
169
+ requirements:
170
+ - - '='
171
+ - !ruby/object:Gem::Version
172
+ version: 3.4.6.1
27
173
  description: Ruby on Rails SaaS Development Framework.
28
174
  email:
29
175
  - hello@lesli.tech
@@ -33,8 +179,7 @@ extra_rdoc_files: []
33
179
  files:
34
180
  - Rakefile
35
181
  - app/assets/config/lesli_manifest.js
36
- - app/assets/fonts/lesli/Domine/Domine-Bold.ttf
37
- - app/assets/fonts/lesli/Domine/Domine-Regular.ttf
182
+ - app/assets/fonts/lesli/Domine/Domine-VariableFont_wght.ttf
38
183
  - app/assets/fonts/lesli/Domine/OFL.txt
39
184
  - app/assets/fonts/lesli/MaterialDesign/icons.woff2
40
185
  - app/assets/fonts/lesli/Montserrat/Montserrat-Variable.ttf
@@ -105,13 +250,15 @@ files:
105
250
  - app/assets/images/lesli/brand/favicon.png
106
251
  - app/assets/images/lesli/brand/favicon.svg
107
252
  - app/assets/images/lesli/brand/login-background.jpg
253
+ - app/assets/javascripts/lesli/users/passwords.js
254
+ - app/assets/javascripts/lesli/users/registrations.js
108
255
  - app/assets/javascripts/lesli/users/sessions.js
109
256
  - app/assets/stylesheets/lesli/users/confirmations.scss
110
- - app/assets/stylesheets/lesli/users/devise.scss
111
257
  - app/assets/stylesheets/lesli/users/oauth.scss
112
258
  - app/assets/stylesheets/lesli/users/passwords.scss
113
259
  - app/assets/stylesheets/lesli/users/registrations.scss
114
260
  - app/assets/stylesheets/lesli/users/sessions.scss
261
+ - app/controllers/lesli/abouts_controller.rb
115
262
  - app/controllers/lesli/application_controller.rb
116
263
  - app/controllers/lesli/application_devise_controller.rb
117
264
  - app/controllers/lesli/application_lesli_controller.rb
@@ -120,7 +267,8 @@ files:
120
267
  - app/controllers/lesli/interfaces/application/logger.rb
121
268
  - app/controllers/lesli/interfaces/application/requester.rb
122
269
  - app/controllers/lesli/interfaces/application/responder.rb
123
- - app/controllers/lesli/profiles_controller.rb
270
+ - app/controllers/lesli/roles_controller.rb
271
+ - app/controllers/lesli/users_controller.rb
124
272
  - app/controllers/users/confirmations_controller.rb
125
273
  - app/controllers/users/omniauth_callbacks_controller.rb
126
274
  - app/controllers/users/passwords_controller.rb
@@ -131,10 +279,12 @@ files:
131
279
  - app/helpers/lesli/customization_helper.rb
132
280
  - app/helpers/lesli/general_helper.rb
133
281
  - app/helpers/lesli/navigation_helper.rb
134
- - app/helpers/lesli/profiles_helper.rb
135
282
  - app/helpers/lesli/system_helper.rb
136
283
  - app/lib/date2.rb
137
284
  - app/lib/lesli/system.rb
285
+ - app/mailers/lesli/application_lesli_mailer.rb
286
+ - app/mailers/lesli/application_mailer.rb
287
+ - app/mailers/lesli/devise_mailer.rb
138
288
  - app/models/concerns/account_engines.rb
139
289
  - app/models/concerns/user_activities.rb
140
290
  - app/models/concerns/user_extensions.rb
@@ -144,16 +294,21 @@ files:
144
294
  - app/models/lesli/account/log.rb
145
295
  - app/models/lesli/account/request.rb
146
296
  - app/models/lesli/application_lesli_record.rb
147
- - app/models/lesli/profile.rb
297
+ - app/models/lesli/descriptor.rb
298
+ - app/models/lesli/role.rb
148
299
  - app/models/lesli/system_controller.rb
149
300
  - app/models/lesli/system_controller/action.rb
150
301
  - app/models/lesli/user.rb
151
302
  - app/models/lesli/user/agent.rb
303
+ - app/models/lesli/user/detail.rb
152
304
  - app/models/lesli/user/log.rb
153
305
  - app/models/lesli/user/request.rb
306
+ - app/models/lesli/user/role.rb
154
307
  - app/models/lesli/user/session.rb
155
308
  - app/services/lesli/application_lesli_service.rb
309
+ - app/services/lesli/role_service.rb
156
310
  - app/services/lesli/user/session_service.rb
311
+ - app/services/lesli/user_service.rb
157
312
  - app/validators/lesli/application_lesli_validator.rb
158
313
  - app/validators/lesli/users_validator.rb
159
314
  - app/views/devise/confirmations/new.html.erb
@@ -170,15 +325,13 @@ files:
170
325
  - app/views/devise/shared/_error_messages.html.erb
171
326
  - app/views/devise/shared/_links.html.erb
172
327
  - app/views/devise/unlocks/new.html.erb
173
- - app/views/lesli/devise/sessions/_form.html.erb
174
- - app/views/lesli/devise/sessions/_session.html.erb
175
- - app/views/lesli/devise/sessions/edit.html.erb
176
- - app/views/lesli/devise/sessions/index.html.erb
177
- - app/views/lesli/devise/sessions/new.html.erb
178
- - app/views/lesli/devise/sessions/show.html.erb
328
+ - app/views/lesli/emails/devise_mailer/confirmation_instructions.html.erb
329
+ - app/views/lesli/emails/user_mailer/invitation.html.erb
179
330
  - app/views/lesli/layouts/application-devise.html.erb
180
331
  - app/views/lesli/layouts/application-lesli.html.erb
181
332
  - app/views/lesli/layouts/application-public.html.erb
333
+ - app/views/lesli/layouts/mailer.html.erb
334
+ - app/views/lesli/layouts/mailer.text.erb
182
335
  - app/views/lesli/partials/_application-analytics.html.erb
183
336
  - app/views/lesli/partials/_application-data.html.erb
184
337
  - app/views/lesli/partials/_application-head.html.erb
@@ -197,16 +350,13 @@ files:
197
350
  - app/views/lesli/partials/_application-public-footer.html.erb
198
351
  - app/views/lesli/partials/_application-public-javascript.html.erb
199
352
  - app/views/lesli/partials/_application-public-scss.html.erb
200
- - app/views/lesli/profiles/_form.html.erb
201
- - app/views/lesli/profiles/_profile.html.erb
202
- - app/views/lesli/profiles/edit.html.erb
203
- - app/views/lesli/profiles/index.html.erb
204
- - app/views/lesli/profiles/new.html.erb
205
- - app/views/lesli/profiles/show.html.erb
206
- - app/views/lesli/wrappers/_application-auth.html.erb
353
+ - app/views/lesli/wrappers/_application-devise-simple.erb
354
+ - app/views/lesli/wrappers/_application-devise.html.erb
207
355
  - config/initializers/devise.rb
208
- - config/initializers/lesli_defaults.rb
356
+ - config/initializers/lesli.rb
209
357
  - config/locales/devise.en.yml
358
+ - config/locales/translations.en.yml
359
+ - config/locales/translations.es.yml
210
360
  - config/routes.rb
211
361
  - db/migrate/v1.0/0010000110_create_lesli_accounts.rb
212
362
  - db/migrate/v1.0/0010000210_create_lesli_roles.rb
@@ -216,10 +366,15 @@ files:
216
366
  - db/migrate/v1.0/0010001210_create_lesli_account_activities.rb
217
367
  - db/migrate/v1.0/0010001410_create_lesli_account_logs.rb
218
368
  - db/migrate/v1.0/0010001510_create_lesli_account_requests.rb
369
+ - db/migrate/v1.0/0010003010_create_lesli_user_details.rb
219
370
  - db/migrate/v1.0/0010003210_create_lesli_user_sessions.rb
371
+ - db/migrate/v1.0/0010003410_create_lesli_user_roles.rb
220
372
  - db/migrate/v1.0/0010003810_create_lesli_user_requests.rb
221
373
  - db/migrate/v1.0/0010003910_create_lesli_user_agents.rb
222
374
  - db/migrate/v1.0/0010004010_create_lesli_user_logs.rb
375
+ - db/migrate/v1.0/0010005010_create_lesli_descriptors.rb
376
+ - db/migrate/v1.0/0010005110_create_lesli_descriptor_privileges.rb
377
+ - db/migrate/v1.0/0010005210_create_lesli_descriptor_activities.rb
223
378
  - db/seed/development.rb
224
379
  - db/seed/development/accounts.rb
225
380
  - db/seed/development/users.rb
@@ -251,16 +406,11 @@ files:
251
406
  - db/tables/0010001410_create_account_files.rb
252
407
  - db/tables/0010001510_create_account_currencies.rb
253
408
  - db/tables/0010001610_create_account_currency_exchange_rates.rb
254
- - db/tables/0010003010_create_user_details.rb
255
409
  - db/tables/0010003110_create_user_settings.rb
256
410
  - db/tables/0010003410_create_user_activities.rb
257
- - db/tables/0010003510_create_user_roles.rb
258
411
  - db/tables/0010003710_create_user_codes.rb
259
412
  - db/tables/0010003810_create_user_shortcuts.rb
260
413
  - db/tables/0010004110_create_user_tokens.rb
261
- - db/tables/0010005010_create_descriptors.rb
262
- - db/tables/0010005110_create_descriptor_privileges.rb
263
- - db/tables/0010005210_create_descriptor_activities.rb
264
414
  - db/tables/0010005510_create_role_descriptors.rb
265
415
  - db/tables/0010005610_create_role_activities.rb
266
416
  - db/tables/0010005710_create_role_privileges.rb
@@ -270,16 +420,14 @@ files:
270
420
  - lib/lesli.rb
271
421
  - lib/lesli/configuration.rb
272
422
  - lib/lesli/engine.rb
423
+ - lib/lesli/routing.rb
273
424
  - lib/lesli/version.rb
425
+ - lib/mailer_previews/devise_mailer_preview.rb
274
426
  - lib/sass/lesli/bulma/loader.scss
275
427
  - lib/sass/lesli/cloud-objects/discussion.scss
276
428
  - lib/sass/lesli/cloud-objects/file.scss
277
429
  - lib/sass/lesli/components/editor-richtext.scss
278
430
  - lib/sass/lesli/components/keypad.scss
279
- - lib/sass/lesli/devise/confirmations.scss.erb
280
- - lib/sass/lesli/devise/passwords.scss.erb
281
- - lib/sass/lesli/devise/registrations.scss.erb
282
- - lib/sass/lesli/devise/sessions.scss
283
431
  - lib/sass/lesli/elements/autocomplete.scss
284
432
  - lib/sass/lesli/elements/avatar.scss
285
433
  - lib/sass/lesli/elements/calendar.scss
@@ -314,11 +462,9 @@ files:
314
462
  - lib/sass/lesli/layouts/application-search.scss
315
463
  - lib/sass/lesli/layouts/application-sidebar.scss
316
464
  - lib/sass/lesli/overrides/sweetalert.scss
317
- - lib/sass/lesli/pages/dashboards.scss
465
+ - lib/sass/lesli/pages/devise-simple.scss
466
+ - lib/sass/lesli/pages/devise.scss
318
467
  - lib/sass/lesli/pages/invites.scss
319
- - lib/sass/lesli/pages/mfas.scss
320
- - lib/sass/lesli/pages/otps.scss
321
- - lib/sass/lesli/pages/passes.scss
322
468
  - lib/sass/lesli/panels/panel-announcements.scss
323
469
  - lib/sass/lesli/panels/panel-notification.scss
324
470
  - lib/sass/lesli/panels/panel-profile.scss
@@ -328,12 +474,12 @@ files:
328
474
  - lib/sass/lesli/shared/workflow-status-progress.scss
329
475
  - lib/sass/lesli/templates/application.scss
330
476
  - lib/sass/lesli/templates/dashboards.scss
331
- - lib/sass/lesli/templates/devise.scss
332
477
  - lib/sass/lesli/templates/empty.scss
333
478
  - lib/sass/lesli/templates/pdf.scss
334
479
  - lib/sass/lesli/templates/public.scss
335
- - lib/tasks/db.rb
336
480
  - lib/tasks/lesli/controllers.rake
481
+ - lib/tasks/lesli/db.rake
482
+ - lib/tasks/lesli/git.rake
337
483
  - lib/tasks/lesli_tasks.rake
338
484
  - lib/vue/application.js
339
485
  - lib/vue/apps/cloudobjects/action.vue
@@ -406,31 +552,124 @@ files:
406
552
  - lib/vue/panels/panel-tasks.vue
407
553
  - lib/vue/panels/panel-tickets.vue
408
554
  - lib/vue/public.js
409
- - lib/vue/stores/announcements.js
410
- - lib/vue/stores/cloud-bell/notification.js
555
+ - lib/vue/stores/account.js
411
556
  - lib/vue/stores/cloudobjects/action.js
412
557
  - lib/vue/stores/cloudobjects/discussion.js
413
558
  - lib/vue/stores/cloudobjects/file.js
414
- - lib/vue/stores/dashboard.js
415
- - lib/vue/stores/firebase.js
559
+ - lib/vue/stores/entities/announcements.js
560
+ - lib/vue/stores/entities/dashboard.js
561
+ - lib/vue/stores/entities/workflow.js
416
562
  - lib/vue/stores/layout.js
417
563
  - lib/vue/stores/panels/announcements.js
564
+ - lib/vue/stores/panels/notification.js
418
565
  - lib/vue/stores/panels/task.js
419
566
  - lib/vue/stores/panels/tickets.js
420
- - lib/vue/stores/profile.js
567
+ - lib/vue/stores/role.js
421
568
  - lib/vue/stores/search.js
569
+ - lib/vue/stores/services/firebase.js
422
570
  - lib/vue/stores/services/translator.js
423
- - lib/vue/stores/workflow.js
424
- - lib/vue/stores/workflow2.js
425
- - lib/vue/stores/workflows/actions.js
426
- - lib/vue/stores/workflows/associations.js
427
- - lib/vue/stores/workflows/checks.js
571
+ - lib/vue/stores/translations.json
572
+ - lib/vue/stores/user.js
573
+ - lib/vue/translation.js
428
574
  - lib/webpack/base.js
429
575
  - lib/webpack/core.js
430
576
  - lib/webpack/engines.js
431
577
  - lib/webpack/version.js
432
578
  - license
433
579
  - readme.md
580
+ - vendor/bulma/LICENSE
581
+ - vendor/bulma/bulma.sass
582
+ - vendor/bulma/css/bulma-rtl.css
583
+ - vendor/bulma/css/bulma-rtl.min.css
584
+ - vendor/bulma/css/bulma.css
585
+ - vendor/bulma/css/bulma.min.css
586
+ - vendor/bulma/sass/base/_all.sass
587
+ - vendor/bulma/sass/base/animations.sass
588
+ - vendor/bulma/sass/base/generic.sass
589
+ - vendor/bulma/sass/base/helpers.sass
590
+ - vendor/bulma/sass/base/minireset.sass
591
+ - vendor/bulma/sass/components/_all.sass
592
+ - vendor/bulma/sass/components/breadcrumb.sass
593
+ - vendor/bulma/sass/components/card.sass
594
+ - vendor/bulma/sass/components/dropdown.sass
595
+ - vendor/bulma/sass/components/level.sass
596
+ - vendor/bulma/sass/components/media.sass
597
+ - vendor/bulma/sass/components/menu.sass
598
+ - vendor/bulma/sass/components/message.sass
599
+ - vendor/bulma/sass/components/modal.sass
600
+ - vendor/bulma/sass/components/navbar.sass
601
+ - vendor/bulma/sass/components/pagination.sass
602
+ - vendor/bulma/sass/components/panel.sass
603
+ - vendor/bulma/sass/components/tabs.sass
604
+ - vendor/bulma/sass/elements/_all.sass
605
+ - vendor/bulma/sass/elements/box.sass
606
+ - vendor/bulma/sass/elements/button.sass
607
+ - vendor/bulma/sass/elements/container.sass
608
+ - vendor/bulma/sass/elements/content.sass
609
+ - vendor/bulma/sass/elements/form.sass
610
+ - vendor/bulma/sass/elements/icon.sass
611
+ - vendor/bulma/sass/elements/image.sass
612
+ - vendor/bulma/sass/elements/notification.sass
613
+ - vendor/bulma/sass/elements/other.sass
614
+ - vendor/bulma/sass/elements/progress.sass
615
+ - vendor/bulma/sass/elements/table.sass
616
+ - vendor/bulma/sass/elements/tag.sass
617
+ - vendor/bulma/sass/elements/title.sass
618
+ - vendor/bulma/sass/form/_all.sass
619
+ - vendor/bulma/sass/form/checkbox-radio.sass
620
+ - vendor/bulma/sass/form/file.sass
621
+ - vendor/bulma/sass/form/input-textarea.sass
622
+ - vendor/bulma/sass/form/select.sass
623
+ - vendor/bulma/sass/form/shared.sass
624
+ - vendor/bulma/sass/form/tools.sass
625
+ - vendor/bulma/sass/grid/_all.sass
626
+ - vendor/bulma/sass/grid/columns.sass
627
+ - vendor/bulma/sass/grid/tiles.sass
628
+ - vendor/bulma/sass/helpers/_all.sass
629
+ - vendor/bulma/sass/helpers/color.sass
630
+ - vendor/bulma/sass/helpers/flexbox.sass
631
+ - vendor/bulma/sass/helpers/float.sass
632
+ - vendor/bulma/sass/helpers/other.sass
633
+ - vendor/bulma/sass/helpers/overflow.sass
634
+ - vendor/bulma/sass/helpers/position.sass
635
+ - vendor/bulma/sass/helpers/spacing.sass
636
+ - vendor/bulma/sass/helpers/typography.sass
637
+ - vendor/bulma/sass/helpers/visibility.sass
638
+ - vendor/bulma/sass/layout/_all.sass
639
+ - vendor/bulma/sass/layout/footer.sass
640
+ - vendor/bulma/sass/layout/hero.sass
641
+ - vendor/bulma/sass/layout/section.sass
642
+ - vendor/bulma/sass/utilities/_all.sass
643
+ - vendor/bulma/sass/utilities/animations.sass
644
+ - vendor/bulma/sass/utilities/controls.sass
645
+ - vendor/bulma/sass/utilities/derived-variables.sass
646
+ - vendor/bulma/sass/utilities/extends.sass
647
+ - vendor/bulma/sass/utilities/functions.sass
648
+ - vendor/bulma/sass/utilities/initial-variables.sass
649
+ - vendor/bulma/sass/utilities/mixins.sass
650
+ - vendor/lesli-css/_index.scss
651
+ - vendor/lesli-css/lesli.scss
652
+ - vendor/lesli-css/license
653
+ - vendor/lesli-css/src/base/fonts.scss
654
+ - vendor/lesli-css/src/base/normalize.scss
655
+ - vendor/lesli-css/src/components/blockquote.scss
656
+ - vendor/lesli-css/src/components/columns.scss
657
+ - vendor/lesli-css/src/components/container.scss
658
+ - vendor/lesli-css/src/components/grid.scss
659
+ - vendor/lesli-css/src/components/navigation.scss
660
+ - vendor/lesli-css/src/functions/colors.scss
661
+ - vendor/lesli-css/src/helpers/units.scss
662
+ - vendor/lesli-css/src/mixins/breakpoint.scss
663
+ - vendor/lesli-css/src/mixins/flex.scss
664
+ - vendor/lesli-css/src/mixins/scrollbar.scss
665
+ - vendor/lesli-css/src/settings/variables.scss
666
+ - vendor/lesli-css/tests/base/normalize.spec.scss
667
+ - vendor/lesli-css/tests/functions/colors.spec.scss
668
+ - vendor/lesli-css/tests/mixins/breakpoint.spec.scss
669
+ - vendor/lesli-css/tests/mixins/scrollbar.spec.scss
670
+ - vendor/lesli-css/vendor/normalize.scss
671
+ - vendor/remixicon/License
672
+ - vendor/remixicon/fonts/remixicon.css
434
673
  homepage: https://www.lesli.dev/
435
674
  licenses:
436
675
  - GPL-3.0
@@ -438,7 +677,7 @@ metadata:
438
677
  homepage_uri: https://www.lesli.dev/
439
678
  changelog_uri: https://github.com/LesliTech/Lesli
440
679
  source_code_uri: https://github.com/LesliTech/Lesli
441
- post_install_message:
680
+ post_install_message: Greetings from LesliTech ❤️ Docs are available at https://www.lesli.dev/
442
681
  rdoc_options: []
443
682
  require_paths:
444
683
  - lib
@@ -446,7 +685,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
446
685
  requirements:
447
686
  - - ">="
448
687
  - !ruby/object:Gem::Version
449
- version: 2.7.2
688
+ version: '2.7'
450
689
  required_rubygems_version: !ruby/object:Gem::Requirement
451
690
  requirements:
452
691
  - - ">="
@@ -1,60 +0,0 @@
1
- module Lesli
2
- class ProfilesController < ApplicationController
3
- before_action :set_profile, only: %i[ show edit update destroy ]
4
-
5
- # GET /profiles
6
- def index
7
- @profiles = Profile.all
8
- end
9
-
10
- # GET /profiles/1
11
- def show
12
- end
13
-
14
- # GET /profiles/new
15
- def new
16
- @profile = Profile.new
17
- end
18
-
19
- # GET /profiles/1/edit
20
- def edit
21
- end
22
-
23
- # POST /profiles
24
- def create
25
- @profile = Profile.new(profile_params)
26
-
27
- if @profile.save
28
- redirect_to @profile, notice: "Profile was successfully created."
29
- else
30
- render :new, status: :unprocessable_entity
31
- end
32
- end
33
-
34
- # PATCH/PUT /profiles/1
35
- def update
36
- if @profile.update(profile_params)
37
- redirect_to @profile, notice: "Profile was successfully updated.", status: :see_other
38
- else
39
- render :edit, status: :unprocessable_entity
40
- end
41
- end
42
-
43
- # DELETE /profiles/1
44
- def destroy
45
- @profile.destroy
46
- redirect_to profiles_url, notice: "Profile was successfully destroyed.", status: :see_other
47
- end
48
-
49
- private
50
- # Use callbacks to share common setup or constraints between actions.
51
- def set_profile
52
- @profile = Profile.find(params[:id])
53
- end
54
-
55
- # Only allow a list of trusted parameters through.
56
- def profile_params
57
- params.fetch(:profile, {})
58
- end
59
- end
60
- end
@@ -1,4 +0,0 @@
1
- module Lesli
2
- module ProfilesHelper
3
- end
4
- end
@@ -1,4 +0,0 @@
1
- module Lesli
2
- class Profile < ApplicationRecord
3
- end
4
- end
@@ -1,17 +0,0 @@
1
- <%= form_with(model: devise_session) do |form| %>
2
- <% if devise_session.errors.any? %>
3
- <div style="color: red">
4
- <h2><%= pluralize(devise_session.errors.count, "error") %> prohibited this devise_session from being saved:</h2>
5
-
6
- <ul>
7
- <% devise_session.errors.each do |error| %>
8
- <li><%= error.full_message %></li>
9
- <% end %>
10
- </ul>
11
- </div>
12
- <% end %>
13
-
14
- <div>
15
- <%= form.submit %>
16
- </div>
17
- <% end %>
@@ -1,2 +0,0 @@
1
- <div id="<%= dom_id session %>">
2
- </div>
@@ -1,10 +0,0 @@
1
- <h1>Editing session</h1>
2
-
3
- <%= render "form", devise_session: @devise_session %>
4
-
5
- <br>
6
-
7
- <div>
8
- <%= link_to "Show this session", @devise_session %> |
9
- <%= link_to "Back to sessions", devise_sessions_path %>
10
- </div>
@@ -1,14 +0,0 @@
1
- <p style="color: green"><%= notice %></p>
2
-
3
- <h1>Sessions</h1>
4
-
5
- <div id="devise_sessions">
6
- <% @devise_sessions.each do |devise_session| %>
7
- <%= render devise_session %>
8
- <p>
9
- <%= link_to "Show this session", devise_session %>
10
- </p>
11
- <% end %>
12
- </div>
13
-
14
- <%= link_to "New session", new_devise_session_path %>
@@ -1,9 +0,0 @@
1
- <h1>New session</h1>
2
-
3
- <%= render "form", devise_session: @devise_session %>
4
-
5
- <br>
6
-
7
- <div>
8
- <%= link_to "Back to sessions", devise_sessions_path %>
9
- </div>
@@ -1,10 +0,0 @@
1
- <p style="color: green"><%= notice %></p>
2
-
3
- <%= render @devise_session %>
4
-
5
- <div>
6
- <%= link_to "Edit this session", edit_devise_session_path(@devise_session) %> |
7
- <%= link_to "Back to sessions", devise_sessions_path %>
8
-
9
- <%= button_to "Destroy this session", @devise_session, method: :delete %>
10
- </div>