vuex-c3s

SDK for the Citizen Science Framework API, using Swagger and Vuex (requires JTOS >= 0.8.0 to be running on your server side)
1,425
Install
npm install vuex-c3s
Latest Version:1.1.0
Vue:2
License:MIT
Last Updated:Jan 4, 2023
Links: GitHub  ·  npm
Maintainer: c3s_dev

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')

Related Packages

vuex-i18n

Easy localization for vue-components using vuex as data store

241,310 654
@unify/vuex-i18n

Localization for vue 3 applications that use vuex. Can be used as plugin or comp...

44,250 2
vue-localize

Localization plugin for Vue.js based applications

1,735 44
bpmn-vue-properties-panel-camunda

A properties panel using vue and element-ui for camunda.

1,163
spyfu-vuex-helpers

Utility functions for Vuex.

2,459 9

Version History

Version Released Vue License
1.1.0 ^2.5.17 MIT
1.0.9 ^2.5.17 MIT
1.0.8 ^2.5.17 MIT
1.0.7 ^2.5.17 MIT
1.0.6 ^2.5.17 MIT
Pre-releases (29)
Version Released Vue License
2.3.1-beta ^2.6.10 MIT
2.3.0-beta ^2.6.10 MIT
2.2.9-beta ^2.6.10 MIT
2.2.8-beta ^2.6.10 MIT
2.2.6-beta ^2.6.10 MIT