priot-core
v0.1.53
Published
A NUXT application layer that provides a set of core functionalities for Priot projects
Downloads
293
Readme
PRIOT - Core
Priot Core is a Nuxt.js application layer that provides a set of core functionalities for Priot projects.
Features
useAuthcomposable - Provides authentication functionalities. Stores the JWT token as a cookie under the nameauth_token, available as the AUTH_TOKEN constant underpriot-core/config/auth.
DayJS Configuration
priot-core/config/dayjs
createDayjsfunction - Create a dayjs clientLocaletype - DayJS locale type, currently supported:enslno
API Configuration
priot-core/config/api
FETCH_METHODenum - List of fetch methodscreateFetchClientfunction - Create a fetch clientcreateFetchfunction - Create a fetch function
Pagination Configuration
priot-core/config/pagination
ListRequest(Query params for pagination list requests)ListResponse(Response for pagination list requests)
Utils
priot-core/utils
copyObjectfunction - Copy an objectareObjectsEqualfunction - Check if two objects are equal
Enums/Types
priot-core/types
ICONenum - List of icons (primarily for Vuetify)
