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

plantilla-share

v1.2.3

Published

Plantilla share para adminlte. Contiene Navbar, Sidebar, Cards, Dashboard. Funcional con boostrap 5

Downloads

7

Readme

plantilla-share

En construccion

Plantilla administrativa

Instalacion

Para instalarla ejecutar

npm install plantilla-share

Importarla:

import Sidebar from 'plantilla-share/src/lib-components/Sidebar'
import Navbar from 'plantilla-share/src/lib-components/Navbar'
import CardPrimary from 'plantilla-share/src/lib-components/CardPrimary'
import CardSecondary from 'plantilla-share/src/lib-components/CardSecondary'
import Dashboard from 'plantilla-share/src/lib-components/Dashboard'

Uso

Sidebar

props posibles: TITLE: es el titulo del sidebar

ARMADO DE MENUS: recibe un objeto de arrays asociativos donde va armando los elementos del sidebar ejemplo: En el data del componente vue, podriamos armarlo

        data(){
            return{
                menus:[
                {
                    path:"inicio",
                    iconoClass:"fa fa-home",
                    nameLink:"Cliente"
                },
                {
                    path:"inicio2",
                    iconoClass:"fa fa-home",
                    nameLink:"Cliente"
                }
            ]
            }
        },

    tambien es posible añadirle botones al menú, mediante la etiqueta slot con el name "newRoutes".
    Ejemplo:
    <Sidebar title="Su Menú" :menu="menus" />
        <template slot="newRoutes">
            <li class="nav-item">
                <a class="nav-link" @click="logout">  
                    <i class="fa fa-home"></i>                   
                    <span>Logout</span>
                </a>
            </li>
            <li class="nav-item">
                <span class="nav-link collapsible"><i class="fa fa-home"></i> Example expand </span>
                <div class="expanded hidden ml-2">
                    <li class="nav-item">
                        <a href="#" class="nav-link text-dark a">
                            <i class="fa fa-home"></i> Example 1
                        </a>
                    </li>
                    <li class="nav-item">
                        <a href="#" class="nav-link text-dark a">
                            <i class="fa fa-home"></i> Example 2
                        </a>
                    </li>
                </div>                         
            </li>
        </template>
    </Sidebar>

Navbar

<Navbar />

Agregar mas items al navbar:

<Navbar>
    <template slot="items">
        <li class="nav-item border-right dropdown notifications">
            <a class="nav-link nav-link-icon text-center" role="button" id="alertas" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
                <div class="nav-link-icon__wrapper" title="Tienes mensajes del sistema.">
                    <i class="fa fa-envelope text-danger"></i>
                </div>
            </a>
            <div class="dropdown-menu dropdown-menu-small" aria-labelledby="alertas">
                <div class="px-4 py-2">
                    <p><i class="fa fa-exclamation-circle"></i>ejemplo</p>
                    <p><i class="fa fa-exclamation-circle"></i>ejemplo</p>
                </div>
            </div>
        </li>
    </template>
</Navbar>

Cards

Props:{
    title: String
    addBtn: {
        route: "Home"
        type: "path"
    }
} 

<CardPrimary>
    <template slot="container">
    </template>
</CardPrimary>


props:{
        title: String,
        classCuerpo: String,
        classCard: String
    }
<CardSecondary>
    <template slot="cuerpo">
    </template>
</CardSecondary>

Dash

    <Dash :title1="{name:'Clients'}" title2="34" :span="%5" />

Datos de versiones

*1.1.9 Se corrigio sidebar, se oculta al hacer click fuera.

*1.2.0 Se agrego button en card primary. Ahora podes crear router-link y button, este ultimo devuelve un evento "click".

*1.2.1 Se saco el atributo lang=ts del archivo "Navbar.vue".

*1.2.2 Se modifico el evento emit "click" a "btnclick" de CardPrimary.vue para cuando se pasa la prop :addbtn="{type: 'button'}".

*1.2.3 Se arreglo error en Sidebar