1.6.1 • Published 3 months ago

vue-postgrest v1.6.1

Weekly downloads
54
License
MIT
Repository
github
Last release
3 months ago

GitHub Actions Coveralls GitHub Dependabot License npm vue

vue-postgrest

Vue.js Component providing PostgREST integration

Docs

See the official documentation

Quick Start

To get started, install vue-postgrest via your package manager:

yarn add vue-postgrest
# OR npm install vue-postgrest

Import and install the Plugin in your main.js:

import Vue from 'vue'
import Postgrest from 'vue-postgrest'

Vue.use(Postgrest)

You can use the <postgrest> component:

<postgrest route="ROUTE" query={}>
  <template #default="{ items }">
    {{ items }}
  </template>
</postgrest>

Use the pg mixin:

<template>
  <div>{{ pg.items }}</div>
</template>

<script>
import { pg } from 'vue-postgrest'

export default {
  mixins: [pg],
  computed: {
    pgConfig () {
      return {
        route: 'ROUTE',
        query: {}
      }
    }
  }
}
</script>

Or you can directly use the instance method provided on your Vue instance:

this.$postgrest.ROUTE.get()

Contributing

We actively welcome your pull requests:

  1. Fork the repo and create your branch from main.
  2. If you've added code that should be tested, add tests.
  3. If you've changed APIs, update the documentation.
  4. Ensure the test suite passes.
  5. Make sure your code lints.
  6. Create a pull request.

Thank you!

1.6.1

3 months ago

1.6.0

3 months ago

1.5.1

3 months ago

1.4.3

1 year ago

1.4.2

1 year ago

1.4.1

1 year ago

1.5.0

1 year ago

1.4.0

2 years ago

1.3.1

2 years ago

1.3.0

3 years ago

1.2.0

3 years ago

1.1.2

3 years ago

1.1.1

3 years ago

1.1.0

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago

1.0.0-beta.1

4 years ago

1.0.0-alpha.11

4 years ago

1.0.0-alpha.10

4 years ago

1.0.0-alpha.9

4 years ago

1.0.0-alpha.8

4 years ago

1.0.0-alpha.7

4 years ago

1.0.0-alpha.6

4 years ago

1.0.0-alpha.5

4 years ago

1.0.0-alpha.4

4 years ago

1.0.0-alpha.3

4 years ago

1.0.0-alpha.2

4 years ago

1.0.0-alpha.1

4 years ago

1.0.0-alpha

4 years ago

0.7.4

4 years ago

0.7.3

4 years ago

0.7.2

4 years ago

0.7.1

4 years ago

0.7.0

4 years ago

0.6.2

4 years ago

0.6.1

4 years ago

0.6.0

4 years ago

0.5.2

4 years ago

0.5.1

4 years ago

0.5.0

4 years ago

0.4.0

4 years ago

0.3.0

4 years ago

0.3.2

4 years ago

0.3.1

4 years ago

0.3.4

4 years ago

0.3.3

4 years ago

0.2.3

4 years ago

0.2.2

4 years ago

0.2.1

4 years ago

0.1.1

4 years ago

0.2.0

4 years ago

0.1.0

4 years ago