Complex Loader and Progress Management for Vue/Vuex and Nuxt Applications

Overview

Multiple Process Loader Management for Vue and (optionally) Vuex.

Read the Medium post "Managing Complex Waiting Experiences on Web UIs".

npm version


vue-wait

Play with demo above.

vue-wait helps to manage multiple loading states on the page without any conflict. It's based on a very simple idea that manages an array (or Vuex store optionally) with multiple loading states. The built-in loader component listens its registered loader and immediately become loading state.

Quick Start

If you are a try and learn developer, you can start trying the vue-wait now using codesandbox.io.

Edit VueWait Sandbox

1. Install:

yarn add vue-wait

2. Require:

import VueWait from 'vue-wait'

Vue.use(VueWait)

new Vue({
  // your vue config
  wait: new VueWait(),
})

3. Use in Your Components

<template>
  <v-wait for="my list is to load">
    <template slot="waiting">
      <div>
        <img src="loading.gif" />
        Loading the list...
      </div>
    </template>
    <ul>
      <li v-for="item in myList">{{ item }}</li>
    </ul>
  </v-wait>
</template>

<script>
  export default {
    data() {
      return {
        myList: []
      }
    },
    async created() {
      // start waiting
      this.$wait.start('my list is to load');

      this.myList = await fetch('/my-list-url');

      // stop waiting
      this.$wait.end('my list is to load');
    },
  };
</script>

vue-wait has more abilities to make the management easier, please read the complete documentation.

▶️ Detailed Start

📦 Requirements

🚀 Power Supplies

  • Vuex, optionally (v2.0.0+)

🔧 Installation

via CLI:

$ yarn add vue-wait
# or if you using npm
$ npm install vue-wait

via Vue UI:

📖 Usage

import VueWait from 'vue-wait'

Vue.use(VueWait) // add VueWait as Vue plugin

Then you should register wait property (VueWait instance) to the Vue instance:

new Vue({
  el: '#app',
  store,
  wait: new VueWait({
    // Defaults values are following:
    useVuex: false,              // Uses Vuex to manage wait state
    vuexModuleName: 'wait',      // Vuex module name

    registerComponent: true,     // Registers `v-wait` component
    componentName: 'v-wait',     // <v-wait> component name, you can set `my-loader` etc.

    registerDirective: true,     // Registers `v-wait` directive
    directiveName: 'wait',       // <span v-wait /> directive name, you can set `my-loader` etc.

  }),
});

♻️ Usage with Vuex

Simply set useVuex parameter to true and optionally override vuexModuleName

import VueWait from 'vue-wait'

Vue.use(Vuex)
Vue.use(VueWait) // add VueWait as Vue plugin

Then you should register VueWait module:

new Vue({
  el: '#app',
  store,
  wait: new VueWait({
    useVuex: true, // You must pass this option `true` to use Vuex
    vuexModuleName: 'vuex-example-module' // It's optional, `wait` by default.
  }),
});

Now VueWait will use Vuex store for data management which can be traced in Vue DevTools > Vuex

♻️ Usage with Nuxt.js

Add vue-wait/nuxt to modules section of nuxt.config.js

{
  modules: [
    // Simple usage
    'vue-wait/nuxt'

    // Optionally passing options in module configuration
    ['vue-wait/nuxt', { useVuex: true }]
  ],

  // Optionally passing options in module top level configuration
  wait: { useVuex: true }
}

🔁 VueWait Options

You can use this options for customize VueWait behavior.

Option Name Type Default Description
accessorName String "$wait" You can change this value to rename the accessor. E.g. if you rename this to $w, your VueWait methods will be accessible by $w.waits(..) etc.
useVuex Boolean false Use this value for enabling integration with Vuex store. When this value is true VueWait will store data in Vuex store and all changes to this data will be made by dispatching actions to store
vuexModuleName String "wait" Name for Vuex store if useVuex set to true, otherwise not used.
registerComponent Boolean true Registers v-wait component.
componentName String "v-wait" Changes v-wait component name.
registerDirective Boolean true Registers v-wait directive.
directiveName String "v-wait" Changes v-wait directive name.

🌈 Global Template Helpers

vue-wait provides some helpers to you to use in your templates. All features can be obtained from $wait property in Vue components.

.any

Returns boolean value if any loader exists in page.

<template>
  <progress-bar v-if="$wait.any">Please wait...</progress-bar>
</template>

.is(loader String | Matcher) or .waiting(loader String | Matcher)

Returns boolean value if given loader exists in page.

<template>
  <progress-bar v-if="$wait.is('creating user')">Creating User...</progress-bar>
</template>

You can use waiting alias instead of is.

<template>
  <div v-if="$wait.waiting('fetching users')">
    Fetching users...
  </div>
</template>

Also you can use matcher to make it more flexible:

Please see matcher library to see how to use matchers.

<template>
  <progress-bar v-if="$wait.is('creating.*')">Creating something...</progress-bar>
</template>

.is(loaders Array<String | Matcher>) or .waiting(loaders Array<String | Matcher>)

Returns boolean value if some of given loaders exists in page.

<template>
  <progress-bar v-if="$wait.is(['creating user', 'page loading'])">Creating User...</progress-bar>
</template>

.start(loader String)

Starts the given loader.

<template>
  <button @click="$wait.start('creating user')">Create User</button>
</template>

.end(loader String)

Stops the given loader.

<template>
  <button @click="$wait.end('creating user')">Cancel</button>
</template>

.progress(loader String, current [, total = 100])

Sets the progress of the given loader.

<template>
  <progress min="0" max="100" :value="$wait.percent('downloading')" />
  <button @click="$wait.progress('downloading', 10)">Set progress to 10</button>
  <button @click="$wait.progress('downloading', 50)">Set progress to 50</button>
  <button @click="$wait.progress('downloading', 50, 200)">Set progress to 50 of 200 (25%)</button>
</template>
Completing the Progress

To complete the progress, current value should be set bigger than 100. If you total is given, current must be bigger than total.

<button @click="$wait.progress('downloading', 101)">Set as downloaded (101 of 100)</button>

or

<button @click="$wait.progress('downloading', 5, 6)">Set as downloaded (6 of 5)</button>

.percent(loader String)

Returns the percentage of the given loader.

<template>
  <progress min="0" max="100" :value="$wait.percent('downloading')" />
</template>

🏹 Directives

You can use directives to make your template cleaner.

