Skip to content

Commit 696094a

Browse files
committed
Working on new templates and readme's. Need to test raw to install with --normal flag
1 parent 7a39780 commit 696094a

File tree

101 files changed

+748
-39
lines changed

Some content is hidden

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

101 files changed

+748
-39
lines changed

.eslintrc-react.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,8 @@
1717
"sourceType": "module"
1818
},
1919
"plugins": [
20-
"react"
20+
"react",
21+
"prettier"
2122
],
2223
"rules": {
2324
"react/react-in-jsx-scope": "on"

.eslintrc-vue.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@
1414
"sourceType": "module"
1515
},
1616
"plugins": [
17-
"vue"
17+
"vue",
18+
"prettier"
1819
],
1920
"rules": {
2021
}

.eslintrc.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
"es2021": true
55
},
66
"extends": [
7-
"plugin:vue/essential",
87
"eslint:recommended",
98
"plugin:prettier/recommended"
109
],
@@ -13,7 +12,7 @@
1312
"sourceType": "module"
1413
},
1514
"plugins": [
16-
15+
"prettier"
1716
],
1817
"rules": {
1918
}

README_BOOTSTRAP.md

Lines changed: 1 addition & 0 deletions

README_BULMA.md

Lines changed: 1 addition & 0 deletions

app/assets/config/manifest.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
//= link_tree ../images
2+
//= link_directory ../stylesheets .css
3+
//= link_tree ../builds

app/assets/images/.keep

Whitespace-only changes.
Lines changed: 4 additions & 0 deletions
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
Lines changed: 4 additions & 0 deletions
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
Lines changed: 2 additions & 0 deletions
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/pages_controller.rb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
class PagesController < ApplicationController
2+
def home
3+
end
4+
end
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
import "./main.scss";

app/frontend/entrypoints/main.scss

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
@import "tailwindcss/base";
2+
@import "tailwindcss/components";
3+
4+
@import "./stylesheets/global";
5+
6+
@import "tailwindcss/utilities";
Lines changed: 87 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,87 @@
1+
html {
2+
scroll-behavior: smooth;
3+
}
4+
5+
body {
6+
@apply text-base text-slate-800 leading-5 bg-gray-50;
7+
}
8+
9+
h1 {
10+
font-size: 2.75em;
11+
}
12+
13+
h2 {
14+
font-size: 2.25em;
15+
}
16+
17+
h3 {
18+
font-size: 2em;
19+
}
20+
21+
h4 {
22+
font-size: 1.625em;
23+
}
24+
25+
h5 {
26+
font-size: 1.25em;
27+
}
28+
29+
h6 {
30+
font-size: 1.125em;
31+
}
32+
33+
p {
34+
font-size: 1em;
35+
margin-bottom: 10px;
36+
}
37+
38+
h1, h2, h3, h4, h5, h6, button, a, label{
39+
@apply font-sans;
40+
}
41+
42+
h1, h2, h3, h4, h5, h6 {
43+
@apply leading-tight;
44+
}
45+
46+
h1, h2, h3 {
47+
@apply font-bold;
48+
}
49+
50+
@media screen and (max-width: 767px){
51+
h1 {
52+
font-size: 2em;
53+
}
54+
55+
h2 {
56+
font-size: 1.875em;
57+
}
58+
59+
h3 {
60+
font-size: 1.75em;
61+
}
62+
63+
h4 {
64+
font-size: 1.5em;
65+
}
66+
67+
h5 {
68+
font-size: 1.375em;
69+
}
70+
}
71+
72+
img, svg {
73+
@apply w-full h-auto;
74+
}
75+
76+
.main {
77+
@apply flex flex-col h-screen;
78+
}
79+
80+
.wrapper {
81+
@apply flex-1 relative;
82+
}
83+
84+
.container {
85+
width: 95%;
86+
@apply mx-auto py-10;
87+
}

app/helpers/application_helper.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
module ApplicationHelper
2+
end

app/helpers/pages_helper.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
module PagesHelper
2+
end

app/jobs/application_job.rb

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
class ApplicationJob < ActiveJob::Base
2+
# Automatically retry jobs that encountered a deadlock
3+
# retry_on ActiveRecord::Deadlocked
4+
5+
# Most jobs are safe to ignore if the underlying records are no longer available
6+
# discard_on ActiveJob::DeserializationError
7+
end

app/mailers/application_mailer.rb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
class ApplicationMailer < ActionMailer::Base
2+
default from: "[email protected]"
3+
layout "mailer"
4+
end

app/models/application_record.rb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
class ApplicationRecord < ActiveRecord::Base
2+
primary_abstract_class
3+
end

app/models/concerns/.keep

Whitespace-only changes.
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
<!DOCTYPE html>
2+
<html>
3+
<head>
4+
<title>Rails7VueVite</title>
5+
<meta name="viewport" content="width=device-width,initial-scale=1">
6+
<%= csrf_meta_tags %>
7+
<%= csp_meta_tag %>
8+
<%= vite_client_tag %>
9+
<%= vite_javascript_tag 'application' %>
10+
</head>
11+
12+
<body>
13+
<main class="container mx-auto mt-28 px-5 flex flex-col">
14+
<%= yield %>
15+
</main>
16+
</body>
17+
</html>

