diff options
Diffstat (limited to 'app')
-rw-r--r-- | app/assets/config/wittle_manifest.js | 1 | ||||
-rw-r--r-- | app/assets/images/wittle/.keep | 0 | ||||
-rw-r--r-- | app/assets/stylesheets/wittle/application.css | 15 | ||||
-rw-r--r-- | app/controllers/concerns/.keep | 0 | ||||
-rw-r--r-- | app/controllers/wittle/application_controller.rb | 4 | ||||
-rw-r--r-- | app/helpers/wittle/application_helper.rb | 4 | ||||
-rw-r--r-- | app/jobs/wittle/application_job.rb | 4 | ||||
-rw-r--r-- | app/mailers/wittle/application_mailer.rb | 6 | ||||
-rw-r--r-- | app/models/concerns/.keep | 0 | ||||
-rw-r--r-- | app/models/wittle/application_record.rb | 5 | ||||
-rw-r--r-- | app/views/layouts/wittle/application.html.erb | 15 |
11 files changed, 54 insertions, 0 deletions
diff --git a/app/assets/config/wittle_manifest.js b/app/assets/config/wittle_manifest.js new file mode 100644 index 0000000..af556d6 --- /dev/null +++ b/app/assets/config/wittle_manifest.js | |||
@@ -0,0 +1 @@ | |||
//= link_directory ../stylesheets/wittle .css | |||
diff --git a/app/assets/images/wittle/.keep b/app/assets/images/wittle/.keep new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/app/assets/images/wittle/.keep | |||
diff --git a/app/assets/stylesheets/wittle/application.css b/app/assets/stylesheets/wittle/application.css new file mode 100644 index 0000000..0ebd7fe --- /dev/null +++ b/app/assets/stylesheets/wittle/application.css | |||
@@ -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, vendor/assets/stylesheets, | ||
6 | * or any plugin's 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 | */ | ||
diff --git a/app/controllers/concerns/.keep b/app/controllers/concerns/.keep new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/app/controllers/concerns/.keep | |||
diff --git a/app/controllers/wittle/application_controller.rb b/app/controllers/wittle/application_controller.rb new file mode 100644 index 0000000..252a28e --- /dev/null +++ b/app/controllers/wittle/application_controller.rb | |||
@@ -0,0 +1,4 @@ | |||
1 | module Wittle | ||
2 | class ApplicationController < ActionController::Base | ||
3 | end | ||
4 | end | ||
diff --git a/app/helpers/wittle/application_helper.rb b/app/helpers/wittle/application_helper.rb new file mode 100644 index 0000000..8fcb2c9 --- /dev/null +++ b/app/helpers/wittle/application_helper.rb | |||
@@ -0,0 +1,4 @@ | |||
1 | module Wittle | ||
2 | module ApplicationHelper | ||
3 | end | ||
4 | end | ||
diff --git a/app/jobs/wittle/application_job.rb b/app/jobs/wittle/application_job.rb new file mode 100644 index 0000000..b0ab02e --- /dev/null +++ b/app/jobs/wittle/application_job.rb | |||
@@ -0,0 +1,4 @@ | |||
1 | module Wittle | ||
2 | class ApplicationJob < ActiveJob::Base | ||
3 | end | ||
4 | end | ||
diff --git a/app/mailers/wittle/application_mailer.rb b/app/mailers/wittle/application_mailer.rb new file mode 100644 index 0000000..5a563c4 --- /dev/null +++ b/app/mailers/wittle/application_mailer.rb | |||
@@ -0,0 +1,6 @@ | |||
1 | module Wittle | ||
2 | class ApplicationMailer < ActionMailer::Base | ||
3 | default from: "from@example.com" | ||
4 | layout "mailer" | ||
5 | end | ||
6 | end | ||
diff --git a/app/models/concerns/.keep b/app/models/concerns/.keep new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/app/models/concerns/.keep | |||
diff --git a/app/models/wittle/application_record.rb b/app/models/wittle/application_record.rb new file mode 100644 index 0000000..be1dfe5 --- /dev/null +++ b/app/models/wittle/application_record.rb | |||
@@ -0,0 +1,5 @@ | |||
1 | module Wittle | ||
2 | class ApplicationRecord < ActiveRecord::Base | ||
3 | self.abstract_class = true | ||
4 | end | ||
5 | end | ||
diff --git a/app/views/layouts/wittle/application.html.erb b/app/views/layouts/wittle/application.html.erb new file mode 100644 index 0000000..ba450d1 --- /dev/null +++ b/app/views/layouts/wittle/application.html.erb | |||
@@ -0,0 +1,15 @@ | |||
1 | <!DOCTYPE html> | ||
2 | <html> | ||
3 | <head> | ||
4 | <title>Wittle</title> | ||
5 | <%= csrf_meta_tags %> | ||
6 | <%= csp_meta_tag %> | ||
7 | |||
8 | <%= stylesheet_link_tag "wittle/application", media: "all" %> | ||
9 | </head> | ||
10 | <body> | ||
11 | |||
12 | <%= yield %> | ||
13 | |||
14 | </body> | ||
15 | </html> | ||