npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

quasar-crud

v2.2.4

Published

quasar crud. Uses Quasar Framework and Vue.

Downloads

310

Readme

quasar-crud

This package includes 4 main component that combine several feature of Quasar like q-table, q-input , q-time and etc:

  • EntityIndex => For list of items.
  • EntityEdit => For edit information of any item of list
  • EntityCreate => For create new item
  • EntityShow => For show information of item

It also has:

  • Portlet => You can make every customized component that you want
  • EntityIndexTable => For make table in a specific structure

install

npm i quasar-crud

Usage

To use it in vue files, you need to import the component you want and use it like a regular component, for example:

<template>
    <entity-index/>
</template>

<script>
    import EntityIndex from 'quasar-crud'
    export default {
        components: { EntityIndex }
    }
</script>

Features:

  • EntityIndex

| props | default | type | description | |---------------------|:---------------------------:|:-----------------|--------------------------------------------| | value | [ ] | Array | | | title | ' ' | String | | | api | ' ' | String | | | createRouteName | ' ' | String, Boolean | | | tableKeys | { data: ' ', total: ' ' } | Object | query params of response | | table | { columns: [ ], data: [ ] } | Object | column include props of column in q-table | | beforeLoadInputData | () => { } | Function | | | afterLoadInputData | () => { } | Function | |

  • EntityEdit

| props | default | type | description | |---------------------|:---------------------------:|:----------|------------------------------| | value | [ ] | Array | | | title | ' ' | String | | | api | ' ' | String | | | entityIdKey | ' id ' | String | Id of selected item | | entityParamKey | ' id ' | String | need for router param | | showRouteName | ' ' | String | route name of show component | | table | { columns: [ ], data: [ ] } | Object | | | beforeGetData | () => { } | Function | | | beforeLoadInputData | () => { } | Function | | | afterLoadInputData | () => { } | Function | |

  • EntityCreate

| props | default | type | description | |-----------------------|:---------------------------:|:---------|--------------------------------------------------| | value | [ ] | Array | | | title | ' ' | String | | | api | ' ' | String | | | showRouteName | ' ' | String | route name of show component | | showRouteParamKey | ' ' | String | router param of show component | | entityIdKeyInResponse | ' id ' | String | ned for value of router param of show component | | indexRouteName | ' ' | String | route name of index component | | table | { columns: [ ], data: [ ] } | Object | | | beforeLoadInputData | () => { } | Function | | | afterLoadInputData | () => { } | Function | |

  • EntityShow

| props | default | type | description | |---------------------|:---------------------------:|:---------|-------------------------------| | value | [ ] | Array | | | title | ' ' | String | | | api | ' ' | String | | | entityIdKey | ' id ' | String | Id of selected item | | entityParamKey | ' id ' | String | need for router param | | editRouteName | ' ' | String | route name of edit component | | indexRouteName | ' ' | String | route name of index component | | table | { columns: [ ], data: [ ] } | Object | | | beforeGetData | () => { } | Function | | | beforeLoadInputData | () => { } | Function | | | afterLoadInputData | () => { } | Function | |

  • Portlet:

it has 3 slot that you can use them in all previous components:

#title
#toolbar
#content
  • EntityIndexTable:

it has 3 slot that you can use them in EntityIndex component:

#top="props"
#body-cell="props"  
# content  

| props | default | type | |------------|:---------------------------------------------------------------------------------------------------------------------------------:|:----------| | value | { data: [ ], pagination:{ sortBy: 'desc',descending: false,page: 1, rowsPerPage: 0 }rowsNumber: 0 } | Object | | title | ' ' | String | | loading | false | Boolean | | columns | [ ] | Array | | changePage | () => {} | Function |

Notice!

You can create forms in all previous components using quasar-form-builder.
To access them you can v-model an array of input's props as value prop in quasar-crud's components