Skip to content

Commit 91c7eeb

Browse files
secretpraysecretpray
secretpray
authored and
secretpray
committed
Add bootstrap 5 pack without jQuery and Home controller
1 parent 2b81795 commit 91c7eeb

File tree

100 files changed

+8771
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

100 files changed

+8771
-0
lines changed

.browserslistrc

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
defaults

.gitattributes

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# See https://git-scm.com/docs/gitattributes for more about git attribute files.
2+
3+
# Mark the database schema as having been generated.
4+
db/schema.rb linguist-generated
5+
6+
# Mark the yarn lockfile as having been generated.
7+
yarn.lock linguist-generated
8+
9+
# Mark any vendored files as having been vendored.
10+
vendor/* linguist-vendored

.gitignore

+36
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
# See https://help.github.com/articles/ignoring-files for more about ignoring files.
2+
#
3+
# If you find yourself ignoring temporary files generated by your text editor
4+
# or operating system, you probably want to add a global ignore instead:
5+
# git config --global core.excludesfile '~/.gitignore_global'
6+
7+
# Ignore bundler config.
8+
/.bundle
9+
10+
# Ignore all logfiles and tempfiles.
11+
/log/*
12+
/tmp/*
13+
!/log/.keep
14+
!/tmp/.keep
15+
16+
# Ignore pidfiles, but keep the directory.
17+
/tmp/pids/*
18+
!/tmp/pids/
19+
!/tmp/pids/.keep
20+
21+
# Ignore uploaded files in development.
22+
/storage/*
23+
!/storage/.keep
24+
25+
/public/assets
26+
.byebug_history
27+
28+
# Ignore master key for decrypting credentials and more.
29+
/config/master.key
30+
31+
/public/packs
32+
/public/packs-test
33+
/node_modules
34+
/yarn-error.log
35+
yarn-debug.log*
36+
.yarn-integrity

.ruby-version

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
ruby-3.0.2

Gemfile

+42
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
source 'https://rubygems.org'
2+
git_source(:github) { |repo| "https://github.com/#{repo}.git" }
3+
4+
ruby '3.0.2'
5+
6+
7+
8+
# Use Active Model has_secure_password
9+
# Use Active Storage variant
10+
# Use Redis adapter to run Action Cable in production
11+
# gem 'bcrypt', '~> 3.1.7'
12+
# gem 'image_processing', '~> 1.2'
13+
# gem 'redis', '~> 4.0'
14+
gem 'bootsnap', '>= 1.4.4', require: false
15+
gem 'jbuilder', '~> 2.7'
16+
gem 'pg', '~> 1.1'
17+
gem 'puma', '~> 5.0'
18+
gem 'rails', '~> 6.1.4', '>= 6.1.4.1'
19+
gem 'sass-rails', '>= 6'
20+
gem 'turbolinks', '~> 5'
21+
gem 'webpacker', '~> 5.0'
22+
23+
group :development, :test do
24+
gem 'byebug', platforms: [:mri, :mingw, :x64_mingw]
25+
gem 'faker', :git => 'https://github.com/faker-ruby/faker.git', :branch => 'master'
26+
end
27+
28+
group :development do
29+
gem 'listen', '~> 3.3'
30+
gem 'rack-mini-profiler', '~> 2.0'
31+
gem 'spring'
32+
gem 'web-console', '>= 4.1.0'
33+
end
34+
35+
group :test do
36+
gem 'capybara', '>= 3.26'
37+
gem 'selenium-webdriver'
38+
gem 'webdrivers'
39+
end
40+
41+
# Windows does not include zoneinfo files, so bundle the tzinfo-data gem
42+
# gem 'tzinfo-data', platforms: [:mingw, :mswin, :x64_mingw, :jruby]

Gemfile.lock

+235
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,235 @@
1+
GIT
2+
remote: https://github.com/faker-ruby/faker.git
3+
revision: f160a89366404cfd8ac6ea7c45bb64c61c0dd74b
4+
branch: master
5+
specs:
6+
faker (2.19.0)
7+
i18n (>= 1.6, < 2)
8+
9+
GEM
10+
remote: https://rubygems.org/
11+
specs:
12+
actioncable (6.1.4.1)
13+
actionpack (= 6.1.4.1)
14+
activesupport (= 6.1.4.1)
15+
nio4r (~> 2.0)
16+
websocket-driver (>= 0.6.1)
17+
actionmailbox (6.1.4.1)
18+
actionpack (= 6.1.4.1)
19+
activejob (= 6.1.4.1)
20+
activerecord (= 6.1.4.1)
21+
activestorage (= 6.1.4.1)
22+
activesupport (= 6.1.4.1)
23+
mail (>= 2.7.1)
24+
actionmailer (6.1.4.1)
25+
actionpack (= 6.1.4.1)
26+
actionview (= 6.1.4.1)
27+
activejob (= 6.1.4.1)
28+
activesupport (= 6.1.4.1)
29+
mail (~> 2.5, >= 2.5.4)
30+
rails-dom-testing (~> 2.0)
31+
actionpack (6.1.4.1)
32+
actionview (= 6.1.4.1)
33+
activesupport (= 6.1.4.1)
34+
rack (~> 2.0, >= 2.0.9)
35+
rack-test (>= 0.6.3)
36+
rails-dom-testing (~> 2.0)
37+
rails-html-sanitizer (~> 1.0, >= 1.2.0)
38+
actiontext (6.1.4.1)
39+
actionpack (= 6.1.4.1)
40+
activerecord (= 6.1.4.1)
41+
activestorage (= 6.1.4.1)
42+
activesupport (= 6.1.4.1)
43+
nokogiri (>= 1.8.5)
44+
actionview (6.1.4.1)
45+
activesupport (= 6.1.4.1)
46+
builder (~> 3.1)
47+
erubi (~> 1.4)
48+
rails-dom-testing (~> 2.0)
49+
rails-html-sanitizer (~> 1.1, >= 1.2.0)
50+
activejob (6.1.4.1)
51+
activesupport (= 6.1.4.1)
52+
globalid (>= 0.3.6)
53+
activemodel (6.1.4.1)
54+
activesupport (= 6.1.4.1)
55+
activerecord (6.1.4.1)
56+
activemodel (= 6.1.4.1)
57+
activesupport (= 6.1.4.1)
58+
activestorage (6.1.4.1)
59+
actionpack (= 6.1.4.1)
60+
activejob (= 6.1.4.1)
61+
activerecord (= 6.1.4.1)
62+
activesupport (= 6.1.4.1)
63+
marcel (~> 1.0.0)
64+
mini_mime (>= 1.1.0)
65+
activesupport (6.1.4.1)
66+
concurrent-ruby (~> 1.0, >= 1.0.2)
67+
i18n (>= 1.6, < 2)
68+
minitest (>= 5.1)
69+
tzinfo (~> 2.0)
70+
zeitwerk (~> 2.3)
71+
addressable (2.8.0)
72+
public_suffix (>= 2.0.2, < 5.0)
73+
bindex (0.8.1)
74+
bootsnap (1.9.1)
75+
msgpack (~> 1.0)
76+
builder (3.2.4)
77+
byebug (11.1.3)
78+
capybara (3.35.3)
79+
addressable
80+
mini_mime (>= 0.1.3)
81+
nokogiri (~> 1.8)
82+
rack (>= 1.6.0)
83+
rack-test (>= 0.6.3)
84+
regexp_parser (>= 1.5, < 3.0)
85+
xpath (~> 3.2)
86+
childprocess (4.1.0)
87+
concurrent-ruby (1.1.9)
88+
crass (1.0.6)
89+
erubi (1.10.0)
90+
ffi (1.15.4)
91+
globalid (0.5.2)
92+
activesupport (>= 5.0)
93+
i18n (1.8.10)
94+
concurrent-ruby (~> 1.0)
95+
jbuilder (2.11.2)
96+
activesupport (>= 5.0.0)
97+
listen (3.7.0)
98+
rb-fsevent (~> 0.10, >= 0.10.3)
99+
rb-inotify (~> 0.9, >= 0.9.10)
100+
loofah (2.12.0)
101+
crass (~> 1.0.2)
102+
nokogiri (>= 1.5.9)
103+
mail (2.7.1)
104+
mini_mime (>= 0.1.1)
105+
marcel (1.0.2)
106+
method_source (1.0.0)
107+
mini_mime (1.1.2)
108+
minitest (5.14.4)
109+
msgpack (1.4.2)
110+
nio4r (2.5.8)
111+
nokogiri (1.12.5-x86_64-darwin)
112+
racc (~> 1.4)
113+
pg (1.2.3)
114+
public_suffix (4.0.6)
115+
puma (5.5.2)
116+
nio4r (~> 2.0)
117+
racc (1.6.0)
118+
rack (2.2.3)
119+
rack-mini-profiler (2.3.3)
120+
rack (>= 1.2.0)
121+
rack-proxy (0.7.0)
122+
rack
123+
rack-test (1.1.0)
124+
rack (>= 1.0, < 3)
125+
rails (6.1.4.1)
126+
actioncable (= 6.1.4.1)
127+
actionmailbox (= 6.1.4.1)
128+
actionmailer (= 6.1.4.1)
129+
actionpack (= 6.1.4.1)
130+
actiontext (= 6.1.4.1)
131+
actionview (= 6.1.4.1)
132+
activejob (= 6.1.4.1)
133+
activemodel (= 6.1.4.1)
134+
activerecord (= 6.1.4.1)
135+
activestorage (= 6.1.4.1)
136+
activesupport (= 6.1.4.1)
137+
bundler (>= 1.15.0)
138+
railties (= 6.1.4.1)
139+
sprockets-rails (>= 2.0.0)
140+
rails-dom-testing (2.0.3)
141+
activesupport (>= 4.2.0)
142+
nokogiri (>= 1.6)
143+
rails-html-sanitizer (1.4.2)
144+
loofah (~> 2.3)
145+
railties (6.1.4.1)
146+
actionpack (= 6.1.4.1)
147+
activesupport (= 6.1.4.1)
148+
method_source
149+
rake (>= 0.13)
150+
thor (~> 1.0)
151+
rake (13.0.6)
152+
rb-fsevent (0.11.0)
153+
rb-inotify (0.10.1)
154+
ffi (~> 1.0)
155+
regexp_parser (2.1.1)
156+
rexml (3.2.5)
157+
rubyzip (2.3.2)
158+
sass-rails (6.0.0)
159+
sassc-rails (~> 2.1, >= 2.1.1)
160+
sassc (2.4.0)
161+
ffi (~> 1.9)
162+
sassc-rails (2.1.2)
163+
railties (>= 4.0.0)
164+
sassc (>= 2.0)
165+
sprockets (> 3.0)
166+
sprockets-rails
167+
tilt
168+
selenium-webdriver (4.0.2)
169+
childprocess (>= 0.5, < 5.0)
170+
rexml (~> 3.2, >= 3.2.5)
171+
rubyzip (>= 1.2.2)
172+
semantic_range (3.0.0)
173+
spring (3.0.0)
174+
sprockets (4.0.2)
175+
concurrent-ruby (~> 1.0)
176+
rack (> 1, < 3)
177+
sprockets-rails (3.2.2)
178+
actionpack (>= 4.0)
179+
activesupport (>= 4.0)
180+
sprockets (>= 3.0.0)
181+
thor (1.1.0)
182+
tilt (2.0.10)
183+
turbolinks (5.2.1)
184+
turbolinks-source (~> 5.2)
185+
turbolinks-source (5.2.0)
186+
tzinfo (2.0.4)
187+
concurrent-ruby (~> 1.0)
188+
web-console (4.1.0)
189+
actionview (>= 6.0.0)
190+
activemodel (>= 6.0.0)
191+
bindex (>= 0.4.0)
192+
railties (>= 6.0.0)
193+
webdrivers (5.0.0)
194+
nokogiri (~> 1.6)
195+
rubyzip (>= 1.3.0)
196+
selenium-webdriver (~> 4.0)
197+
webpacker (5.4.3)
198+
activesupport (>= 5.2)
199+
rack-proxy (>= 0.6.1)
200+
railties (>= 5.2)
201+
semantic_range (>= 2.3.0)
202+
websocket-driver (0.7.5)
203+
websocket-extensions (>= 0.1.0)
204+
websocket-extensions (0.1.5)
205+
xpath (3.2.0)
206+
nokogiri (~> 1.8)
207+
zeitwerk (2.4.2)
208+
209+
PLATFORMS
210+
x86_64-darwin-20
211+
212+
DEPENDENCIES
213+
bootsnap (>= 1.4.4)
214+
byebug
215+
capybara (>= 3.26)
216+
faker!
217+
jbuilder (~> 2.7)
218+
listen (~> 3.3)
219+
pg (~> 1.1)
220+
puma (~> 5.0)
221+
rack-mini-profiler (~> 2.0)
222+
rails (~> 6.1.4, >= 6.1.4.1)
223+
sass-rails (>= 6)
224+
selenium-webdriver
225+
spring
226+
turbolinks (~> 5)
227+
web-console (>= 4.1.0)
228+
webdrivers
229+
webpacker (~> 5.0)
230+
231+
RUBY VERSION
232+
ruby 3.0.2p107
233+
234+
BUNDLED WITH
235+
2.2.22

Rakefile

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# Add your own tasks in files placed in lib/tasks ending in .rake,
2+
# for example lib/tasks/capistrano.rake, and they will automatically be available to Rake.
3+
4+
require_relative "config/application"
5+
6+
Rails.application.load_tasks

app/assets/config/manifest.js

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
//= link_tree ../images
2+
//= link_directory ../stylesheets .css

app/assets/images/.keep

Whitespace-only changes.
+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
/*
2+
* This is a manifest file that'll be compiled into application.css, which will include all the files
3+
* listed below.
4+
*
5+
* Any CSS and SCSS file within this directory, lib/assets/stylesheets, or any plugin's
6+
* vendor/assets/stylesheets directory can be referenced here using a relative path.
7+
*
8+
* You're free to add application-wide styles to this file and they'll appear at the bottom of the
9+
* compiled file so the styles you add here take precedence over styles defined in any other CSS/SCSS
10+
* files in this directory. Styles in this file should be added after the last require_* statement.
11+
* It is generally better to create a new file per style scope.
12+
*
13+
*= require_tree .
14+
*= require_self
15+
*/

