1.1.0 • Published 4 years ago

vuex-c3s v1.1.0

Weekly downloads
3
License
MIT
Repository
github
Last release
4 years ago

Vuex-C3S

What?

A small Vue plugin that integrates into your existing store, providing access to the Citizen Science API and allowing you to sync locally with your Vue site.

How

import c3s from 'vuex-c3s'

const swaggerURL = "https://swagger.petstore.io/swagger.json"
Vue.use(c3s.plugin, {store, swaggerURL})

***

user: state => state.c3s.user.currentUser

Store Structure

NB: Below, Store properties are camel case and submodules are title case

  • C3S

    • client
    • host
    • User
      • user
      • currentUser
    • Project
      • projects
      • project
      • media
      • comments
    • Activity
      • activities
      • activity
      • media
      • comments
    • Task
      • tasks
      • task
      • media
      • comments
    • Media
      • media
      • medium
    • Comments
      • comments
      • comment

    Store Methods

    Each module has the following methods available:

  • getPlural(search**:JSON) - Retrieve all of the model, with a query object

  • getSingular(id:String) - Retrieve a single model matching the ID
  • createSingular(model: JSON) - Create an instance of the model
  • updateSingular(model:JSON, id:String) - Update an instance of the model
  • deleteSingular(id:String) - Delete an instance of the model e.g.:
    this.$store.dispatch('c3s/tasks/getTask', 'abc4e6')
2.3.1-beta

4 years ago

2.3.0-beta

4 years ago

2.2.9-beta

4 years ago

2.2.8-beta

4 years ago

2.2.6-beta

4 years ago

2.2.5-beta

4 years ago

2.2.4-beta

4 years ago

2.2.3-beta

4 years ago

2.2.2-beta

4 years ago

2.2.0-beta

4 years ago

2.2.1-beta

4 years ago

2.1.9-beta

4 years ago

2.1.8-beta

4 years ago

2.1.7-beta

4 years ago

2.1.6-beta

4 years ago

2.1.5-beta

4 years ago

2.1.4-beta

4 years ago

2.1.3-beta

4 years ago

2.1.2-beta

4 years ago

2.1.1-beta

4 years ago

2.1.0-beta

4 years ago

2.0.9-beta

4 years ago

2.0.8-beta

4 years ago

2.0.7-beta

5 years ago

2.0.6-beta

5 years ago

2.0.5-beta

5 years ago

2.0.4-beta

5 years ago

2.0.3-beta

5 years ago

2.0.2-beta

5 years ago

2.0.1-beta

5 years ago

2.0.0-beta

5 years ago

1.1.0

5 years ago

1.0.9

5 years ago

1.0.8

5 years ago

1.0.7

5 years ago

1.0.6

5 years ago

1.0.5

5 years ago

1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago

0.2.1

5 years ago

0.2.0

5 years ago

0.1.17

5 years ago

0.1.16

5 years ago

0.1.15

5 years ago

0.1.14

5 years ago

0.1.13

5 years ago

0.1.12

5 years ago

0.1.11

5 years ago

0.1.10

5 years ago

0.1.9

5 years ago

0.1.8

5 years ago

0.1.6

6 years ago

0.1.4

6 years ago