Fix sprockets crashing because of removed gems

This commit is contained in:
Andreas Nedbal 2020-12-25 16:22:44 +01:00 committed by Andreas Nedbal
parent 411d65827b
commit 9237d9b314
4 changed files with 10 additions and 9 deletions

View File

@ -1,9 +1,5 @@
/* /*
*= require rails_bootstrap_forms *= require rails_bootstrap_forms
*= require growl
*= require jquery.guillotine
*= require sweetalert
*= require jquery.minicolors
*= require flags *= require flags
*= require_self *= require_self
*/ */
@ -26,10 +22,7 @@
@import @import
"bootstrap", "bootstrap",
"tempusdominus-bootstrap-4", "font-awesome";
"font-awesome",
"nprogress",
"nprogress-bootstrap";
/** /**
OVERRIDES OVERRIDES

View File

@ -13,6 +13,11 @@ import NProgress from 'nprogress'
import Cookies from 'js-cookie' import Cookies from 'js-cookie'
import moment from 'moment' import moment from 'moment'
require('nprogress/nprogress.css')
require('jquery.growl/stylesheets/jquery.growl.css')
require('jquery.guillotine/css/jquery.guillotine.css')
require('sweetalert/dist/sweetalert.css')
# this file is generated by Rails # this file is generated by Rails
import I18n from './i18n' import I18n from './i18n'

View File

@ -1,9 +1,11 @@
import 'tempusdominus-bootstrap-4' import 'tempusdominus-bootstrap-4'
require('tempusdominus-bootstrap-4/build/css/tempusdominus-bootstrap-4.css')
import './ban' import './ban'
import './comment' import './comment'
import './destroy' import './destroy'
import './privileges' import './privileges'
import './vote' import './vote'
$('.datetimepicker-input').datetimepicker({}); $('.datetimepicker-input').datetimepicker({})

View File

@ -13,6 +13,7 @@
= javascript_include_tag 'i18n', data: { 'turbolinks-track': true } = javascript_include_tag 'i18n', data: { 'turbolinks-track': true }
= stylesheet_link_tag 'application', media: 'all', data: { 'turbolinks-track': true } = stylesheet_link_tag 'application', media: 'all', data: { 'turbolinks-track': true }
= javascript_pack_tag 'legacy/application', data: { 'turbolinks-track': true } = javascript_pack_tag 'legacy/application', data: { 'turbolinks-track': true }
= stylesheet_pack_tag 'legacy/application', data: { 'turbolinks-track': true }
- if user_signed_in? && current_user.mod? - if user_signed_in? && current_user.mod?
= javascript_pack_tag 'legacy/moderation/index', data: { 'turbolinks-track': true } = javascript_pack_tag 'legacy/moderation/index', data: { 'turbolinks-track': true }
= csrf_meta_tags = csrf_meta_tags