app/views/layouts/mailer.html.erb

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<!DOCTYPE html>
2+
<html>
3+
<head>
4+
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
5+
<style>
6+
/* Email styles need to be inline */
7+
</style>
8+
</head>
9+
10+
<body>
11+
<%= yield %>
12+
</body>
13+
</html>

app/views/layouts/mailer.text.erb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
<%= yield %>

app/views/pages/home.html.erb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
<h1>Pages#home</h1>
2+
<p>Find me in app/views/pages/home.html.erb</p>
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
//= link_tree ../images
2+
//= link_directory ../stylesheets .css
3+
//= link_tree ../builds

bootstrap/app/assets/images/.keep

Whitespace-only changes.
Lines changed: 4 additions & 0 deletions
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
Lines changed: 4 additions & 0 deletions
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
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
class ApplicationController < ActionController::Base
2+
end

bootstrap/app/controllers/concerns/.keep

Whitespace-only changes.
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
class PagesController < ApplicationController
2+
def home
3+
end
4+
end
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
import "./main.scss";
2+
import "@popperjs/core";
3+
import "bootstrap"
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
@import "bootstrap";
2+
3+
@import "./stylesheets/global";
Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
html {
2+
scroll-behavior: smooth;
3+
}
4+
5+
body {
6+
font-size: 16px;
7+
color: #232323;
8+
line-height: 1.5;
9+
}
10+
11+
h1 {
12+
font-size: 2.75em;
13+
}
14+
15+
h2 {
16+
font-size: 2.25em;
17+
}
18+
19+
h3 {
20+
font-size: 2em;
21+
}
22+
23+
h4 {
24+
font-size: 1.625em;
25+
}
26+
27+
h5 {
28+
font-size: 1.25em;
29+
}
30+
31+
h6 {
32+
font-size: 1.125em;
33+
}
34+
35+
p {
36+
font-size: 1em;
37+
margin-bottom: 10px;
38+
}
39+
40+
@media screen and (max-width: 767px){
41+
h1 {
42+
font-size: 2em;
43+
}
44+
45+
h2 {
46+
font-size: 1.875em;
47+
}
48+
49+
h3 {
50+
font-size: 1.75em;
51+
}
52+
53+
h4 {
54+
font-size: 1.5em;
55+
}
56+
57+
h5 {
58+
font-size: 1.375em;
59+
}
60+
}
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
module ApplicationHelper
2+
end

bootstrap/app/helpers/pages_helper.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
module PagesHelper
2+
end

bootstrap/app/jobs/application_job.rb

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
class ApplicationJob < ActiveJob::Base
2+
# Automatically retry jobs that encountered a deadlock
3+
# retry_on ActiveRecord::Deadlocked
4+
5+
# Most jobs are safe to ignore if the underlying records are no longer available
6+
# discard_on ActiveJob::DeserializationError
7+
end
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
class ApplicationMailer < ActionMailer::Base
2+
default from: "[email protected]"
3+
layout "mailer"
4+
end
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
class ApplicationRecord < ActiveRecord::Base
2+
primary_abstract_class
3+
end

bootstrap/app/models/concerns/.keep

Whitespace-only changes.
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
<!DOCTYPE html>
2+
<html>
3+
<head>
4+
<title>Rails7VueVite</title>
5+
<meta name="viewport" content="width=device-width,initial-scale=1">
6+
<%= csrf_meta_tags %>
7+
<%= csp_meta_tag %>
8+
<%= vite_client_tag %>
9+
<%= vite_javascript_tag 'application' %>
10+
</head>
11+
12+
<body>
13+
<main class="container mx-auto py-4 px-4 d-flex flex-column">
14+
<%= yield %>
15+
</main>
16+
</body>
17+
</html>
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<!DOCTYPE html>
2+
<html>
3+
<head>
4+
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
5+
<style>
6+
/* Email styles need to be inline */
7+
</style>
8+
</head>
9+
10+
<body>
11+
<%= yield %>
12+
</body>
13+
</html>
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
<%= yield %>
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<h1>Pages#home</h1>
2+
<p>Find me in app/views/pages/home.html.erb</p>
3+
<div class="dropdown">
4+
<button class="btn btn-secondary dropdown-toggle" type="button" id="dropdownMenuButton1" data-bs-toggle="dropdown" aria-expanded="false">
5+
Dropdown button
6+
</button>
7+
<ul class="dropdown-menu" aria-labelledby="dropdownMenuButton1">
8+
<li><a class="dropdown-item" href="#">Action</a></li>
9+
<li><a class="dropdown-item" href="#">Another action</a></li>
10+
<li><a class="dropdown-item" href="#">Something else here</a></li>
11+
</ul>
12+
</div>
13+

bootstrap/config/cable.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
development:
2+
adapter: async
3+
4+
test:
5+
adapter: test
6+
7+
production:
8+
adapter: redis
9+
url: <%= ENV.fetch("REDIS_URL") { "redis://localhost:6379/1" } %>
10+
channel_prefix: rails_7_vue_vite_production

bootstrap/lib/assets/.keep

Whitespace-only changes.

bootstrap/lib/tasks/.keep

Whitespace-only changes.

0 commit comments

Comments
 (0)