priot-core

A NUXT application layer that provides a set of core functionalities for Priot projects
2,157
Install
npm install priot-core
Latest Version:0.1.53
Vue:3
License:MIT
Last Updated:Apr 22, 2024
Links: npm
Maintainer: priotomaz

PRIOT - Core

Priot Core is a Nuxt.js application layer that provides a set of core functionalities for Priot projects.

Features

  • useAuth composable - Provides authentication functionalities. Stores the JWT token as a cookie under the name auth_token, available as the AUTH_TOKEN constant under priot-core/config/auth.

DayJS Configuration

priot-core/config/dayjs

  • createDayjs function - Create a dayjs client
  • Locale type - DayJS locale type, currently supported:
    • en
    • sl
    • no

API Configuration

priot-core/config/api

  • FETCH_METHOD enum - List of fetch methods
  • createFetchClient function - Create a fetch client
  • createFetch function - 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

  • copyObject function - Copy an object
  • areObjectsEqual function - Check if two objects are equal

Enums/Types

priot-core/types

  • ICON enum - List of icons (primarily for Vuetify)

Version History

Version Released Vue License
0.1.53 ^3.4.6 MIT
0.1.52 ^3.4.6 MIT
0.1.51 ^3.4.6 MIT
0.1.50 ^3.4.6 MIT
0.1.49 ^3.4.6 MIT