v-wait:visible='"loader name"'

Shows if the given loader is loading.

<template>
  <progress-bar v-wait:visible='"creating user"'>Creating User...</progress-bar>
</template>

v-wait:hidden='"loader name"' or v-wait:visible.not='"loader name"'

Hides if the given loader is loading.

<template>
  <main v-wait:hidden='"creating *"'>Some Content</main>
</template>

v-wait:disabled='"loader name"'

Sets disabled="disabled" attribute to element if the given loader is loading.

<template>
  <input v-wait:disabled="'*'" placeholder="Username" />
  <input v-wait:disabled="'*'" placeholder="Password" />
</template>

v-wait:enabled='"loader name"' or v-wait:disabled.not='"loader name"'

Removes disabled="disabled" attribute to element if the given loader is loading.

<template>
  <button v-wait:enabled='"creating user"'>Abort Request</button>
</template>

v-wait:click.start='"loader name"'

Starts given loader on click.

<template>
  <button v-wait:click.start='"create user"'>Start loader</button>
</template>

v-wait:click.end='"loader name"'

Ends given loader on click.

<template>
  <button v-wait:click.end='"create user"'>End loader</button>
</template>

v-wait:toggle='"loader name"'

Toggles given loader on click.

<template>
  <button v-wait:toggle='"flip flop"'>Toggles the loader</button>
</template>

v-wait:click.progress='["loader name", 80]'

Sets the progress of given loader on click.

<template>
  <button v-wait:click.progress='["downloading", 80]'>Set the "downloading" loader to 80</button>
</template>

🔌 Loading Action and Getter Mappers

vue-wait provides mapWaitingActions and mapWaitingGetters mapper to be used with your Vuex stores.

Let's assume you have a store and async actions called createUser and updateUser. It will call the methods you map and will start loaders while action is resolved.

import { mapWaitingActions, mapWaitingGetters } from 'vue-wait'

// ...
  methods: {
    ...mapWaitingActions('users', {
      getUsers: 'loading users',
      createUser: 'creating user',
      updateUser: 'updating user',
    }),
  },
  computed: {
    ...mapWaitingGetters({
      somethingWithUsers: [
        'loading users',
        'creating user',
        'updating user',
      ],
      deletingUser: 'deleting user',
    }),
  }
// ...

You can also map action to custom method and customize loader name like in example below:

import { mapWaitingActions, mapWaitingGetters } from 'vue-wait'

// ...
  methods: {
    ...mapWaitingActions('users', {
      getUsers: { action: 'getUsers', loader: 'loading users' },
      createUser: { action: 'createUser', loader: 'creating user'},
      createSuperUser: { action: 'createUser', loader: 'creating super user' },
    }),
  },
// ...

There is also possibility to use array as a second argument to mapWaitingActions:

// ...
  methods: {
    ...mapWaitingActions('users', [
      'getUsers',
      { method: 'createUser', action: 'createUser', loader: 'creating user'},
      { method: 'createSuperUser', action: 'createUser', loader: 'creating super user' },
    ]),
  },
// ...

☢️ Advanced Getters and Actions Usage

The Vuex module name is wait by default. If you've changed on config, you should get it by rootGetters['<vuex module name>/is'] or rootGetters['<vuex module name>/any'].

You can access vue-wait's Vuex getters using rootGetters in Vuex.

getters: {
  cartOperationInProgress(state, getters, rootState, rootGetters) {
    return rootGetters['wait/is']('cart.*');
  }
},

And you can start and end loaders using wait actions. You must pass root: true option to the dispatch method.

actions: {
  async addItemToCart({ dispatch }, item) {
    dispatch('wait/start', 'cart.addItem', { root: true });
    await CartService.addItem(item);
    dispatch('wait/end', 'cart.addItem', { root: true });
  }
},

waitFor(loader String, func Function [,forceSync = false])

Decorator that wraps function, will trigger a loading and will end loader after the original function (func argument) is finished.

By default waitFor return async function, if you want to wrap default sync function pass true in last argument

Example using with async function

import { waitFor } from 'vue-wait';

...
methods: {
  fetchDataFromApi: waitFor('fetch data', async function () {
    function sleep(ms) {
      return new Promise(resolve => setTimeout(resolve, ms));
    }
    // do work here
    await sleep(3000);
    // simulate some api call
    this.fetchResponse = Math.random()
  })
}
...

See also examples/wrap-example

💧 Using v-wait Component

If you disable registerComponent option then import and add v-wait into components

import vLoading from 'vue-wait/src/components/v-wait.vue'
components: {
  'v-wait': vLoading
}

In template, you should wrap your content with v-wait component to show loading on it.

<v-wait for='fetching data'>
  <template slot='waiting'>
    This will be shown when "fetching data" loader starts.
  </template>

  This will be shown when "fetching data" loader ends.
</v-wait>

Better example for a button with loading state:

<button :disabled='$wait.is("creating user")'>
  <v-wait for='creating user'>
    <template slot='waiting'>Creating User...</template>
    Create User
  </v-wait>
</button>

🔁 Transitions

You can use transitions with v-wait component.

Just pass <transition> props and listeners to the v-wait with transition prop.

<v-wait for="users"
  transition="fade"
  mode="out-in"
  :duration="1000"
  enter-active-class="enter-active"
  @leave='someAwesomeFinish()'
  >
  <template slot="waiting">
    <p>Loading...</p>
  </template>
  My content
</v-wait>

⚡️ Making Reusable Loader Components

With reusable loader components, you will be able to use custom loader components as example below. This will allow you to create better user loading experience.

In this example above, the tab gets data from back-end, and the table loads data from back-end at the same time. With vue-wait, you will be able to manage these two seperated loading processes easily:

<template lang='pug'>
  <div>
    <v-wait for="fetching tabs">
      <template slot="waiting">
        <b-tabs>
          <template slot="tabs">
            <b-nav-item active="active" disabled>
              <v-icon name="circle-o-notch" spin="spin" />
            </b-nav-item>
          </template>
        </b-tabs>
      </template>
      <b-tabs>
        <template slot="tabs">
          <b-nav-item v-for="tab in tabs">{{ tab.name }}</b-nav-item>
        </template>
      </b-tabs>
    </v-wait>
    <v-wait for="fetching data">
      <table-gradient-spinner slot="waiting" />
      <table>
        <tr v-for="row in data">
          <!-- ...-->
        </tr>
      </table>
    </v-wait>
  </div>
