lesli_vault 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (124) hide show
  1. checksums.yaml +7 -0
  2. data/Rakefile +38 -0
  3. data/app/assets/config/lesli_vault_manifest.js +38 -0
  4. data/app/assets/images/lesli_vault/vault-logo.svg +160 -0
  5. data/app/assets/javascripts/lesli_vault/application.js +2848 -0
  6. data/app/assets/stylesheets/lesli_vault/application.scss +15 -0
  7. data/app/assets/stylesheets/lesli_vault/dashboards.scss +32 -0
  8. data/app/assets/stylesheets/lesli_vault/descriptors.scss +32 -0
  9. data/app/assets/stylesheets/lesli_vault/roles.scss +32 -0
  10. data/app/assets/stylesheets/lesli_vault/system_controller.scss +32 -0
  11. data/app/controllers/lesli_vault/application_controller.rb +37 -0
  12. data/app/controllers/lesli_vault/dashboards_controller.rb +6 -0
  13. data/app/controllers/lesli_vault/descriptor/activities_controller.rb +122 -0
  14. data/app/controllers/lesli_vault/descriptor/privileges_controller.rb +104 -0
  15. data/app/controllers/lesli_vault/descriptors_controller.rb +130 -0
  16. data/app/controllers/lesli_vault/role/activities_controller.rb +76 -0
  17. data/app/controllers/lesli_vault/role/descriptors_controller.rb +95 -0
  18. data/app/controllers/lesli_vault/role/privileges_controller.rb +48 -0
  19. data/app/controllers/lesli_vault/roles_controller.rb +226 -0
  20. data/app/controllers/lesli_vault/system_controller/actions_controller.rb +112 -0
  21. data/app/controllers/lesli_vault/system_controllers_controller.rb +64 -0
  22. data/app/helpers/lesli_vault/application_helper.rb +4 -0
  23. data/app/helpers/lesli_vault/dashboards_helper.rb +4 -0
  24. data/app/helpers/lesli_vault/descriptor/activities_helper.rb +4 -0
  25. data/app/helpers/lesli_vault/descriptor/privileges_helper.rb +4 -0
  26. data/app/helpers/lesli_vault/descriptors_helper.rb +4 -0
  27. data/app/helpers/lesli_vault/role/activities_helper.rb +4 -0
  28. data/app/helpers/lesli_vault/role/descriptors_helper.rb +4 -0
  29. data/app/helpers/lesli_vault/role/privileges_helper.rb +4 -0
  30. data/app/helpers/lesli_vault/roles_helper.rb +4 -0
  31. data/app/helpers/lesli_vault/system_controller/actions_helper.rb +4 -0
  32. data/app/helpers/lesli_vault/system_controllers_helper.rb +4 -0
  33. data/app/jobs/lesli_vault/application_job.rb +37 -0
  34. data/app/mailers/lesli_vault/application_mailer.rb +39 -0
  35. data/app/models/lesli_vault/application_record.rb +39 -0
  36. data/app/models/lesli_vault/descriptor/activity.rb +40 -0
  37. data/app/models/lesli_vault/descriptor/privilege.rb +40 -0
  38. data/app/models/lesli_vault/descriptor.rb +41 -0
  39. data/app/models/lesli_vault/role/activity.rb +40 -0
  40. data/app/models/lesli_vault/role/descriptor.rb +40 -0
  41. data/app/models/lesli_vault/role/privilege.rb +40 -0
  42. data/app/models/lesli_vault/role.rb +39 -0
  43. data/app/models/lesli_vault/system_controller/action.rb +39 -0
  44. data/app/models/lesli_vault/system_controller.rb +40 -0
  45. data/app/services/application_lesli_services.rb +168 -0
  46. data/app/services/descriptor_services.rb +197 -0
  47. data/app/services/role_services.rb +218 -0
  48. data/app/services/system_controller_services.rb +99 -0
  49. data/app/views/layouts/lesli_vault/application.html.erb +15 -0
  50. data/app/views/lesli_vault/dashboards/show.html.erb +1 -0
  51. data/app/views/lesli_vault/descriptor/activities/_form.html.erb +32 -0
  52. data/app/views/lesli_vault/descriptor/activities/edit.html.erb +34 -0
  53. data/app/views/lesli_vault/descriptor/activities/index.html.erb +34 -0
  54. data/app/views/lesli_vault/descriptor/activities/new.html.erb +34 -0
  55. data/app/views/lesli_vault/descriptor/activities/show.html.erb +34 -0
  56. data/app/views/lesli_vault/descriptor/privileges/_form.html.erb +32 -0
  57. data/app/views/lesli_vault/descriptor/privileges/edit.html.erb +34 -0
  58. data/app/views/lesli_vault/descriptor/privileges/index.html.erb +34 -0
  59. data/app/views/lesli_vault/descriptor/privileges/new.html.erb +34 -0
  60. data/app/views/lesli_vault/descriptor/privileges/show.html.erb +34 -0
  61. data/app/views/lesli_vault/descriptors/_form.html.erb +32 -0
  62. data/app/views/lesli_vault/descriptors/edit.html.erb +34 -0
  63. data/app/views/lesli_vault/descriptors/index.html.erb +34 -0
  64. data/app/views/lesli_vault/descriptors/new.html.erb +34 -0
  65. data/app/views/lesli_vault/descriptors/show.html.erb +34 -0
  66. data/app/views/lesli_vault/role/activities/_form.html.erb +32 -0
  67. data/app/views/lesli_vault/role/activities/edit.html.erb +34 -0
  68. data/app/views/lesli_vault/role/activities/index.html.erb +34 -0
  69. data/app/views/lesli_vault/role/activities/new.html.erb +34 -0
  70. data/app/views/lesli_vault/role/activities/show.html.erb +34 -0
  71. data/app/views/lesli_vault/role/descriptors/_form.html.erb +32 -0
  72. data/app/views/lesli_vault/role/descriptors/edit.html.erb +34 -0
  73. data/app/views/lesli_vault/role/descriptors/index.html.erb +34 -0
  74. data/app/views/lesli_vault/role/descriptors/new.html.erb +34 -0
  75. data/app/views/lesli_vault/role/descriptors/show.html.erb +34 -0
  76. data/app/views/lesli_vault/role/privileges/_form.html.erb +32 -0
  77. data/app/views/lesli_vault/role/privileges/edit.html.erb +34 -0
  78. data/app/views/lesli_vault/role/privileges/index.html.erb +34 -0
  79. data/app/views/lesli_vault/role/privileges/new.html.erb +34 -0
  80. data/app/views/lesli_vault/role/privileges/show.html.erb +34 -0
  81. data/app/views/lesli_vault/roles/edit.html.erb +34 -0
  82. data/app/views/lesli_vault/roles/index.html.erb +34 -0
  83. data/app/views/lesli_vault/roles/new.html.erb +34 -0
  84. data/app/views/lesli_vault/roles/show.html.erb +34 -0
  85. data/app/views/lesli_vault/system_controller/actions/_form.html.erb +32 -0
  86. data/app/views/lesli_vault/system_controller/actions/edit.html.erb +34 -0
  87. data/app/views/lesli_vault/system_controller/actions/index.html.erb +34 -0
  88. data/app/views/lesli_vault/system_controller/actions/new.html.erb +34 -0
  89. data/app/views/lesli_vault/system_controller/actions/show.html.erb +34 -0
  90. data/app/views/lesli_vault/system_controllers/_form.html.erb +32 -0
  91. data/app/views/lesli_vault/system_controllers/edit.html.erb +34 -0
  92. data/app/views/lesli_vault/system_controllers/index.html.erb +34 -0
  93. data/app/views/lesli_vault/system_controllers/new.html.erb +34 -0
  94. data/app/views/lesli_vault/system_controllers/show.html.erb +34 -0
  95. data/app/vue/lesli_vault/application.js +38 -0
  96. data/app/vue/lesli_vault/apps/descriptors/components/form.vue +147 -0
  97. data/app/vue/lesli_vault/apps/descriptors/edit.vue +83 -0
  98. data/app/vue/lesli_vault/apps/descriptors/index.vue +116 -0
  99. data/app/vue/lesli_vault/apps/descriptors/new.vue +76 -0
  100. data/app/vue/lesli_vault/apps/descriptors/privileges.vue +179 -0
  101. data/app/vue/lesli_vault/apps/descriptors/show.vue +240 -0
  102. data/app/vue/lesli_vault/apps/roles/componentForm.vue +231 -0
  103. data/app/vue/lesli_vault/apps/roles/componentPrivilegeCustom.vue +86 -0
  104. data/app/vue/lesli_vault/apps/roles/componentPrivilegeStandard.vue +173 -0
  105. data/app/vue/lesli_vault/apps/roles/edit.vue +93 -0
  106. data/app/vue/lesli_vault/apps/roles/index.vue +169 -0
  107. data/app/vue/lesli_vault/apps/roles/logs.vue +110 -0
  108. data/app/vue/lesli_vault/apps/roles/new.vue +89 -0
  109. data/app/vue/lesli_vault/apps/roles/show.vue +111 -0
  110. data/app/vue/lesli_vault/apps/security/index.vue +208 -0
  111. data/app/vue/lesli_vault/stores/descriptor.js +116 -0
  112. data/app/vue/lesli_vault/stores/descriptors.js +167 -0
  113. data/app/vue/lesli_vault/stores/role.js +243 -0
  114. data/app/vue/lesli_vault/stores/roles.js +89 -0
  115. data/app/vue/lesli_vault/stores/systemController.js +67 -0
  116. data/config/routes.rb +52 -0
  117. data/lib/lesli_vault/engine.rb +18 -0
  118. data/lib/lesli_vault/version.rb +3 -0
  119. data/lib/lesli_vault.rb +6 -0
  120. data/lib/tasks/lesli_vault_tasks.rake +4 -0
  121. data/lib/tasks/system/controllers.rake +112 -0
  122. data/lib/vue/application.js +7 -0
  123. data/readme.md +19 -0
  124. metadata +181 -0
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: b5b943408d64480364f8e1e4cea8802f022b44a19ed1c5c71cb2f1eb18b42c7f
4
+ data.tar.gz: 55d055945e840eabfbc141386e4cb50beda839bacd21126c7b852d37accd7f69
5
+ SHA512:
6
+ metadata.gz: c4519b17a740df4bbbc9ede2e128c3747a45204d0a57768826a885da1700aa0cfe931278bb7f9f2d6e6f3888dde40e208af3aaa91608b09a4c78685dee30df60
7
+ data.tar.gz: a6532888bc5dd766e18a29a311010901ba8484a1ede312026a422f44ce2e36fa902cf1b67b9b1bc506cfe91eb40d7d34099700f1b4721ddde865b22e63cdc94f
data/Rakefile ADDED
@@ -0,0 +1,38 @@
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 platform.
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
+
32
+ =end
33
+
34
+ require "bundler/setup"
35
+
36
+ load "rails/tasks/statistics.rake"
37
+
38
+ require "bundler/gem_tasks"
@@ -0,0 +1,38 @@
1
+ /*
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 platform.
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
+ */
32
+
33
+ //= link_tree ../images/lesli_vault .png
34
+ //= link_tree ../images/lesli_vault .jpg
35
+ //= link_tree ../images/lesli_vault .svg
36
+
37
+ //= link lesli_vault/application.css
38
+ //= link lesli_vault/application.js
@@ -0,0 +1,160 @@
1
+ <?xml version="1.0" encoding="UTF-8" standalone="no"?>
2
+ <svg
3
+ enable-background="new 0 0 128 128"
4
+ id="Layer_1"
5
+ version="1.1"
6
+ viewBox="0 0 72 72"
7
+ xml:space="preserve"
8
+ sodipodi:docname="vault-logo.svg"
9
+ width="72"
10
+ height="72"
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"><defs
16
+ id="defs69" /><sodipodi:namedview
17
+ id="namedview67"
18
+ pagecolor="#ffffff"
19
+ bordercolor="#000000"
20
+ borderopacity="0.25"
21
+ inkscape:showpageshadow="2"
22
+ inkscape:pageopacity="0.0"
23
+ inkscape:pagecheckerboard="0"
24
+ inkscape:deskcolor="#d1d1d1"
25
+ showgrid="false"
26
+ inkscape:lockguides="true"
27
+ inkscape:zoom="1.84375"
28
+ inkscape:cx="36.067797"
29
+ inkscape:cy="35.79661"
30
+ inkscape:window-width="1792"
31
+ inkscape:window-height="1002"
32
+ inkscape:window-x="0"
33
+ inkscape:window-y="25"
34
+ inkscape:window-maximized="0"
35
+ inkscape:current-layer="g64" /><g
36
+ id="g64"
37
+ transform="translate(-28,-28)"><g
38
+ id="g62"><path
39
+ d="M 90.4,100 H 37.6 C 32.3,100 28,95.7 28,90.4 V 37.6 C 28,32.3 32.3,28 37.6,28 h 52.8 c 5.3,0 9.6,4.3 9.6,9.6 v 52.8 c 0,5.3 -4.3,9.6 -9.6,9.6 z"
40
+ fill="#e6e8eb"
41
+ id="path6" /><g
42
+ id="g10"><path
43
+ d="M 90.4,93 H 37.6 C 36.2,93 35,91.8 35,90.4 V 37.6 C 35,36.2 36.2,35 37.6,35 h 52.8 c 1.4,0 2.6,1.2 2.6,2.6 V 90.4 C 93,91.8 91.8,93 90.4,93 Z M 37.6,37 C 37.3,37 37,37.3 37,37.6 v 52.8 c 0,0.3 0.3,0.6 0.6,0.6 H 90.4 C 90.7,91 91,90.7 91,90.4 V 37.6 C 91,37.3 90.7,37 90.4,37 Z"
44
+ fill="#cfd5df"
45
+ id="path8" /></g><g
46
+ id="g16"><path
47
+ d="m 94,56.6 h -1.4 c -0.9,0 -1.7,-0.7 -1.7,-1.7 V 43.1 c 0,-0.9 0.7,-1.7 1.7,-1.7 H 94 c 0.9,0 1.7,0.7 1.7,1.7 V 55 c 0,0.9 -0.8,1.6 -1.7,1.6 z"
48
+ fill="#cfd5df"
49
+ id="path12" /><path
50
+ d="m 94,86.5 h -1.4 c -0.9,0 -1.7,-0.7 -1.7,-1.7 V 73 c 0,-0.9 0.7,-1.7 1.7,-1.7 H 94 c 0.9,0 1.7,0.7 1.7,1.7 v 11.8 c 0,1 -0.8,1.7 -1.7,1.7 z"
51
+ fill="#cfd5df"
52
+ id="path14" /></g><g
53
+ id="g32"><circle
54
+ cx="53.799999"
55
+ cy="64"
56
+ fill="#ffffff"
57
+ r="12.6"
58
+ id="circle18" /><circle
59
+ cx="53.799999"
60
+ cy="64"
61
+ fill="#cfd5df"
62
+ r="10.9"
63
+ id="circle20" /><circle
64
+ cx="53.799999"
65
+ cy="64"
66
+ fill="#e6e8eb"
67
+ r="8.1000004"
68
+ id="circle22" /><path
69
+ d="m 42.6,75.2 v 0 c -0.7,-0.7 -0.7,-1.9 0,-2.6 L 62.3,52.9 c 0.7,-0.7 1.9,-0.7 2.6,0 v 0 c 0.7,0.7 0.7,1.9 0,2.6 L 45.3,75.2 c -0.7,0.7 -1.9,0.7 -2.7,0 z"
70
+ fill="#454e5c"
71
+ id="path24" /><path
72
+ d="m 42.6,52.8 v 0 c 0.7,-0.7 1.9,-0.7 2.6,0 L 65,72.5 c 0.7,0.7 0.7,1.9 0,2.6 v 0 c -0.7,0.7 -1.9,0.7 -2.6,0 L 42.6,55.5 c -0.7,-0.7 -0.7,-1.9 0,-2.7 z"
73
+ fill="#454e5c"
74
+ id="path26" /><circle
75
+ cx="53.799999"
76
+ cy="64"
77
+ fill="#545e70"
78
+ r="5.8000002"
79
+ id="circle28" /><circle
80
+ cx="53.799999"
81
+ cy="64"
82
+ fill="#acb2b9"
83
+ r="3.0999999"
84
+ id="circle30" /></g><circle
85
+ cx="78.800003"
86
+ cy="63.200001"
87
+ fill="#acb2b9"
88
+ r="6.3000002"
89
+ id="circle34" /><circle
90
+ cx="78.800003"
91
+ cy="63.200001"
92
+ fill="#e6e8eb"
93
+ r="4.9000001"
94
+ id="circle36" /><circle
95
+ cx="78.800003"
96
+ cy="63.200001"
97
+ fill="#cfd5df"
98
+ r="3.5999999"
99
+ id="circle38" /><g
100
+ id="g48"><rect
101
+ fill="#cfd5df"
102
+ height="8.1000004"
103
+ width="0.30000001"
104
+ x="78.699997"
105
+ y="59.200001"
106
+ id="rect40" /><rect
107
+ fill="#cfd5df"
108
+ height="0.30000001"
109
+ width="8.1000004"
110
+ x="74.800003"
111
+ y="63"
112
+ id="rect42" /><rect
113
+ fill="#cfd5df"
114
+ height="8.1000004"
115
+ transform="matrix(0.7071,0.7071,-0.7071,0.7071,67.78,-37.2417)"
116
+ width="0.30000001"
117
+ x="78.699997"
118
+ y="59.200001"
119
+ id="rect44" /><rect
120
+ fill="#cfd5df"
121
+ height="8.1000004"
122
+ transform="matrix(-0.7071,0.7071,-0.7071,-0.7071,179.2834,52.1292)"
123
+ width="0.30000001"
124
+ x="78.699997"
125
+ y="59.200001"
126
+ id="rect46" /></g><g
127
+ id="g58"><rect
128
+ fill="#cfd5df"
129
+ height="8.1000004"
130
+ transform="matrix(0.9239,-0.3827,0.3827,0.9239,-18.1828,34.9832)"
131
+ width="0.30000001"
132
+ x="78.699997"
133
+ y="59.200001"
134
+ id="rect50" /><rect
135
+ fill="#cfd5df"
136
+ height="8.1000004"
137
+ transform="matrix(0.3827,0.9239,-0.9239,0.3827,107.0563,-33.8313)"
138
+ width="0.30000001"
139
+ x="78.699997"
140
+ y="59.200001"
141
+ id="rect52" /><rect
142
+ fill="#cfd5df"
143
+ height="8.1000004"
144
+ transform="matrix(0.9239,0.3827,-0.3827,0.9239,30.186,-25.3619)"
145
+ width="0.30000001"
146
+ x="78.699997"
147
+ y="59.200001"
148
+ id="rect54" /><rect
149
+ fill="#cfd5df"
150
+ height="8.1000004"
151
+ transform="matrix(-0.3826,0.9239,-0.9239,-0.3826,167.4025,14.5355)"
152
+ width="0.30000001"
153
+ x="78.699997"
154
+ y="59.200001"
155
+ id="rect56" /></g><circle
156
+ cx="78.800003"
157
+ cy="63.200001"
158
+ fill="#ffffff"
159
+ r="2.2"
160
+ id="circle60" /></g></g></svg>