Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
vue-google-places-autocomplete
Advanced tools
Readme
This package will let you use google places API to autocomplete a existing address form
const Vue = require('vue')
const googleAutocompleteDirective = require('google-places-autocomplete');
// TODO: DEMONSTRATE API
Vue.use(GooglePlacesAutoComplete, {
key: process.env.GOOGLE_API_KEY
})
Default directive use
<template>
<section class="shipping-form">
<form
action="#"
novalidate
@submit.prevent="submit"
v-google-places-autocomplete >
<div class="input-group addressLine">
<label for="addressLine">{{ $t('shipping-form.labels.addressLine') }}</label>
<input
type="text"
name="addressLine"
id="addressLine"
v-model="address.addressLine" >
</div>
<div class="input-group addressLine2">
<label for="addressLine2">{{ $t('shipping-form.labels.addressLine2') }}</label>
<input type="text" name="addressLine2" id="addressLine2" v-model="address.addressLine2" >
</div>
<div class="input-group country">
<label for="country">{{ $t('shipping-form.labels.country') }}</label>
<country-selector
:name="'country'"
:id="'country'"
v-model="address.country.code" />
</div>
<div class="input-group state">
<label for="state">{{ $t('shipping-form.labels.state') }}</label>
<state-selector
:country="address.country.code"
:name="'state'"
:id="'state'"
v-model="address.state.code" />
</div>
<div class="input-group city">
<label for="city">{{ $t('shipping-form.labels.city') }}</label>
<input
type="text"
name="city"
id="city"
v-model="address.city" />
</div>
<div class="input-group postal">
<label for="postal">{{ $t('shipping-form.labels.postal.' + postalCodeKey) }}</label>
<input
type="text"
name="postal"
id="postal"
v-model="address.postal" >
</div>
<div class="input-group phone">
<label for="phone">{{ $t('shipping-form.labels.phone') }}</label>
<input
type="tel"
name="phone"
id="phone"
v-model="phone">
</div>
<div class="shipping-form__actions group-actions">
<ub-button
buttonType="primary"
buttonSize=""
:actionName="submitText"
:disabled="disableButton"
:buttonLoading="loading">
</ub-button>
<ub-button
buttonType="secondary"
buttonSize=""
:actionName="$t('cancel')"
:disabled="loading"
:onClick="cancel">
</ub-button>
</div>
</form>
</section>
</template>
FAQs
Directive to autocomplete addresses with google place API
The npm package vue-google-places-autocomplete receives a total of 2 weekly downloads. As such, vue-google-places-autocomplete popularity was classified as not popular.
We found that vue-google-places-autocomplete demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Security News
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.