All Projects → OXOYO → X-Browser-Update-Vue

OXOYO / X-Browser-Update-Vue

Licence: MIT license
A Vue.js browser-update plugin

Programming Languages

javascript
184084 projects - #8 most used programming language
Vue
7211 projects
HTML
75241 projects

Projects that are alternatives of or similar to X-Browser-Update-Vue

vue-inview
vue-plugin for in-view package
Stars: ✭ 100 (+300%)
Mutual labels:  vue-plugin
vue-package-template
Boilerplate for your next, ES6 Vue.js package. Ready for npm deployments
Stars: ✭ 12 (-52%)
Mutual labels:  vue-plugin
vite-plugin-webfont-dl
⚡ Webfont Download Vite Plugin - Make your Vite site load faster
Stars: ✭ 69 (+176%)
Mutual labels:  vue-plugin
vue-ray
Debug your Vue 2 & 3 code with Ray to fix problems faster
Stars: ✭ 48 (+92%)
Mutual labels:  vue-plugin
vue-img-orientation-changer
A vue plugin that can help you display image in correct orientation.
Stars: ✭ 38 (+52%)
Mutual labels:  vue-plugin
vue-drag-zone
Drag Zone component for @vuejs
Stars: ✭ 127 (+408%)
Mutual labels:  vue-plugin
vue-swimlane
A Text Swimlane plugin for Vue.js
Stars: ✭ 71 (+184%)
Mutual labels:  vue-plugin
vcrop
A simple Vue image cropping component.
Stars: ✭ 14 (-44%)
Mutual labels:  vue-plugin
vue-plausible
Plausible Analytics Vue.js Plugin and NuxtJS Module
Stars: ✭ 107 (+328%)
Mutual labels:  vue-plugin
vue-link
One component to link them all 🔗
Stars: ✭ 65 (+160%)
Mutual labels:  vue-plugin
generator-vue-plugin
Yeoman generator generating vue plugin 🚀
Stars: ✭ 29 (+16%)
Mutual labels:  vue-plugin
v-dropdown-menu
Dropdown menu plugin for vuejs, supported ssr.
Stars: ✭ 23 (-8%)
Mutual labels:  vue-plugin
vue-plugin-boilerplate
Vue Plugin Boilerplate
Stars: ✭ 120 (+380%)
Mutual labels:  vue-plugin
vue-svg-inline-plugin
Vue plugin for inline replacement of SVG images with actual content of SVG files.
Stars: ✭ 30 (+20%)
Mutual labels:  vue-plugin
vue-translator
A deadly simple i18n translate plugin for Vue, ready for Server Side Rendering.
Stars: ✭ 18 (-28%)
Mutual labels:  vue-plugin
vue-jss-plugin
JSS plugin implementation for Vue.js
Stars: ✭ 24 (-4%)
Mutual labels:  vue-plugin
vue-plugin
Highlight.js Vue Plugin
Stars: ✭ 102 (+308%)
Mutual labels:  vue-plugin
vue-cli-plugin-chrome-ext
vue cli plugin that setup vue project for chrome extension
Stars: ✭ 86 (+244%)
Mutual labels:  vue-plugin
vue-next-rx
RxJS integration for Vue next
Stars: ✭ 31 (+24%)
Mutual labels:  vue-plugin
lazyload-vue
Vue Plugin for vanilla-lazyload
Stars: ✭ 29 (+16%)
Mutual labels:  vue-plugin

x-browser-update

Version License NPM downloads Downloads JS gzip size

A Vue.js browser-update plugin.

Example

# install dependencies
npm install

# serve with hot reload at localhost:8080
npm run dev

Usage

## Packages install
npm install x-browser-update --save

## main.js
import XBrowserUpdate from 'x-browser-update'

Vue.use(XBrowserUpdate)

## App.vue
<style lang="less">
  html {
    height: 100%;
    width: 100%;
    padding: 0;
    margin: 0;
  }
  body {
    height: 100%;
    width: 100%;
    font-family: "Helvetica Neue",Helvetica,"PingFang SC","Hiragino Sans GB","Microsoft YaHei","微软雅黑",Arial,sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    padding: 0;
    margin: 0;
  }
  .layout {
    background: #383838;
  }
</style>

<template>
  <div id="app" class="layout">
    <x-browser-update :config="browserUpdateConfig"></x-browser-update>
  </div>
</template>

<script>
  export default {
    name: 'app',
    data () {
      return {
        browserUpdateConfig: {
          vs: {
            i: 11,
            f: -4,
            o: -4,
            s: 9,
            c: 40
          },
          // Specifies browser versions to notify. Negative numbers specify how much versions behind current version to notify.
          // f:22 ---> Firefox <= 22
          // c:-5 ---> Chrome <= 35 if current Chrome version is 40.
          reminder: 1,
          // after how many hours should the message reappear
          // 0 = show all the time
          reminderClosed: 150,
          // if the user explicitly closes message it reappears after x hours
          onshow: function (infos) {},
          onclick: function (infos) {},
          onclose: function (infos) {},
          // callback functions after notification has appeared / was clicked / closed
          l: false,
          // set a fixed language for the message, e.g. "en". This overrides the default detection.
          test: true,
          // true = always show the bar (for testing)
          text: '',
          // custom notification text (html)
          // Placeholders {brow_name} will be replaced with the browser name, {up_but} with contents of the update link tag and {ignore_but} with contents for the ignore link.
          // Example: Your browser, {brow_name}, is too old: <a{up_but}>update</a> or <a{ignore_but}>ignore</a>.
          text_xx: '',
          // custom notification text for language "xx"
          // e.g. text_de for german and text_it for italian
          newwindow: true,
          // open link in new window/tab
          url: null,
          // the url to go to after clicking the notification
          noclose: false,
          // Do not show the "ignore" button to close the notification
          nomessage: false,
          // Do not show a message if the browser is out of date, just call the onshow callback function
          jsshowurl: '//browser-update.org/update.show.min.js',
          // URL where the script, that shows the notification, is located. This is only loaded if the user actually has an outdated browser.
          container: document.body,
          // Element where the notification will be injected.
          api: 4
          // This is the version of the browser-update api to use. Please do not remove.
        }
      }
    }
  }
</script>

Preview

X-Browser-Update

Links

License

MIT

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].