lesli 5.0.4 → 5.0.6

Sign up to get free protection for your applications and to get access to all the features.
Files changed (108) hide show
  1. checksums.yaml +4 -4
  2. data/app/assets/icons/lesli/cloud-letter.svg +1 -0
  3. data/app/assets/icons/readme.md +1 -1
  4. data/app/assets/images/lesli/brand/app-logo2.svg +52 -0
  5. data/app/assets/javascripts/lesli/users/passwords.js +85 -119
  6. data/app/assets/javascripts/lesli/users/registrations.js +85 -119
  7. data/app/assets/javascripts/lesli/users/sessions.js +76 -130
  8. data/app/controllers/lesli/application_controller.rb +3 -3
  9. data/app/controllers/lesli/application_lesli_controller.rb +2 -2
  10. data/app/controllers/lesli/interfaces/application/authorization.rb +1 -1
  11. data/app/controllers/lesli/interfaces/application/requester.rb +1 -1
  12. data/app/controllers/lesli/shared/dashboards_controller.rb +308 -0
  13. data/app/controllers/lesli/system_controllers_controller.rb +63 -0
  14. data/app/controllers/users/confirmations_controller.rb +1 -1
  15. data/app/controllers/users/passwords_controller.rb +7 -10
  16. data/app/controllers/users/sessions_controller.rb +2 -1
  17. data/app/helpers/lesli/general_helper.rb +1 -1
  18. data/app/helpers/lesli/navigation_helper.rb +23 -22
  19. data/app/lib/lesli/system.rb +3 -1
  20. data/app/mailers/lesli/devise_mailer.rb +1 -1
  21. data/app/models/concerns/account_initializer.rb +31 -4
  22. data/app/models/concerns/user_extensions.rb +8 -6
  23. data/app/models/concerns/user_security.rb +1 -1
  24. data/app/models/lesli/account.rb +4 -1
  25. data/app/models/lesli/application_lesli_record.rb +1 -1
  26. data/app/models/lesli/descriptor/privilege.rb +1 -0
  27. data/app/models/lesli/descriptor.rb +1 -4
  28. data/app/models/lesli/role/power.rb +3 -3
  29. data/app/models/lesli/shared/dashboard.rb +162 -0
  30. data/app/models/lesli/system_controller.rb +1 -0
  31. data/app/models/lesli/user/session.rb +4 -27
  32. data/app/models/lesli/user.rb +2 -3
  33. data/app/operators/lesli/controller_operator.rb +148 -0
  34. data/app/operators/lesli/descriptor_privilege_operator.rb +1 -1
  35. data/app/operators/lesli/{role_power_operator.rb → role_descriptor_operator.rb} +24 -7
  36. data/app/views/devise/passwords/new.html.erb +1 -1
  37. data/app/views/lesli/partials/_application-data.html.erb +7 -0
  38. data/app/views/lesli/partials/_application-lesli-engines.html.erb +3 -3
  39. data/app/views/lesli/partials/_application-lesli-icons.html.erb +1 -1
  40. data/config/initializers/lesli.rb +2 -0
  41. data/config/locales/translations.en.yml +24 -0
  42. data/config/locales/translations.es.yml +24 -0
  43. data/config/routes.rb +6 -2
  44. data/db/migrate/v1.0/0010005010_create_lesli_descriptors.rb +1 -1
  45. data/db/migrate/v1.0/0010005510_create_lesli_role_powers.rb +7 -0
  46. data/db/seed/development/users.rb +0 -1
  47. data/db/seeds.rb +16 -29
  48. data/lib/lesli/version.rb +1 -1
  49. data/lib/mailer_previews/devise_mailer_preview.rb +7 -0
  50. data/lib/sass/lesli/components/editor-richtext.scss +10 -0
  51. data/lib/sass/lesli/layouts/application-navbar.scss +1 -1
  52. data/lib/sass/lesli/templates/application.scss +4 -0
  53. data/lib/{tasks/lesli/role.rake → sass/lesli/templates/component.scss} +6 -21
  54. data/lib/tasks/lesli/controllers.rake +1 -91
  55. data/lib/tasks/lesli/db.rake +37 -6
  56. data/lib/tasks/lesli/dev.rake +66 -0
  57. data/lib/tasks/lesli/engine.rake +59 -0
  58. data/lib/tasks/lesli_tasks.rake +13 -0
  59. data/lib/vue/application.js +64 -61
  60. data/lib/vue/devise/passwords.js +8 -8
  61. data/lib/vue/devise/registrations.js +2 -2
  62. data/lib/vue/devise/sessions.js +11 -6
  63. data/lib/vue/layouts/application-header.vue +12 -8
  64. data/lib/vue/public.js +2 -5
  65. data/lib/vue/shared/dashboards/apps/edit.vue +215 -0
  66. data/lib/vue/{apps → shared}/dashboards/apps/index.vue +3 -5
  67. data/lib/vue/{apps → shared}/dashboards/apps/show.vue +26 -16
  68. data/lib/vue/{apps → shared}/dashboards/components/form.vue +31 -43
  69. data/lib/vue/shared/stores/dashboard.js +251 -0
  70. data/lib/vue/shared/stores/systemController.js +67 -0
  71. data/lib/vue/stores/translations.json +48 -74
  72. data/lib/vue/stores/{user.js → users.js} +3 -7
  73. data/lib/webpack/base.js +4 -2
  74. data/lib/webpack/core.js +1 -1
  75. data/readme.md +1 -1
  76. metadata +51 -40
  77. data/lib/vue/apps/dashboards/apps/edit.vue +0 -105
  78. data/lib/vue/apps/dashboards/components/preview.vue +0 -172
  79. /data/app/assets/icons/lesli/{cloud-vault.svg → cloud-guard.svg} +0 -0
  80. /data/app/assets/icons/lesli/{cloud-help.svg → cloud-support.svg} +0 -0
  81. /data/lib/vue/{apps → shared}/cloudobjects/action.vue +0 -0
  82. /data/lib/vue/{apps → shared}/cloudobjects/discussion/content.vue +0 -0
  83. /data/lib/vue/{apps → shared}/cloudobjects/discussion/element.vue +0 -0
  84. /data/lib/vue/{apps → shared}/cloudobjects/discussion/filters.vue +0 -0
  85. /data/lib/vue/{apps → shared}/cloudobjects/discussion/new.vue +0 -0
  86. /data/lib/vue/{apps → shared}/cloudobjects/discussion.vue +0 -0
  87. /data/lib/vue/{apps → shared}/cloudobjects/file/grid.vue +0 -0
  88. /data/lib/vue/{apps → shared}/cloudobjects/file/list.vue +0 -0
  89. /data/lib/vue/{apps → shared}/cloudobjects/file.vue +0 -0
  90. /data/lib/vue/{apps → shared}/dashboards/apps/new.vue +0 -0
  91. /data/lib/vue/{apps → shared}/workflows2/apps/actions/form.vue +0 -0
  92. /data/lib/vue/{apps → shared}/workflows2/apps/actions/forms/chatroom-form.vue +0 -0
  93. /data/lib/vue/{apps → shared}/workflows2/apps/actions/forms/cloud-object-clone-form.vue +0 -0
  94. /data/lib/vue/{apps → shared}/workflows2/apps/actions/forms/cloud-object-file-form.vue +0 -0
  95. /data/lib/vue/{apps → shared}/workflows2/apps/actions/forms/email-form.vue +0 -0
  96. /data/lib/vue/{apps → shared}/workflows2/apps/actions/forms/notification-form.vue +0 -0
  97. /data/lib/vue/{apps → shared}/workflows2/apps/actions/forms/send-cloud-object-file.vue +0 -0
  98. /data/lib/vue/{apps → shared}/workflows2/apps/actions/forms/task-form.vue +0 -0
  99. /data/lib/vue/{apps → shared}/workflows2/apps/actions/index.vue +0 -0
  100. /data/lib/vue/{apps → shared}/workflows2/apps/checks/form.vue +0 -0
  101. /data/lib/vue/{apps → shared}/workflows2/apps/checks/index.vue +0 -0
  102. /data/lib/vue/{apps → shared}/workflows2/apps/index.vue +0 -0
  103. /data/lib/vue/{apps → shared}/workflows2/apps/new.vue +0 -0
  104. /data/lib/vue/{apps → shared}/workflows2/apps/show.vue +0 -0
  105. /data/lib/vue/{apps → shared}/workflows2/components/associations.vue +0 -0
  106. /data/lib/vue/{apps → shared}/workflows2/components/chart.vue +0 -0
  107. /data/lib/vue/{apps → shared}/workflows2/components/workflow-form.vue +0 -0
  108. /data/lib/vue/{apps → shared}/workflows2/components/workflow-status-dropdown.vue +0 -0
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ba9be6e311c5f85759e4fdad59138a230448fb448984464e5f11f9d814828ed2
4
- data.tar.gz: 06b229e650d8da986061a8646b56ca039798118d8e7c4a8e68cdd23900de94fe
3
+ metadata.gz: 002c09c0810571b861aea770b118469426b2e252eb9ede90a1ac897321c0c951
4
+ data.tar.gz: 04e58831bf67417a84793f89ae4aa5556675a17e727bd3fb4ffcc8e2b3cee6d6
5
5
  SHA512:
