Remove nprogress
This commit is contained in:
parent
96fc583c42
commit
3ebe3e00de
|
@ -6,11 +6,8 @@ import {} from 'jquery-ujs'
|
|||
import 'popper.js'
|
||||
import 'bootstrap'
|
||||
import 'particleground/jquery.particleground.min'
|
||||
import 'sweetalert'
|
||||
import Cookies from 'js-cookie'
|
||||
|
||||
require('nprogress/nprogress.css')
|
||||
|
||||
# this file is generated by Rails
|
||||
import I18n from '../legacy/i18n'
|
||||
import '../legacy/memes'
|
||||
|
|
|
@ -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(); });
|
||||
}
|
Loading…
Reference in New Issue