0.0.11 • Published 2 years ago

@dokoo/nuxt v0.0.11

Weekly downloads
-
License
MIT
Repository
-
Last release
2 years ago

Dokoo Nuxt Integration

Installation

yarn add @dokoo/nuxt

Register the module in your nuxt.config.js:

export default {
  modules: [
    '@dokoo/nuxt'  
  ],
  dokoo: {
    clients: {
      myCms: {
        token: '<your-access-token>'
      }
    }      
  } 
}

Usage

You are ready to go! Use it in any of your component:

export default {
  data () {
    return {
      hits: []
    }
  },
  async fetch () {
    const feed = this.$dokoo.myCms.feeds.getFeed('<your-feed-id>')
    const { hits } = await feed.get()
    this.hits = hits
  }    
}

Find the documentation of the Javascript Dokoo Client here:

0.0.10

2 years ago

0.0.11

2 years ago

0.0.9

2 years ago

0.0.8

2 years ago

0.0.7

3 years ago

0.0.6

3 years ago