Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@mauromadeit/vue-commons

Package Overview
Dependencies
Maintainers
1
Versions
38
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@mauromadeit/vue-commons

> Reusable components, store, etc.

  • 0.5.5
  • latest
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

commons-vue

Reusable components, store, etc.

Install

yarn add https://github.com/maurop123/vue-commons.git

Then import

import { components } from '@mauromadeit/vue-commons'

Examples

Table Editor

Based on https://vuetifyjs.com/en/components/data-tables#example-crud

table-editor(
  v-bind="{ headers, items }"
  @save="save" @delete="delete"
)
methods: {
  save(item) { ... },
  delete(item) { ... },
}

For model of headers and items... https://vuetifyjs.com/en/components/data-tables

Masonry Component

masonry(:items="pages")
  v-card(slot-scope="page" class="mb-3")
    v-card-title(v-if="page.title") {{page.title}}

Bus

import { bus } from '@mauromadeit/vue-commons'

Reusing firebase db

// src/database.js
import { Database } from '@mauromadeit/vue-commons'
export default new Database({ ref: 'money-reports' })

// import and use anywhere
import db from '@/database'
db.get('items').subscribe(data => ...) // [{ id: 1, name: Al}, { id: 2, name: Bo }]
db.push('items', payload).subscribe()

State Model and Texts

text-state-model(
  :stateProp="`enrollment.owners.${i}.city`"
  label="City"
  :rules="[required()]"
)

// which is equivalent to...

state-model(stateProp="enrollment.companyName")
  v-text-field(
    slot-scope="{ value, input }"
    :value="value" @input="input"
    label="Company Legal Name"
    :rules="[required()]"
  )

SSL Cert

  1. https://www.aidanwoods.com/blog/lets-encrypt-the-manual-certificate/
  2. https://p3plcpnl0875.prod.phx3.secureserver.net:2083/cpsess4761954074/frontend/gl_paper_lantern/ssl/install.html
sudo ls /etc/letsencrypt/live/journal.mauromadeit.com/
# copy files below to site above
sudo cat /etc/letsencrypt/live/journal.mauromadeit.com/cert.pem
sudo cat /etc/letsencrypt/live/journal.mauromadeit.com/privkey.pem
sudo cat /etc/letsencrypt/live/journal.mauromadeit.com/chain.pem

Update PWA Icons

Gotcha

May not work in runtime only builds

Contributing

Initial setup

yarn install

Make changes and build. Don't forget to build!

yarn build

Test changes locally

rm -rf ../path/node_modules/mauromadeit-vue-commons/*
cp -r ./* ../path/node_modules/mauromadeit-vue-commons/

Bump version and push

npm version patch
git push

FAQs

Package last updated on 26 Dec 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc