lesli_vault 0.1.0 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (53) hide show
  1. checksums.yaml +4 -4
  2. data/app/assets/javascripts/lesli_vault/application.js +730 -300
  3. data/app/controllers/lesli_vault/descriptors_controller.rb +9 -10
  4. data/app/controllers/lesli_vault/roles_controller.rb +9 -27
  5. data/app/services/{descriptor_services.rb → lesli_vault/descriptor_service.rb} +17 -62
  6. data/app/services/{role_services.rb → lesli_vault/role_service.rb} +39 -39
  7. data/app/{models/lesli_vault/system_controller.rb → views/lesli_vault/partials/_engine-navigation.html.erb} +5 -8
  8. data/config/routes.rb +7 -3
  9. data/lib/lesli_vault/version.rb +2 -1
  10. data/lib/vue/application.js +48 -1
  11. data/{app/vue/lesli_vault → lib/vue}/apps/descriptors/components/form.vue +14 -25
  12. data/{app/vue/lesli_vault → lib/vue}/apps/descriptors/index.vue +18 -20
  13. data/{app/vue/lesli_vault → lib/vue}/apps/descriptors/new.vue +12 -19
  14. data/{app/vue/lesli_vault → lib/vue}/apps/roles/componentForm.vue +63 -59
  15. data/{app/vue/lesli_vault → lib/vue}/apps/roles/index.vue +25 -27
  16. data/{app/vue/lesli_vault → lib/vue}/apps/roles/new.vue +6 -7
  17. data/{app/vue/lesli_vault → lib/vue}/stores/descriptor.js +21 -5
  18. data/{app/vue/lesli_vault → lib/vue}/stores/descriptors.js +1 -12
  19. data/{app/vue/lesli_vault → lib/vue}/stores/role.js +17 -42
  20. data/{app/vue/lesli_vault/application.js → lib/vue/stores/roles.js} +30 -7
  21. data/license +674 -0
  22. data/readme.md +60 -9
  23. metadata +29 -49
  24. data/app/controllers/lesli_vault/system_controller/actions_controller.rb +0 -112
  25. data/app/controllers/lesli_vault/system_controllers_controller.rb +0 -64
  26. data/app/helpers/lesli_vault/system_controller/actions_helper.rb +0 -4
  27. data/app/helpers/lesli_vault/system_controllers_helper.rb +0 -4
  28. data/app/models/lesli_vault/system_controller/action.rb +0 -39
  29. data/app/services/application_lesli_services.rb +0 -168
  30. data/app/services/system_controller_services.rb +0 -99
  31. data/app/views/layouts/lesli_vault/application.html.erb +0 -15
  32. data/app/views/lesli_vault/system_controller/actions/_form.html.erb +0 -32
  33. data/app/views/lesli_vault/system_controller/actions/edit.html.erb +0 -34
  34. data/app/views/lesli_vault/system_controller/actions/index.html.erb +0 -34
  35. data/app/views/lesli_vault/system_controller/actions/new.html.erb +0 -34
  36. data/app/views/lesli_vault/system_controller/actions/show.html.erb +0 -34
  37. data/app/views/lesli_vault/system_controllers/_form.html.erb +0 -32
  38. data/app/views/lesli_vault/system_controllers/edit.html.erb +0 -34
  39. data/app/views/lesli_vault/system_controllers/index.html.erb +0 -34
  40. data/app/views/lesli_vault/system_controllers/new.html.erb +0 -34
  41. data/app/views/lesli_vault/system_controllers/show.html.erb +0 -34
  42. data/app/vue/lesli_vault/apps/security/index.vue +0 -208
  43. data/app/vue/lesli_vault/stores/roles.js +0 -89
  44. data/app/vue/lesli_vault/stores/systemController.js +0 -67
  45. data/lib/tasks/system/controllers.rake +0 -112
  46. /data/{app/vue/lesli_vault → lib/vue}/apps/descriptors/edit.vue +0 -0
  47. /data/{app/vue/lesli_vault → lib/vue}/apps/descriptors/privileges.vue +0 -0
  48. /data/{app/vue/lesli_vault → lib/vue}/apps/descriptors/show.vue +0 -0
  49. /data/{app/vue/lesli_vault → lib/vue}/apps/roles/componentPrivilegeCustom.vue +0 -0
  50. /data/{app/vue/lesli_vault → lib/vue}/apps/roles/componentPrivilegeStandard.vue +0 -0
  51. /data/{app/vue/lesli_vault → lib/vue}/apps/roles/edit.vue +0 -0
  52. /data/{app/vue/lesli_vault → lib/vue}/apps/roles/logs.vue +0 -0
  53. /data/{app/vue/lesli_vault → lib/vue}/apps/roles/show.vue +0 -0
