GithubHelp home page GithubHelp logo

Vue 3 support about idle-vue HOT 9 OPEN

soixantecircuits avatar soixantecircuits commented on July 19, 2024 7
Vue 3 support

from idle-vue.

Comments (9)

Hoviadin avatar Hoviadin commented on July 19, 2024 2

+1 Could this be changed in at new version bundle, to support Vue 3 ?

from idle-vue.

MoeNeuron avatar MoeNeuron commented on July 19, 2024 2

@LauBeck were you able to make the plugin compatible with Vue 3 or have you maybe found any other good alternatives?

from idle-vue.

Hoviadin avatar Hoviadin commented on July 19, 2024

@afonso @gabrielstuff @emmanuelgeoffray

from idle-vue.

brent-williams avatar brent-williams commented on July 19, 2024

@MoeNeuron idle-vue just wraps idle-js, you can use idle-js directly in Vue 3 without any issues.

from idle-vue.

ux-engineer avatar ux-engineer commented on July 19, 2024

Upcoming?

from idle-vue.

 avatar commented on July 19, 2024

Upcoming?

from idle-vue.

pratik227 avatar pratik227 commented on July 19, 2024

#59

from idle-vue.

liamcharmer avatar liamcharmer commented on July 19, 2024

@pratik227 how can this be implemented into Nuxt 3?

from idle-vue.

pratik227 avatar pratik227 commented on July 19, 2024

@liamcharmer

I think you need to create one plugin like idle-vule.js file where you need to register the idle-vue and then add that in nuxt.config.ts.

//idle.js
import IdleVue from "idle-vue";
import emitter from "tiny-emitter/instance";

export default function ({ app }) {
  app.use(IdleVue, {
    eventEmitter: {
      $on: (...args) => emitter.on(...args),
      $once: (...args) => emitter.once(...args),
      $off: (...args) => emitter.off(...args),
      $emit: (...args) => emitter.emit(...args)
    },
    idleTime: 1000
  });
}

// nuxt.config.ts
export default defineNuxtConfig({
  modules: [
    'idle.js',
  ],
})

Something like this Not familiar with Nuxt too much but you can try this.

from idle-vue.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.