From 14b28b76c5d05b963135f884fb4849d89003f4cf Mon Sep 17 00:00:00 2001 From: Felix Eckhofer <felix@eckhofer.com> Date: Mon, 6 Jan 2025 21:38:40 +0100 Subject: [PATCH] Remove unused files --- app/helpers/assignments_helper.rb | 2 -- app/helpers/conferences_helper.rb | 2 -- app/helpers/sessions_helper.rb | 2 -- app/helpers/speakers_helper.rb | 2 -- app/helpers/users_helper.rb | 2 -- .../controllers/hello_controller.js | 7 ---- app/mailers/application_mailer.rb | 4 --- app/views/assignments/show.html.erb | 4 --- app/views/filedrop_files/download.html.erb | 4 --- app/views/layouts/mailer.html.erb | 13 ------- app/views/layouts/mailer.text.erb | 1 - app/views/sessions/index.html.erb | 2 -- app/views/users/login.html.erb | 10 ------ app/views/users/logout.html.erb | 4 --- app/views/users/profile.html.erb | 34 ------------------- app/views/users/update.html.erb | 4 --- test/mailers/.keep | 0 17 files changed, 97 deletions(-) delete mode 100644 app/helpers/assignments_helper.rb delete mode 100644 app/helpers/conferences_helper.rb delete mode 100644 app/helpers/sessions_helper.rb delete mode 100644 app/helpers/speakers_helper.rb delete mode 100644 app/helpers/users_helper.rb delete mode 100644 app/javascript/controllers/hello_controller.js delete mode 100644 app/mailers/application_mailer.rb delete mode 100644 app/views/assignments/show.html.erb delete mode 100644 app/views/filedrop_files/download.html.erb delete mode 100644 app/views/layouts/mailer.html.erb delete mode 100644 app/views/layouts/mailer.text.erb delete mode 100644 app/views/sessions/index.html.erb delete mode 100644 app/views/users/login.html.erb delete mode 100644 app/views/users/logout.html.erb delete mode 100644 app/views/users/profile.html.erb delete mode 100644 app/views/users/update.html.erb delete mode 100644 test/mailers/.keep diff --git a/app/helpers/assignments_helper.rb b/app/helpers/assignments_helper.rb deleted file mode 100644 index 6f7c33b..0000000 --- a/app/helpers/assignments_helper.rb +++ /dev/null @@ -1,2 +0,0 @@ -module AssignmentsHelper -end diff --git a/app/helpers/conferences_helper.rb b/app/helpers/conferences_helper.rb deleted file mode 100644 index edfcfdd..0000000 --- a/app/helpers/conferences_helper.rb +++ /dev/null @@ -1,2 +0,0 @@ -module ConferencesHelper -end diff --git a/app/helpers/sessions_helper.rb b/app/helpers/sessions_helper.rb deleted file mode 100644 index 309f8b2..0000000 --- a/app/helpers/sessions_helper.rb +++ /dev/null @@ -1,2 +0,0 @@ -module SessionsHelper -end diff --git a/app/helpers/speakers_helper.rb b/app/helpers/speakers_helper.rb deleted file mode 100644 index b506a69..0000000 --- a/app/helpers/speakers_helper.rb +++ /dev/null @@ -1,2 +0,0 @@ -module SpeakersHelper -end diff --git a/app/helpers/users_helper.rb b/app/helpers/users_helper.rb deleted file mode 100644 index 2310a24..0000000 --- a/app/helpers/users_helper.rb +++ /dev/null @@ -1,2 +0,0 @@ -module UsersHelper -end diff --git a/app/javascript/controllers/hello_controller.js b/app/javascript/controllers/hello_controller.js deleted file mode 100644 index 5975c07..0000000 --- a/app/javascript/controllers/hello_controller.js +++ /dev/null @@ -1,7 +0,0 @@ -import { Controller } from "@hotwired/stimulus" - -export default class extends Controller { - connect() { - this.element.textContent = "Hello World!" - } -} diff --git a/app/mailers/application_mailer.rb b/app/mailers/application_mailer.rb deleted file mode 100644 index 3c34c81..0000000 --- a/app/mailers/application_mailer.rb +++ /dev/null @@ -1,4 +0,0 @@ -class ApplicationMailer < ActionMailer::Base - default from: "from@example.com" - layout "mailer" -end diff --git a/app/views/assignments/show.html.erb b/app/views/assignments/show.html.erb deleted file mode 100644 index be9f69e..0000000 --- a/app/views/assignments/show.html.erb +++ /dev/null @@ -1,4 +0,0 @@ -<div> - <h1 class="font-bold text-4xl dark:text-red-500">Assignments#show</h1> - <p>Find me in app/views/assignments/show.html.erb</p> -</div> diff --git a/app/views/filedrop_files/download.html.erb b/app/views/filedrop_files/download.html.erb deleted file mode 100644 index a1ee394..0000000 --- a/app/views/filedrop_files/download.html.erb +++ /dev/null @@ -1,4 +0,0 @@ -<div> - <h1 class="font-bold text-4xl dark:text-red-500">FiledropFiles#download</h1> - <p>Find me in app/views/filedrop_files/download.html.erb</p> -</div> diff --git a/app/views/layouts/mailer.html.erb b/app/views/layouts/mailer.html.erb deleted file mode 100644 index 3aac900..0000000 --- a/app/views/layouts/mailer.html.erb +++ /dev/null @@ -1,13 +0,0 @@ -<!DOCTYPE html> -<html> - <head> - <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> - <style> - /* Email styles need to be inline */ - </style> - </head> - - <body> - <%= yield %> - </body> -</html> diff --git a/app/views/layouts/mailer.text.erb b/app/views/layouts/mailer.text.erb deleted file mode 100644 index 37f0bdd..0000000 --- a/app/views/layouts/mailer.text.erb +++ /dev/null @@ -1 +0,0 @@ -<%= yield %> diff --git a/app/views/sessions/index.html.erb b/app/views/sessions/index.html.erb deleted file mode 100644 index 62cbf37..0000000 --- a/app/views/sessions/index.html.erb +++ /dev/null @@ -1,2 +0,0 @@ -<h1>Sessions#index</h1> -<p>Find me in app/views/sessions/index.html.erb</p> diff --git a/app/views/users/login.html.erb b/app/views/users/login.html.erb deleted file mode 100644 index 6b50d7e..0000000 --- a/app/views/users/login.html.erb +++ /dev/null @@ -1,10 +0,0 @@ -<div> - <h1 class="font-bold text-4xl mb-8 dark:text-red-500">Choose User</h1> - <ul class="flex flex-wrap gap-2"> - <% @users.each do |user| %> - <li> - <%= button_to user.name, login_path(user_id: user.id), data: { turbo_method: :post }, class: "p-2 border hover:bg-slate-100 hover:shadow" %> - </li> - <% end %> -</ul> -</div> diff --git a/app/views/users/logout.html.erb b/app/views/users/logout.html.erb deleted file mode 100644 index 00a0820..0000000 --- a/app/views/users/logout.html.erb +++ /dev/null @@ -1,4 +0,0 @@ -<div> - <h1 class="font-bold text-4xl">Users#logout</h1> - <p>Find me in app/views/users/logout.html.erb</p> -</div> diff --git a/app/views/users/profile.html.erb b/app/views/users/profile.html.erb deleted file mode 100644 index b58bff8..0000000 --- a/app/views/users/profile.html.erb +++ /dev/null @@ -1,34 +0,0 @@ -<div> - <h1 class="font-bold text-4xl dark:text-red-500">Profile</h1> - <%= form_with(model: @user, url: update_profile_path, local: true) do |form| %> - - <div class="field"> - <%= form.label :name %> - <%= form.text_field :name %> - </div> - - <div class="field"> - <%= form.label :email %> - <%= form.text_field :email %> - </div> - - <div class="field"> - <%= form.label :password %> - <%= form.password_field :password %> - </div> - - <div class="field"> - <%= form.label :avatar_color %> - <%= form.color_field :avatar_color %> - </div> - - <div class="field"> - <%= form.label :telegram_username %> - <%= form.text_field :telegram_username %> - </div> - - <div class="actions"> - <%= form.submit "Update Profile" %> - </div> - <% end %> -</div> diff --git a/app/views/users/update.html.erb b/app/views/users/update.html.erb deleted file mode 100644 index 7ead44d..0000000 --- a/app/views/users/update.html.erb +++ /dev/null @@ -1,4 +0,0 @@ -<div> - <h1 class="font-bold text-4xl">Users#update</h1> - <p>Find me in app/views/users/update.html.erb</p> -</div> diff --git a/test/mailers/.keep b/test/mailers/.keep deleted file mode 100644 index e69de29..0000000 -- GitLab