0.1.15 • Published 3 years ago

@teamgrid-app/nuxt-teamgrid-sdk v0.1.15

Weekly downloads
-
License
ISC
Repository
github
Last release
3 years ago

@teamgrid-app/nuxt-teamgrid-sdk

This module exposes the TeamGrid API in the Nuxt Context.

Usage

nuxt.config.js

module.exports = {
  buildModules: [
    // https://github.com/kubilaymelnikov/teamgrid-app/tree/master/packages/nuxt-teamgrid-sdk#readme
    '@teamgrid-app/nuxt-teamgrid-sdk',
  ],
}

pages/index.vue

<script lang="ts">
import Vue from 'vue'

export default Vue.extend({
  data() {
    return {
      token: '',
      team: {},
    }
  },
  async fetch() {
    try {
      this.team = await this.$teamGridSDK
        .auth(this.token)
        .getTeams()
        .then((response) => response.data.data)
    } catch (error) {}
  },
})
</script>
0.1.15

3 years ago

0.1.14

3 years ago

0.1.13

3 years ago

0.1.12

3 years ago

0.1.11

3 years ago

0.1.10

3 years ago

0.1.9

3 years ago

0.1.8

3 years ago

0.1.7

3 years ago

0.1.6

3 years ago

0.1.5

3 years ago

0.1.4

3 years ago

0.1.3

3 years ago

0.1.2

3 years ago

0.1.1

3 years ago