{"id":20146499,"url":"https://github.com/deveodk/vue-online","last_synced_at":"2025-04-09T19:34:26.021Z","repository":{"id":57107873,"uuid":"93040888","full_name":"Deveodk/vue-online","owner":"Deveodk","description":"An easy way to show if a users browser is online, with support for custom notification drivers. Inspired by Sopamo/vue-online.","archived":false,"fork":false,"pushed_at":"2017-06-05T20:35:23.000Z","size":68,"stargazers_count":4,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-29T11:03:21.278Z","etag":null,"topics":["npm","offline","online","vue","vue2","webpack"],"latest_commit_sha":null,"homepage":"https://packages.deveo.io/packages/vue/vue-online","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Deveodk.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-06-01T09:33:48.000Z","updated_at":"2020-09-11T14:53:41.000Z","dependencies_parsed_at":"2022-08-20T17:11:14.303Z","dependency_job_id":null,"html_url":"https://github.com/Deveodk/vue-online","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Deveodk%2Fvue-online","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Deveodk%2Fvue-online/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Deveodk%2Fvue-online/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Deveodk%2Fvue-online/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Deveodk","download_url":"https://codeload.github.com/Deveodk/vue-online/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247980815,"owners_count":21027804,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["npm","offline","online","vue","vue2","webpack"],"created_at":"2024-11-13T22:23:51.026Z","updated_at":"2025-04-09T19:34:26.000Z","avatar_url":"https://github.com/Deveodk.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# @deveodk/vueOnline\n\n\u003cimg src=\"https://cloud.githubusercontent.com/assets/7561792/26679286/abc5ffd0-46d4-11e7-8578-8d1525600d77.png\" width=\"100%\" /\u003e\n\n[![npm](https://img.shields.io/npm/v/@deveodk/vue-online.svg)](https://www.npmjs.com/package/@deveodk/vue-online) [![vue2](https://img.shields.io/badge/vue-2.x-brightgreen.svg)](https://vuejs.org/)\n\n\u003e An easy way to show if a users browser is online, with support for custom notification drivers. Inspired by Sopamo/vue-online.\n\n# Demo\nSee a functioning demo\n\u003ca href=\"https://packages.deveo.io/packages/vue/vue-online\"\u003edeveo demo site\u003c/a\u003e\n\n\n## Installation\n\n```bash\nnpm install --save @deveodk/vue-online\n```\n\n### Bundler (Webpack, Rollup)\n\n```js\nimport Vue from 'vue'\nimport vueOnline from '@deveodk/vue-online'\nVue.use(vueOnline)\n```\n\n### Browser\n\n```html\n\u003c!-- From CDN --\u003e\n\u003cscript src=\"https://unpkg.com/@deveodk/vue-online\"\u003e\u003c/script\u003e\n```\n\n\n\n## Usage\n\nThe package provides multiple options to notfiy if a users browser is online. The easiest way is to let the plugin do it automaticly. \n\n#### Using @deveodk/vue-toastr driver\n\n```code\n# Using the default notification\nimport online from '@deveodk/vue-online'\nVue.use(online, {\n    notifier: require('@deveodk/vue-online/drivers/deveoToastr.js'),\n    defaultOnlineTitle: 'Online',\n    defaultOnlineMessage: 'You are online',\n    defaultOfflineTitle: 'Offline',\n    defaultOffilneMessage: 'You are offline'\n})\n\n```\n\n#### Extending the functionality on your own\n\n```code\n# The plugin comes with a build in mixin that allows you to make your own functionality\n  import {VueOnline} from '@deveodk/vue-online'\n  export default {\n      mixins: [VueOnline]\n  }\n```\n\nThis will give you a reactive variable ```{{VueOnline}}``` the variable is either ```true``` for online, or ```false``` for offline\n\n\n## License\n\n[MIT](http://opensource.org/licenses/MIT)\n\n\u003cimg src=\"https://cloud.githubusercontent.com/assets/7561792/26679305/bc4d7bda-46d4-11e7-9270-3f6cacdd0ae9.png\" width=\"100%\" /\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdeveodk%2Fvue-online","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdeveodk%2Fvue-online","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdeveodk%2Fvue-online/lists"}