app/assets/stylesheets/home.scss

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
// Place all the styles related to the Home controller here.
2+
// They will automatically be included in application.css.
3+
// You can use Sass (SCSS) here: https://sass-lang.com/
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
module ApplicationCable
2+
class Channel < ActionCable::Channel::Base
3+
end
4+
end
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
module ApplicationCable
2+
class Connection < ActionCable::Connection::Base
3+
end
4+
end
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
class ApplicationController < ActionController::Base
2+
end

app/controllers/concerns/.keep

Whitespace-only changes.

app/controllers/home_controller.rb

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
class HomeController < ApplicationController
2+
def index
3+
end
4+
end

app/helpers/application_helper.rb

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
module ApplicationHelper
2+
end

app/helpers/home_helper.rb

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
module HomeHelper
2+
end

app/javascript/channels/consumer.js

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
// Action Cable provides the framework to deal with WebSockets in Rails.
2+
// You can generate new channels where WebSocket features live using the `bin/rails generate channel` command.
3+
4+
import { createConsumer } from "@rails/actioncable"
5+
6+
export default createConsumer()

app/javascript/channels/index.js

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
// Load all the channels within this directory and all subdirectories.
2+
// Channel files must be named *_channel.js.
3+
4+
const channels = require.context('.', true, /_channel\.js$/)
5+
channels.keys().forEach(channels)

0 commit comments

Comments
 (0)