diff options
| author | Kelly Rauchenberger <fefferburbia@gmail.com> | 2017-06-24 14:20:22 -0400 |
|---|---|---|
| committer | Kelly Rauchenberger <fefferburbia@gmail.com> | 2017-06-24 14:20:22 -0400 |
| commit | 5581530930129d7854ed5d99d058939ad9c790c2 (patch) | |
| tree | 157515f64b34a86e0f6d33dc641e06a7ecc2982c /app | |
| download | thoughts-5581530930129d7854ed5d99d058939ad9c790c2.tar.gz thoughts-5581530930129d7854ed5d99d058939ad9c790c2.tar.bz2 thoughts-5581530930129d7854ed5d99d058939ad9c790c2.zip | |
Initial commit
Diffstat (limited to 'app')
| -rw-r--r-- | app/assets/config/manifest.js | 3 | ||||
| -rw-r--r-- | app/assets/images/.keep | 0 | ||||
| -rw-r--r-- | app/assets/javascripts/application.js | 15 | ||||
| -rw-r--r-- | app/assets/javascripts/cable.js | 13 | ||||
| -rw-r--r-- | app/assets/javascripts/channels/.keep | 0 | ||||
| -rw-r--r-- | app/assets/stylesheets/application.css | 15 | ||||
| -rw-r--r-- | app/channels/application_cable/channel.rb | 4 | ||||
| -rw-r--r-- | app/channels/application_cable/connection.rb | 4 | ||||
| -rw-r--r-- | app/controllers/application_controller.rb | 3 | ||||
| -rw-r--r-- | app/controllers/concerns/.keep | 0 | ||||
| -rw-r--r-- | app/helpers/application_helper.rb | 2 | ||||
| -rw-r--r-- | app/jobs/application_job.rb | 2 | ||||
| -rw-r--r-- | app/mailers/application_mailer.rb | 4 | ||||
| -rw-r--r-- | app/models/application_record.rb | 3 | ||||
| -rw-r--r-- | app/models/concerns/.keep | 0 | ||||
| -rw-r--r-- | app/views/layouts/application.html.erb | 14 | ||||
| -rw-r--r-- | app/views/layouts/mailer.html.erb | 13 | ||||
| -rw-r--r-- | app/views/layouts/mailer.text.erb | 1 |
18 files changed, 96 insertions, 0 deletions
| diff --git a/app/assets/config/manifest.js b/app/assets/config/manifest.js new file mode 100644 index 0000000..b16e53d --- /dev/null +++ b/app/assets/config/manifest.js | |||
| @@ -0,0 +1,3 @@ | |||
| 1 | //= link_tree ../images | ||
| 2 | //= link_directory ../javascripts .js | ||
| 3 | //= link_directory ../stylesheets .css | ||
| diff --git a/app/assets/images/.keep b/app/assets/images/.keep new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/app/assets/images/.keep | |||
| diff --git a/app/assets/javascripts/application.js b/app/assets/javascripts/application.js new file mode 100644 index 0000000..46b2035 --- /dev/null +++ b/app/assets/javascripts/application.js | |||
| @@ -0,0 +1,15 @@ | |||
| 1 | // This is a manifest file that'll be compiled into application.js, which will include all the files | ||
| 2 | // listed below. | ||
| 3 | // | ||
| 4 | // Any JavaScript/Coffee file within this directory, lib/assets/javascripts, or any plugin's | ||
| 5 | // vendor/assets/javascripts directory can be referenced here using a relative path. | ||
| 6 | // | ||
| 7 | // It's not advisable to add code directly here, but if you do, it'll appear at the bottom of the | ||
| 8 | // compiled file. JavaScript code in this file should be added after the last require_* statement. | ||
| 9 | // | ||
| 10 | // Read Sprockets README (https://github.com/rails/sprockets#sprockets-directives) for details | ||
| 11 | // about supported directives. | ||
| 12 | // | ||
| 13 | //= require rails-ujs | ||
| 14 | //= require turbolinks | ||
| 15 | //= require_tree . | ||
| diff --git a/app/assets/javascripts/cable.js b/app/assets/javascripts/cable.js new file mode 100644 index 0000000..739aa5f --- /dev/null +++ b/app/assets/javascripts/cable.js | |||
| @@ -0,0 +1,13 @@ | |||
| 1 | // Action Cable provides the framework to deal with WebSockets in Rails. | ||
| 2 | // You can generate new channels where WebSocket features live using the `rails generate channel` command. | ||
| 3 | // | ||
| 4 | //= require action_cable | ||
| 5 | //= require_self | ||
| 6 | //= require_tree ./channels | ||
| 7 | |||
| 8 | (function() { | ||
| 9 | this.App || (this.App = {}); | ||
| 10 | |||
| 11 | App.cable = ActionCable.createConsumer(); | ||
| 12 | |||
| 13 | }).call(this); | ||
| diff --git a/app/assets/javascripts/channels/.keep b/app/assets/javascripts/channels/.keep new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/app/assets/javascripts/channels/.keep | |||
| diff --git a/app/assets/stylesheets/application.css b/app/assets/stylesheets/application.css new file mode 100644 index 0000000..d05ea0f --- /dev/null +++ b/app/assets/stylesheets/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, 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 | */ | ||
| diff --git a/app/channels/application_cable/channel.rb b/app/channels/application_cable/channel.rb new file mode 100644 index 0000000..d672697 --- /dev/null +++ b/app/channels/application_cable/channel.rb | |||
| @@ -0,0 +1,4 @@ | |||
| 1 | module ApplicationCable | ||
| 2 | class Channel < ActionCable::Channel::Base | ||
| 3 | end | ||
| 4 | end | ||
| diff --git a/app/channels/application_cable/connection.rb b/app/channels/application_cable/connection.rb new file mode 100644 index 0000000..0ff5442 --- /dev/null +++ b/app/channels/application_cable/connection.rb | |||
| @@ -0,0 +1,4 @@ | |||
| 1 | module ApplicationCable | ||
| 2 | class Connection < ActionCable::Connection::Base | ||
| 3 | end | ||
| 4 | end | ||
| diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb new file mode 100644 index 0000000..1c07694 --- /dev/null +++ b/app/controllers/application_controller.rb | |||
| @@ -0,0 +1,3 @@ | |||
| 1 | class ApplicationController < ActionController::Base | ||
| 2 | protect_from_forgery with: :exception | ||
| 3 | end | ||
| 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/helpers/application_helper.rb b/app/helpers/application_helper.rb new file mode 100644 index 0000000..de6be79 --- /dev/null +++ b/app/helpers/application_helper.rb | |||
| @@ -0,0 +1,2 @@ | |||
| 1 | module ApplicationHelper | ||
| 2 | end | ||
| diff --git a/app/jobs/application_job.rb b/app/jobs/application_job.rb new file mode 100644 index 0000000..a009ace --- /dev/null +++ b/app/jobs/application_job.rb | |||
| @@ -0,0 +1,2 @@ | |||
| 1 | class ApplicationJob < ActiveJob::Base | ||
| 2 | end | ||
| diff --git a/app/mailers/application_mailer.rb b/app/mailers/application_mailer.rb new file mode 100644 index 0000000..286b223 --- /dev/null +++ b/app/mailers/application_mailer.rb | |||
| @@ -0,0 +1,4 @@ | |||
| 1 | class ApplicationMailer < ActionMailer::Base | ||
| 2 | default from: 'from@example.com' | ||
| 3 | layout 'mailer' | ||
| 4 | end | ||
| diff --git a/app/models/application_record.rb b/app/models/application_record.rb new file mode 100644 index 0000000..10a4cba --- /dev/null +++ b/app/models/application_record.rb | |||
| @@ -0,0 +1,3 @@ | |||
| 1 | class ApplicationRecord < ActiveRecord::Base | ||
| 2 | self.abstract_class = true | ||
| 3 | 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/views/layouts/application.html.erb b/app/views/layouts/application.html.erb new file mode 100644 index 0000000..732b30e --- /dev/null +++ b/app/views/layouts/application.html.erb | |||
| @@ -0,0 +1,14 @@ | |||
| 1 | <!DOCTYPE html> | ||
| 2 | <html> | ||
| 3 | <head> | ||
| 4 | <title>Thoughts</title> | ||
| 5 | <%= csrf_meta_tags %> | ||
| 6 | |||
| 7 | <%= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track': 'reload' %> | ||
| 8 | <%= javascript_include_tag 'application', 'data-turbolinks-track': 'reload' %> | ||
| 9 | </head> | ||
| 10 | |||
| 11 | <body> | ||
| 12 | <%= yield %> | ||
| 13 | </body> | ||
| 14 | </html> | ||
| diff --git a/app/views/layouts/mailer.html.erb b/app/views/layouts/mailer.html.erb new file mode 100644 index 0000000..cbd34d2 --- /dev/null +++ b/app/views/layouts/mailer.html.erb | |||
| @@ -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> | ||
| diff --git a/app/views/layouts/mailer.text.erb b/app/views/layouts/mailer.text.erb new file mode 100644 index 0000000..37f0bdd --- /dev/null +++ b/app/views/layouts/mailer.text.erb | |||
| @@ -0,0 +1 @@ | |||
| <%= yield %> | |||
