From 5e62e771bf14f58dd1622d2e3631309caa201349 Mon Sep 17 00:00:00 2001 From: Kelly Rauchenberger Date: Sat, 16 Sep 2017 18:46:55 -0400 Subject: Initial commit --- app/assets/config/pokeviewer_manifest.js | 2 ++ app/assets/images/pokeviewer/.keep | 0 app/assets/javascripts/pokeviewer/application.js | 13 +++++++++++++ app/assets/stylesheets/pokeviewer/application.css | 15 +++++++++++++++ app/controllers/pokeviewer/application_controller.rb | 5 +++++ app/helpers/pokeviewer/application_helper.rb | 4 ++++ app/jobs/pokeviewer/application_job.rb | 4 ++++ app/mailers/pokeviewer/application_mailer.rb | 6 ++++++ app/models/pokeviewer/application_record.rb | 5 +++++ app/views/layouts/pokeviewer/application.html.erb | 14 ++++++++++++++ 10 files changed, 68 insertions(+) create mode 100644 app/assets/config/pokeviewer_manifest.js create mode 100644 app/assets/images/pokeviewer/.keep create mode 100644 app/assets/javascripts/pokeviewer/application.js create mode 100644 app/assets/stylesheets/pokeviewer/application.css create mode 100644 app/controllers/pokeviewer/application_controller.rb create mode 100644 app/helpers/pokeviewer/application_helper.rb create mode 100644 app/jobs/pokeviewer/application_job.rb create mode 100644 app/mailers/pokeviewer/application_mailer.rb create mode 100644 app/models/pokeviewer/application_record.rb create mode 100644 app/views/layouts/pokeviewer/application.html.erb (limited to 'app') diff --git a/app/assets/config/pokeviewer_manifest.js b/app/assets/config/pokeviewer_manifest.js new file mode 100644 index 0000000..3b3efbb --- /dev/null +++ b/app/assets/config/pokeviewer_manifest.js @@ -0,0 +1,2 @@ +//= link_directory ../javascripts/pokeviewer .js +//= link_directory ../stylesheets/pokeviewer .css diff --git a/app/assets/images/pokeviewer/.keep b/app/assets/images/pokeviewer/.keep new file mode 100644 index 0000000..e69de29 diff --git a/app/assets/javascripts/pokeviewer/application.js b/app/assets/javascripts/pokeviewer/application.js new file mode 100644 index 0000000..e54c646 --- /dev/null +++ b/app/assets/javascripts/pokeviewer/application.js @@ -0,0 +1,13 @@ +// This is a manifest file that'll be compiled into application.js, which will include all the files +// listed below. +// +// Any JavaScript/Coffee file within this directory, lib/assets/javascripts, vendor/assets/javascripts, +// or any plugin's vendor/assets/javascripts directory can be referenced here using a relative path. +// +// It's not advisable to add code directly here, but if you do, it'll appear at the bottom of the +// compiled file. JavaScript code in this file should be added after the last require_* statement. +// +// Read Sprockets README (https://github.com/rails/sprockets#sprockets-directives) for details +// about supported directives. +// +//= require_tree . diff --git a/app/assets/stylesheets/pokeviewer/application.css b/app/assets/stylesheets/pokeviewer/application.css new file mode 100644 index 0000000..0ebd7fe --- /dev/null +++ b/app/assets/stylesheets/pokeviewer/application.css @@ -0,0 +1,15 @@ +/* + * This is a manifest file that'll be compiled into application.css, which will include all the files + * listed below. + * + * Any CSS and SCSS file within this directory, lib/assets/stylesheets, vendor/assets/stylesheets, + * or any plugin's vendor/assets/stylesheets directory can be referenced here using a relative path. + * + * You're free to add application-wide styles to this file and they'll appear at the bottom of the + * compiled file so the styles you add here take precedence over styles defined in any other CSS/SCSS + * files in this directory. Styles in this file should be added after the last require_* statement. + * It is generally better to create a new file per style scope. + * + *= require_tree . + *= require_self + */ diff --git a/app/controllers/pokeviewer/application_controller.rb b/app/controllers/pokeviewer/application_controller.rb new file mode 100644 index 0000000..7f6b42c --- /dev/null +++ b/app/controllers/pokeviewer/application_controller.rb @@ -0,0 +1,5 @@ +module Pokeviewer + class ApplicationController < ActionController::Base + protect_from_forgery with: :exception + end +end diff --git a/app/helpers/pokeviewer/application_helper.rb b/app/helpers/pokeviewer/application_helper.rb new file mode 100644 index 0000000..40557f2 --- /dev/null +++ b/app/helpers/pokeviewer/application_helper.rb @@ -0,0 +1,4 @@ +module Pokeviewer + module ApplicationHelper + end +end diff --git a/app/jobs/pokeviewer/application_job.rb b/app/jobs/pokeviewer/application_job.rb new file mode 100644 index 0000000..19ba955 --- /dev/null +++ b/app/jobs/pokeviewer/application_job.rb @@ -0,0 +1,4 @@ +module Pokeviewer + class ApplicationJob < ActiveJob::Base + end +end diff --git a/app/mailers/pokeviewer/application_mailer.rb b/app/mailers/pokeviewer/application_mailer.rb new file mode 100644 index 0000000..70398bc --- /dev/null +++ b/app/mailers/pokeviewer/application_mailer.rb @@ -0,0 +1,6 @@ +module Pokeviewer + class ApplicationMailer < ActionMailer::Base + default from: 'from@example.com' + layout 'mailer' + end +end diff --git a/app/models/pokeviewer/application_record.rb b/app/models/pokeviewer/application_record.rb new file mode 100644 index 0000000..6d07f27 --- /dev/null +++ b/app/models/pokeviewer/application_record.rb @@ -0,0 +1,5 @@ +module Pokeviewer + class ApplicationRecord < ActiveRecord::Base + self.abstract_class = true + end +end diff --git a/app/views/layouts/pokeviewer/application.html.erb b/app/views/layouts/pokeviewer/application.html.erb new file mode 100644 index 0000000..192490c --- /dev/null +++ b/app/views/layouts/pokeviewer/application.html.erb @@ -0,0 +1,14 @@ + + + + Pokeviewer + <%= stylesheet_link_tag "pokeviewer/application", media: "all" %> + <%= javascript_include_tag "pokeviewer/application" %> + <%= csrf_meta_tags %> + + + +<%= yield %> + + + -- cgit 1.4.1