From f9649502821af62dde72574b8b42634b5c9d3650 Mon Sep 17 00:00:00 2001 From: mgabdev <> Date: Thu, 6 Aug 2020 23:10:22 -0500 Subject: [PATCH] Removed react/home.html.haml MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit • Removed: - react/home.html.haml --- app/controllers/react_controller.rb | 4 ---- app/views/react/home.html.haml | 12 ------------ config/routes.rb | 4 ++-- 3 files changed, 2 insertions(+), 18 deletions(-) delete mode 100644 app/views/react/home.html.haml diff --git a/app/controllers/react_controller.rb b/app/controllers/react_controller.rb index bdba3e87..2ff7b357 100644 --- a/app/controllers/react_controller.rb +++ b/app/controllers/react_controller.rb @@ -11,10 +11,6 @@ class ReactController < ApplicationController def react # end - - def home - # - end def groupBySlug @group = Group.where(slug: params[:groupSlug], is_archived: false).first diff --git a/app/views/react/home.html.haml b/app/views/react/home.html.haml deleted file mode 100644 index 84f265f9..00000000 --- a/app/views/react/home.html.haml +++ /dev/null @@ -1,12 +0,0 @@ -- content_for :header_tags do - %meta{name: 'applicationServerKey', content: Rails.configuration.x.vapid_public_key} - %script#initial-state{ type: 'application/json' }!= json_escape(@initial_state_json) - - = javascript_pack_tag 'application', integrity: true, crossorigin: 'anonymous' - -#gabsocial{ data: { props: Oj.dump(default_props) } } - %noscript - %div{ :style => "padding: 60px; max-width: 560px;" } - = image_pack_tag 'logo.svg', alt: 'Gab Social', width: '100px' - %div{ :style => "margin-top: 20px; line-height: 2rem; font-family: system-ui, -apple-system, BlinkMacSystemFont, Roboto, sans-serif;" } - = t('errors.noscript_html', apps_path: 'https://apps.gab.com') diff --git a/config/routes.rb b/config/routes.rb index 5bebf236..993de8ec 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -465,8 +465,6 @@ Rails.application.routes.draw do end end - get '/', to: 'react#home', as: :homepage - get '/g/:groupSlug', to: 'react#groupBySlug' get '/:username/with_replies', to: 'accounts#show', username: username_regex, as: :short_account_with_replies get '/:username/comments_only', to: 'accounts#show', username: username_regex, as: :short_account_comments_only @@ -480,6 +478,8 @@ Rails.application.routes.draw do get '/:username', to: 'accounts#show', username: username_regex, as: :short_account root 'react#react' + get '/', to: 'react#react', as: :homepage + # Routes that are now to be used within webapp, but still referenced within application # TODO : Consolidate get '/explore', to: 'directories#index', as: :explore