New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

crazyloader-nuxt

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

crazyloader-nuxt

Axios plugin for nuxt 2 to show "Crazy Loading" animation

latest
Source
npmnpm
Version
1.0.1
Version published
Maintainers
1
Created
Source

CrazyLoader - Nuxt

Node.js Package

Axios plugin for nuxt 2 to show Crazy Loading animation

This is just a regular plugin I made to display loading with a "percent animation" automatically. Created because the projects I work on often use Vuetify2 and Nuxt2. So instead of me making a "board loader" component for axios, yeah I think making this isn't too much haha. If you want to try it, make sure your project uses nuxt version 2 and vuetify version 2.

Features

  • Show loading with Vuetify's v-progress-circular component
  • Displays an overlay when the loader is displayed so the user cannot do "crazy" activities :)
  • Customizable Size, Position, Color
  • When axios makes a request, crazyloader will become "crazy" :)
  • Well, that's all.

Installastion

Make sure the @nuxtjs/axios plugin and @nuxtjs/vuetify is ready.

npm i crazyloader-nuxt

Load as a plugin in nuxt.config.js configuration

export default {
  // ...
  plugins: [
    // ...
    "~/node_modules/crazyloader-nuxt/@vuetify",
    // ..
  ],
  // ...
};

Usage

Example of usage in layout

layouts/default.vue

<template>
    <v-app>
        <!-- CrazyLoader component -->
        <crazy-loader />

        <v-main>
            <!-- Main -->
            <v-container fluid class="pt-0">
                <nuxt />
            </v-container>
        </v-main>
    </v-app>
</template>

<script>
export default {
    created() {
        // Sample axios request to show "CrazyLoader"
        this.crazyRequest().then((r) => {
            console.log(r.data)
        })
    },

    methods: {
        crazyRequest() {
            return this.$axios.get('https://dummyjson.com/products')
        }
    }
}
</script>

Props

OptionsTypeDefaultDescripion
rotatestring/number360Rotate value
sizestring/numver100Size value
widthstring/number15Width value
colorstring#d6f037Color value
zIndexstring/number9999999z-index style value

<crazy-loader
  rotate="360"
  size="100"
  width="15"
  color="#d6f037"
  z-index="9999999"
/>

Contributing

Just pull request :)

Keywords

nuxt

FAQs

Package last updated on 17 May 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts