rails_app_generator 0.2.22 → 0.2.25
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +24 -0
- data/after_templates/addons/devise/_.rb +43 -0
- data/after_templates/addons/devise/app/controllers/home_controller.rb +4 -0
- data/after_templates/addons/devise/app/controllers/posts_controller.rb +81 -0
- data/after_templates/addons/devise/app/models/post.rb +11 -0
- data/after_templates/addons/devise/app/models/user.rb +17 -0
- data/after_templates/addons/devise/app/views/home/index.html.erb +40 -0
- data/after_templates/addons/devise/app/views/layouts/_footer.html.erb +1 -0
- data/after_templates/addons/devise/app/views/layouts/_navbar.html.erb +10 -0
- data/after_templates/addons/devise/app/views/layouts/application.html.erb +38 -0
- data/after_templates/addons/devise/app/views/posts/_form.html.erb +27 -0
- data/after_templates/addons/devise/app/views/posts/_post.html.erb +14 -0
- data/after_templates/addons/devise/app/views/posts/index.html.erb +12 -0
- data/after_templates/addons/devise/app/views/posts/show.html.erb +8 -0
- data/after_templates/addons/devise/db/seeds.rb +11 -0
- data/after_templates/addons/devise_masquerade/_.rb +36 -0
- data/after_templates/addons/devise_masquerade/app/controllers/application_controller.rb +3 -0
- data/after_templates/addons/devise_masquerade/app/controllers/home_controller.rb +4 -0
- data/after_templates/addons/devise_masquerade/app/controllers/users/masquerades_controller.rb +10 -0
- data/after_templates/addons/devise_masquerade/app/models/user.rb +17 -0
- data/after_templates/addons/devise_masquerade/app/views/home/index.html.erb +66 -0
- data/after_templates/addons/devise_masquerade/app/views/layouts/_footer.html.erb +1 -0
- data/after_templates/addons/devise_masquerade/app/views/layouts/_navbar.html.erb +6 -0
- data/after_templates/addons/devise_masquerade/app/views/layouts/application.html.erb +57 -0
- data/after_templates/addons/devise_masquerade/db/seeds.rb +3 -0
- data/after_templates/addons/minimal_css/_.rb +62 -0
- data/after_templates/addons/minimal_css/app/controllers/home_controller.rb +4 -0
- data/after_templates/addons/minimal_css/app/views/home/index.html.erb +140 -0
- data/after_templates/addons/minimal_css/app/views/layouts/_footer.html.erb +1 -0
- data/after_templates/addons/minimal_css/app/views/layouts/_navbar.html.erb +3 -0
- data/after_templates/addons/minimal_css/app/views/layouts/application.html.erb +29 -0
- data/after_templates/addons/minimal_css/db/seeds.rb +5 -0
- data/after_templates/rag/devise/_.rb +14 -17
- data/after_templates/rag/devise/app/controllers/home_controller.rb +4 -0
- data/after_templates/rag/devise/{post → app/controllers}/posts_controller.rb +0 -0
- data/after_templates/rag/devise/{post → app/models}/post.rb +0 -0
- data/after_templates/rag/devise/app/views/home/index.html.erb +3 -0
- data/after_templates/rag/devise/app/views/layouts/_footer.html.erb +3 -0
- data/after_templates/rag/devise/app/views/layouts/_navbar.html.erb +8 -0
- data/after_templates/rag/devise/app/views/layouts/application.html.erb +24 -0
- data/after_templates/rag/devise/{post → app/views/post}/_post.html.erb +0 -0
- data/after_templates/rag/test/_.rb +64 -0
- data/after_templates/rag/test/app/controllers/home_controller.rb +4 -0
- data/after_templates/rag/test/app/views/home/index.html.erb +3 -0
- data/after_templates/rag/test/app/views/layouts/_footer.html.erb +1 -0
- data/after_templates/rag/test/app/views/layouts/_navbar.html.erb +5 -0
- data/after_templates/rag/test/app/views/layouts/application.html.erb +29 -0
- data/after_templates/rag/test/db/seeds.rb +7 -0
- data/after_templates/rag/testy/_.rb +64 -0
- data/after_templates/rag/testy/app/controllers/home_controller.rb +4 -0
- data/after_templates/rag/testy/app/views/home/index.html.erb +3 -0
- data/after_templates/rag/testy/app/views/layouts/_footer.html.erb +1 -0
- data/after_templates/rag/testy/app/views/layouts/_navbar.html.erb +5 -0
- data/after_templates/rag/testy/app/views/layouts/application.html.erb +29 -0
- data/after_templates/rag/testy/db/seeds.rb +7 -0
- data/docs/last_run/app_generator_class.json +25 -1
- data/docs/last_run/app_generator_data.json +10 -7
- data/docs/last_run/rails_options_class.json +25 -1
- data/docs/last_run/rails_options_data.json +12 -8
- data/lib/rails_app_generator/addon.rb +30 -2
- data/lib/rails_app_generator/addons/devise.rb +119 -0
- data/lib/rails_app_generator/addons/devise_masquerade.rb +23 -0
- data/lib/rails_app_generator/addons/minimal_css.rb +70 -0
- data/lib/rails_app_generator/app_generator.rb +11 -1
- data/lib/rails_app_generator/gem_query.rb +34 -0
- data/lib/rails_app_generator/rag_initializer.rb +4 -0
- data/lib/rails_app_generator/version.rb +1 -1
- data/lib/rails_app_generator.rb +1 -0
- data/package-lock.json +2 -2
- data/package.json +1 -1
- data/profiles/addons/devise.json +16 -0
- data/profiles/addons/devise_masquerade.json +17 -0
- data/profiles/addons/minimal_css.json +15 -0
- data/profiles/rag/testy.json +12 -0
- data/tasks/addon.thor +7 -3
- data/tasks/profile.thor +3 -3
- data/templates/Gemfile.erb +1 -0
- data/{after_templates/rag/devise/turbo_controller.rb → templates/addons/devise/app/controllers/turbo_devise_controller.rb} +4 -10
- data/templates/addons/devise/app/controllers/users/registrations_controller.rb +62 -0
- data/templates/addons/devise/app/views/devise/registrations/edit.html.erb +40 -54
- data/templates/addons/devise/app/views/devise/registrations/new.html.erb +32 -43
- data/templates/addons/devise/app/views/layouts/_alerts.html.erb +2 -0
- data/{after_templates/rag → templates/addons}/devise/config/initializers/devise_turbo.rb +1 -1
- data/templates/thor_task/profile/after_template.rb +1 -1
- data/templates/thor_task/profile/app/views/layouts/_footer.html.erb.tt +1 -3
- data/templates/thor_task/profile/app/views/layouts/_navbar.html.erb +5 -8
- data/templates/thor_task/profile/app/views/layouts/application.html.erb.tt +8 -2
- data/templates/thor_task/profile/db/seeds.rb +2 -11
- metadata +67 -18
- data/after_templates/rag/devise/application.html.erb +0 -20
- data/lib/rails_app_generator/addons/devise_old.rb +0 -61
- data/tasks/gem_info.rb +0 -47
- data/templates/addons/devise/app/views/devise/confirmations/new.html.erb +0 -24
- data/templates/addons/devise/app/views/devise/passwords/edit.html.erb +0 -34
- data/templates/addons/devise/app/views/devise/passwords/new.html.erb +0 -23
- data/templates/addons/devise/app/views/devise/sessions/new.html.erb +0 -33
- data/templates/addons/devise/app/views/devise/shared/_error_messages.html.erb +0 -15
- data/templates/addons/devise/app/views/devise/shared/_form_wrap.html.erb +0 -5
- data/templates/addons/devise/app/views/devise/shared/_links.html.erb +0 -25
- data/templates/addons/devise/app/views/devise/unlocks/new.html.erb +0 -22
data/tasks/profile.thor
CHANGED
@@ -2,8 +2,8 @@
|
|
2
2
|
|
3
3
|
# https://codecrate.com/2014/01/replace-rake-with-thor.html
|
4
4
|
|
5
|
-
require_relative 'gem_info'
|
6
5
|
require 'cmdlet'
|
6
|
+
require 'rails_app_generator'
|
7
7
|
|
8
8
|
# Thor task to create a new Profile for Rails App Generator
|
9
9
|
class Profile < Thor
|
@@ -70,7 +70,7 @@ class Profile < Thor
|
|
70
70
|
def build_data
|
71
71
|
gi = gem_info(name)
|
72
72
|
|
73
|
-
description = gi ? gi.
|
73
|
+
description = gi ? gi.comment : 'Description goes here'
|
74
74
|
|
75
75
|
Data.new(
|
76
76
|
name: name,
|
@@ -104,7 +104,7 @@ class Profile < Thor
|
|
104
104
|
|
105
105
|
gem_name = options[:gem] == 'gem' ? name : options[:gem]
|
106
106
|
|
107
|
-
|
107
|
+
RailsAppGenerator::GemQuery.get(gem_name)
|
108
108
|
end
|
109
109
|
|
110
110
|
def human(value)
|
data/templates/Gemfile.erb
CHANGED
@@ -1,16 +1,10 @@
|
|
1
|
-
class
|
2
|
-
|
3
|
-
# This is required for Devise to work.
|
4
|
-
# See: https://youtu.be/m3uhldUGVes?t=1432
|
5
|
-
#
|
6
|
-
# Having issues with devise/turbo.
|
7
|
-
# See: https://gorails.com/episodes/devise-hotwire-turbo
|
1
|
+
class TurboDeviseController < ApplicationController
|
8
2
|
class Responder < ActionController::Responder
|
9
3
|
def to_turbo_stream
|
10
4
|
controller.render(options.merge(formats: :html))
|
11
|
-
rescue ActionView::MissingTemplate =>
|
5
|
+
rescue ActionView::MissingTemplate => e
|
12
6
|
if get?
|
13
|
-
raise
|
7
|
+
raise e
|
14
8
|
elsif has_errors? && default_action
|
15
9
|
render rendering_options.merge(formats: :html, status: :unprocessable_entity)
|
16
10
|
else
|
@@ -21,4 +15,4 @@ class TurboController < ApplicationController
|
|
21
15
|
|
22
16
|
self.responder = Responder
|
23
17
|
respond_to :html, :turbo_stream
|
24
|
-
end
|
18
|
+
end
|
@@ -0,0 +1,62 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
class Users::RegistrationsController < Devise::RegistrationsController
|
4
|
+
before_action :configure_sign_up_params, only: [:create]
|
5
|
+
before_action :configure_account_update_params, only: [:update]
|
6
|
+
|
7
|
+
# GET /resource/sign_up
|
8
|
+
# def new
|
9
|
+
# super
|
10
|
+
# end
|
11
|
+
|
12
|
+
# POST /resource
|
13
|
+
# def create
|
14
|
+
# super
|
15
|
+
# end
|
16
|
+
|
17
|
+
# GET /resource/edit
|
18
|
+
# def edit
|
19
|
+
# super
|
20
|
+
# end
|
21
|
+
|
22
|
+
# PUT /resource
|
23
|
+
# def update
|
24
|
+
# super
|
25
|
+
# end
|
26
|
+
|
27
|
+
# DELETE /resource
|
28
|
+
# def destroy
|
29
|
+
# super
|
30
|
+
# end
|
31
|
+
|
32
|
+
# GET /resource/cancel
|
33
|
+
# Forces the session data which is usually expired after sign
|
34
|
+
# in to be expired now. This is useful if the user wants to
|
35
|
+
# cancel oauth signing in/up in the middle of the process,
|
36
|
+
# removing all OAuth session data.
|
37
|
+
# def cancel
|
38
|
+
# super
|
39
|
+
# end
|
40
|
+
|
41
|
+
# protected
|
42
|
+
|
43
|
+
# If you have extra params to permit, append them to the sanitizer.
|
44
|
+
def configure_sign_up_params
|
45
|
+
devise_parameter_sanitizer.permit(:sign_up, keys: [:name])
|
46
|
+
end
|
47
|
+
|
48
|
+
# If you have extra params to permit, append them to the sanitizer.
|
49
|
+
def configure_account_update_params
|
50
|
+
devise_parameter_sanitizer.permit(:account_update, keys: [:name])
|
51
|
+
end
|
52
|
+
|
53
|
+
# The path used after sign up.
|
54
|
+
# def after_sign_up_path_for(resource)
|
55
|
+
# super(resource)
|
56
|
+
# end
|
57
|
+
|
58
|
+
# The path used after sign up for inactive accounts.
|
59
|
+
# def after_inactive_sign_up_path_for(resource)
|
60
|
+
# super(resource)
|
61
|
+
# end
|
62
|
+
end
|
@@ -1,62 +1,48 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
<%=
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
<%= f.email_field :email, autocomplete: "email", class:"input" %>
|
16
|
-
</div>
|
17
|
-
|
18
|
-
<div class="input-group">
|
19
|
-
<% if devise_mapping.confirmable? && resource.pending_reconfirmation? %>
|
20
|
-
<div>Currently waiting confirmation for: <%= resource.unconfirmed_email %></div>
|
21
|
-
<% end %>
|
22
|
-
</div>
|
23
|
-
|
24
|
-
<div class="input-group">
|
25
|
-
<%= f.label :password, class:"label" %>
|
26
|
-
<%= f.password_field :password, autocomplete: "new-password", class:"input" %>
|
27
|
-
<p class="pt-1 text-sm italic text-grey-dark"> <% if @minimum_password_length %>
|
28
|
-
<%= @minimum_password_length %> characters minimum <% end %> (leave blank if you don't want to change it) </p>
|
29
|
-
|
30
|
-
</div>
|
31
|
-
|
32
|
-
<div class="input-group">
|
33
|
-
<%= f.label :password_confirmation, class: "label" %>
|
34
|
-
<%= f.password_field :password_confirmation, autocomplete: "new-password", class: "input" %>
|
35
|
-
</div>
|
36
|
-
|
37
|
-
<div class="input-group">
|
38
|
-
<%= f.label :current_password, class: "label" %>
|
39
|
-
<%= f.password_field :current_password, autocomplete: "current-password", class: "input" %>
|
40
|
-
<p class="pt-2 text-sm italic text-grey-dark">(we need your current password to confirm your changes)</p>
|
41
|
-
</div>
|
42
|
-
|
43
|
-
<div class="input-group">
|
44
|
-
<%= f.submit "Update", class: "btn btn-default" %>
|
45
|
-
</div>
|
46
|
-
<% end %>
|
1
|
+
<h2>Edit <%= resource_name.to_s.humanize %></h2>
|
2
|
+
|
3
|
+
<%= form_for(resource, as: resource_name, url: registration_path(resource_name), html: { method: :put }) do |f| %>
|
4
|
+
<%= render "devise/shared/error_messages", resource: resource %>
|
5
|
+
|
6
|
+
<div class="field">
|
7
|
+
<%= f.label :name %><br />
|
8
|
+
<%= f.text_field :name, autofocus: true %>
|
9
|
+
</div>
|
10
|
+
|
11
|
+
<div class="field">
|
12
|
+
<%= f.label :email %><br />
|
13
|
+
<%= f.email_field :email, autocomplete: "email" %>
|
14
|
+
</div>
|
47
15
|
|
48
|
-
|
16
|
+
<% if devise_mapping.confirmable? && resource.pending_reconfirmation? %>
|
17
|
+
<div>Currently waiting confirmation for: <%= resource.unconfirmed_email %></div>
|
18
|
+
<% end %>
|
49
19
|
|
50
|
-
<
|
20
|
+
<div class="field">
|
21
|
+
<%= f.label :password %> <i>(leave blank if you don't want to change it)</i><br />
|
22
|
+
<%= f.password_field :password, autocomplete: "new-password" %>
|
23
|
+
<% if @minimum_password_length %>
|
24
|
+
<br />
|
25
|
+
<em><%= @minimum_password_length %> characters minimum</em>
|
26
|
+
<% end %>
|
27
|
+
</div>
|
51
28
|
|
52
|
-
<div class="
|
53
|
-
|
54
|
-
|
55
|
-
|
29
|
+
<div class="field">
|
30
|
+
<%= f.label :password_confirmation %><br />
|
31
|
+
<%= f.password_field :password_confirmation, autocomplete: "new-password" %>
|
32
|
+
</div>
|
56
33
|
|
57
|
-
|
34
|
+
<div class="field">
|
35
|
+
<%= f.label :current_password %> <i>(we need your current password to confirm your changes)</i><br />
|
36
|
+
<%= f.password_field :current_password, autocomplete: "current-password" %>
|
58
37
|
</div>
|
59
38
|
|
39
|
+
<div class="actions">
|
40
|
+
<%= f.submit "Update" %>
|
41
|
+
</div>
|
60
42
|
<% end %>
|
61
43
|
|
62
|
-
|
44
|
+
<h3>Cancel my account</h3>
|
45
|
+
|
46
|
+
<p>Unhappy? <%= button_to "Cancel my account", registration_path(resource_name), data: { confirm: "Are you sure?" }, method: :delete %></p>
|
47
|
+
|
48
|
+
<%= link_to "Back", :back %>
|
@@ -1,45 +1,34 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
<div class="input-group">
|
34
|
-
<%= f.submit "Sign up", class: "btn btn-default" %>
|
35
|
-
</div>
|
36
|
-
|
37
|
-
<hr class="mt-6 border" />
|
38
|
-
|
39
|
-
<% end %>
|
40
|
-
|
41
|
-
<%= render "devise/shared/links" %>
|
42
|
-
|
1
|
+
<h2>Sign up</h2>
|
2
|
+
|
3
|
+
<%= form_for(resource, as: resource_name, url: registration_path(resource_name)) do |f| %>
|
4
|
+
<%= render "devise/shared/error_messages", resource: resource %>
|
5
|
+
|
6
|
+
<div class="field">
|
7
|
+
<%= f.label :name %><br />
|
8
|
+
<%= f.text_field :name, autofocus: true %>
|
9
|
+
</div>
|
10
|
+
|
11
|
+
<div class="field">
|
12
|
+
<%= f.label :email %><br />
|
13
|
+
<%= f.email_field :email, autocomplete: "email" %>
|
14
|
+
</div>
|
15
|
+
|
16
|
+
<div class="field">
|
17
|
+
<%= f.label :password %>
|
18
|
+
<% if @minimum_password_length %>
|
19
|
+
<em>(<%= @minimum_password_length %> characters minimum)</em>
|
20
|
+
<% end %><br />
|
21
|
+
<%= f.password_field :password, autocomplete: "new-password" %>
|
22
|
+
</div>
|
23
|
+
|
24
|
+
<div class="field">
|
25
|
+
<%= f.label :password_confirmation %><br />
|
26
|
+
<%= f.password_field :password_confirmation, autocomplete: "new-password" %>
|
27
|
+
</div>
|
28
|
+
|
29
|
+
<div class="actions">
|
30
|
+
<%= f.submit "Sign up" %>
|
31
|
+
</div>
|
43
32
|
<% end %>
|
44
33
|
|
45
|
-
<%= render "devise/shared/
|
34
|
+
<%= render "devise/shared/links" %>
|
@@ -19,7 +19,7 @@ end
|
|
19
19
|
Devise.setup do |config|
|
20
20
|
# ==> Controller configuration
|
21
21
|
# Configure the parent class to the devise controllers.
|
22
|
-
config.parent_controller = '
|
22
|
+
config.parent_controller = 'TurboDeviseController'
|
23
23
|
|
24
24
|
config.navigational_formats = ['*/*', :html, :turbo_stream]
|
25
25
|
|
@@ -28,7 +28,7 @@ after_bundle do
|
|
28
28
|
end
|
29
29
|
|
30
30
|
def setup_db
|
31
|
-
# add_scaffold('post', 'title', 'body:text')
|
31
|
+
# add_scaffold('post', 'title', 'body:text', 'user:references')
|
32
32
|
# add_scaffold('people', 'first_name', 'last_name', 'age:integer', 'address:text')
|
33
33
|
# add_scaffold('product', 'name', 'price:integer')
|
34
34
|
|
@@ -1,8 +1,5 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
<%# link_to 'People', people_path %>
|
7
|
-
<hr />
|
8
|
-
</header>
|
1
|
+
<%= link_to 'Home', root_path %>
|
2
|
+
<%# link_to 'Products', products_path %>
|
3
|
+
<%# link_to 'Posts', posts_path %>
|
4
|
+
<%# link_to 'People', people_path %>
|
5
|
+
<hr />
|
@@ -14,10 +14,16 @@
|
|
14
14
|
</head>
|
15
15
|
|
16
16
|
<body>
|
17
|
-
|
17
|
+
<header>
|
18
|
+
<%%= render 'layouts/navbar' %>
|
19
|
+
<hr />
|
20
|
+
</header>
|
18
21
|
<main>
|
19
22
|
<%%= yield %>
|
20
23
|
</main>
|
21
|
-
|
24
|
+
<footer>
|
25
|
+
<%%= render 'layouts/footer' %>
|
26
|
+
</footer>
|
22
27
|
</body>
|
23
28
|
</html>
|
29
|
+
|
@@ -1,15 +1,6 @@
|
|
1
|
-
# This file should contain all the record creation needed to seed the database with its default values.
|
2
|
-
# The data can then be loaded with the bin/rails db:seed command (or created alongside the database with db:setup).
|
3
|
-
#
|
4
|
-
# User.find_or_create_by(email: "admin@admin.com") do |user|
|
5
|
-
# user.name = 'Admin'
|
6
|
-
# user.password = 'password'
|
7
|
-
# user.admin = true
|
8
|
-
# end
|
9
|
-
|
10
1
|
# david = User.create(email: 'david@site.com', name: 'david', password: 'password')
|
11
|
-
#
|
12
|
-
#
|
2
|
+
# james = User.create(email: 'james@site.com', name: 'james', password: 'password')
|
3
|
+
# sally = User.create(email: 'sally@site.com', name: 'sally', password: 'password')
|
13
4
|
|
14
5
|
# 10.times do |i|
|
15
6
|
# Post.create(title: "Post #{i}", body: "This is the body of post #{i}", user: User.all.sample)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rails_app_generator
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.25
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- David Cruwys
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-08-
|
11
|
+
date: 2022-08-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bootsnap
|
@@ -237,6 +237,30 @@ files:
|
|
237
237
|
- after_templates/addons/chartkick/app/views/people/_person.html.erb
|
238
238
|
- after_templates/addons/chartkick/config/initializers/chartkick.rb
|
239
239
|
- after_templates/addons/chartkick/db/seeds.rb
|
240
|
+
- after_templates/addons/devise/_.rb
|
241
|
+
- after_templates/addons/devise/app/controllers/home_controller.rb
|
242
|
+
- after_templates/addons/devise/app/controllers/posts_controller.rb
|
243
|
+
- after_templates/addons/devise/app/models/post.rb
|
244
|
+
- after_templates/addons/devise/app/models/user.rb
|
245
|
+
- after_templates/addons/devise/app/views/home/index.html.erb
|
246
|
+
- after_templates/addons/devise/app/views/layouts/_footer.html.erb
|
247
|
+
- after_templates/addons/devise/app/views/layouts/_navbar.html.erb
|
248
|
+
- after_templates/addons/devise/app/views/layouts/application.html.erb
|
249
|
+
- after_templates/addons/devise/app/views/posts/_form.html.erb
|
250
|
+
- after_templates/addons/devise/app/views/posts/_post.html.erb
|
251
|
+
- after_templates/addons/devise/app/views/posts/index.html.erb
|
252
|
+
- after_templates/addons/devise/app/views/posts/show.html.erb
|
253
|
+
- after_templates/addons/devise/db/seeds.rb
|
254
|
+
- after_templates/addons/devise_masquerade/_.rb
|
255
|
+
- after_templates/addons/devise_masquerade/app/controllers/application_controller.rb
|
256
|
+
- after_templates/addons/devise_masquerade/app/controllers/home_controller.rb
|
257
|
+
- after_templates/addons/devise_masquerade/app/controllers/users/masquerades_controller.rb
|
258
|
+
- after_templates/addons/devise_masquerade/app/models/user.rb
|
259
|
+
- after_templates/addons/devise_masquerade/app/views/home/index.html.erb
|
260
|
+
- after_templates/addons/devise_masquerade/app/views/layouts/_footer.html.erb
|
261
|
+
- after_templates/addons/devise_masquerade/app/views/layouts/_navbar.html.erb
|
262
|
+
- after_templates/addons/devise_masquerade/app/views/layouts/application.html.erb
|
263
|
+
- after_templates/addons/devise_masquerade/db/seeds.rb
|
240
264
|
- after_templates/addons/dotenv/_.rb
|
241
265
|
- after_templates/addons/dotenv/app/controllers/home_controller.rb
|
242
266
|
- after_templates/addons/dotenv/app/views/home/index.html.erb
|
@@ -285,6 +309,13 @@ files:
|
|
285
309
|
- after_templates/addons/mini_magick/app/views/layouts/_footer.html.erb
|
286
310
|
- after_templates/addons/mini_magick/app/views/layouts/_navbar.html.erb
|
287
311
|
- after_templates/addons/mini_magick/app/views/layouts/application.html.erb
|
312
|
+
- after_templates/addons/minimal_css/_.rb
|
313
|
+
- after_templates/addons/minimal_css/app/controllers/home_controller.rb
|
314
|
+
- after_templates/addons/minimal_css/app/views/home/index.html.erb
|
315
|
+
- after_templates/addons/minimal_css/app/views/layouts/_footer.html.erb
|
316
|
+
- after_templates/addons/minimal_css/app/views/layouts/_navbar.html.erb
|
317
|
+
- after_templates/addons/minimal_css/app/views/layouts/application.html.erb
|
318
|
+
- after_templates/addons/minimal_css/db/seeds.rb
|
288
319
|
- after_templates/addons/motor_admin/_.rb
|
289
320
|
- after_templates/addons/motor_admin/app/controllers/home_controller.rb
|
290
321
|
- after_templates/addons/motor_admin/app/views/home/index.html.erb
|
@@ -410,18 +441,20 @@ files:
|
|
410
441
|
- after_templates/rag/bootstrap/custom-using-scss.scss
|
411
442
|
- after_templates/rag/bootstrap/manifest.js
|
412
443
|
- after_templates/rag/devise/_.rb
|
413
|
-
- after_templates/rag/devise/
|
444
|
+
- after_templates/rag/devise/app/controllers/home_controller.rb
|
445
|
+
- after_templates/rag/devise/app/controllers/posts_controller.rb
|
446
|
+
- after_templates/rag/devise/app/models/post.rb
|
447
|
+
- after_templates/rag/devise/app/views/home/index.html.erb
|
448
|
+
- after_templates/rag/devise/app/views/layouts/_footer.html.erb
|
449
|
+
- after_templates/rag/devise/app/views/layouts/_navbar.html.erb
|
450
|
+
- after_templates/rag/devise/app/views/layouts/application.html.erb
|
451
|
+
- after_templates/rag/devise/app/views/post/_post.html.erb
|
414
452
|
- after_templates/rag/devise/application_controller.rb
|
415
|
-
- after_templates/rag/devise/config/initializers/devise_turbo.rb
|
416
453
|
- after_templates/rag/devise/layouts/_alerts.html.erb
|
417
454
|
- after_templates/rag/devise/layouts/_footer.html.erb
|
418
455
|
- after_templates/rag/devise/layouts/_navbar.html.erb
|
419
456
|
- after_templates/rag/devise/layouts/application.html.erb
|
420
|
-
- after_templates/rag/devise/post/_post.html.erb
|
421
|
-
- after_templates/rag/devise/post/post.rb
|
422
|
-
- after_templates/rag/devise/post/posts_controller.rb
|
423
457
|
- after_templates/rag/devise/seed_data.rb
|
424
|
-
- after_templates/rag/devise/turbo_controller.rb
|
425
458
|
- after_templates/rag/devise/user.rb
|
426
459
|
- after_templates/rag/import_map/_.rb
|
427
460
|
- after_templates/rag/import_map/component-sortable.html
|
@@ -493,6 +526,20 @@ files:
|
|
493
526
|
- after_templates/rag/tailwind_hotwire_form_search/show.html.erb
|
494
527
|
- after_templates/rag/tailwind_hotwire_form_search/theme_changer_controller.js
|
495
528
|
- after_templates/rag/tailwind_hotwire_form_search/update.turbo_stream.erb
|
529
|
+
- after_templates/rag/test/_.rb
|
530
|
+
- after_templates/rag/test/app/controllers/home_controller.rb
|
531
|
+
- after_templates/rag/test/app/views/home/index.html.erb
|
532
|
+
- after_templates/rag/test/app/views/layouts/_footer.html.erb
|
533
|
+
- after_templates/rag/test/app/views/layouts/_navbar.html.erb
|
534
|
+
- after_templates/rag/test/app/views/layouts/application.html.erb
|
535
|
+
- after_templates/rag/test/db/seeds.rb
|
536
|
+
- after_templates/rag/testy/_.rb
|
537
|
+
- after_templates/rag/testy/app/controllers/home_controller.rb
|
538
|
+
- after_templates/rag/testy/app/views/home/index.html.erb
|
539
|
+
- after_templates/rag/testy/app/views/layouts/_footer.html.erb
|
540
|
+
- after_templates/rag/testy/app/views/layouts/_navbar.html.erb
|
541
|
+
- after_templates/rag/testy/app/views/layouts/application.html.erb
|
542
|
+
- after_templates/rag/testy/db/seeds.rb
|
496
543
|
- app:template
|
497
544
|
- bin/console
|
498
545
|
- bin/setup
|
@@ -524,7 +571,8 @@ files:
|
|
524
571
|
- lib/rails_app_generator/addons/browser.rb
|
525
572
|
- lib/rails_app_generator/addons/chartkick.rb
|
526
573
|
- lib/rails_app_generator/addons/continuous_integration.rb
|
527
|
-
- lib/rails_app_generator/addons/
|
574
|
+
- lib/rails_app_generator/addons/devise.rb
|
575
|
+
- lib/rails_app_generator/addons/devise_masquerade.rb
|
528
576
|
- lib/rails_app_generator/addons/docker.rb
|
529
577
|
- lib/rails_app_generator/addons/docker_compose.rb
|
530
578
|
- lib/rails_app_generator/addons/dotenv.rb
|
@@ -541,6 +589,7 @@ files:
|
|
541
589
|
- lib/rails_app_generator/addons/irbrc.rb
|
542
590
|
- lib/rails_app_generator/addons/lograge.rb
|
543
591
|
- lib/rails_app_generator/addons/mini_magick.rb
|
592
|
+
- lib/rails_app_generator/addons/minimal_css.rb
|
544
593
|
- lib/rails_app_generator/addons/motor_admin.rb
|
545
594
|
- lib/rails_app_generator/addons/phony_rails.rb
|
546
595
|
- lib/rails_app_generator/addons/public_suffix.rb
|
@@ -571,6 +620,7 @@ files:
|
|
571
620
|
- lib/rails_app_generator/diff/processor.rb
|
572
621
|
- lib/rails_app_generator/diff/report.rb
|
573
622
|
- lib/rails_app_generator/formatted_gem_entry.rb
|
623
|
+
- lib/rails_app_generator/gem_query.rb
|
574
624
|
- lib/rails_app_generator/notes/commands-list.txt
|
575
625
|
- lib/rails_app_generator/notes/methods-class.txt
|
576
626
|
- lib/rails_app_generator/notes/methods-instance.txt
|
@@ -598,6 +648,8 @@ files:
|
|
598
648
|
- profiles/addons/bcrypt.json
|
599
649
|
- profiles/addons/browser.json
|
600
650
|
- profiles/addons/chartkick.json
|
651
|
+
- profiles/addons/devise.json
|
652
|
+
- profiles/addons/devise_masquerade.json
|
601
653
|
- profiles/addons/dotenv.json
|
602
654
|
- profiles/addons/faker.json
|
603
655
|
- profiles/addons/hexapdf.json
|
@@ -605,6 +657,7 @@ files:
|
|
605
657
|
- profiles/addons/httparty.json
|
606
658
|
- profiles/addons/lograge.json
|
607
659
|
- profiles/addons/mini_magick.json
|
660
|
+
- profiles/addons/minimal_css.json
|
608
661
|
- profiles/addons/motor_admin.json
|
609
662
|
- profiles/addons/phony_rails.json
|
610
663
|
- profiles/addons/public_suffix.json
|
@@ -624,9 +677,9 @@ files:
|
|
624
677
|
- profiles/rag/tailwind-hotwire-form.json
|
625
678
|
- profiles/rag/tailwind-hotwire.json
|
626
679
|
- profiles/rag/tailwind.json
|
680
|
+
- profiles/rag/testy.json
|
627
681
|
- sig/rails_app_generator.rbs
|
628
682
|
- tasks/addon.thor
|
629
|
-
- tasks/gem_info.rb
|
630
683
|
- tasks/profile.thor
|
631
684
|
- templates/Gemfile-original-r7
|
632
685
|
- templates/Gemfile-original-schienenzeppelin.erb
|
@@ -635,16 +688,12 @@ files:
|
|
635
688
|
- templates/README.md.erb
|
636
689
|
- templates/addons/annotate/auto_annotate_models.rake
|
637
690
|
- templates/addons/continuous_integration/.github/workflows/build.yml.erb
|
638
|
-
- templates/addons/devise/app/
|
639
|
-
- templates/addons/devise/app/
|
640
|
-
- templates/addons/devise/app/views/devise/passwords/new.html.erb
|
691
|
+
- templates/addons/devise/app/controllers/turbo_devise_controller.rb
|
692
|
+
- templates/addons/devise/app/controllers/users/registrations_controller.rb
|
641
693
|
- templates/addons/devise/app/views/devise/registrations/edit.html.erb
|
642
694
|
- templates/addons/devise/app/views/devise/registrations/new.html.erb
|
643
|
-
- templates/addons/devise/app/views/
|
644
|
-
- templates/addons/devise/
|
645
|
-
- templates/addons/devise/app/views/devise/shared/_form_wrap.html.erb
|
646
|
-
- templates/addons/devise/app/views/devise/shared/_links.html.erb
|
647
|
-
- templates/addons/devise/app/views/devise/unlocks/new.html.erb
|
695
|
+
- templates/addons/devise/app/views/layouts/_alerts.html.erb
|
696
|
+
- templates/addons/devise/config/initializers/devise_turbo.rb
|
648
697
|
- templates/addons/docker/.dockerignore.erb
|
649
698
|
- templates/addons/docker/Dockerfile.erb
|
650
699
|
- templates/addons/docker_compose/docker-compose.yml.erb
|
@@ -1,20 +0,0 @@
|
|
1
|
-
<!DOCTYPE html>
|
2
|
-
<html>
|
3
|
-
<head>
|
4
|
-
<title>Devise</title>
|
5
|
-
<meta name="viewport" content="width=device-width,initial-scale=1">
|
6
|
-
<%= csrf_meta_tags %>
|
7
|
-
<%= csp_meta_tag %>
|
8
|
-
|
9
|
-
<%= stylesheet_link_tag "application", "data-turbo-track": "reload" %>
|
10
|
-
</head>
|
11
|
-
|
12
|
-
<body>
|
13
|
-
<%= render 'layouts/navbar' %>
|
14
|
-
<main>
|
15
|
-
<%= render 'layouts/alerts' %>
|
16
|
-
<%= yield %>
|
17
|
-
</main>
|
18
|
-
<%= render 'layouts/footer' %>
|
19
|
-
</body>
|
20
|
-
</html>
|