</template>

You may want to design your own reusable loader for your project. You better create a wrapper component called my-waiter:

<!-- MySpinner.vue -->
<i18n>
  tr:
    loading: Yükleniyor...
  en:
    loading: Loading...
</i18n>

<template>
  <div class="loading-spinner">
    <v-icon name="refresh" spin="spin" />
    <span>{{ $t('loading') }}</span>
  </div>
</template>

<style scoped lang="scss">
  .loading-spinner {
    opacity: 0.5;
    margin: 50px auto;
    text-align: center;
    .fa-icon {
      vertical-align: middle;
      margin-right: 10px;
    }
  }
</style>

Now you can use your spinner everywhere using slot='waiting' attribute:

<template lang="pug">
  <v-wait for="fetching data">
    <my-waiter slot="waiting" />
    <div>
      <p>My main content after fetching data...</p>
    </div>
  </v-wait>
</template>

📦 Using with external spinner libraries

You can use vue-wait with another spinner libraries like epic-spinners or other libraries. You just need to add slot="waiting" to the component and Vue handles rest of the work.

First register the component,

import { OrbitSpinner } from 'epic-spinners';
Vue.component('orbit-spinner', OrbitSpinner);

Then use it in your as a v-wait's waiting slot.

<v-wait for='something to load'>
  <orbit-spinner
    slot='waiting'
    :animation-duration="1500"
    :size="64"
    :color="'#ff1d5e'"
  />
</v-wait>

... and done!

For other libraries you can use, please see Loaders section of vuejs/awesome-vue.

🚌 Run example

Use npm run dev-vuex, npm run dev-vue or npm run dev-wrap commands. for running examples locally.

Testing components

You can test components using vue-wait but it requires configuration. Let's take a basic component for instance:

<v-wait for="loading">
   <Spinner slot="waiting" />
   <ul class="suggestions">
      <li v-for="suggestion in suggestions">{{ suggestion.Name }}</li>
   </ul>
</v-wait>
const localVue = createLocalVue();
localVue.use(Vuex); // optionally when you use Vuex integration

it('uses vue-wait component', () => {
    const wrapper = shallowMount(Suggestions, { localVue });
    expect(wrapper.find('.suggestions').exists()).toBe(true);
});

vue-test-utils will replace v-wait component with an empty div, making it difficult to test correctly.

First, make your local Vue instance use vue-wait,

const localVue = createLocalVue();
localVue.use(Vuex); // optionally when you use Vuex integration
localVue.use(VueWait);

Then inject the wait property using VueWait constructor,

it('uses vue-wait component', () => {
    const wrapper = shallowMount(SuggestedAddresses, {
      localVue,
      wait: new VueWait()
    });
    expect(wrapper.find('.suggestions').exists()).toBe(true); // it works!
});

🎯 Contributors

  • Fatih Kadir Akın, (creator)
  • Igor, (maintainer, made Vuex-free)

🔗 Other Implementations

Since vue-wait based on a very simple idea, it can be implemented on other frameworks.

  • react-wait: Multiple Process Loader Management for React.
  • dom-wait: Multiple Process Loader Management for vanilla JavaScript.

🔑 License

MIT © Fatih Kadir Akın

