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

future-vue-components

v0.0.25

Published

Good looking components for vue js

Downloads

57

Readme


Documentation

Go here 👉 https://danny-aguilar.gitbook.io/future-vue-components/

Installation

install moment , animate.css , tailwind

npm install --save future-vue-components

in case of error when you import css files from tailwind, try the complete route from where the @import is (main.scss file) => /src/assets/scss/main.scss

 @import "./../../../node_modules/tailwindcss/dist/base.css";
 @import "./../../../node_modules/tailwindcss/dist/components.css";
 @import "./../../../node_modules/tailwindcss/dist/utilities.css";

⚠️ Warning: due to a bug already issued it to momentjs, other locales as spanish are not available for the moment, this error is shown as Can't resolve './locale'

Usage

import Vue from "vue"

import Datepicker from 'future-vue-components'
Vue.use(Datepicker)

import Card from 'future-vue-components'
Vue.use(Card)

vue template

<!-- Card -->
<future-card
  :user="{
    avatar_url: 'https://i.pinimg.com/originals/39/ec/15/39ec15a87824a1bdd57484e6a5459593.jpg',
    name: 'emily rudd'
  }"
>
  <span slot="title">This is a title</span>
  <span>
    Lorem ipsum dolor sit amet, consectetur adipisicing elit. Voluptatibus quia, nulla! Maiores et perferendis eaque, exercitationem praesentium nihil.
  </span>
</future-card>

<!-- Datepicker -->
<input
  @click="datepicker = true"
  type="text"
  placeholder="date"
  autocomplete="off"
  spellcheck="false"
  readonly="readonly"
  v-model="date"
>
<future-datepicker
  :show="datepicker"
  @close="datepicker = false"
  @date="(datepicker) => {date = datepicker}"  
/>

vue template

export default {
  props: {},
  data() {
    return {
      date: '',
      datepicker: false,
    }
  },
};

Props

Datepicker

| Name | Type | Default | Description | Example | | ----------------- | -------------- | ----------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------- | | color | String | indigo | All colors accepted by Tailwind at https://tailwindcss.com/docs/customizing-colors/#default-color-palette. | 'red' or 'gray' | | background | Boolean | true | Whether the datepicker shows a background image or not. | true or false | | show | Boolean | false | Whether the datepicker shows itself or not, is used to enable the modal and quit it. | true or false | | background_url | String | https://www.xtrafondos.com/wallpapers/montanas-en-bosque-minimalista-flat-3306.jpg | Default url for a background image if need it. | - |

Card

| Name | Type | Default | Description | Example | | ----------------- | -------------- | ----------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------- | | color | String | gray | All colors accepted by Tailwind at https://tailwindcss.com/docs/customizing-colors/#default-color-palette. | 'red' or 'gray' | | background | Boolean | true | Whether the datepicker shows a background image or not. | true or false | | type | String | normal | It represents the card style that's shown. | normal or full-image | | user | Object | null | User's card data. | {avatar_url: 'https://i.pinimg.com/originals/39/ec/15/39ec15a87824a1bdd57484e6a5459593.jpg',name: 'emily rudd'} | | badges | Array | [] | All the badges that are going to be shown. | ['admin','volunteer'] | | background_url | String | https://i.pinimg.com/originals/54/ce/a7/54cea70579cfefc972a4cbf67f92ea59.jpg | Default url for a background image if need it. | - |

Development

npm install
npm run Test
# open localhost:8080

TODO

  • Datepicker choose by year
  • Fix .locale moment bug

License

MIT