@byu-oit/nuxt-alerts

Organize alerts for displaying errors and other messages on a Nuxt client
1,330
Install
npm install @byu-oit/nuxt-alerts
Latest Version:1.0.5
Older releases:2
License:Apache-2.0
Last Updated:Sep 2, 2020
Links: npm
Maintainer: yoshutch

Setup

Install

Install with yarn:

yarn add @byu-oit/nuxt-alerts

Install with npm:

npm install @byu-oit/nuxt-alerts

nuxt.config.js

module.exports = {
    modules: [
        '@byu-oit/nuxt-alerts',
    ],
}

Typescript

Add the types to your "types" array in tsconfig.json after the @nuxt/types (Nuxt 2.12.0+)

tsconfig.json

{
  "compilerOptions": {
    "types": [
      "@nuxt/types",
      "@byu-oit/nuxt-alerts"
    ]
  }
}

Why?

Because of the way nuxt works the $axios property on the context has to be merged into the nuxt Context interface via declaration merging. Adding @byu-oit/nuxt-alerts to your types will import the types from the package and make typescript aware of the additions to the Context interface.

Usage

TODO

Related Packages

@scayle/storefront-nuxt

Nuxt integration for the SCAYLE Commerce Engine and Storefront API

152,903
nuxt-tsconfig-stub

Stub Nuxt's generated tsconfig.json at installation

70,835 24
kuranuxt

Look at the Nuxt 3 documentation to learn more.

871 0
nuxt-define

One utility function for module authors to define compiler constants for all bui...

13,412,511
dayjs-nuxt

Day.JS Module for Nuxt

1,986,864 126

Version History

Version Released Vue License
1.0.5 Apache-2.0
1.0.4 Apache-2.0
1.0.3 Apache-2.0
1.0.2 Apache-2.0
1.0.1 Apache-2.0