All Projects → tahq69 → vue-loading

tahq69 / vue-loading

Licence: MIT license
Loading bar for Vue.js apps using axios

Programming Languages

Vue
7211 projects
typescript
32286 projects
javascript
184084 projects - #8 most used programming language
HTML
75241 projects
Batchfile
5799 projects

Projects that are alternatives of or similar to vue-loading

Whirl
CSS loading animations with minimal effort!
Stars: ✭ 774 (+3973.68%)
Mutual labels:  loader, loading, loading-bar
Vue Api Request
Control your API calls by using an amazing component which supports axios and vue-resource
Stars: ✭ 116 (+510.53%)
Mutual labels:  loader, axios
spinnies
Node.js module to create and manage multiple spinners in command-line interface programs
Stars: ✭ 111 (+484.21%)
Mutual labels:  loading, loading-bar
Ng Block Ui
Block UI Loader/Spinner for Angular
Stars: ✭ 135 (+610.53%)
Mutual labels:  loader, loading
Fiftyshadesof
An elegant context-care loading placeholder for Android
Stars: ✭ 1,110 (+5742.11%)
Mutual labels:  loader, loading
Mkloader
Beautiful and smooth custom loading views
Stars: ✭ 1,377 (+7147.37%)
Mutual labels:  loader, loading
React Content Loader
⚪ SVG-Powered component to easily create skeleton loadings.
Stars: ✭ 11,830 (+62163.16%)
Mutual labels:  loader, loading
Awloader
AWLoader is a UI Component that allows you to integrate loader that fits your needs within your app.
Stars: ✭ 11 (-42.11%)
Mutual labels:  loader, loading
Vue Webpack Config
Koa2、Webpack、Vue、React、Node
Stars: ✭ 151 (+694.74%)
Mutual labels:  loader, axios
Is Loading
Simple library to show visual feedback when loading data or any action that would take time
Stars: ✭ 232 (+1121.05%)
Mutual labels:  loader, loading
Vue Element Loading
⏳ Loading inside a container or full screen for Vue.js
Stars: ✭ 234 (+1131.58%)
Mutual labels:  loader, loading
Css Spinner
small, elegant pure css spinner for ajax or loading animation
Stars: ✭ 1,013 (+5231.58%)
Mutual labels:  loader, loading
Loading
loading...正在加载中的动画效果
Stars: ✭ 36 (+89.47%)
Mutual labels:  loader, loading
Eclipseloading
🌞 日食加载动画
Stars: ✭ 114 (+500%)
Mutual labels:  loader, loading
Aframe Preloader Component
A preloading bar that automatically displays while scene assets load.
Stars: ✭ 27 (+42.11%)
Mutual labels:  loader, loading-bar
Vue Loaders
Vue + loaders.css
Stars: ✭ 127 (+568.42%)
Mutual labels:  loader, loading
spinners-angular
Lightweight SVG/CSS spinners for Angular
Stars: ✭ 21 (+10.53%)
Mutual labels:  loader, loading
Statefullayout
Android layout to show template for loading, empty, error etc. states
Stars: ✭ 813 (+4178.95%)
Mutual labels:  loader, loading
Create Content Loader
✏️ Tool to create your own react-content-loader easily.
Stars: ✭ 937 (+4831.58%)
Mutual labels:  loader, loading
Vue Wait
Complex Loader and Progress Management for Vue/Vuex and Nuxt Applications
Stars: ✭ 1,869 (+9736.84%)
Mutual labels:  loader, loading

crip-vue-loading

A Vue.js project to wrap axios and display global loading bar of http requests. For more details read documentation with examples

Usage

Install

> npm i -S crip-vue-loading

Setup

import Vue from "vue"
import CripLoading from "crip-vue-loading"
import axios from "axios"

// Install component in to Vue instance and inject in to axios.
Vue.use(CripLoading, {axios})

// If you use "vue-router" and do not disable `applyOnRouter` option
// make sure you install plugin before router:
// https://github.com/vuejs/vue-router/issues/315

Display loading bar

// App.vue
<template>
  <div class="container">

    <div class="row">
      <div class="col-lg-6 col-lg-offset-3 col-md-8 col-md-offset-2">
        <button class="btn btn-primary" @click="save($event, 2)">Save</button>
      </div>
    </div>

  </div>
</template>

<script>
  import axios from 'axios'
  
  export default {
    methods: {
      async save (e, timeout = 0) {
        try {
          // simply call axios to save or request data and loading bar will
          // show up while response is not received from server.
          await axios.get(`http://www.fakeresponse.com/api/?sleep=${timeout}`)
        } catch (err) {
          console.error(err)
        }
      },
    },
  }
</script>

TODO:

  • Add algorithm with exponential progression instead of current linear;

Build Setup

# install dependencies and serve with hot reload at localhost:8080
> npm i && npm run dev

Release steps

> npm run release
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].