summary refs log tree commit diff stats
path: root/rails/test/dummy/app
diff options
context:
space:
mode:
authorStar Rauchenberger <fefferburbia@gmail.com>2022-12-10 09:29:30 -0500
committerStar Rauchenberger <fefferburbia@gmail.com>2022-12-10 09:29:30 -0500
commit0380a97230023a78ad08b738c4520e901485ed63 (patch)
tree2f3b4e91453962fd5bb36cf652c808cb7f41c3a7 /rails/test/dummy/app
parent6af7b09fa551c6cc980bb54fefd1db88c904654f (diff)
downloadlingo-0380a97230023a78ad08b738c4520e901485ed63.tar.gz
lingo-0380a97230023a78ad08b738c4520e901485ed63.tar.bz2
lingo-0380a97230023a78ad08b738c4520e901485ed63.zip
Added Rails engine for scoreboard
refs #13
Diffstat (limited to 'rails/test/dummy/app')
-rw-r--r--rails/test/dummy/app/assets/config/manifest.js3
-rw-r--r--rails/test/dummy/app/assets/images/.keep0
-rw-r--r--rails/test/dummy/app/assets/stylesheets/application.css15
-rw-r--r--rails/test/dummy/app/channels/application_cable/channel.rb4
-rw-r--r--rails/test/dummy/app/channels/application_cable/connection.rb4
-rw-r--r--rails/test/dummy/app/controllers/application_controller.rb2
-rw-r--r--rails/test/dummy/app/controllers/concerns/.keep0
-rw-r--r--rails/test/dummy/app/helpers/application_helper.rb2
-rw-r--r--rails/test/dummy/app/jobs/application_job.rb7
-rw-r--r--rails/test/dummy/app/mailers/application_mailer.rb4
-rw-r--r--rails/test/dummy/app/models/application_record.rb3
-rw-r--r--rails/test/dummy/app/models/concerns/.keep0
-rw-r--r--rails/test/dummy/app/views/layouts/application.html.erb15
-rw-r--r--rails/test/dummy/app/views/layouts/mailer.html.erb13
-rw-r--r--rails/test/dummy/app/views/layouts/mailer.text.erb1
15 files changed, 73 insertions, 0 deletions
diff --git a/rails/test/dummy/app/assets/config/manifest.js b/rails/test/dummy/app/assets/config/manifest.js new file mode 100644 index 0000000..d76f8cc --- /dev/null +++ b/rails/test/dummy/app/assets/config/manifest.js
@@ -0,0 +1,3 @@
1//= link_tree ../images
2//= link_directory ../stylesheets .css
3//= link lingo_manifest.js
diff --git a/rails/test/dummy/app/assets/images/.keep b/rails/test/dummy/app/assets/images/.keep new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/rails/test/dummy/app/assets/images/.keep
diff --git a/rails/test/dummy/app/assets/stylesheets/application.css b/rails/test/dummy/app/assets/stylesheets/application.css new file mode 100644 index 0000000..0ebd7fe --- /dev/null +++ b/rails/test/dummy/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, 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/rails/test/dummy/app/channels/application_cable/channel.rb b/rails/test/dummy/app/channels/application_cable/channel.rb new file mode 100644 index 0000000..d672697 --- /dev/null +++ b/rails/test/dummy/app/channels/application_cable/channel.rb
@@ -0,0 +1,4 @@
1module ApplicationCable
2 class Channel < ActionCable::Channel::Base
3 end
4end
diff --git a/rails/test/dummy/app/channels/application_cable/connection.rb b/rails/test/dummy/app/channels/application_cable/connection.rb new file mode 100644 index 0000000..0ff5442 --- /dev/null +++ b/rails/test/dummy/app/channels/application_cable/connection.rb
@@ -0,0 +1,4 @@
1module ApplicationCable
2 class Connection < ActionCable::Connection::Base
3 end
4end
diff --git a/rails/test/dummy/app/controllers/application_controller.rb b/rails/test/dummy/app/controllers/application_controller.rb new file mode 100644 index 0000000..09705d1 --- /dev/null +++ b/rails/test/dummy/app/controllers/application_controller.rb
@@ -0,0 +1,2 @@
1class ApplicationController < ActionController::Base
2end
diff --git a/rails/test/dummy/app/controllers/concerns/.keep b/rails/test/dummy/app/controllers/concerns/.keep new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/rails/test/dummy/app/controllers/concerns/.keep
diff --git a/rails/test/dummy/app/helpers/application_helper.rb b/rails/test/dummy/app/helpers/application_helper.rb new file mode 100644 index 0000000..de6be79 --- /dev/null +++ b/rails/test/dummy/app/helpers/application_helper.rb
@@ -0,0 +1,2 @@
1module ApplicationHelper
2end
diff --git a/rails/test/dummy/app/jobs/application_job.rb b/rails/test/dummy/app/jobs/application_job.rb new file mode 100644 index 0000000..d394c3d --- /dev/null +++ b/rails/test/dummy/app/jobs/application_job.rb
@@ -0,0 +1,7 @@
1class ApplicationJob < ActiveJob::Base
2 # Automatically retry jobs that encountered a deadlock
3 # retry_on ActiveRecord::Deadlocked
4
5 # Most jobs are safe to ignore if the underlying records are no longer available
6 # discard_on ActiveJob::DeserializationError
7end
diff --git a/rails/test/dummy/app/mailers/application_mailer.rb b/rails/test/dummy/app/mailers/application_mailer.rb new file mode 100644 index 0000000..3c34c81 --- /dev/null +++ b/rails/test/dummy/app/mailers/application_mailer.rb
@@ -0,0 +1,4 @@
1class ApplicationMailer < ActionMailer::Base
2 default from: "from@example.com"
3 layout "mailer"
4end
diff --git a/rails/test/dummy/app/models/application_record.rb b/rails/test/dummy/app/models/application_record.rb new file mode 100644 index 0000000..b63caeb --- /dev/null +++ b/rails/test/dummy/app/models/application_record.rb
@@ -0,0 +1,3 @@
1class ApplicationRecord < ActiveRecord::Base
2 primary_abstract_class
3end
diff --git a/rails/test/dummy/app/models/concerns/.keep b/rails/test/dummy/app/models/concerns/.keep new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/rails/test/dummy/app/models/concerns/.keep
diff --git a/rails/test/dummy/app/views/layouts/application.html.erb b/rails/test/dummy/app/views/layouts/application.html.erb new file mode 100644 index 0000000..f72b4ef --- /dev/null +++ b/rails/test/dummy/app/views/layouts/application.html.erb
@@ -0,0 +1,15 @@
1<!DOCTYPE html>
2<html>
3 <head>
4 <title>Dummy</title>
5 <meta name="viewport" content="width=device-width,initial-scale=1">
6 <%= csrf_meta_tags %>
7 <%= csp_meta_tag %>
8
9 <%= stylesheet_link_tag "application" %>
10 </head>
11
12 <body>
13 <%= yield %>
14 </body>
15</html>
diff --git a/rails/test/dummy/app/views/layouts/mailer.html.erb b/rails/test/dummy/app/views/layouts/mailer.html.erb new file mode 100644 index 0000000..cbd34d2 --- /dev/null +++ b/rails/test/dummy/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/rails/test/dummy/app/views/layouts/mailer.text.erb b/rails/test/dummy/app/views/layouts/mailer.text.erb new file mode 100644 index 0000000..37f0bdd --- /dev/null +++ b/rails/test/dummy/app/views/layouts/mailer.text.erb
@@ -0,0 +1 @@
<%= yield %>