Comments
  • Renaming the repo

    Renaming the repo

    Since vuex-loading is not really Vuex related now, we need a new name. vue-loading is registered.

    Maybe we can find a fancier (hipster) name. Should we use vue- prefix?

    v2.0.0 
    opened by f 18
  • Big update of the whole project to be progress management for Vue

    Big update of the whole project to be progress management for Vue

    I want to add full set of features for tracking progress information (with backward compatibility) just by extending methods with optional parameters about progress.

    Because this feature will transform this library from Complex Loader Management for Vue/Vuex Applications to Complex Progress Management for Vue/Vuex Applications, propose to rename this project to Vue-progress and change description to Complex Progress Management for Vue/Vuex Applications then we can rename this.$loading to this.$progress which is much better in my opinion.

    This repo then will redirect to new repo.

    This is not necessary but will reflect much better the project purpose

    opened by sky-code 12
  • add wrapLoading helper function, fix examples, fix logging format, rename spinner to loading

    add wrapLoading helper function, fix examples, fix logging format, rename spinner to loading

    wrapLoading helper function for easy integration of vuex-loading in vue component methods

    rename v-loading slot spinner to loading - much more clear what this slot mean

    opened by sky-code 11
  • 1.0.0

    1.0.0

    v1.0.0

    • A complete rewrite, more extensible.
    • Readable and better code.
    • Update to Webpack 4
    • Remove built-in loaders. Maybe we can create another repository including custom spinners.
    • Remove width and height props.
    • Strict props.
    • isLoading supports matcher now.
    • Rename registerComponents to registerComponent
    • Added accessorName option to change $vueLoading key.
    • Removed createActionHelpers, use mapLoadingActions or wrapLoading instead.
    opened by f 6
  • Add typescript declaration file

    Add typescript declaration file

    https://www.typescriptlang.org/docs/handbook/declaration-files/templates/module-d-ts.html http://www.typescriptlang.org/docs/handbook/declaration-files/introduction.html

    opened by Koc 6
  • TypeError: this.$loading.init is not a function

    TypeError: this.$loading.init is not a function

    Here's my question: TypeError: this.$loading.init is not a function

    use: "vue": "^2.5.9", "vuex": "^3.0.1", "vuex-loading": "^0.2.6"

    opened by 495640129 6
  • Different or customizable $loading property

    Different or customizable $loading property

    I find this library extremely useful, but the used property name is causing problems for me.

    For example I'm using it along with element-ui, which also defined a this.$loading field resulting in errors.

    In VueJS documentation, there is the recommendation of giving such field unique names: https://vuejs.org/v2/style-guide/#Private-property-names-essential

    It would be great if the exposed field could be defined in the constructor options, or renamed entirely to something else like $vuexLoading

    opened by cioraneanu 6
  • return promise in startLoading method

    return promise in startLoading method

    i have this in my acction

    export async function loadCampaign ({commit, dispatch}, {campaign, subscription}) {
      const url = route('api.campaigns.show', {campaign, subscription});
    
      commit(types.CAMPAIGN_REQUEST);
    
      try {
        const response = await startLoading(dispatch, 'load campaign', () => {
          return fetch(`${url}?include=tags`, {credentials: 'same-origin'})
            .then(response => response.json());
        });
    
        commit(
          types.CAMPAIGN_SUCCESS,
          normalize(response, schema.campaign)
        );
      } catch (err) {
        commit(types.CAMPAIGN_FAILURE, err);
      }
    }
    

    and in my view

    <div v-if="!$isLoading('load campaign')">
         <h1>{{campaign.name}}</h1>
    </div>
    

    I have an error because the loading state is updated before my update and campaign has not been set.

    opened by hosmelq 6
  • There are two v1.4.6 version in the release page, and the last v1.4.6 is not published to npm

    There are two v1.4.6 version in the release page, and the last v1.4.6 is not published to npm

    Just as the title said, the v1.4.6 in npm registry is still the old version, and lack of nuxt typescript support.

    Release a new patch version could solve this, I thought.

    opened by dum3ng 5
  • FR: Usage with namespaced Vuex modules

    FR: Usage with namespaced Vuex modules

    Splitting a Vuex store in one of my projects into namespaced modules made me think of the following.

    Current way to use vue-wait with namespaced Vuex modules seems to be: (Not documented btw.)

    import { mapWaitingActions } from 'vue-wait'
    
    // ...
      methods: {
        ...mapWaitingActions('users', {
          'user/getUser': 'loading the user',
        }),
      },
      mounted() {
        // get the user data
        this.user = this['user/getUser'](this.userId);
      },
    // ...
    

    I think something like this would be more preferable:

    import { mapWaitingActions } from 'vue-wait'
    
    // ...
      methods: {
        ...mapWaitingActions('users', {
          getUser: ['user/getUser', 'loading the user'],
        }),
      },
      mounted() {
        // get the user data
        this.user = this.getUser(this.userId);
      },
    // ...
    

    Thanks.

    opened by razorfever 5
  • Add support of wildcards

    Add support of wildcards

    For example have 2 actions: addProductToCart, refreshCart. Each of they call startLoading(dispatcher, 'cart') on method enter and endLoading(dispatcher, 'cart') before each return. The problem occurs when addProductToCart calls refreshCart inside. End loading occurs too early.

    It is similar to nested transactions.

    opened by Koc 5
  • Bump terser from 4.8.0 to 4.8.1

    Bump terser from 4.8.0 to 4.8.1

    Bumps terser from 4.8.0 to 4.8.1.

    Changelog

    Sourced from terser's changelog.

    v4.8.1 (backport)

    • Security fix for RegExps that should not be evaluated (regexp DDOS)
    Commits

    Dependabot compatibility score

    Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


    Dependabot commands and options

    You can trigger Dependabot actions by commenting on this PR:

    • @dependabot rebase will rebase this PR
    • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
    • @dependabot merge will merge this PR after your CI passes on it
    • @dependabot squash and merge will squash and merge this PR after your CI passes on it
    • @dependabot cancel merge will cancel a previously requested merge and block automerging
    • @dependabot reopen will reopen this PR if it is closed
    • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
    • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
    • @dependabot use these labels will set the current labels as the default for future PRs for this repo and language
    • @dependabot use these reviewers will set the current reviewers as the default for future PRs for this repo and language
    • @dependabot use these assignees will set the current assignees as the default for future PRs for this repo and language
    • @dependabot use this milestone will set the current milestone as the default for future PRs for this repo and language

    You can disable automated security fix PRs for this repo from the Security Alerts page.

    dependencies 
    opened by dependabot[bot] 0
  • Using with vite // TypeError: VueWait is not a constructor

    Using with vite // TypeError: VueWait is not a constructor

    When switching from webpack to vite I am getting the following error:

    TypeError: VueWait is not a constructor

    new Vue({
      router,
      wait: new VueWait()
    }).$mount('#app')
    

    Anyone had this problem?

    opened by simonmaass 3
  • Bump shell-quote from 1.7.2 to 1.7.3

    Bump shell-quote from 1.7.2 to 1.7.3

    Bumps shell-quote from 1.7.2 to 1.7.3.

    Changelog

    Sourced from shell-quote's changelog.

    1.7.3

    • Fix a security issue where the regex for windows drive letters allowed some shell meta-characters to escape the quoting rules. (CVE-2021-42740)
    Commits

    Dependabot compatibility score

    Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


    Dependabot commands and options

    You can trigger Dependabot actions by commenting on this PR:

    • @dependabot rebase will rebase this PR
    • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
    • @dependabot merge will merge this PR after your CI passes on it
    • @dependabot squash and merge will squash and merge this PR after your CI passes on it
    • @dependabot cancel merge will cancel a previously requested merge and block automerging
    • @dependabot reopen will reopen this PR if it is closed
    • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
    • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
    • @dependabot use these labels will set the current labels as the default for future PRs for this repo and language
    • @dependabot use these reviewers will set the current reviewers as the default for future PRs for this repo and language
    • @dependabot use these assignees will set the current assignees as the default for future PRs for this repo and language
    • @dependabot use this milestone will set the current milestone as the default for future PRs for this repo and language

    You can disable automated security fix PRs for this repo from the Security Alerts page.

    dependencies 
    opened by dependabot[bot] 0
  • Usage in nuxtjs3 (plugin attempt)

    Usage in nuxtjs3 (plugin attempt)

    Hello,

    I am trying to use this in a early adoption of nuxt3. The vue-wait/nuxt-plugin does not work, so I tried to create my own plugin:

    import { createVueWait } from 'vue-wait'
    
    export default defineNuxtPlugin((nuxtApp) => {
        const VueWait = createVueWait({ registerComponent: false,})
        nuxtApp.vueApp.use(VueWait);
    
        return {
            provide: {
                wait: () => VueWait
            }
        }
    })
    

    But unfortunately, this gives me an error:

    Unhandled Promise Rejection: TypeError: $wait.is is not a function. (In '$wait.is("test")', '$wait.is' is undefined)

    when I try to access it like this:

    const {$auth, $wait} = useNuxtApp();
    
    console.log($wait.is('test'))
    
    opened by ahoiroman 0
  • Bump eventsource from 1.1.0 to 1.1.1

    Bump eventsource from 1.1.0 to 1.1.1

    Bumps eventsource from 1.1.0 to 1.1.1.

    Changelog

    Sourced from eventsource's changelog.

    1.1.1

    • Do not include authorization and cookie headers on redirect to different origin (#273 Espen Hovlandsdal)
    Commits

    Dependabot compatibility score

    Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


    Dependabot commands and options

    You can trigger Dependabot actions by commenting on this PR:

    • @dependabot rebase will rebase this PR
    • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
    • @dependabot merge will merge this PR after your CI passes on it
    • @dependabot squash and merge will squash and merge this PR after your CI passes on it
    • @dependabot cancel merge will cancel a previously requested merge and block automerging
    • @dependabot reopen will reopen this PR if it is closed
    • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
    • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
    • @dependabot use these labels will set the current labels as the default for future PRs for this repo and language
    • @dependabot use these reviewers will set the current reviewers as the default for future PRs for this repo and language
    • @dependabot use these assignees will set the current assignees as the default for future PRs for this repo and language
    • @dependabot use this milestone will set the current milestone as the default for future PRs for this repo and language

    You can disable automated security fix PRs for this repo from the Security Alerts page.

    dependencies 
    opened by dependabot[bot] 0
  • Bump minimist from 1.2.5 to 1.2.6

    Bump minimist from 1.2.5 to 1.2.6

    Bumps minimist from 1.2.5 to 1.2.6.

    Commits

    Dependabot compatibility score

    Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


    Dependabot commands and options

    You can trigger Dependabot actions by commenting on this PR:

    • @dependabot rebase will rebase this PR
    • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
    • @dependabot merge will merge this PR after your CI passes on it
    • @dependabot squash and merge will squash and merge this PR after your CI passes on it
    • @dependabot cancel merge will cancel a previously requested merge and block automerging
    • @dependabot reopen will reopen this PR if it is closed
    • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
    • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
    • @dependabot use these labels will set the current labels as the default for future PRs for this repo and language
    • @dependabot use these reviewers will set the current reviewers as the default for future PRs for this repo and language
    • @dependabot use these assignees will set the current assignees as the default for future PRs for this repo and language
    • @dependabot use this milestone will set the current milestone as the default for future PRs for this repo and language

    You can disable automated security fix PRs for this repo from the Security Alerts page.

    dependencies 
    opened by dependabot[bot] 0
Releases(v1.5.0)
  • v1.5.0(Jul 27, 2021)

  • 1.4.6(Aug 21, 2019)

    Multiple Process Loader Management for Vue and (optionally) Vuex.

    Read the Medium post "Managing Complex Waiting Experiences on Web UIs".

    npm version


    vue-wait

    Play with demo above.

    vue-wait helps to manage multiple loading states on the page without any conflict. It's based on a very simple idea that manages an array (or Vuex store optionally) with multiple loading states. The built-in loader component listens its registered loader and immediately become loading state.

    ⏩Quick Start

    If you are a try and learn developer, you can start trying the vue-wait now using codesandbox.io.

    Edit VueWait Sandbox

    1. Install:

    yarn add vue-wait
    

    2. Require:

    import VueWait from 'vue-wait'
    
    Vue.use(VueWait)
    
    new Vue({
      // your vue config
      wait: new VueWait(),
    })
    

    3. Use in Your Components

    <template>
      <v-wait for="my list is to load">
        <template slot="waiting">
          <div>
            <img src="loading.gif" />
            Loading the list...
          </div>
        </template>
        <ul>
          <li v-for="item in myList">{{ item }}</li>
        </ul>
      </v-wait>
    </template>
    
    <script>
      export default {
        data() {
          return {
            myList: []
          }
        },
        async created() {
          // start waiting
          this.$wait.start('my list is to load');
    
          this.myList = await fetch('/my-list-url');
    
          // stop waiting
          this.$wait.end('my list is to load');
        },
      };
    </script>
    

    vue-wait has more abilities to make the management easier, please read the complete documentation.

    ▶️Detailed Start

    📦 Requirements

    🚀 Power Supplies

    • Vuex, optionally (v2.0.0+)

    🔧 Installation

    via CLI:

    $ yarn add vue-wait
    # or if you using npm
    $ npm install vue-wait
    

    via Vue UI:

    📖 Usage

    import VueWait from 'vue-wait'
    
    Vue.use(VueWait) // add VueWait as Vue plugin
    

    Then you should register wait property (VueWait instance) to the Vue instance:

    new Vue({
      el: '#app',
      store,
      wait: new VueWait({
        // Defaults values are following:
        useVuex: false,              // Uses Vuex to manage wait state
        vuexModuleName: 'wait',      // Vuex module name
    
        registerComponent: true,     // Registers `v-wait` component
        componentName: 'v-wait',     // <v-wait> component name, you can set `my-loader` etc.
    
        registerDirective: true,     // Registers `v-wait` directive
        directiveName: 'wait',       // <span v-wait /> directive name, you can set `my-loader` etc.
    
      }),
    });
    

    ♻️ Usage with Vuex

    Simply set useVuex parameter to true and optionally override vuexModuleName

    import VueWait from 'vue-wait'
    
    Vue.use(Vuex)
    Vue.use(VueWait) // add VueWait as Vue plugin
    

    Then you should register VueWait module:

    new Vue({
      el: '#app',
      store,
      wait: new VueWait({
        useVuex: true, // You must pass this option `true` to use Vuex
        vuexModuleName: 'vuex-example-module' // It's optional, `wait` by default.
      }),
    });
    

    Now VueWait will use Vuex store for data management which can be traced in Vue DevTools > Vuex

    ♻️ Usage with Nuxt.js

    Add vue-wait/nuxt to modules section of nuxt.config.js

    {
      modules: [
        // Simple usage
        'vue-wait/nuxt'
    
        // Optionally passing options in module configuration
        ['vue-wait/nuxt', { useVuex: true }]
      ],
    
      // Optionally passing options in module top level configuration
      wait: { useVuex: true }
    }
    

    🔁 VueWait Options

    You can use this options for customize VueWait behavior.

    | Option Name | Type | Default | Description | | ----------- | ---- | ------- | ----------- | | accessorName | String | "$wait" | You can change this value to rename the accessor. E.g. if you rename this to $w, your VueWait methods will be accessible by $w.waits(..) etc. | | useVuex | Boolean | false | Use this value for enabling integration with Vuex store. When this value is true VueWait will store data in Vuex store and all changes to this data will be made by dispatching actions to store | | vuexModuleName | String | "wait" | Name for Vuex store if useVuex set to true, otherwise not used. | | registerComponent | Boolean | true | Registers v-wait component. | | componentName | String | "v-wait" | Changes v-wait component name. | | registerDirective | Boolean | true | Registers v-wait directive. | | directiveName | String | "v-wait" | Changes v-wait directive name. |

    🌈 Global Template Helpers

    vue-wait provides some helpers to you to use in your templates. All features can be obtained from $wait property in Vue components.

    .any

    Returns boolean value if any loader exists in page.

    <template>
      <progress-bar v-if="$wait.any">Please wait...</progress-bar>
    </template>
    

    .is(loader String | Matcher) or .waiting(loader String | Matcher)

    Returns boolean value if given loader exists in page.

    <template>
      <progress-bar v-if="$wait.is('creating user')">Creating User...</progress-bar>
    </template>
    

    You can use waiting alias instead of is.

    <template>
      <div v-if="$wait.waiting('fetching users')">
        Fetching users...
      </div>
    </template>
    

    Also you can use matcher to make it more flexible:

    Please see matcher library to see how to use matchers.

    <template>
      <progress-bar v-if="$wait.is('creating.*')">Creating something...</progress-bar>
    </template>
    

    .is(loaders Array<String | Matcher>) or .waiting(loaders Array<String | Matcher>)

    Returns boolean value if some of given loaders exists in page.

    <template>
      <progress-bar v-if="$wait.is(['creating user', 'page loading'])">Creating User...</progress-bar>
    </template>
    

    .start(loader String)

    Starts the given loader.

    <template>
      <button @click="$wait.start('creating user')">Create User</button>
    </template>
    

    .end(loader String)

    Stops the given loader.

    <template>
      <button @click="$wait.end('creating user')">Cancel</button>
    </template>
    

    .progress(loader String, current [, total = 100])

    Sets the progress of the given loader.

    <template>
      <progress min="0" max="100" :value="$wait.percent('downloading')" />
      <button @click="$wait.progress('downloading', 10)">Set progress to 10</button>
      <button @click="$wait.progress('downloading', 50)">Set progress to 50</button>
      <button @click="$wait.progress('downloading', 50, 200)">Set progress to 50 of 200 (25%)</button>
    </template>
    
    Completing the Progress

    To complete the progress, current value should be set bigger than 100. If you total is given, current must be bigger than total.

    <button @click="$wait.progress('downloading', 101)">Set as downloaded (101 of 100)</button>
    

    or

    <button @click="$wait.progress('downloading', 5, 6)">Set as downloaded (6 of 5)</button>
    

    .percent(loader String)

    Returns the percentage of the given loader.

    <template>
      <progress min="0" max="100" :value="$wait.percent('downloading')" />
    </template>
    

    🏹 Directives

    You can use directives to make your template cleaner.

    v-wait:visible='"loader name"'

    Shows if the given loader is loading.

    <template>
      <progress-bar v-wait:visible='"creating user"'>Creating User...</progress-bar>
    </template>
    

    v-wait:hidden='"loader name"' or v-wait:visible.not='"loader name"'

    Hides if the given loader is loading.

    <template>
      <main v-wait:hidden='"creating *"'>Some Content</main>
    </template>
    

    v-wait:disabled='"loader name"'

    Sets disabled="disabled" attribute to element if the given loader is loading.

    <template>
      <input v-wait:disabled="'*'" placeholder="Username" />
      <input v-wait:disabled="'*'" placeholder="Password" />
    </template>
    

    v-wait:enabled='"loader name"' or v-wait:disabled.not='"loader name"'

    Removes disabled="disabled" attribute to element if the given loader is loading.

    <template>
      <button v-wait:enabled='"creating user"'>Abort Request</button>
    </template>
    

    v-wait:click.start='"loader name"'

    Starts given loader on click.

    <template>
      <button v-wait:click.start='"create user"'>Start loader</button>
    </template>
    

    v-wait:click.end='"loader name"'

    Ends given loader on click.

    <template>
      <button v-wait:click.end='"create user"'>End loader</button>
    </template>
    

    v-wait:toggle='"loader name"'

    Toggles given loader on click.

    <template>
      <button v-wait:toggle='"flip flop"'>Toggles the loader</button>
    </template>
    

    v-wait:click.progress='["loader name", 80]'

    Sets the progress of given loader on click.

    <template>
      <button v-wait:click.progress='["downloading", 80]'>Set the "downloading" loader to 80</button>
    </template>
    

    🔌 Loading Action and Getter Mappers

    vue-wait provides mapWaitingActions and mapWaitingGetters mapper to be used with your Vuex stores.

    Let's assume you have a store and async actions called createUser and updateUser. It will call the methods you map and will start loaders while action is resolved.

    import { mapWaitingActions, mapWaitingGetters } from 'vue-wait'
    
    // ...
      methods: {
        ...mapWaitingActions('users', {
          getUsers: 'loading users',
          createUser: 'creating user',
          updateUser: 'updating user',
        }),
      },
      computed: {
        ...mapWaitingGetters({
          somethingWithUsers: [
            'loading users',
            'creating user',
            'updating user',
          ],
          deletingUser: 'deleting user',
        }),
      }
    // ...
    

    You can also map action to custom method and customize loader name like in example below:

    import { mapWaitingActions, mapWaitingGetters } from 'vue-wait'
    
    // ...
      methods: {
        ...mapWaitingActions('users', {
          getUsers: { action: 'getUsers', loader: 'loading users' },
          createUser: { action: 'createUser', loader: 'creating user'},
          createSuperUser: { action: 'createUser', loader: 'creating super user' },
        }),
      },
    // ...
    

    There is also possibility to use array as a second argument to mapWaitingActions:

    // ...
      methods: {
        ...mapWaitingActions('users', [
          'getUsers',
          { method: 'createUser', action: 'createUser', loader: 'creating user'},
          { method: 'createSuperUser', action: 'createUser', loader: 'creating super user' },
        ]),
      },
    // ...
    
    
    

    ☢️Advanced Getters and Actions Usage

    The Vuex module name is wait by default. If you've changed on config, you should get it by rootGetters['<vuex module name>/is'] or rootGetters['<vuex module name>/any'].

    You can access vue-wait's Vuex getters using rootGetters in Vuex.

    getters: {
      cartOperationInProgress(state, getters, rootState, rootGetters) {
        return rootGetters['wait/is']('cart.*');
      }
    },
    

    And you can start and end loaders using wait actions. You must pass root: true option to the dispatch method.

    actions: {
      async addItemToCart({ dispatch }, item) {
        dispatch('wait/start', 'cart.addItem', { root: true });
        await CartService.addItem(item);
        dispatch('wait/end', 'cart.addItem', { root: true });
      }
    },
    

    waitFor(loader String, func Function [,forceSync = false])

    Decorator that wraps function, will trigger a loading and will end loader after the original function (func argument) is finished.

    By default waitFor return async function, if you want to wrap default sync function pass true in last argument

    Example using with async function

    import { waitFor } from 'vue-wait';
    
    ...
    methods: {
      fetchDataFromApi: waitFor('fetch data', async function () {
        function sleep(ms) {
          return new Promise(resolve => setTimeout(resolve, ms));
        }
        // do work here
        await sleep(3000);
        // simulate some api call
        this.fetchResponse = Math.random()
      })
    }
    ...
    

    See also examples/wrap-example

    💧 Using v-wait Component

    If you disable registerComponent option then import and add v-wait into components

    import vLoading from 'vue-wait/src/components/v-wait.vue'
    components: {
      'v-wait': vLoading
    }
    

    In template, you should wrap your content with v-wait component to show loading on it.

    <v-wait for='fetching data'>
      <template slot='waiting'>
        This will be shown when "fetching data" loader starts.
      </template>
    
      This will be shown when "fetching data" loader ends.
    </v-wait>
    

    Better example for a button with loading state:

    <button :disabled='$wait.is("creating user")'>
      <v-wait for='creating user'>
        <template slot='waiting'>Creating User...</template>
        Create User
      </v-wait>
    </button>
    

    🔁 Transitions

    You can use transitions with v-wait component.

    Just pass <transition> props and listeners to the v-wait with transition prop.

    <v-wait for="users"
      transition="fade"
      mode="out-in"
      :duration="1000"
      enter-active-class="enter-active"
      @leave='someAwesomeFinish()'
      >
      <template slot="waiting">
        <p>Loading...</p>
      </template>
      My content
    </v-wait>
    

    ⚡️ Making Reusable Loader Components

    With reusable loader components, you will be able to use custom loader components as example below. This will allow you to create better user loading experience.

    In this example above, the tab gets data from back-end, and the table loads data from back-end at the same time. With vue-wait, you will be able to manage these two seperated loading processes easily:

    <template lang='pug'>
      <div>
        <v-wait for="fetching tabs">
          <template slot="waiting">
            <b-tabs>
              <template slot="tabs">
                <b-nav-item active="active" disabled>
                  <v-icon name="circle-o-notch" spin="spin" />
                </b-nav-item>
              </template>
            </b-tabs>
          </template>
          <b-tabs>
            <template slot="tabs">
              <b-nav-item v-for="tab in tabs">{{ tab.name }}</b-nav-item>
            </template>
          </b-tabs>
        </v-wait>
        <v-wait for="fetching data">
          <table-gradient-spinner slot="waiting" />
          <table>
            <tr v-for="row in data">
              <!-- ...-->
            </tr>
          </table>
        </v-wait>
      </div>
    </template>
    

    You may want to design your own reusable loader for your project. You better create a wrapper component called my-waiter:

    <!-- MySpinner.vue -->
    <i18n>
      tr:
        loading: Yükleniyor...
      en:
        loading: Loading...
    </i18n>
    
    <template>
      <div class="loading-spinner">
        <v-icon name="refresh" spin="spin" />
        <span>{{ $t('loading') }}</span>
      </div>
    </template>
    
    <style scoped lang="scss">
      .loading-spinner {
        opacity: 0.5;
        margin: 50px auto;
        text-align: center;
        .fa-icon {
          vertical-align: middle;
          margin-right: 10px;
        }
      }
    </style>
    

    Now you can use your spinner everywhere using slot='waiting' attribute:

    <template lang="pug">
      <v-wait for="fetching data">
        <my-waiter slot="waiting" />
        <div>
          <p>My main content after fetching data...</p>
        </div>
      </v-wait>
    </template>
    

    📦 Using with external spinner libraries

    You can use vue-wait with another spinner libraries like epic-spinners or other libraries. You just need to add slot="waiting" to the component and Vue handles rest of the work.

    First register the component,

    import { OrbitSpinner } from 'epic-spinners';
    Vue.component('orbit-spinner', OrbitSpinner);
    

    Then use it in your as a v-wait's waiting slot.

    <v-wait for='something to load'>
      <orbit-spinner
        slot='waiting'
        :animation-duration="1500"
        :size="64"
        :color="'#ff1d5e'"
      />
    </v-wait>
    

    ... and done!

    For other libraries you can use, please see Loaders section of vuejs/awesome-vue.

    🚌 Run example

    Use npm run dev-vuex, npm run dev-vue or npm run dev-wrap commands. for running examples locally.

    ✔ Testing components

    You can test components using vue-wait but it requires configuration. Let's take a basic component for instance:

    <v-wait for="loading">
       <Spinner slot="waiting" />
       <ul class="suggestions">
          <li v-for="suggestion in suggestions">{{ suggestion.Name }}</li>
       </ul>
    </v-wait>
    
    const localVue = createLocalVue();
    localVue.use(Vuex); // optionally when you use Vuex integration
    
    it('uses vue-wait component', () => {
        const wrapper = shallowMount(Suggestions, { localVue });
        expect(wrapper.find('.suggestions').exists()).toBe(true);
    });
    

    vue-test-utils will replace v-wait component with an empty div, making it difficult to test correctly.

    First, make your local Vue instance use vue-wait,

    const localVue = createLocalVue();
    localVue.use(Vuex); // optionally when you use Vuex integration
    localVue.use(VueWait);
    

    Then inject the wait property using VueWait constructor,

    it('uses vue-wait component', () => {
        const wrapper = shallowMount(SuggestedAddresses, {
          localVue,
          wait: new VueWait()
        });
        expect(wrapper.find('.suggestions').exists()).toBe(true); // it works!
    });
    

    🎯 Contributors

    • Fatih Kadir Akın, (creator)
    • Igor, (maintainer, made Vuex-free)

    🔗 Other Implementations

    Since vue-wait based on a very simple idea, it can be implemented on other frameworks.

    • react-wait: Multiple Process Loader Management for React.
    • dom-wait: Multiple Process Loader Management for vanilla JavaScript.

    🔑 License

    MIT © Fatih Kadir Akın

    Source code(tar.gz)
    Source code(zip)
  • v1.4.6(May 28, 2019)

  • v1.4.5(May 24, 2019)

  • v1.4.4(May 24, 2019)

  • v1.4.2(May 23, 2019)

  • v1.3.3(Dec 14, 2018)

  • v1.3.0(Jul 2, 2018)

    • New Feature: Progress management. percent(waiter), progress(waiter, current, total) methods.
    • Added v-wait:click.progress="[waiter, current, total]" directive.
    • is(waiter) now has an alias: waiting(waiter)
    • GitHub Pages example updated with progress.
    Source code(tar.gz)
    Source code(zip)
  • v1.2.2(Jun 21, 2018)

  • v1.2.0(Jun 12, 2018)

  • v1.1.4(Jun 8, 2018)

  • v1.1.0(Jun 7, 2018)

  • v1.0.4(Jun 7, 2018)

  • v1.0.0(Jun 7, 2018)

    v1.0.0

    • A complete rewrite, more extensible.
    • Readable and better code.
    • Update to Webpack 4
    • Remove built-in loaders. Maybe we can create another repository including custom spinners.
    • Remove width and height props.
    • Strict props.
    • isLoading supports matchers now creating.*, !creating etc. Please see /sindresorhus/matcher.
    • Rename registerComponents to registerComponent
    • Added accessorName option to change $vueLoading key.
    • Removed createActionHelpers, use mapLoadingActions or wrapLoading instead.
    • Added v-loading:visible, v-loading:hidden, v-loading:disabled, v-loading:enabled, v-loading:click directives.
    Source code(tar.gz)
    Source code(zip)
Owner
Fatih Kadir Akın
JavaScript developer. Ruby lover. Author.
Fatih Kadir Akın
Viai18n-loader - another webpack loader i18n solution for Vue (Nuxt) with auto generated keys.

Viai18n-loader - another webpack loader i18n solution for Vue (Nuxt) with auto generated keys. Currently under development, pull requests and suggesti

邓燊(Shen DENG) 3 Sep 3, 2021
A Vue.js component to create beautiful animated circular progress bars. https://vue-ellipse-progress-demo.netlify.com/

vue-ellipse-progress A dependency-free Vue.js plugin to create beautiful and animated circular progress bars, implemented with SVG. The purpose of thi

Sergej Atamantschuk 247 Nov 19, 2022
md-vue-loader is a Webpack loader to import Markdown files as Vue components

md-vue-loader md-vue-loader is a Webpack loader to import Markdown files as Vue components. ?? Why? ?? Decoupled from Vue Compatible with any version

hiroki osame 4 Jan 11, 2022
webpack loader, loads the .md file and returns the webpack loader that contains the content string in the file to achieve the function of making webpack load the .md file

webpack loader, loads the .md file and returns the webpack loader that contains the content string in the file to achieve the function of making webpack load the .md file

socialuni 0 Dec 28, 2020
Vue-ac-loader is a plugin for show a full screen loader on requests.

AC Loader (vue-ac-loader) vue-ac-loader is a plugin for show a full screen loader on requests.

miSkoMV 0 Jan 21, 2020
Webpack loader to be used along with vue-loader for Single File Components that provides template extension

vue-inheritance-loader Webpack loader to be used along with vue-loader for Single File Components that provides template extension. In Vue its possibl

Matias Rodal 39 May 24, 2021
Vue-loader-page: Full Page Loader

Vue-loader-page: Full Page Loader

Gurinder Chauhan 0 Jul 21, 2018
💥Browser Vue Loader is a single file JavaScript library that loads untranspile Vue applications into the browsers.

Browser Vue Loader Browser Vue Loader is a single file JavaScript library that loads untranspile Vue applications into the browsers. This loader is id

Xinzi Zhou 29 Oct 20, 2022
Progress bars and loading indicators for Vue.js

vue-progress-path Progress bars and loading indicators that can take any form! This library is Work In Progress. Live Demo Sponsors Gold Silver Bronze

Guillaume Chau 409 Nov 24, 2022
Radial progress bar component for Vue.js

vue-radial-progress A radial progress bar component for Vue.js. Uses SVG and javascript to animate a radial progress bar with a gradient. Live Demo Re

Wyzant 466 Nov 17, 2022
:panda_face: A simple,progress bar for Vue.js

svg-progress-bar A simple,progress bar for Vue.js ?? online demo | ?? simple demo | ?? Chinese Document Browser support IE Firefox Chrome Safari iOS A

sos 114 Nov 4, 2022
A simple and easily customizable skeleton loader plugin for you Vue application.

skeleton-loader-vue Loader showing skeleton view while data is being loaded to improve UX. ?? Installation npm: npm install skeleton-loader-vue --save

Abdulqudus Abubakre 74 Nov 15, 2022
Webpack loader for extract html in the vue template tag and remove it from bundle js

Vue template extractor Webpack loader for extract html in the vue template tag and remove it from bundle js.

Aidarkhan Zhumagulov 1 Feb 24, 2020
Prototype of BootstrapVue loader, webpack plugin for automatic components and directives importing for treeshaking.

A Webpack plugin for automatic BootstrapVue components and directives importing, mainly for treeshaking. Reduce the bundle size and achieve even distribution of chunks size, without the need for manual importing each used component.

Maciej Kopeć 13 Mar 4, 2022
Pre Loader components for vue.js

Demo and playground Live demo - https://vue-preloader.netlify.app/ Playground Website. Adjust the settings using the playground options. On the bottom

Bot-Academia 21 Jul 20, 2022
Webpack loader used for inline replacement of SVG images with actual content of SVG files in Vue projects.

Webpack loader used for inline replacement of SVG images with actual content of SVG files in Vue projects.

まっちゃとーにゅ 0 Apr 24, 2020
Webpack loader for Vue multifile components.

Webpack loader for Vue multifile components.

Vusion 1 Apr 6, 2020
💅 Vue style loader module for webpack

This is a fork based on style-loader. Similar to style-loader, you can chain it after css-loader to dynamically inject CSS into the document as style tags. However, since this is included as a dependency and used by default in vue-loader, in most cases you don't need to configure this loader yourself.

null 0 Mar 23, 2021
📦 Webpack loader for Vue.js components

vue-loader webpack loader for Vue Single-File Components NOTE: The master branch now hosts the code for v15! Legacy code is now in the v14 branch. Doc

Nivin Joseph 0 Feb 26, 2020