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.
- checksums.yaml +4 -4
- data/app/assets/javascripts/lesli_guard/application.js +1 -4787
- data/app/assets/stylesheets/lesli_guard/application.css +1 -0
- data/lib/lesli_guard/version.rb +2 -2
- data/{app/assets/stylesheets/lesli_guard → lib/scss}/application.scss +7 -2
- data/lib/vue/application.js +14 -14
- data/lib/vue/apps/descriptors/components/form.vue +1 -1
- data/lib/vue/apps/descriptors/index.vue +1 -1
- data/lib/vue/apps/descriptors/new.vue +1 -1
- data/lib/vue/apps/descriptors/show.vue +2 -2
- data/lib/vue/apps/roles/components/descriptors.vue +1 -1
- data/lib/vue/apps/roles/components/form.vue +1 -1
- data/lib/vue/apps/roles/components/privilegeCustom.vue +2 -2
- data/lib/vue/apps/roles/components/privilegeStandard.vue +2 -2
- data/lib/vue/apps/roles/edit.vue +1 -1
- data/lib/vue/apps/roles/index.vue +2 -2
- data/lib/vue/apps/roles/new.vue +1 -1
- data/lib/vue/apps/users/components/information-card.vue +1 -1
- data/lib/vue/apps/users/components/information-form.vue +1 -1
- data/lib/vue/apps/users/components/integrations-information.vue +1 -1
- data/lib/vue/apps/users/components/management-roles.vue +2 -2
- data/lib/vue/apps/users/components/management-security.vue +1 -1
- data/lib/vue/apps/users/components/management-sessions.vue +1 -1
- data/lib/vue/apps/users/components/management-settings.vue +1 -1
- data/lib/vue/apps/users/index.vue +1 -1
- data/lib/vue/apps/users/new.vue +2 -2
- data/lib/vue/apps/users/show.vue +7 -7
- data/lib/vue/stores/users.js +0 -10
- metadata +5 -8
- data/app/assets/stylesheets/lesli_guard/dashboards.scss +0 -32
- data/app/assets/stylesheets/lesli_guard/descriptors.scss +0 -32
- data/app/assets/stylesheets/lesli_guard/roles.scss +0 -32
- data/app/assets/stylesheets/lesli_guard/system_controller.scss +0 -32
- /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}
|
data/lib/lesli_guard/version.rb
CHANGED
@@ -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
|
-
|
33
|
-
|
33
|
+
|
34
|
+
|
35
|
+
// ·
|
36
|
+
body.lesli-guard-users {
|
37
|
+
@import "./users";
|
38
|
+
}
|
data/lib/vue/application.js
CHANGED
@@ -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
|
// ·
|
@@ -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
|
@@ -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
|
data/lib/vue/apps/roles/edit.vue
CHANGED
@@ -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 & 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"
|
data/lib/vue/apps/roles/new.vue
CHANGED
@@ -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
|
data/lib/vue/apps/users/new.vue
CHANGED
@@ -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
|
data/lib/vue/apps/users/show.vue
CHANGED
@@ -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
|
data/lib/vue/stores/users.js
CHANGED
@@ -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.
|
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-
|
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.
|
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
|
-
*/
|
File without changes
|