lesli_shield 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/Rakefile +5 -0
- data/app/assets/config/lesli_shield_manifest.js +47 -0
- data/app/assets/images/lesli_shield/shield-logo.svg +1 -0
- data/app/assets/javascripts/lesli_shield/application.js +4428 -0
- data/app/assets/javascripts/lesli_shield/confirmations.js +60 -0
- data/app/assets/javascripts/lesli_shield/passwords.js +712 -0
- data/app/assets/javascripts/lesli_shield/registrations.js +712 -0
- data/app/assets/javascripts/lesli_shield/sessions.js +712 -0
- data/app/assets/stylesheets/lesli_shield/application.css +4 -0
- data/app/assets/stylesheets/lesli_shield/confirmations.css +19219 -0
- data/app/assets/stylesheets/lesli_shield/passwords.css +19202 -0
- data/app/assets/stylesheets/lesli_shield/registrations.css +19588 -0
- data/app/assets/stylesheets/lesli_shield/sessions.css +19588 -0
- data/app/controllers/lesli_shield/application_controller.rb +4 -0
- data/app/controllers/lesli_shield/dashboard/components_controller.rb +60 -0
- data/app/controllers/lesli_shield/dashboards_controller.rb +4 -0
- data/app/controllers/users/confirmations_controller.rb +66 -0
- data/app/controllers/users/omniauth_callbacks_controller.rb +30 -0
- data/app/controllers/users/passwords_controller.rb +71 -0
- data/app/controllers/users/registrations_controller.rb +141 -0
- data/app/controllers/users/sessions_controller.rb +141 -0
- data/app/controllers/users/unlocks_controller.rb +30 -0
- data/app/helpers/lesli_shield/application_helper.rb +4 -0
- data/app/helpers/lesli_shield/dashboards_helper.rb +4 -0
- data/app/jobs/lesli_shield/application_job.rb +4 -0
- data/app/mailers/lesli_shield/application_mailer.rb +6 -0
- data/app/models/lesli_shield/application_record.rb +5 -0
- data/app/models/lesli_shield/dashboard/component.rb +18 -0
- data/app/models/lesli_shield/dashboard.rb +31 -0
- data/app/views/devise/confirmations/new.html.erb +2 -0
- data/app/views/devise/confirmations/show.html.erb +63 -0
- data/app/views/devise/mailer/confirmation_instructions.html.erb +5 -0
- data/app/views/devise/mailer/email_changed.html.erb +7 -0
- data/app/views/devise/mailer/password_change.html.erb +3 -0
- data/app/views/devise/mailer/reset_password_instructions.html.erb +8 -0
- data/app/views/devise/mailer/unlock_instructions.html.erb +7 -0
- data/app/views/devise/passwords/edit.html.erb +79 -0
- data/app/views/devise/passwords/new.html.erb +75 -0
- data/app/views/devise/registrations/edit.html.erb +43 -0
- data/app/views/devise/registrations/new.html.erb +151 -0
- data/app/views/devise/sessions/new.html.erb +114 -0
- data/app/views/devise/shared/_demo.html.erb +7 -0
- data/app/views/devise/shared/_error_messages.html.erb +15 -0
- data/app/views/devise/shared/_links.html.erb +96 -0
- data/app/views/devise/unlocks/new.html.erb +16 -0
- data/app/views/layouts/lesli_shield/application.html.erb +15 -0
- data/app/views/lesli_shield/dashboards/edit.html.erb +1 -0
- data/app/views/lesli_shield/dashboards/index.html.erb +1 -0
- data/app/views/lesli_shield/dashboards/new.html.erb +1 -0
- data/app/views/lesli_shield/dashboards/show.html.erb +1 -0
- data/config/initializers/devise.rb +336 -0
- data/config/locales/translations.en.yml +21 -0
- data/config/locales/translations.es.yml +21 -0
- data/config/locales/translations.fr.yml +21 -0
- data/config/locales/translations.it.yml +21 -0
- data/config/locales/translations.pt.yml +21 -0
- data/config/routes.rb +57 -0
- data/db/migrate/v1/0801000110_create_lesli_shield_accounts.rb +42 -0
- data/db/migrate/v1/0801050110_create_lesli_shield_dashboards.rb +51 -0
- data/db/migrate/v1/0801050210_create_lesli_shield_dashboard_components.rb +53 -0
- data/lib/lesli_shield/engine.rb +54 -0
- data/lib/lesli_shield/routing.rb +26 -0
- data/lib/lesli_shield/version.rb +4 -0
- data/lib/lesli_shield.rb +6 -0
- data/lib/scss/application.scss +0 -0
- data/lib/scss/confirmations.scss +58 -0
- data/lib/scss/devise/oauth.scss +34 -0
- data/lib/scss/passwords.scss +33 -0
- data/lib/scss/registrations.scss +35 -0
- data/lib/scss/sessions.scss +35 -0
- data/lib/tasks/lesli_shield_tasks.rake +4 -0
- data/lib/vue/application.js +76 -0
- data/lib/vue/apps/dashboards/components/engine-version.vue +71 -0
- data/lib/vue/confirmations.js +33 -0
- data/lib/vue/passwords.js +137 -0
- data/lib/vue/registrations.js +144 -0
- data/lib/vue/sessions.js +148 -0
- data/lib/vue/stores/translations.json +152 -0
- data/license +674 -0
- data/readme.md +71 -0
- metadata +168 -0
data/readme.md
ADDED
@@ -0,0 +1,71 @@
|
|
1
|
+
<p align="center">
|
2
|
+
<img width="90" alt="Lesli Shield logo" src="./app/assets/images/lesli_shield/shield-logo.svg" />
|
3
|
+
<h3 align="center">Authentication & Authorization for the Lesli Framework.</h3>
|
4
|
+
</p>
|
5
|
+
|
6
|
+
<hr/>
|
7
|
+
<p align="center">
|
8
|
+
<a target="blank" href="https://rubygems.org/gems/lesli_shield">
|
9
|
+
<img src="https://badge.fury.io/rb/lesli_shield.svg" alt="Gem Version" height="24">
|
10
|
+
</a>
|
11
|
+
</p>
|
12
|
+
<hr/>
|
13
|
+
|
14
|
+
### Quick start
|
15
|
+
|
16
|
+
```shell
|
17
|
+
# Add LesliShield engine
|
18
|
+
bundle add lesli_shield
|
19
|
+
```
|
20
|
+
|
21
|
+
```shell
|
22
|
+
# Setup database
|
23
|
+
rake lesli:db:setup
|
24
|
+
```
|
25
|
+
|
26
|
+
```ruby
|
27
|
+
# Load LesliShield
|
28
|
+
Rails.application.routes.draw do
|
29
|
+
mount LesliShield::Engine => "/shield"
|
30
|
+
end
|
31
|
+
```
|
32
|
+
|
33
|
+
|
34
|
+
### Documentation
|
35
|
+
* [website](https://www.lesli.dev/)
|
36
|
+
* [database](./docs/database.md)
|
37
|
+
* [documentation](https://www.lesli.dev/engines/shield/)
|
38
|
+
|
39
|
+
|
40
|
+
### Get in touch with Lesli
|
41
|
+
|
42
|
+
* [Website: https://www.lesli.tech](https://www.lesli.tech)
|
43
|
+
* [Email: hello@lesli.tech](hello@lesli.tech)
|
44
|
+
* [Twitter: @LesliTech](https://twitter.com/LesliTech)
|
45
|
+
|
46
|
+
|
47
|
+
### License
|
48
|
+
-------
|
49
|
+
Copyright (c) 2023, Lesli Technologies, S. A.
|
50
|
+
|
51
|
+
This program is free software: you can redistribute it and/or modify
|
52
|
+
it under the terms of the GNU General Public License as published by
|
53
|
+
the Free Software Foundation, either version 3 of the License, or
|
54
|
+
(at your option) any later version.
|
55
|
+
|
56
|
+
This program is distributed in the hope that it will be useful,
|
57
|
+
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
58
|
+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
59
|
+
GNU General Public License for more details.
|
60
|
+
|
61
|
+
You should have received a copy of the GNU General Public License
|
62
|
+
along with this program. If not, see http://www.gnu.org/licenses/.
|
63
|
+
|
64
|
+
<hr />
|
65
|
+
<br />
|
66
|
+
|
67
|
+
<p align="center">
|
68
|
+
<img width="200" alt="Lesli logo" src="https://cdn.lesli.tech/lesli/brand/app-logo.svg" />
|
69
|
+
<h4 align="center">Ruby on Rails SaaS Development Framework.</h4>
|
70
|
+
</p>
|
71
|
+
|
metadata
ADDED
@@ -0,0 +1,168 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: lesli_shield
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- The Lesli Development Team
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2024-05-10 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: rails
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: 7.0.6
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: 7.0.6
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: lesli
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '5'
|
34
|
+
type: :runtime
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '5'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: devise
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - "~>"
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: 4.9.2
|
48
|
+
type: :runtime
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - "~>"
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: 4.9.2
|
55
|
+
description: Authentication & Authorization for the Lesli Framework.
|
56
|
+
email:
|
57
|
+
- hello@lesli.tech
|
58
|
+
executables: []
|
59
|
+
extensions: []
|
60
|
+
extra_rdoc_files: []
|
61
|
+
files:
|
62
|
+
- Rakefile
|
63
|
+
- app/assets/config/lesli_shield_manifest.js
|
64
|
+
- app/assets/images/lesli_shield/shield-logo.svg
|
65
|
+
- app/assets/javascripts/lesli_shield/application.js
|
66
|
+
- app/assets/javascripts/lesli_shield/confirmations.js
|
67
|
+
- app/assets/javascripts/lesli_shield/passwords.js
|
68
|
+
- app/assets/javascripts/lesli_shield/registrations.js
|
69
|
+
- app/assets/javascripts/lesli_shield/sessions.js
|
70
|
+
- app/assets/stylesheets/lesli_shield/application.css
|
71
|
+
- app/assets/stylesheets/lesli_shield/confirmations.css
|
72
|
+
- app/assets/stylesheets/lesli_shield/passwords.css
|
73
|
+
- app/assets/stylesheets/lesli_shield/registrations.css
|
74
|
+
- app/assets/stylesheets/lesli_shield/sessions.css
|
75
|
+
- app/controllers/lesli_shield/application_controller.rb
|
76
|
+
- app/controllers/lesli_shield/dashboard/components_controller.rb
|
77
|
+
- app/controllers/lesli_shield/dashboards_controller.rb
|
78
|
+
- app/controllers/users/confirmations_controller.rb
|
79
|
+
- app/controllers/users/omniauth_callbacks_controller.rb
|
80
|
+
- app/controllers/users/passwords_controller.rb
|
81
|
+
- app/controllers/users/registrations_controller.rb
|
82
|
+
- app/controllers/users/sessions_controller.rb
|
83
|
+
- app/controllers/users/unlocks_controller.rb
|
84
|
+
- app/helpers/lesli_shield/application_helper.rb
|
85
|
+
- app/helpers/lesli_shield/dashboards_helper.rb
|
86
|
+
- app/jobs/lesli_shield/application_job.rb
|
87
|
+
- app/mailers/lesli_shield/application_mailer.rb
|
88
|
+
- app/models/lesli_shield/application_record.rb
|
89
|
+
- app/models/lesli_shield/dashboard.rb
|
90
|
+
- app/models/lesli_shield/dashboard/component.rb
|
91
|
+
- app/views/devise/confirmations/new.html.erb
|
92
|
+
- app/views/devise/confirmations/show.html.erb
|
93
|
+
- app/views/devise/mailer/confirmation_instructions.html.erb
|
94
|
+
- app/views/devise/mailer/email_changed.html.erb
|
95
|
+
- app/views/devise/mailer/password_change.html.erb
|
96
|
+
- app/views/devise/mailer/reset_password_instructions.html.erb
|
97
|
+
- app/views/devise/mailer/unlock_instructions.html.erb
|
98
|
+
- app/views/devise/passwords/edit.html.erb
|
99
|
+
- app/views/devise/passwords/new.html.erb
|
100
|
+
- app/views/devise/registrations/edit.html.erb
|
101
|
+
- app/views/devise/registrations/new.html.erb
|
102
|
+
- app/views/devise/sessions/new.html.erb
|
103
|
+
- app/views/devise/shared/_demo.html.erb
|
104
|
+
- app/views/devise/shared/_error_messages.html.erb
|
105
|
+
- app/views/devise/shared/_links.html.erb
|
106
|
+
- app/views/devise/unlocks/new.html.erb
|
107
|
+
- app/views/layouts/lesli_shield/application.html.erb
|
108
|
+
- app/views/lesli_shield/dashboards/edit.html.erb
|
109
|
+
- app/views/lesli_shield/dashboards/index.html.erb
|
110
|
+
- app/views/lesli_shield/dashboards/new.html.erb
|
111
|
+
- app/views/lesli_shield/dashboards/show.html.erb
|
112
|
+
- config/initializers/devise.rb
|
113
|
+
- config/locales/translations.en.yml
|
114
|
+
- config/locales/translations.es.yml
|
115
|
+
- config/locales/translations.fr.yml
|
116
|
+
- config/locales/translations.it.yml
|
117
|
+
- config/locales/translations.pt.yml
|
118
|
+
- config/routes.rb
|
119
|
+
- db/migrate/v1/0801000110_create_lesli_shield_accounts.rb
|
120
|
+
- db/migrate/v1/0801050110_create_lesli_shield_dashboards.rb
|
121
|
+
- db/migrate/v1/0801050210_create_lesli_shield_dashboard_components.rb
|
122
|
+
- lib/lesli_shield.rb
|
123
|
+
- lib/lesli_shield/engine.rb
|
124
|
+
- lib/lesli_shield/routing.rb
|
125
|
+
- lib/lesli_shield/version.rb
|
126
|
+
- lib/scss/application.scss
|
127
|
+
- lib/scss/confirmations.scss
|
128
|
+
- lib/scss/devise/oauth.scss
|
129
|
+
- lib/scss/passwords.scss
|
130
|
+
- lib/scss/registrations.scss
|
131
|
+
- lib/scss/sessions.scss
|
132
|
+
- lib/tasks/lesli_shield_tasks.rake
|
133
|
+
- lib/vue/application.js
|
134
|
+
- lib/vue/apps/dashboards/components/engine-version.vue
|
135
|
+
- lib/vue/confirmations.js
|
136
|
+
- lib/vue/passwords.js
|
137
|
+
- lib/vue/registrations.js
|
138
|
+
- lib/vue/sessions.js
|
139
|
+
- lib/vue/stores/translations.json
|
140
|
+
- license
|
141
|
+
- readme.md
|
142
|
+
homepage: https://www.lesli.dev/
|
143
|
+
licenses:
|
144
|
+
- GPL-3.0
|
145
|
+
metadata:
|
146
|
+
homepage_uri: https://www.lesli.dev/
|
147
|
+
changelog_uri: https://github.com/LesliTech/LesliShield
|
148
|
+
source_code_uri: https://github.com/LesliTech/LesliShield
|
149
|
+
post_install_message:
|
150
|
+
rdoc_options: []
|
151
|
+
require_paths:
|
152
|
+
- lib
|
153
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
154
|
+
requirements:
|
155
|
+
- - ">="
|
156
|
+
- !ruby/object:Gem::Version
|
157
|
+
version: '2.7'
|
158
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
159
|
+
requirements:
|
160
|
+
- - ">="
|
161
|
+
- !ruby/object:Gem::Version
|
162
|
+
version: '0'
|
163
|
+
requirements: []
|
164
|
+
rubygems_version: 3.3.7
|
165
|
+
signing_key:
|
166
|
+
specification_version: 4
|
167
|
+
summary: Authentication & Authorization for the Lesli Framework.
|
168
|
+
test_files: []
|