Skip to content
This repository has been archived by the owner on Oct 15, 2019. It is now read-only.

Trikolon/vue-network-status

Repository files navigation

vue-network-status

This library provides two VueJS components:

OnlineStatus: Shows an icon with tooltip representing if the client is currently online or offline.

NetworkInfo: Shows metrics about the internet connection using the browser Network Information API. Currently browser support is limited. I found that Chrome for Android works best.

Installation

npm i --save vue-network-status

Usage

Import the desired components

import {NetworkInfo, OnlineStatus} from 'vue-network-status';

Register them in your component

export default {
  name: 'app',
  components: {
    NetworkInfo,
    OnlineStatus,
    HelloWorld,
  },
};

Add them in your html section

<NetworkInfo/>
<OnlineStatus/>

More example code can be found in App.vue

Development & Demo

Project setup

npm install

Compiles and hot-reloads for development

npm run serve

Compiles and minifies for production

npm run build

Run your tests

npm run test

Lints and fixes files

npm run lint
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy