lesli_guard 0.2.0 → 0.3.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (34) hide show
  1. checksums.yaml +4 -4
  2. data/app/assets/javascripts/lesli_guard/application.js +1 -4787
  3. data/app/assets/stylesheets/lesli_guard/application.css +1 -0
  4. data/lib/lesli_guard/version.rb +2 -2
  5. data/{app/assets/stylesheets/lesli_guard → lib/scss}/application.scss +7 -2
  6. data/lib/vue/application.js +14 -14
  7. data/lib/vue/apps/descriptors/components/form.vue +1 -1
  8. data/lib/vue/apps/descriptors/index.vue +1 -1
  9. data/lib/vue/apps/descriptors/new.vue +1 -1
  10. data/lib/vue/apps/descriptors/show.vue +2 -2
  11. data/lib/vue/apps/roles/components/descriptors.vue +1 -1
  12. data/lib/vue/apps/roles/components/form.vue +1 -1
  13. data/lib/vue/apps/roles/components/privilegeCustom.vue +2 -2
  14. data/lib/vue/apps/roles/components/privilegeStandard.vue +2 -2
  15. data/lib/vue/apps/roles/edit.vue +1 -1
  16. data/lib/vue/apps/roles/index.vue +2 -2
  17. data/lib/vue/apps/roles/new.vue +1 -1
  18. data/lib/vue/apps/users/components/information-card.vue +1 -1
  19. data/lib/vue/apps/users/components/information-form.vue +1 -1
  20. data/lib/vue/apps/users/components/integrations-information.vue +1 -1
  21. data/lib/vue/apps/users/components/management-roles.vue +2 -2
  22. data/lib/vue/apps/users/components/management-security.vue +1 -1
  23. data/lib/vue/apps/users/components/management-sessions.vue +1 -1
  24. data/lib/vue/apps/users/components/management-settings.vue +1 -1
  25. data/lib/vue/apps/users/index.vue +1 -1
  26. data/lib/vue/apps/users/new.vue +2 -2
  27. data/lib/vue/apps/users/show.vue +7 -7
  28. data/lib/vue/stores/users.js +0 -10
  29. metadata +5 -8
  30. data/app/assets/stylesheets/lesli_guard/dashboards.scss +0 -32
  31. data/app/assets/stylesheets/lesli_guard/descriptors.scss +0 -32
  32. data/app/assets/stylesheets/lesli_guard/roles.scss +0 -32
  33. data/app/assets/stylesheets/lesli_guard/system_controller.scss +0 -32
  34. /data/{app/assets/stylesheets/lesli_guard → lib/scss}/users.scss +0 -0
@@ -0,0 +1 @@
1
+ body.lesli-guard-users .user-information-card figure{display:flex;align-items:center;justify-content:center;border-radius:50%;background-color:lesli-css-color(silver, 100);border:2px solid var(--lesli-color-primary, lesli-css-color(blue))}body.lesli-guard-users .user-information-card .alternative-avatar{font-weight:200;font-size:3rem;color:var(--lesli-color-primary, lesli-css-color(blue))}body.lesli-guard-users form.information{max-width:80%}body.lesli-guard-users .roles-types{display:grid;grid-template-columns:repeat(auto-fill, minmax(300px, 1fr));grid-auto-rows:minmax(198px, auto);gap:20px}body.lesli-guard-users .roles-types-item{width:100%;height:135px;border-radius:8px;margin:5px}
@@ -1,4 +1,4 @@
1
1
  module LesliGuard
2
- VERSION = "0.2.0"
3
- BUILD = "1697000148"
2
+ VERSION = "0.3.0"
3
+ BUILD = "1709513136"
4
4
  end
@@ -1,4 +1,5 @@
1
1
  /*
2
+
2
3
  Lesli
3
4
 
4
5
  Copyright (c) 2023, Lesli Technologies, S. A.
@@ -29,5 +30,9 @@ Building a better future, one line of code at a time.
29
30
  // ·
30
31
  */
31
32
 
32
- body.lesli-guard-users,
33
- body.lesli-guard-profile { @import "./users"; }
33
+
34
+
35
+ // ·
36
+ body.lesli-guard-users {
37
+ @import "./users";
38
+ }
@@ -31,31 +31,31 @@ Building a better future, one line of code at a time.
31
31
 
32
32
 
33
33
  // · Import Lesli builders
34
- import application from "Lesli/application"
35
- import translation from "Lesli/translation"
34
+ import application from "Lesli/vue/application"
35
+ import translation from "Lesli/vue/translation"
36
36
 
37
37
 
38
38
  // · Import engine translations
39
- import translations from "LesliGuard/stores/translations.json"
39
+ import translations from "LesliGuard/vue/stores/translations.json"
40
40
 
41
41
 
42
42
  // ·
