0.1.15 • Published 4 years ago

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

Weekly downloads
-
License
ISC
Repository
github
Last release
4 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

4 years ago

0.1.14

4 years ago

0.1.13

4 years ago

0.1.12

4 years ago

0.1.11

4 years ago

0.1.10

4 years ago

0.1.9

4 years ago

0.1.8

4 years ago

0.1.7

4 years ago

0.1.6

4 years ago

0.1.5

4 years ago

0.1.4

4 years ago

0.1.3

4 years ago

0.1.2

4 years ago

0.1.1

4 years ago