From d09db2d6d0727faba8e5078900f2fbd1e18ea49f Mon Sep 17 00:00:00 2001 From: Star Rauchenberger Date: Fri, 27 Oct 2023 23:51:23 -0400 Subject: it's an engine now! --- app/assets/config/wittle_manifest.js | 1 + app/assets/images/wittle/.keep | 0 app/assets/stylesheets/wittle/application.css | 15 +++++++++++++++ app/controllers/concerns/.keep | 0 app/controllers/wittle/application_controller.rb | 4 ++++ app/helpers/wittle/application_helper.rb | 4 ++++ app/jobs/wittle/application_job.rb | 4 ++++ app/mailers/wittle/application_mailer.rb | 6 ++++++ app/models/concerns/.keep | 0 app/models/wittle/application_record.rb | 5 +++++ app/views/layouts/wittle/application.html.erb | 15 +++++++++++++++ 11 files changed, 54 insertions(+) create mode 100644 app/assets/config/wittle_manifest.js create mode 100644 app/assets/images/wittle/.keep create mode 100644 app/assets/stylesheets/wittle/application.css create mode 100644 app/controllers/concerns/.keep create mode 100644 app/controllers/wittle/application_controller.rb create mode 100644 app/helpers/wittle/application_helper.rb create mode 100644 app/jobs/wittle/application_job.rb create mode 100644 app/mailers/wittle/application_mailer.rb create mode 100644 app/models/concerns/.keep create mode 100644 app/models/wittle/application_record.rb create mode 100644 app/views/layouts/wittle/application.html.erb (limited to 'app') 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 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 @@ +/* + * 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/concerns/.keep b/app/controllers/concerns/.keep new file mode 100644 index 0000000..e69de29 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 @@ +module Wittle + class ApplicationController < ActionController::Base + end +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 @@ +module Wittle + module ApplicationHelper + end +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 @@ +module Wittle + class ApplicationJob < ActiveJob::Base + end +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 @@ +module Wittle + class ApplicationMailer < ActionMailer::Base + default from: "from@example.com" + layout "mailer" + end +end diff --git a/app/models/concerns/.keep b/app/models/concerns/.keep new file mode 100644 index 0000000..e69de29 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 @@ +module Wittle + class ApplicationRecord < ActiveRecord::Base + self.abstract_class = true + end +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 @@ + + + + Wittle + <%= csrf_meta_tags %> + <%= csp_meta_tag %> + + <%= stylesheet_link_tag "wittle/application", media: "all" %> + + + +<%= yield %> + + + -- cgit 1.4.1