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 🙏

© 2025 – Pkg Stats / Ryan Hefner

@huongnv080/uikit

v0.0.25

Published

VN Compoments

Readme

※ Note

※ Add plugins yarn add -D @huongnv080/hv vue-uuid vue-click-outside-of sass-loader sass yarn add -D vue3-barcode qrcode-vue3 @vueup/vue-quill@latest xlsx yarn add -D tailwindcss@npm:@tailwindcss/postcss7-compat @tailwindcss/postcss7-compat postcss@^7 autoprefixer@^9 npx tailwindcss init -p

※ Import to index.vue

import { createApp } from 'vue'
import App from './App.vue'
import './tailwind.css'
import '@huongnv080/uikit/cs/css/index.scss'
import '@vueup/vue-quill/dist/vue-quill.snow.css'
import vClickOutside from 'vue-click-outside-of'
import router from './router'

import {
    vni,
    vns,
    vnms,
    vnmss,
    vnd,
    vnrc,
    vnfi,
    vnform,
    vneditor,
    vnbar,
    vnqr,
    vnchat,
    vntable,
    vnerror,
    vnconfirm,
    vnformdailog,
    vnfilterdailog,
    vnupload
} from '@huongnv080/hv'
import Error from './plugin/vnerror'
import Confirm from './plugin/vnconfirm'
import Form from './plugin/vnformdailog'
import Filter from './plugin/vnfilterdailog'
import Upload from './plugin/vnupload'

const app = createApp(App)
app.component('vn-i', vni)
app.component('vn-s', vns)
app.component('vn-ms', vnms)
app.component('vn-mss', vnmss)
app.component('vn-d', vnd)
app.component('vn-rc', vnrc)
app.component('vn-fi', vnfi)
app.component('vn-ta', vnta)
app.component('vn-editor', vneditor)
app.component('vn-bar', vnbar)
app.component('vn-qr', vnqr)
app.component('vn-menu', vnmenu)
app.component('vn-header', vnheader)
app.component('vn-form', vnform)
app.component('vn-tab', vntab)
app.component('vn-table', vntable)
app.component('vn-chat', vnchat)
app.component('vn-error', vnerror)
app.component('vn-confirm', vnconfirm)
app.component('vn-form-dailog', vnformdailog)
app.component('vn-filter-dailog', vnfilterdailog)
app.component('vn-upload', vnupload)
app.use(vClickOutside)
app.use(Error)
app.use(Confirm)
app.use(Filter)
app.use(Form)
app.use(Upload)
app.use(router)
app.mount('#app')

※ Use at Page.vue

<template>
    <div>
        <vn-i v-model:value="form.ivm.value" :attr="form.ivm" @input="onChange"/>
        <vn-i v-model:value="form.nvm.value" :attr="form.nvm" @input="onChange"/>
    </div>
</template>

<script>
import { defineComponent } from "vue";

export default defineComponent({
    name: 'HelloWorld',
    setup() {
        const form = {
            ivm: {
                value: "aaa",
                label: "TEXT"
            },
            nvm: {
                value: "aaa",
                type: "number",
                label: "NUMBER"
            }
        }

        const onChange = () => {
            console.log(form)
        }

        return {
            form,
            onChange
        }
  }
})
</script>

※ When Use Form at Page.vue

<template>
    <div>
        <vn-form :form="form" @onChange="onChange" />
        <!-- Use in compoment -->
        <button @click="() => onHiddenConfirm()">Open Confirm</button>
        <div v-if="!confirm.hidden" >
            <vn-confirm :attr="confirm" @onHidden="onHiddenConfirm" />
        </div>
        <button @click="() => onHiddenDailog()">Open Dailog</button>
        <div v-if="!formDailog.hidden">
            <vn-form-dailog :attr="formDailog" @onItemChange="onChange" @onHidden="onHiddenDailog"/>
        </div>
        <button @click="() => onHiddenSearchDailog()">Open Search Dailog</button>
        <div v-if="!formSearchDailog.hidden">
            <vn-filter-dailog :attr="formSearchDailog" @onItemChange="onChange" @onHidden="onHiddenSearchDailog"/>
        </div>
    </div>
</template>

<script>
import { ref, defineComponent, getCurrentInstance } from "vue";
import { IsFunc } from "./js/Util";

export default defineComponent({
    name: "HelloWorld",
    props: {
        msg: String
    },
    setup() {
        const form = {
                ivm: {
                value: "aaa",
                required: true,
                label: "TEXT",
            },
            iivm: {
                value: 10,
                type: "number",
                label: "NUMBER"
            }
        }

        const onChange = (item) => {
            console.log(item)
        }

        const onOK = (paras) => {
            console.log(paras)
        }

        const onSave = (form, close) => {
            if(IsFunc(close))close()
            console.log(form)
        }

        const confirm = ref({
            title: "Confirm Dailog",
            body: "Text Confirm",
            hidden: true,
            buttons: [
                { name: "OK", func: onOk, cls: "text-white bg-blue-700 hover:bg-blue-800" },
            ],
            form: form
        })

        const formDailog = ref({
            title: "Form Dailog",
            form: form,
            hidden: true,
            buttons: [
                { name: "Save", func: onSave, cls: "text-white bg-blue-700 hover:bg-blue-800" },
            ],
        })

        const formSearch = {
            iivm: {
                value: 10,
                type: "number",
                vertical: true,
                search: true,
                label: "NUMBER"
            },
        }

        const formSearchDailog = ref({
            hidden: true,
            form: formSearch
        })

        const app = getCurrentInstance()
        const vnconfirm = app.appContext.config.globalProperties.$vnconfirm
        const onHiddenConfirm = (hidden) => {
            // Set when use in compoment
            // confirm.value.hidden = hidden
            // Set when use in Script
            vnconfirm.open({
                attr: confirm.value
            })
        }

        const vnform = app.appContext.config.globalProperties.$vnform
        const onHiddenDailog = (hidden) => {
            formDailog.value.hidden = hidden
            vnform.open({
                attr: formDailog.value,
                onItemChange: onChange
            })
        }

        const filter = app.appContext.config.globalProperties.$vnfilter
        const onHiddenSearchDailog = (hidden) => {
            formSearchDailog.value.hidden = hidden
            filter.open({
                attr: formSearchDailog.value,
                onItemChange: onChange,
                onRunAction: onChange
            })
        }

        return {
            form,
            confirm,
            formDailog,
            formSearchDailog,
            onHiddenConfirm,
            onHiddenDailog,
            onHiddenSearchDailog,
            onChange
        };
    },
})
</script>