Skip to content

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

Notifications You must be signed in to change notification settings

keicreations/sapphire-vue

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

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

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published