@@ -1,99 +0,0 @@
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
- module LesliVault
35
- class SystemControllerServices < ApplicationLesliServices
36
-
37
- # @overwrite
38
- # ...
39
- def index
40
- # get a matrix of controllers and actions
41
- c = SystemController.joins(:actions).select(
42
- "lesli_vault_system_controllers.name as id",
43
- "lesli_vault_system_controllers.name as controller",
44
- "lesli_vault_system_controllers.id as controller_id",
45
- "lesli_vault_system_controller_actions.name as action",
46
- "lesli_vault_system_controller_actions.id as action_id",
47
- "case lesli_vault_system_controller_actions.name
48
- when 'index' then 1
49
- when 'show' then 2
50
- when 'new' then 3
51
- when 'edit' then 4
52
- when 'create' then 5
53
- when 'update' then 6
54
- when 'destroy' then 7
55
- when 'options' then 8
56
- else 9
57
- end as importance
58
- "
59
- )
60
- #.where("lesli_vault_system_controller_actions.name in ('index', 'create', 'update', 'show', 'destroy')")
61
- #.order("lesli_vault_system_controllers.name, importance, lesli_vault_system_controller_actions.name")
62
- .order("importance DESC")
63
-
64
- return c unless matrix
65
-
66
- cc = {}
67
-
68
- # convert the matrix to a hash of controllers with the available actions as values
69
- # example:
70
- # my_controller: [my list of actions]
71
- c.each do |c|
72
-
73
- # create a uniq container for every action that belongs to a specific controller
74
- if cc[c[:controller]].blank?
75
- cc[c[:controller]] = {
76
- id: c[:controller_id],
77
- name: c[:controller],
78
- actions: []
79
- }
80
- end
81
-
82
- # push every action to his specic controller
83
- cc[c[:controller]][:actions].push({
84
- id: c[:action_id],
85
- action: c[:action]
86
- })
87
- end
88
-
89
- cc
90
- end
91
-
92
- # ...
93
- def options
94
- {
95
- categories: SystemController.categories.map {|k, _| { label: k, value: k }}
96
- }
97
- end
98
- end
99
- end
@@ -1,15 +0,0 @@
1
- <!DOCTYPE html>
2
- <html>
3
- <head>
4
- <title>Lesli vault</title>
5
- <%= csrf_meta_tags %>
6
- <%= csp_meta_tag %>
7
-
8
- <%= stylesheet_link_tag "lesli_vault/application", media: "all" %>
9
- </head>
10
- <body>
11
-
12
- <%= yield %>
13
-
14
- </body>
15
- </html>
@@ -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,34 +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
- %>
33
-
34
- <router-view></router-view>
@@ -1,34 +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
- %>
33
-
34
- <router-view></router-view>
@@ -1,34 +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
- %>
33
-
34
- <router-view></router-view>
@@ -1,34 +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
- %>
33
-
34
- <router-view></router-view>
@@ -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,34 +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
- %>
33
-
34
- <router-view></router-view>
@@ -1,34 +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
- %>
33
-
34
- <router-view></router-view>
@@ -1,34 +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
- %>
33
-
34
- <router-view></router-view>
@@ -1,34 +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
- %>
33
-
34
- <router-view></router-view>
@@ -1,208 +0,0 @@
1
- <script setup>
2
- /*
3
-
4
- Lesli
5
-
6
- Copyright (c) 2023, Lesli Technologies, S. A.
7
-
8
- This program is free software: you can redistribute it and/or modify
9
- it under the terms of the GNU General Public License as published by
10
- the Free Software Foundation, either version 3 of the License, or
11
- (at your option) any later version.
12
-
13
- This program is distributed in the hope that it will be useful,
14
- but WITHOUT ANY WARRANTY; without even the implied warranty of
15
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16
- GNU General Public License for more details.
17
-
18
- You should have received a copy of the GNU General Public License
19
- along with this program. If not, see http://www.gnu.org/licenses/.
20
-
21
- Lesli · Your Smart Business Assistant.
22
-
23
- Made with ♥ by https://www.lesli.tech
24
- Building a better future, one line of code at a time.
25
-
26
- @contact hello@lesli.tech
27
- @website https://lesli.tech
28
- @license GPLv3 http://www.gnu.org/licenses/gpl-3.0.en.html
29
-
30
- // · ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~
31
- // ·
32
-
33
- */
34
-
35
-
36
- // · import vue tools
37
- import { onMounted, ref } from "vue"
38
-
39
- // · import lesli stores
40
- import { useAccountSettings } from "LesliApp/administration/stores/accountSettings"
41
-
42
- // · implement stores
43
- const storeAccountSettings = useAccountSettings()
44
-
45
- // · translations
46
- const translations = {
47
- core: {
48
- accounts: I18n.t("core.accounts"),
49
- shared: I18n.t('core.shared'),
50
- account: {
51
- settings: I18n.t("core.account/settings"),
52
- }
53
- },
54
- }
55
-
56
- onMounted(() => {
57
- storeAccountSettings.getSettings()
58
- storeAccountSettings.getRoles()
59
-
60
- })
61
-
62
- </script>
63
- <template>
64
-
65
-
66
-
67
- <section class="application-component">
68
- <lesli-header
69
- :title="translations.core.account.settings.view_tab_title_security_settings">
70
- </lesli-header>
71
- <div class="box">
72
- <form @submit.prevent="storeAccountSettings.postSettings">
73
- <div class="columns">
74
- <div class="column is-4">
75
- <label class="label">
76
- {{ translations.core.account.settings.column_password_complex_enable }}
77
- </label>
78
- </div>
79
- <div class="column is-6">
80
- <lesli-select
81
- :options="[
82
- {
83
- label: translations.core.account.settings.view_text_password_enforcement_enabled,
84
- value: 'Enabled',
85
- },
86
- {
87
- label: translations.core.account.settings.view_text_password_enforcement_disabled,
88
- value: 'Disabled',
89
- },
90
- ]"
91
- v-model="storeAccountSettings.settings.password_enforce_complexity"
92
- >
93
- </lesli-select>
94
- <p class="has-text-info">
95
- {{ translations.core.account.settings.view_text_password_complex_description }}
96
- </p>
97
- </div>
98
- </div>
99
-
100
- <div class="columns">
101
- <div class="column is-4">
102
- <label class="label">
103
- {{ translations.core.account.settings.column_default_role }}
104
- </label>
105
- </div>
106
- <div class="column is-6">
107
- <lesli-select
108
- v-model="storeAccountSettings.settings.default_role_id"
109
- :placeholder="translations.core.view_placeholder_select_option"
110
- :options="storeAccountSettings.roles"
111
- ></lesli-select>
112
- </div>
113
- </div>
114
-
115
- <div class="columns">
116
- <div class="column is-4">
117
- <label class="label">
118
- {{ translations.core.account.settings.column_password_lowercase_count }}
119
- </label>
120
- </div>
121
- <div class="column is-6">
122
- <div class="control">
123
- <input class="input" type="number" v-model="storeAccountSettings.settings.password_lowercase_count">
124
- </div>
125
- </div>
126
- </div>
127
-
128
- <div class="columns">
129
- <div class="column is-4">
130
- <label class="label">
131
- {{ translations.core.account.settings.column_password_uppercase_count }}
132
- </label>
133
- </div>
134
- <div class="column is-6">
135
- <div class="control">
136
- <input class="input" type="number" v-model="storeAccountSettings.settings.password_uppercase_count">
137
- </div>
138
- </div>
139
- </div>
140
-
141
- <div class="columns">
142
- <div class="column is-4">
143
- <label class="label">
144
- {{ translations.core.account.settings.column_password_numeric_count }}
145
- </label>
146
- </div>
147
- <div class="column is-6">
148
- <div class="control">
149
- <input class="input" type="number" v-model="storeAccountSettings.settings.password_digit_count">
150
- </div>
151
- </div>
152
- </div>
153
-
154
- <div class="columns">
155
- <div class="column is-4">
156
- <label class="label">
157
- {{ translations.core.account.settings.column_password_special_char_count }}
158
- </label>
159
- </div>
160
- <div class="column is-6">
161
- <div class="control">
162
- <input class="input" type="number" v-model="storeAccountSettings.settings.password_special_char_count">
163
- </div>
164
- </div>
165
- </div>
166
-
167
- <div class="columns">
168
- <div class="column is-4">
169
- <label class="label">
170
- {{ translations.core.account.settings.column_password_minimum_length }}
171
- </label>
172
- </div>
173
- <div class="column is-6">
174
- <div class="control">
175
- <input class="input" type="number" v-model="storeAccountSettings.settings.password_minimum_length">
176
- </div>
177
- </div>
178
- </div>
179
-
180
- <div class="columns">
181
- <div class="column is-4">
182
- <label class="label">
183
- {{ translations.core.account.settings.column_password_expiration_time_days }}
184
- </label>
185
- </div>
186
- <div class="column is-6">
187
- <div class="control">
188
- <input class="input" type="number" v-model="storeAccountSettings.settings.password_expiration_time_days">
189
- </div>
190
- </div>
191
- </div>
192
-
193
- <div class="field is-grouped is-grouped-centered">
194
- <div class="control">
195
- <lesli-button class="button is-primary" icon="save">
196
- <span v-if="storeAccountSettings.submitting_form">
197
- {{translations.core.shared.view_btn_saving}}
198
- </span>
199
- <span v-else>
200
- {{translations.core.shared.view_btn_save}}
201
- </span>
202
- </lesli-button>
203
- </div>
204
- </div>
205
- </form>
206
- </div>
207
- </section>
208
- </template>