Remove nprogress

This commit is contained in:
Andreas Nedbal 2022-01-11 20:28:38 +01:00 committed by Karina Kwiatek
parent 96fc583c42
commit 3ebe3e00de
2 changed files with 0 additions and 18 deletions

View File

@ -6,11 +6,8 @@ import {} from 'jquery-ujs'
import 'popper.js' import 'popper.js'
import 'bootstrap' import 'bootstrap'
import 'particleground/jquery.particleground.min' import 'particleground/jquery.particleground.min'
import 'sweetalert'
import Cookies from 'js-cookie' import Cookies from 'js-cookie'
require('nprogress/nprogress.css')
# this file is generated by Rails # this file is generated by Rails
import I18n from '../legacy/i18n' import I18n from '../legacy/i18n'
import '../legacy/memes' import '../legacy/memes'

View File

@ -1,15 +0,0 @@
import NProgress from 'nprogress';
/**
* NProgress initializer method, setting up NProgress to work
* on Turbolinks site navigation events
*/
export default function (): void {
NProgress.configure({
showSpinner: false,
});
document.addEventListener('page:fetch', () => { NProgress.start(); });
document.addEventListener('page:change', () => { NProgress.done(); });
document.addEventListener('page:restore', () => { NProgress.remove(); });
}