GithubHelp home page GithubHelp logo

rikmms / progress-bar-4-axios Goto Github PK

View Code? Open in Web Editor NEW
248.0 248.0 32.0 7.88 MB

Slim progress bar (NProgress) for Web applications that use Axios library for HTTP requests

License: MIT License

JavaScript 31.15% HTML 65.21% CSS 3.64%

progress-bar-4-axios's People

Contributors

rikmms avatar rikmms-challenge avatar wuelcas avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

progress-bar-4-axios's Issues

Cannot resolve dependency css-loader

Here is the error message I receive when attempting to use this module as described in the README.

ร—  node_modules\axios-progress-bar\dist\index.js:173:28: Cannot resolve dependency '!!../css-loader/ind  171 | nprogresif(!content.locals) {
  172 |                 module.hot.accept("!!../css-loader/index.js!./nprogress.css", function() {
> 173 |                         var newContent = require("!!../css-loader/index.js!./nprogress.css");
      |                                                  ^
  174 |                         if(typeof newContent === 'string') newContent = [[module.id, newContent, '']];
  175 |                         update(newContent);
  176 |                 });

Load not ending on FIREFOX when returning http 204 with no content

Hi. Thanks for your lib.
There is an issue that the Load Keep on the screen on Firefox version 92.0
image

So the response was http 204 OK, the axios flow was done.
image

The server answered with NO_CONTENT
res.status(httpStatus.NO_CONTENT).send();
image

This does not happen on CHROME, just on FIREFOX

Can't use with react

I have tried multiple things but still can't get it to work with react. It would be nice if you can add a few examples in repo showing working examples in different cases.

Load not ending when POST request data is empty

Hi,
I'm starting to use this module for an application Symfony - VueJS.
And I noticed that when I execute a POST request returning a null content, the loading bar never stops, despite the fact that the request end correctly with it's 200 http status code.
I wondered if there was a configuration that I missed, or just something I'm doing wrong.
Thanks in advance

NProgress.config() doesn't seem to configure properly

Everything seems fairly straightforward... Here is how I am instantiating the progress bar in my index.js...

import { loadProgressBar } from 'axios-progress-bar'
const progressBarConfig = NProgress.configure({ parent: '#axios-progress-bar', showSpinner: false });
loadProgressBar(progressBarConfig);

I would have expected to see the progress bar attached to the top of my <div id="axios-progress-bar></div> element, and the spinner is hidden. Is this not the right usage? The spinner still shows and the progress bar is still stuck to the very top of the page.

I've also tried...

import { loadProgressBar } from 'axios-progress-bar'
const progressBarConfig = { parent: '#axios-progress-bar', showSpinner: false };
loadProgressBar(progressBarConfig);

Load never ends

I think maybe there's an issue.
I'm trying to use it with axios 0.18.0.

When I refresh the page or make a request, the loading bar starts but never ends.
Looking on devTools, all the requests are finished.

I'm setting up this way:

import { loadProgressBar } from 'axios-progress-bar'
import 'axios-progress-bar/dist/nprogress.css'

loadProgressBar({ showSpinner: false })

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.