6
- metadata.gz: 36dc264e6fb5761e3be3c4c0c752ccc3071c808a8fe78220bc265611591a78a92e9cf5144dcf7f1b15e0869c77bd525c28c020ccbf338ded87de3e79c05e9eeb
7
- data.tar.gz: 6abe940c11b64d7abbe6968192bff8f66a83addf9f5fb43560291ae8844c6e37cd04fbda8c64b344a77795775f02d71fb762fed4adc5a352f5d43f170e147e71
6
+ metadata.gz: 8324d63a195d838d174c62ef5ab36e5bb236c88b07cf15ee310cd8cbd07824542f31b04cf67177f36deb0edff051ec76baf47404bb6a8c2eed498aac5142c965
7
+ data.tar.gz: 26df8296f7336c3dce7a176820439a88727f4b38b1b6bd3b96cac49acf12ccc156ef97f95cb461ac6e7e317d0bb0adab67b73e1b88fb383274cb4cf5aaf017ef
@@ -0,0 +1 @@
1
+ <svg data-name="Layer 1" id="Layer_1" viewBox="0 0 64 64" xmlns="http://www.w3.org/2000/svg"><defs><style>.cls-2{fill:#9dacba}</style></defs><path d="M13 0a4 4 0 0 0-4 4v56a4 4 0 0 0 4 4h38a4 4 0 0 0 4-4V16L39 0H13Z" style="fill:#e2e7f0"/><path class="cls-2" d="M43 16h12L39 0v12a4 4 0 0 0 4 4Z"/><rect class="cls-2" height="2" rx="1" ry="1" width="18" x="23" y="20"/><rect class="cls-2" height="2" rx="1" ry="1" width="30" x="17" y="41"/><rect class="cls-2" height="2" rx="1" ry="1" width="18" x="17" y="53"/><rect class="cls-2" height="2" rx="1" ry="1" width="30" x="17" y="47"/><rect class="cls-2" height="2" rx="1" ry="1" width="30" x="17" y="35"/><rect class="cls-2" height="2" rx="1" ry="1" width="30" x="17" y="29"/><path d="m43 16 9.41 9.41a2 2 0 0 1 .59 1.42V60a2 2 0 0 1-2 2H15a2 2 0 0 0-2 2h38a4 4 0 0 0 4-4V16H43Z" style="fill:#c9d5e3"/></svg>
@@ -2,7 +2,7 @@
2
2
  ### Icons preprocessing
3
3
  Automatically generate an SVG sprite from a folder of SVG icons.
4
4
 
5
- Execute at project root level
5
+ Execute Lesli engine root level
6
6
  ```bash
7
7
  svgo -f ./app/assets/icons/lesli -o ./app/assets/icons/lesli
8
8
  svgeez build --prefix="" --source ./app/assets/icons/lesli --destination ./app/views/lesli/partials/_application-lesli-icons.svg
@@ -0,0 +1,52 @@
1
+ <?xml version="1.0" encoding="UTF-8" standalone="no"?>
2
+ <svg
3
+ fill="#0d52bf"
4
+ data-name="Layer 1"
5
+ viewBox="0 0 759.30359 204.058"
6
+ version="1.1"
7
+ id="svg7"
8
+ sodipodi:docname="app-logo2.svg"
9
+ width="759.30359"
10
+ height="204.058"
11
+ inkscape:version="1.2 (dc2aeda, 2022-05-15)"
12
+ xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
13
+ xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
14
+ xmlns="http://www.w3.org/2000/svg"
15
+ xmlns:svg="http://www.w3.org/2000/svg">
16
+ <defs
17
+ id="defs11" />
18
+ <sodipodi:namedview
19
+ id="namedview9"
20
+ pagecolor="#ffffff"
21
+ bordercolor="#000000"
22
+ borderopacity="0.25"
23
+ inkscape:showpageshadow="2"
24
+ inkscape:pageopacity="0.0"
25
+ inkscape:pagecheckerboard="0"
26
+ inkscape:deskcolor="#d1d1d1"
27
+ showgrid="false"
28
+ inkscape:zoom="0.59978982"
29
+ inkscape:cx="360.95977"
30
+ inkscape:cy="354.29077"
31
+ inkscape:window-width="1792"
32
+ inkscape:window-height="1003"
33
+ inkscape:window-x="0"
34
+ inkscape:window-y="25"
35
+ inkscape:window-maximized="1"
36
+ inkscape:current-layer="svg7" />
37
+ <path
38
+ style="stroke-width:0.396906"
39
+ id="path16"
40
+ d="M 219.61484,103.07486 A 43.236471,41.974221 0 0 0 183.89936,61.761547 43.220354,41.958576 0 0 0 109.68879,20.839332 43.208276,41.946844 0 0 0 35.490281,61.792831 a 43.220354,41.958576 0 0 0 0,82.564069 43.220354,41.958576 0 0 0 74.198509,40.95347 43.208276,41.946844 0 0 0 74.21057,-40.92221 43.236471,41.974221 0 0 0 35.71548,-41.3133 z m -107.17878,33.41352 v 7.2858 H 99.142517 v -27.91507 a 7.8472603,7.6181662 0 0 0 -7.863318,-7.61815 H 62.524661 V 95.335434 h 28.754538 a 7.8512879,7.6220766 0 0 0 7.847263,-7.622073 V 59.786609 h 13.293548 v 27.911124 a 7.8553162,7.6259878 0 0 0 7.86339,7.622073 h 28.75038 V 108.22532 H 120.2834 a 7.8512879,7.6220766 0 0 0 -7.85129,7.61822 v 20.62915 z"
41
+ class="cls-1" />
42
+ <path
43
+ d="m 368.15658,159.456 v 40.883 h -108.853 V 14.485004 h 42.48 V 159.455 Z m 80.678,9.022 c 10.885,0 20.18,-4.242 25.49,-10.09 l 31.86,18.324 c -13.014,18.051 -32.656,27.346 -57.916,27.346 -45.404,0 -73.546,-30.535 -73.546,-70.092 0,-39.556998 28.756,-70.098998 70.685,-70.098998 38.762,0 67.44,30.005 67.44,70.098998 a 77.279,77.279 0 0 1 -1.59,15.93 h -94.256 c 5.045,13.802 17.256,18.582 31.833,18.582 z m 24.422,-48.321 c -4.243,-15.4 -16.196,-20.974998 -28.142,-20.974998 -15.134,0 -25.224,7.437998 -28.936,20.974998 z m 157.195,40.359 c 0,30.528 -26.515,43.542 -55.222,43.542 -26.515,0 -46.751,-10.09 -57.085,-31.596 l 34.519,-19.649 c 3.447,10.09 10.885,15.665 22.566,15.665 9.56,0 14.332,-2.917 14.332,-8.227 0,-14.604 -65.312,-6.908 -65.312,-52.836 0,-28.942998 24.423,-43.547998 52.04,-43.547998 21.506,0 40.625,9.56 51.776,28.414 l -33.99,18.315998 c -3.72,-6.9 -9.022,-11.679998 -17.786,-11.679998 -6.901,0 -11.165,2.657998 -11.165,7.429998 0.014,15.136 65.326,5.046 65.326,54.17 z m 17.249,-153.9919961 h 39.823 V 200.339 h -39.823 z m 66.366,61.0619981 h 39.83 V 200.34 h -39.83 z"
44
+ class="cls-1"
45
+ id="path3" />
46
+ <circle
47
+ cx="733.98157"
48
+ cy="25.322001"
49
+ r="25.322001"
50
+ class="cls-1"
51
+ id="circle5" />
52
+ </svg>