43
- import applicationUserIndex from "LesliGuard/apps/users/index.vue"
44
- import applicationUserShow from "LesliGuard/apps/users/show.vue"
43
+ import applicationUserIndex from "LesliGuard/vue/apps/users/index.vue"
44
+ import applicationUserShow from "LesliGuard/vue/apps/users/show.vue"
45
45
 
46
- import appRoleNew from "LesliGuard/apps/roles/new.vue"
47
- import appRoleShow from "LesliGuard/apps/roles/show.vue"
48
- import appRoleEdit from "LesliGuard/apps/roles/edit.vue"
49
- import appRoleIndex from "LesliGuard/apps/roles/index.vue"
46
+ import appRoleNew from "LesliGuard/vue/apps/roles/new.vue"
47
+ import appRoleShow from "LesliGuard/vue/apps/roles/show.vue"
48
+ import appRoleEdit from "LesliGuard/vue/apps/roles/edit.vue"
49
+ import appRoleIndex from "LesliGuard/vue/apps/roles/index.vue"
50
50
 
51
- import appDescriptorIndex from "LesliGuard/apps/descriptors/index.vue"
52
- import appDescriptorNew from "LesliGuard/apps/descriptors/new.vue"
53
- import appDescriptorShow from "LesliGuard/apps/descriptors/show.vue"
51
+ import appDescriptorIndex from "LesliGuard/vue/apps/descriptors/index.vue"
52
+ import appDescriptorNew from "LesliGuard/vue/apps/descriptors/new.vue"
53
+ import appDescriptorShow from "LesliGuard/vue/apps/descriptors/show.vue"
54
54
 
55
55
 
56
56
  // ·
57
- import appDashboardShow from "Lesli/shared/dashboards/apps/show.vue"
58
- import appDashboardEdit from "Lesli/shared/dashboards/apps/edit.vue"
57
+ import appDashboardShow from "Lesli/vue/shared/dashboards/apps/show.vue"
58
+ import appDashboardEdit from "Lesli/vue/shared/dashboards/apps/edit.vue"
59
59
 
60
60
 
61
61
  // ·
@@ -42,7 +42,7 @@ import { useRouter, useRoute } from "vue-router"
42
42
 
43
43
 
44
44
  // · import lesli stores
45
- import { useDescriptor } from "LesliGuard/stores/descriptor"
45
+ import { useDescriptor } from "LesliGuard/vue/stores/descriptor"
46
46
 
47
47
 
48
48
  // · implement stores
@@ -37,7 +37,7 @@ import { useRouter } from 'vue-router'
37
37
 
38
38
 
39
39
  // · import lesli stores
40
- import { useDescriptors } from "LesliGuard/stores/descriptors"
40
+ import { useDescriptors } from "LesliGuard/vue/stores/descriptors"
41
41
 
42
42
 
43
43
  // · initialize/inject plugins
@@ -43,7 +43,7 @@ const url = inject("url")
43
43
 
44
44
 
45
45
  // · import components
46
- import descriptorForm from "LesliGuard/apps/descriptors/components/form.vue"
46
+ import descriptorForm from "LesliGuard/vue/apps/descriptors/components/form.vue"
47
47
 
48
48
 
49
49
  // · translations
@@ -38,8 +38,8 @@ import { inject, onMounted, ref } from "vue"
38
38
 
39
39
 
40
40
  // · import lesli stores
41
- import { useDescriptor } from "LesliGuard/stores/descriptor"
42
- import { useSystemController } from "Lesli/shared/stores/systemController"
41
+ import { useDescriptor } from "LesliGuard/vue/stores/descriptor"
42
+ import { useSystemController } from "Lesli/vue/shared/stores/systemController"
43
43
 
44
44
 
45
45
  // · import vue router composable
@@ -38,7 +38,7 @@ import { ref, reactive, onMounted, watch, computed } from "vue"
38
38
 
39
39
 
40
40
  // · import lesli stores
41
- import { useRole } from "LesliGuard/stores/role"
41
+ import { useRole } from "LesliGuard/vue/stores/role"
42
42
 
43
43
 
44
44
  // · implement stores
@@ -38,7 +38,7 @@ import { useRouter, useRoute } from "vue-router"
38
38
 
39
39
 
40
40
  // · import lesli stores
41
- import { useRole } from "LesliGuard/stores/role"
41
+ import { useRole } from "LesliGuard/vue/stores/role"
42
42
 
43
43
 
44
44
  // · initialize/inject plugins
@@ -39,8 +39,8 @@ import { ref, reactive, onMounted, watch, computed, inject } from "vue"
39
39
 
40
40
 
41
41
  // · import lesli stores
