Socket
Book a DemoInstallSign in
Socket

@novicell/offline-notification

Package Overview
Dependencies
Maintainers
10
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@novicell/offline-notification

Offline notification component for nuxt setup

0.0.7
latest
npmnpm
Version published
Weekly downloads
0
-100%
Maintainers
10
Weekly downloads
 
Created
Source

nc-offline-notification

nc-offline-notification is a small component identifier for the Nuxt.js to inform the user when the app is offline.

Installation

Use the package manager npm to install component.

npm i @novicell/offline-notification

Usage

  • Create a plugin file inside /plugins. For example 'offline-notification.js'
import Vue from 'vue'
import offlineNotification from '@novicell/offline-notification'

Vue.use(offlineNotification);
  • Register plugin in 'nuxt.config.js' under 'plugins'
  plugins: [
    '~/plugins/offline-notification'
  ],
  • Display component
  <nc-offline-notification v-if="$nuxt.isOffline"></nc-offline-notification>

Add CSS modification

The aim of this component is to be customizable in order to be easily suited for different projects.

Customizable CSS variables:

:root {
  --offlineNotificationbackgroundColor: #1f2021;
  --offlineNotificationTextColor: #f2f4f5;
  --offlineNotificationFont: sans-serif;
  --offlineNotificationFontSize: .8em;
}

FAQs

Package last updated on 20 May 2020

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

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.