about summary refs log tree commit diff stats
path: root/app
diff options
context:
space:
mode:
Diffstat (limited to 'app')
-rw-r--r--app/assets/config/pokeviewer_manifest.js2
-rw-r--r--app/assets/images/pokeviewer/.keep0
-rw-r--r--app/assets/javascripts/pokeviewer/application.js13
-rw-r--r--app/assets/stylesheets/pokeviewer/application.css15
-rw-r--r--app/controllers/pokeviewer/application_controller.rb5
-rw-r--r--app/helpers/pokeviewer/application_helper.rb4
-rw-r--r--app/jobs/pokeviewer/application_job.rb4
-rw-r--r--app/mailers/pokeviewer/application_mailer.rb6
-rw-r--r--app/models/pokeviewer/application_record.rb5
-rw-r--r--app/views/layouts/pokeviewer/application.html.erb14
10 files changed, 68 insertions, 0 deletions
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 @@
1//= link_directory ../javascripts/pokeviewer .js
2//= 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 --- /dev/null +++ b/app/assets/images/pokeviewer/.keep
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 @@
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, vendor/assets/javascripts,
5// or any plugin's 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_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 @@
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/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 @@
1module Pokeviewer
2 class ApplicationController < ActionController::Base
3 protect_from_forgery with: :exception
4 end
5end
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 @@
1module Pokeviewer
2 module ApplicationHelper
3 end
4end
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 @@
1module Pokeviewer
2 class ApplicationJob < ActiveJob::Base
3 end
4end
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 @@
1module Pokeviewer
2 class ApplicationMailer < ActionMailer::Base
3 default from: 'from@example.com'
4 layout 'mailer'
5 end
6end
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 @@
1module Pokeviewer
2 class ApplicationRecord < ActiveRecord::Base
3 self.abstract_class = true
4 end
5end
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 @@
1<!DOCTYPE html>
2<html>
3<head>
4 <title>Pokeviewer</title>
5 <%= stylesheet_link_tag "pokeviewer/application", media: "all" %>
6 <%= javascript_include_tag "pokeviewer/application" %>
7 <%= csrf_meta_tags %>
8</head>
9<body>
10
11<%= yield %>
12
13</body>
14</html>