42
- import { useRole } from "LesliGuard/stores/role"
43
- import { useDescriptor } from "LesliGuard/stores/descriptor"
42
+ import { useRole } from "LesliGuard/vue/stores/role"
43
+ import { useDescriptor } from "LesliGuard/vue/stores/descriptor"
44
44
 
45
45
 
46
46
  // · initialize/inject plugins
@@ -40,8 +40,8 @@ import { useRouter } from "vue-router"
40
40
 
41
41
 
42
42
  // · import lesli stores
43
- import { useRole } from "LesliGuard/stores/role"
44
- import { useDescriptor } from "LesliGuard/stores/descriptor"
43
+ import { useRole } from "LesliGuard/vue/stores/role"
44
+ import { useDescriptor } from "LesliGuard/vue/stores/descriptor"
45
45
 
46
46
 
47
47
  // · initialize/inject plugins
@@ -46,7 +46,7 @@ import componentPrivilegeStandard from "./components/privilegeStandard.vue"
46
46
 
47
47
 
48
48
  // · import lesli stores
49
- import { useRole } from "LesliGuard/stores/role"
49
+ import { useRole } from "LesliGuard/vue/stores/role"
50
50
 
51
51
 
52
52
  // · initialize/inject plugins
@@ -39,7 +39,7 @@ import { useRouter, useRoute } from "vue-router"
39
39
 
40
40
 
41
41
  // · import lesli stores
42
- import { useRoles } from "LesliGuard/stores/roles"
42
+ import { useRoles } from "LesliGuard/vue/stores/roles"
43
43
 
44
44
 
45
45
  // · initialize/inject plugins
