Skip to content

Commit

Permalink
remove react
Browse files Browse the repository at this point in the history
Signed-off-by: Flipez <[email protected]>
  • Loading branch information
Flipez committed Aug 8, 2019
1 parent a600290 commit 382dbfd
Show file tree
Hide file tree
Showing 23 changed files with 21 additions and 7,819 deletions.
1 change: 0 additions & 1 deletion .browserslistrc

This file was deleted.

3 changes: 1 addition & 2 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@ gem 'execjs'
gem 'coffee-rails', '~> 4.2'
gem 'jbuilder', '~> 2.5'

gem 'webpacker'
gem 'react-rails'
gem 'fomantic-ui-sass'
gem 'haml-rails'
gem 'redcarpet'
Expand Down Expand Up @@ -51,6 +49,7 @@ end
group :development do
gem 'pry-rails'
gem 'foreman'
gem 'haml-lint'
gem 'listen', '>= 3.0.5', '< 3.2'
gem 'spring'
gem 'spring-watcher-listen', '~> 2.0.0'
Expand Down
28 changes: 10 additions & 18 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,6 @@ GEM
autoprefixer-rails (9.6.1)
execjs
awesome_print (1.8.0)
babel-source (5.8.35)
babel-transpiler (0.7.0)
babel-source (>= 4.0, < 6)
execjs (~> 2.0)
backports (3.15.0)
bootsnap (1.4.4)
msgpack (~> 1.0)
Expand Down Expand Up @@ -134,12 +130,20 @@ GEM
haml (5.1.1)
temple (>= 0.8.0)
tilt
haml-lint (0.999.999)
haml_lint
haml-rails (2.0.1)
actionpack (>= 5.1)
activesupport (>= 5.1)
haml (>= 4.0.6, < 6.0)
html2haml (>= 1.0.1)
railties (>= 5.1)
haml_lint (0.32.0)
haml (>= 4.0, < 5.2)
rainbow
rake (>= 10, < 13)
rubocop (>= 0.50.0)
sysexits (~> 1.1)
hashie (3.6.0)
highline (1.7.10)
html2haml (2.2.0)
Expand Down Expand Up @@ -241,8 +245,6 @@ GEM
rack (2.0.7)
rack-protection (2.0.5)
rack
rack-proxy (0.6.5)
rack
rack-test (1.1.0)
rack (>= 1.0, < 3)
rails (5.2.3)
Expand Down Expand Up @@ -278,12 +280,6 @@ GEM
rb-fsevent (0.10.3)
rb-inotify (0.10.0)
ffi (~> 1.0)
react-rails (2.6.0)
babel-transpiler (>= 0.7.0)
connection_pool
execjs
railties (>= 3.2)
tilt
redcarpet (3.5.0)
redis (4.1.2)
regexp_parser (1.6.0)
Expand Down Expand Up @@ -349,6 +345,7 @@ GEM
activesupport (>= 4.0)
sprockets (>= 3.0.0)
sqlite3 (1.4.1)
sysexits (1.2.0)
temple (0.8.1)
text (1.3.1)
thor (0.19.4)
Expand All @@ -370,10 +367,6 @@ GEM
uglifier (4.1.20)
execjs (>= 0.3.0, < 3)
unicode-display_width (1.6.0)
webpacker (4.0.7)
activesupport (>= 4.2)
rack-proxy (>= 0.6.1)
railties (>= 4.2)
websocket (1.2.8)
websocket-driver (0.7.1)
websocket-extensions (>= 0.1.0)
Expand All @@ -395,6 +388,7 @@ DEPENDENCIES
execjs
fomantic-ui-sass
foreman
haml-lint
haml-rails
jbuilder (~> 2.5)
jquery-datatables
Expand All @@ -409,7 +403,6 @@ DEPENDENCIES
puppet_forge
rails (~> 5.2.3)
rails_semantic_logger
react-rails
redcarpet
redis
rubocop
Expand All @@ -424,7 +417,6 @@ DEPENDENCIES
sqlite3
travis
uglifier (>= 1.3.0)
webpacker

BUNDLED WITH
2.0.2
1 change: 0 additions & 1 deletion Procfile
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
web: bundle exec rails server --port 3000
worker: bundle exec sidekiq
webpack: ./bin/webpack-dev-server
3 changes: 2 additions & 1 deletion app/assets/javascripts/application.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,6 @@
$( document ).ready(function() {
$('.ui.accordion').accordion();
$('.popup').popup();
$('.ui.dropdown').dropdown();
$("#dttb").dataTable();
});
});
Empty file removed app/javascript/components/.keep
Empty file.
19 changes: 0 additions & 19 deletions app/javascript/components/UserDropdown.js

This file was deleted.

22 changes: 0 additions & 22 deletions app/javascript/packs/application.js

This file was deleted.

26 changes: 0 additions & 26 deletions app/javascript/packs/hello_react.jsx

This file was deleted.

5 changes: 0 additions & 5 deletions app/javascript/packs/server_rendering.js

This file was deleted.

13 changes: 8 additions & 5 deletions app/views/layouts/application.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
= csp_meta_tag
= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track': 'reload'
= javascript_include_tag 'application', 'data-turbolinks-track': 'reload'
= javascript_pack_tag 'application'
%body
.ui.top.large.fixed.menu
.ui.container
Expand All @@ -28,8 +27,12 @@
= semantic_icon(:github)
Log in
- else
%span.item{style: 'padding: 0'}
%img.ui.avatar.image{style: 'margin-left: 7px; margin-right: 0px', src: current_user.avatar_url}
= react_component 'UserDropdown', username: current_user.username, avatar_url: current_user.avatar_url
.ui.item.dropdown
.text
%img.ui.avatar.image{src: current_user.avatar_url}
= current_user.username
.menu
%a.item{href: '/sessions/destroy'} Log Out
= semantic_icon(:dropdown)
.ui.container{style: 'padding-top: 58px;'}
= yield
= yield
83 changes: 0 additions & 83 deletions babel.config.js

This file was deleted.

19 changes: 0 additions & 19 deletions bin/webpack

This file was deleted.

19 changes: 0 additions & 19 deletions bin/webpack-dev-server

This file was deleted.

11 changes: 0 additions & 11 deletions bin/yarn

This file was deleted.

5 changes: 0 additions & 5 deletions config/webpack/development.js

This file was deleted.

3 changes: 0 additions & 3 deletions config/webpack/environment.js

This file was deleted.

5 changes: 0 additions & 5 deletions config/webpack/production.js

This file was deleted.

5 changes: 0 additions & 5 deletions config/webpack/test.js

This file was deleted.

Loading

0 comments on commit 382dbfd

Please sign in to comment.