Skip to content

Commit ff9e400

Browse files
committed
Working...
0 parents  commit ff9e400

Some content is hidden

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

78 files changed

+1285
-0
lines changed

.DS_Store

6 KB
Binary file not shown.

.idea/.gitignore

Lines changed: 8 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/misc.xml

Lines changed: 4 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/modules.xml

Lines changed: 8 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/template.iml

Lines changed: 79 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/vcs.xml

Lines changed: 7 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Procfile.dev

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
web: bin/rails server -p 3000
2+
vite: bin/vite dev

README.md

Whitespace-only changes.

Rakefile

Lines changed: 6 additions & 0 deletions
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/.DS_Store

8 KB
Binary file not shown.

app/assets/.DS_Store

6 KB
Binary file not shown.

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

app/frontend/.DS_Store

6 KB
Binary file not shown.
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
<template>
2+
<h3>This is the homepage component</h3>
3+
<h6>You can find me in: <span class="px-2 py-1 bg-slate-100">frontend/components/views/Home.vue</span></h6>
4+
</template>
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
import "./main.scss";
2+
3+
import { createApp } from 'vue';
4+
import Home from "../components/views/Home.vue";
5+
6+
if (document.querySelector('#home')) {
7+
const home = createApp(Home);
8+
home.mount('#home');
9+
}

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.

app/views/.DS_Store

6 KB
Binary file not shown.
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: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
<h1>Pages#home</h1>
2+
<p>Find me in app/views/pages/home.html.erb</p>
3+
<hr class="my-8">
4+
<div id="home"></div>

config/.DS_Store

6 KB
Binary file not shown.

config/application.rb

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
require_relative "boot"
2+
3+
require "rails/all"
4+
5+
# Require the gems listed in Gemfile, including any gems
6+
# you've limited to :test, :development, or :production.
7+
Bundler.require(*Rails.groups)
8+
9+
module Rails7VueVite
10+
class Application < Rails::Application
11+
# Initialize configuration defaults for originally generated Rails version.
12+
config.load_defaults 7.0
13+
14+
# Configuration for the application, engines, and railties goes here.
15+
#
16+
# These settings can be overridden in specific environments using the files
17+
# in config/environments, which are processed later.
18+
#
19+
# config.time_zone = "Central Time (US & Canada)"
20+
# config.eager_load_paths << Rails.root.join("extras")
21+
end
22+
end

config/boot.rb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../Gemfile", __dir__)
2+
3+
require "bundler/setup" # Set up gems listed in the Gemfile.
4+
require "bootsnap/setup" # Speed up boot time by caching expensive operations.

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

config/credentials.yml.enc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
qZ5xXPXzojbMgHdvUoQzKQqgHihOlaa8gkofEHXYHlSPub0rOOz/8YS8V867k8sQy0YwbfhL8M8N/p6MHmIyM6/M8BFKdqBAOAFj6eX55zIMjTVw2emdqEN8FATQTd7mlj2yycefps3fQi5OEYpek1IgmUwtYA2Z1i2Nk5uTb32Q2swZmqlSxg3OfyHDltyQXOFvGDDtZuCuOmTGd9tQlK60hV+drHGba/3Hi0YZ1KCcBDFfPyDmQnQYyCFo2LnJF+abm14EoRo8M9gMtHjhlc5vMhrl6TNxQ6W+jHeHBF1FIMDtjMbdrLphf6lkr8LcsBE3mP4lLXS9wNmvnk/gGKNafmyLjvK9aTuXHOV69HZ7NjydoZMSqf3jKrxOgMNSu5YqMcDKj8UDvqE7FXtbZP1qBs+DDgN7+Y5J--nazSyCeK7vk0qLfl--7IcSBi/avYlDEtNp53dzOw==

0 commit comments

Comments
 (0)