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

assistme.component

v2.1.88

Published

Grupo de components assistme

Downloads

562

Readme

assistme.component

another silly test

Build Setup

# install dependencies
npm i --save assistme.component

# caso esteja usando a nova versao do quasar, ele já faz o auto-import, então pule o passo de import.

# verifique no arquivo quasar.config.js

  framework: {
    'auto'
  }

# caso esteja usando auto-import, PULE ESTE PASSO!
# adicione os seguites plugins e components ao quasar.config.js

 return {
  framework: {
    components: [
      'QLayout',
      'QFooter',
      'QHeader',
      'QDate',
      'QInput',
      'QDrawer',
      'QSelect',
      'QAvatar',
      'QPageContainer',
      'QLinearProgress',
      'QPage',
      'QToolbar',
      'QToolbarTitle',
      'QBtn',
      'QIcon',
      'QMenu',
      'QList',
      'QEditor',
      'QItem',
      'QTooltip',
      'QItemSection',
      'QSeparator',
      'QToggle',
      'QDialog',
      'QCard',
      'QBar',
      'QCardSection',
      'QCardActions',
      'QSpace',
      'QItemLabel',
      'QCheckbox',
      'QColor',
      'QPopupProxy',
      'QExpansionItem',
      'QScrollArea'
    ]
  },
  directives: [
    'ClosePopup'
  ],
  plugins: [
   'Notify',
   'LocalStorage',
   'Dialog'
  ]
 }

Caminhos Personalizados

No arquivo quasar.conf.js na parte de build logo após extendWebpack adicione o seguinte codigo:

cfg.resolve.alias = {
  ...cfg.resolve.alias,
  '@root': ('src'),
  '@assets': ('src/assets'),
  '@server': ('src/server'),
  '@domain': ('src/domain'),
  '@components': ('src/components'),
  '@application': ('src/application')
}

Component VeeValidate

instale o veeValidate com o seguinte comando:

npm i [email protected] --save

crie um arquivo na pasta src/boot chamado VeeValidate.js

  import VeeValidate, { Validator } from 'vee-validate'
  import messagesBr from 'vee-validate/dist/locale/pt_BR'
  import messagesEn from 'vee-validate/dist/locale/en'
  import messagesEs from 'vee-validate/dist/locale/es'

  Validator.localize('pt_BR', messagesBr)
  Validator.localize('en', messagesEn)
  Validator.localize('es', messagesEs)

  export default ({ app, Vue }) => {
    Vue.use(VeeValidate, {
      errorBagName: 'vErrors',
      locale: 'pt_BR',
      i18nRootKey: 'validations',
      dictionary: {
        pt_BR: { messages: messagesBr },
        en: { messages: messagesEn },
        es: { messages: messagesEs }
      }
    })
  }
  
  # no quasar.config.js edit o boot e adicione global
    boot: [
      'i18n',
      'axios',
      'global',
      'veeValidate'
    ]

Components Globais

crie um arquivo na pasta src/boot chamado global.js

    import { CInput, CSelect, CModal, CMenu, CAlert, Functions, CValidaService, CTable } from 'assistme.component'

    export default ({ Vue }) => {
      Vue.prototype.$message = CAlert
      Vue.prototype.$functions = Functions
      Vue.component('CInput', CInput)
      Vue.component('CSelect', CSelect)
      Vue.component('CModal', CModal)
      Vue.component('CMenu', CMenu)
      Vue.component('CValidaService', CValidaService)
      Vue.component('CTable', CTable)
    }

# no quasar.config.js edit o boot e adicione global
    boot: [
      'i18n',
      'axios',
      'global'
    ]

CInput

Utilização do component de Input


  # existem varias props que podem ser passadas por parâmetro.

  # props para usar

  v-model: {
    # valor do input - required
  }
  
  label: {
    # label do input
  }

  placeholder: {
    # placeholder do input
  }

  icon: {
    # icone do input
  }

  type: {
    # tipo do valor - default: 'text'
  }

  outlined: {
    # borda inteiro no input
  }

  round: {
    # arredondar input
  }

  dark: {
    # input mode dark
  }

  color: {
    # default: 'blue-5'
  }



  
  Exemplo:

  <c-input v-model="usuario.login" label="Login" placeholder="Digite seu login" icon="fas fa-user" outlined/>