@keicreations/sapphire-vue

Vue components to communicate with API platform and Mercure.
2,337 1
Install
npm install @keicreations/sapphire-vue
Latest Version:3.8.1
Vue:2
Last Updated:Oct 24, 2024
Links: GitHub  ·  npm
Maintainer: alexkramer98

sapphire-vue

Sapphire Vue is a Vue.js library to handle Api Platform JSON-LD/Hydra resources.

Features

Axios API wrapper for JWT authentication

  • Uses Axios promises
  • Anonymous and Authenticated calls
  • Interceptor for automatically refreshing expired tokens

Vuex store

  • Authentication with API Platform
  • Authentication with Mercure
  • Mercure handler registration
    • Uses a single Mercure connection
    • Automatic connecting and reconnecting depending on the watched topics
  • Fetches user data from the JWT token

Vue ResourceList/ResourceGrid component

  • Holds a Hydra:collection
  • Uses slots for custom templating
  • Can watch Mercure for crud operations
    • Configurable handlers per crud operation (create, update, delete)
    • Eventhandlers to intercept operations
    • Events after completed operations
  • Server-side pagination
  • Server-side filtering and ordering

Usage

Yarn

yarn add @keicreations/vue-sapphire

Add a .npmrc file to the root of your project if you want to use Font Awesome Pro

Related Packages

spyfu-vuex-helpers

Utility functions for Vuex.

2,459 9
vuex-pathify

Ridiculously simple Vuex setup + wiring

322,817 1,358
direct-vuex

Use and implement your Vuex store with TypeScript types. Compatible with the Vue...

90,286 255
undo-redo-vuex

A Vuex plugin for module namespaced undo and redo functionality. This plugin tak...

9,207 47
vuex-typescript-fsa

The helper which makes vuex more type-safety

7,911

Version History

Version Released Vue License
3.8.1 2.6.12
3.8.0 2.6.12
3.7.2 2.6.12
3.7.1 2.6.12
3.7.0 2.6.12