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

rabbit-ui-core

v1.0.6

Published

<p align="left"> <a href="https://v3.cn.vuejs.org/"> <img src="https://img.shields.io/badge/vue-3.x-brightgreen.svg" alt="vue"> </a> <a href="https://vueuse.org/"> <img src="https://img.shields.io/static/v1?label=hook&message=@vueuse/core&co

Downloads

1

Readme

rabbit-ui-core

install

npm i rabbit-ui-core

useage

public/index.html

<link rel="stylesheet" href="https://at.alicdn.com/t/font_2143783_iq6z4ey5vu.css">

main.js

import RabbitUi from 'rabbit-ui-core'
import 'rabbit-ui-core/dist/rabbit-ui.css'

createApp(App).use(RabbitUi).mount('#app')

componets/hooks demo

XtxButton

/**
  type: default(默认) | primary | help | plain | gray
  size: large | middle(默认) | small | mini
  */
  <XtxButton type="primary">msg</XtxButton>

XtxBread & XtxBreadItem

  <XtxBread separator="😄">
    <XtxBreadItem to="/">首页</XtxBreadItem>
    <XtxBreadItem>
      {{ 分类 }}
    </XtxBreadItem>
    <XtxBreadItem>
      {{ 海鲜 }}
    </XtxBreadItem>
  </XtxBread>

XtxSlider

  <XtxSlider :data="imgList" autoPlay />

XtxCheckbox

  <XtxCheckbox v-model="check" />

  import { ref } from 'vue'
  setup () {
    const check = ref(false)
    return {check}
  }

XtxCity

  <XtxCity :data="cityList" />
  import { onMounted, ref } from 'vue'
  import axios from 'axios'

  setup () {
    const cityList = ref([])
    onMounted(async () => {
      const { data } = await axios({ url: 'https://yjy-oss-files.oss-cn-zhangjiakou.aliyuncs.com/tuxian/area.json' })
      cityList.value = data
    })
  }

XtxGoodViewer

  <XtxGoodViewer :imageList="goods.mainPictures" />

msg

  import { msg } from 'rabbit-ui-core'

  /**
  * type: warn(默认) 警告  error 错误  success 成功
  * text: 内容
  * time: 2000 关闭时间
  */
  msg({ text: 'hi rabbit-core-ui!' })

XtxConfirm

  import { XtxConfirm } from 'rabbit-ui-core'

  XtxConfirm({ title: '警告', text: '确认退出吗?' })
  .then(() => console.log('确定'))
  .catch(() => console.log('取消'))

useCountDown

  import { useCountDown } from 'rabbit-ui-core'

  setup() {
    const { countTimeText, start } = useCountDown()

    const go = ()=>{
      // 传入秒数,开始倒计时
      start(1800)
    }
    // 分秒显示
    return {countTimeText}
  }

sponsor