All Projects → egoist → Vue Network

egoist / Vue Network

Licence: mit
Render a Vue component to indicate network status.

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to Vue Network

Tina
a powerful android network library base on okhttp
Stars: ✭ 32 (-23.81%)
Mutual labels:  network
Graphrole
Automatic feature extraction and node role assignment for transfer learning on graphs (ReFeX & RolX)
Stars: ✭ 38 (-9.52%)
Mutual labels:  network
Chirp
🔬Visualise Twitter Interactions
Stars: ✭ 40 (-4.76%)
Mutual labels:  network
Eoip
EoIP/EoIPv6 for *nix.
Stars: ✭ 34 (-19.05%)
Mutual labels:  network
Xdp
Package xdp allows one to use XDP sockets from the Go programming language.
Stars: ✭ 36 (-14.29%)
Mutual labels:  network
Ineter
Fast Java library for working with IP addresses, ranges, and subnets
Stars: ✭ 39 (-7.14%)
Mutual labels:  network
Networkmnt
Monitor network float of process
Stars: ✭ 31 (-26.19%)
Mutual labels:  network
Dknetworking
基于 AFNetworking + YYCache 的二次封装,支持缓存策略的网络请求框架
Stars: ✭ 41 (-2.38%)
Mutual labels:  network
Net2pcap
Net2PCAP is a simple network-to-pcap capture file for Linux. Its goal is to be as simple as possible to be used in hostile environments
Stars: ✭ 36 (-14.29%)
Mutual labels:  network
Go Raknet
An idiomatic Go library implementing a basic version of the RakNet protocol.
Stars: ✭ 40 (-4.76%)
Mutual labels:  network
Cytoscape.js
Graph theory (network) library for visualisation and analysis
Stars: ✭ 8,107 (+19202.38%)
Mutual labels:  network
Erewhon Game
Video game about programming your spaceships to destroy other programmed spaceships o/
Stars: ✭ 35 (-16.67%)
Mutual labels:  network
Osmnet
Tools for the extraction of OpenStreetMap street network data
Stars: ✭ 39 (-7.14%)
Mutual labels:  network
Xiringuito
SSH-based "VPN for poors"
Stars: ✭ 969 (+2207.14%)
Mutual labels:  network
Dawn
global hosting, financial automation, server-less web components
Stars: ✭ 40 (-4.76%)
Mutual labels:  network
Unrealnetworkprofiler
A modern WPF based Network Profiler for Unreal Engine.
Stars: ✭ 29 (-30.95%)
Mutual labels:  network
Dratini
Dratini is a neat network abstraction layer.
Stars: ✭ 38 (-9.52%)
Mutual labels:  network
G6
♾ A Graph Visualization Framework in JavaScript
Stars: ✭ 8,490 (+20114.29%)
Mutual labels:  network
Eventlet
Concurrent networking library for Python
Stars: ✭ 1,003 (+2288.1%)
Mutual labels:  network
Easygo
基于Kotlin、OkHttp的声明式网络框架,像写HTML界面一样写网络调用代码
Stars: ✭ 40 (-4.76%)
Mutual labels:  network

vue-network

NPM version NPM downloads CircleCI donate chat

Install

yarn add vue-network

CDN: UNPKG | jsDelivr (available as window.VueNetwork)

Usage

<template>
  <network>
    <span slot="online">network is fine</span>
    <span slot="offline">oops, lost network connection</span>
  </network>
</template>

<script>
import Network from 'vue-network'

export default {
  components: {
    Network
  }
}
</script>

API

Slots

  • online: The slot to show when app is online.
  • offline: The slot to show when app is offline.

Props

  • changedOnly: Only show slots after network status is changed, i.e. render nothing on the first render.

Events

  • changed<online>: Emitted after network status is changed, eg:
<network @changed="handleNetworkChanged"></network>
function handleNetworkChanged(online) {
  console.log(online)
}

Contributing

  1. Fork it!
  2. Create your feature branch: git checkout -b my-new-feature
  3. Commit your changes: git commit -am 'Add some feature'
  4. Push to the branch: git push origin my-new-feature
  5. Submit a pull request :D

Author

vue-network © EGOIST, Released under the MIT License.
Authored and maintained by EGOIST with help from contributors (list).

egoist.moe · GitHub @EGOIST · Twitter @_egoistlily

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].