Security News
RubyGems.org Adds New Maintainer Role
RubyGems.org has added a new "maintainer" role that allows for publishing new versions of gems. This new permission type is aimed at improving security for gem owners and the service overall.
@160over90/vue-form-fetch
Advanced tools
Allows you to use the HTTP methods to send or get data gathered from any number of form fields.
Allows you to use the HTTP methods GET and POST to send or get data gathered from any number of form fields.
If you do not have
yarn
you can download it here.
yarn add @160over90/vue-form-fetch
Include in main.js (app entry point)
import FormFetch from '@160over90/vue-form-fetch';
Vue.use(FormFetch);
yarn install
yarn run serve
method the method attribute excepts the "GET" or "POST" HTTP methods.
action the action attribute excepts your API endpoint or path to PHP middleware.
Example
<FormFetch
method="POST"
action="/submit-form.php"
>
<template slot-scope="{ state, response }">
<div>
<label>
<div>First Name</div>
<input name="firstName">
</label>
</div>
<div>
<label>
<div>Last Name</div>
<input name="lastName">
</label>
</div>
<button v-text="'Submit'"/>
<p v-if="state === 'pending'>
Submitting your request...
</p>
<p v-else-if="state === 'rejected'">
Sorry, that didn't work!
</p>
<p v-else-if="state === 'fulfilled'">
{{ response.ok
? "You're good to go!"
: "Sorry, that didn't work!"
}}
</p>
</template>
</FormFetch>
init (Object, Default: null) Allows you to pass a configuration object.
Example
<FormFetch
method="POST"
action="/submit-form.php"
:init="{
mode: 'cors',
cache: 'no-cache',
}"
>
...
For request properties, refer to: https://developer.mozilla.org/en-US/docs/Web/API/Request.
FAQs
Allows you to use the HTTP methods to send or get data gathered from any number of form fields.
We found that @160over90/vue-form-fetch demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 5 open source maintainers 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
RubyGems.org has added a new "maintainer" role that allows for publishing new versions of gems. This new permission type is aimed at improving security for gem owners and the service overall.
Security News
Node.js will be enforcing stricter semver-major PR policies a month before major releases to enhance stability and ensure reliable release candidates.
Security News
Research
Socket's threat research team has detected five malicious npm packages targeting Roblox developers, deploying malware to steal credentials and personal data.