@@ -104,7 +104,7 @@ onMounted(() => {
104
104
  <template>
105
105
  <lesli-application-container>
106
106
  <lesli-header title="Roles &amp; privileges">
107
- <lesli-link solid icon="add" :to="url.guard('roles/new')">
107
+ <lesli-link solid button icon="add" :to="url.guard('roles/new')">
108
108
  Add role
109
109
  </lesli-link>
110
110
  <lesli-button icon="refresh"
@@ -41,7 +41,7 @@ import componentFormRole from "./components/form.vue"
41
41
 
42
42
 
43
43
  // · import lesli stores
44
- import { useRole } from "LesliGuard/stores/role"
44
+ import { useRole } from "LesliGuard/vue/stores/role"
45
45
 
46
46
 
47
47
  // · initialize/inject plugins
@@ -32,7 +32,7 @@ Building a better future, one line of code at a time.
32
32
 
33
33
 
34
34
  // · import lesli stores
35
- import { useUser } from "LesliGuard/stores/user"
35
+ import { useUser } from "LesliGuard/vue/stores/user"
36
36
 
37
37
 
38
38
  // · implement stores
@@ -36,7 +36,7 @@ import { onMounted, inject } from "vue"
36
36
 
37
37
 
38
38
  // · import lesli stores
39
- import { useUser } from "LesliGuard/stores/user"
39
+ import { useUser } from "LesliGuard/vue/stores/user"
40
40
 
41
41
 
42
42
  // · import vue router composable
@@ -33,7 +33,7 @@ Building a better future, one line of code at a time.
33
33
  */
34
34
 
35
35
 
36
- import { useProfile } from "Lesli/shared/stores/profile"
36
+ import { useProfile } from "Lesli/vue/shared/stores/profile"
37
37
 
38
38
  const storeProfile = useProfile()
39
39
 
@@ -38,8 +38,8 @@ import { ref, reactive, onMounted, watch, computed } from "vue"
38
38
 
39
39
 
40
40
  // · import lesli stores
41
- import { useUser } from "LesliGuard/stores/user"
42
- import { useRoles } from "LesliGuard/stores/roles"
41
+ import { useUser } from "LesliGuard/vue/stores/user"
42
+ import { useRoles } from "LesliGuard/vue/stores/roles"
43
43
 
44
44
 
45
45
  // · implement stores
@@ -34,7 +34,7 @@ Building a better future, one line of code at a time.
34
34
 
35
35
 
36
36
  // · import lesli stores
37
- import { useUser } from "LesliGuard/stores/user"
37
+ import { useUser } from "LesliGuard/vue/stores/user"
38
38
 
39
39
 
40
40
  // · implement stores
@@ -40,7 +40,7 @@ import { useRoute } from "vue-router"
40
40
 
41
41
 
42
42
  // · import lesli stores
43
- import { useUser } from "LesliGuard/stores/user"
43
+ import { useUser } from "LesliGuard/vue/stores/user"
44
44
 
45
45
 
46
46
  // · implement stores
@@ -37,7 +37,7 @@ import { ref, reactive, onMounted, watch, computed } from "vue"
37
37
 
38
38
 
39
39
  // · import lesli stores
40
- import { useUser } from "LesliGuard/stores/user"
40
+ import { useUser } from "LesliGuard/vue/stores/user"
41
41
 
42
42
 
43
43
  // · implement stores
@@ -37,7 +37,7 @@ import { useRouter, useRoute } from "vue-router"
37
37
 
38
38
 
39
39
  // · import lesli stores
40
- import { useUsers } from "LesliGuard/stores/users"
40
+ import { useUsers } from "LesliGuard/vue/stores/users"
41
41
 
42
42
 
43
43
  // · initialize/inject plugins
@@ -37,8 +37,8 @@ import { useRouter, useRoute } from 'vue-router'
37
37
 
38
38
 
39
39
  // · import lesli stores
40
- import { useUsers } from "LesliGuard/stores/users"
41
- import { useRoles } from "LesliGuard/stores/roles"
40
+ import { useUsers } from "LesliGuard/vue/stores/users"
41
+ import { useRoles } from "LesliGuard/vue/stores/roles"
42
42
 
43
43
 
44
44
  // · implement stores
@@ -37,7 +37,7 @@ import { useRouter, useRoute } from 'vue-router'
37
37
 
38
38
 
39
39
  // · import lesli stores
40
- import { useUser } from "LesliGuard/stores/user"
40
+ import { useUser } from "LesliGuard/vue/stores/user"
41
41
 
42
42
 
43
43
  // · implement stores
@@ -47,12 +47,12 @@ const route = useRoute()
47
47
 
48
48
 
49
49
  // · import profile components
50
- import informationCard from "LesliGuard/apps/users/components/information-card.vue"
51
- import informationForm from "LesliGuard/apps/users/components/information-form.vue"
52
- import managementRoles from "LesliGuard/apps/users/components/management-roles.vue"
53
- import managementSession from "LesliGuard/apps/users/components/management-sessions.vue"
54
- import managementSettings from "LesliGuard/apps/users/components/management-settings.vue"
55
- import managementSecurity from "LesliGuard/apps/users/components/management-security.vue"
50
+ import informationCard from "LesliGuard/vue/apps/users/components/information-card.vue"
51
+ import informationForm from "LesliGuard/vue/apps/users/components/information-form.vue"
52
+ import managementRoles from "LesliGuard/vue/apps/users/components/management-roles.vue"
53
+ import managementSession from "LesliGuard/vue/apps/users/components/management-sessions.vue"
54
+ import managementSettings from "LesliGuard/vue/apps/users/components/management-settings.vue"
55
+ import managementSecurity from "LesliGuard/vue/apps/users/components/management-security.vue"
56
56
 
57
57
 
58
58
  // · translations
@@ -34,16 +34,6 @@ Building a better future, one line of code at a time.
34
34
  import { defineStore } from "pinia"
35
35
 
36
36
 
37
- // · translations
38
- const translations = {
39
- core: {
40
- roles: I18n.t("core.roles"),
41
- users: I18n.t("core.users"),
42
- shared: I18n.t("core.shared")
43
- }
44
- }
45
-
46
-
47
37
  // ·
48
38
  export const useUsers = defineStore("guard.users", {
49
39
  state: () => {
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lesli_guard
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.3.0
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: 2024-02-11 00:00:00.000000000 Z
11
+ date: 2024-03-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -35,12 +35,7 @@ files:
35
35
  - app/assets/config/lesli_guard_manifest.js
36
36
  - app/assets/images/lesli_guard/guard-logo.svg
37
37
  - app/assets/javascripts/lesli_guard/application.js
38
- - app/assets/stylesheets/lesli_guard/application.scss
39
- - app/assets/stylesheets/lesli_guard/dashboards.scss
40
- - app/assets/stylesheets/lesli_guard/descriptors.scss
41
- - app/assets/stylesheets/lesli_guard/roles.scss
42
- - app/assets/stylesheets/lesli_guard/system_controller.scss
43
- - app/assets/stylesheets/lesli_guard/users.scss
38
+ - app/assets/stylesheets/lesli_guard/application.css
44
39
  - app/controllers/lesli_guard/accounts_controller.rb
45
40
  - app/controllers/lesli_guard/application_controller.rb
46
41
  - app/controllers/lesli_guard/dashboard/components_controller.rb
@@ -135,6 +130,8 @@ files:
135
130
  - lib/lesli_guard.rb
136
131
  - lib/lesli_guard/engine.rb
137
132
  - lib/lesli_guard/version.rb
133
+ - lib/scss/application.scss
134
+ - lib/scss/users.scss
138
135
  - lib/tasks/lesli_guard_tasks.rake
139
136
  - lib/vue/application.js
140
137
  - lib/vue/apps/descriptors/components/form.vue
@@ -1,32 +0,0 @@
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
- */
@@ -1,32 +0,0 @@
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
- */
@@ -1,32 +0,0 @@
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
- */
@@ -1,32 +0,0 @@
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
- */