2.1.0 • Published 4 years ago

@imagina/qhelper v2.1.0

Weekly downloads
-
License
ISC
Repository
github
Last release
4 years ago

QHELPER 2.0.2

This package content methods with helpers to coding more easy and fast

Installation

npm i @imagina/qhelper@2.0.2

Plugins

  • Alert

    Activate alert in bottom-right position. to use it, call this.$alert. The availables types are : success, error, info, warning, light,dark. Usage:
    this.$alert.success('message') // To send only the message
    this.$alert.success({message : '', timeOut : 4000}) //To set timeOut
  • Array

    SintaxDescription
    $array.tree(array, {label, id})Format array to use as options in components tree-select and q-select
    $array.parents(array, id)Return all parents from array, setting ID parameter to search into a array
    $array.children(array, id)Return all childrens from array, setting ID parameter to search into a array
    $array.diff(array1, array2)Search differences between two arrays
  • Cache

    Use this plugin to save information in cache of client side

    SintaxDescription
    $cache.set(key, data)Create or update item un cache
    $cache.get.item(key)Get a item from cache
    $cache.get.items([key,key2,...])Get items from cache
    $cache.remove(key)Remove item from cache
      
  • Helper

    SintaxDescription
    $helper.timetamp()Return current date in timestamp format, if set a parameter date, return this date in timestamp format
    $helper.getInt(value)Return only integer values from a string
    $helper.convertToFrontField(fields)Change format to 'fields' data, to use in front-end, if you set a second parameter this will be merged with the frist parameter
    $helper.convertToBackField(fields)Change format to 'fields' data, to send to back-end
    $helper.convertStringToSnakeCase(fields)Change a string to snake case.
    $helper.toSnakeCase(object)Change keys from object to snake case
    $helper.checkPassword(pasword)Check if password has a correct format
    $helper.validateEmail(email)Check if email has a correct format
    $helper.filterOptions(val, options, permitValues)Filter options to component qselect
2.1.0

4 years ago

2.0.2

4 years ago

2.0.1

4 years ago

2.0.0

5 years ago

1.0.0

5 years ago

0.0.27

5 years ago

0.0.26

5 years ago

0.0.25

5 years ago

0.0.24

5 years ago

0.0.23

5 years ago

0.0.22

5 years ago

0.0.21

5 years ago

0.0.20

5 years ago

0.0.19

5 years ago

0.0.18

5 years ago

0.0.17

5 years ago

0.0.16

5 years ago

0.0.15

5 years ago

0.0.14

6 years ago

0.0.13

6 years ago

0.0.12

6 years ago

0.0.11

6 years ago

0.0.10

6 years ago

0.0.9

6 years ago

0.0.8

6 years ago

0.0.7

6 years ago

0.0.6

6 years ago

0.0.5

6 years ago

0.0.4

6 years ago

0.0.3

6 years ago

0.0.2

6 years ago

0.0.1

6 years ago