Security News
New Python Packaging Proposal Aims to Solve Phantom Dependency Problem with SBOMs
PEP 770 proposes adding SBOM support to Python packages to improve transparency and catch hidden non-Python dependencies that security tools often miss.
jenesius-vue-form
Advanced tools
Heavy form system for Vue.js ( Only 3 Version ). Library provides a wide range of functionality and interaction with form elements.
Where the spirit does not work with the hand there is no art. @Leonardo da Vinci
This example demonstrates a simple use of this library using the login form as an example.
<template>
<input-field name = "login"/>
<input-field name = "password" type = "password"/>
<button @click = "handleLogin">Login</button>
</template>
<script setup>
import {InputField, Form} from "jenesius-vue-form";
const form = new Form();
function handleLogin() {
console.log(form.values) // { login: "", password: "" }
}
</script>
To create a form, you just need to create an instance. JenesiusVueForm will do most of the work for you.
import {Form} from "jenesius-vue-form"
const form = new Form()
The reactive form state can be obtained from the useFormState hook, and reactive values from useFormValues:
import {useFormState, useFormValues} from "jenesius-vue-form"
const state = useFormState(form) // disabled changed
const state = useFormValues(form) // disabled changed
You can flexibly create complex inputs (compound) using FormProxy. More Information
The current example shows the simplest binding of two fields to a form and working with them
<template>
<input-field name = "username"/>
<input-field name = "password" type = "password"/>
<button @click = "showValues">values</button>
<button @click = "setUsername">set default name</button>
</template>
<script setup >
import {Form, InputField} from "jenesius-vue-form"
const form = new Form();
// Getting values from Form
function showValues() {
console.log(form.values);
}
// Setting username
function setUsername() {
form.change({
username: 'Jack'
})
}
</script>
I recommend going to the documentation site, which provides information on validation, form lock/unlock, and all the states of the form and input fields.
FAQs
Heavy form system for Vue.js
The npm package jenesius-vue-form receives a total of 187 weekly downloads. As such, jenesius-vue-form popularity was classified as not popular.
We found that jenesius-vue-form demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 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
PEP 770 proposes adding SBOM support to Python packages to improve transparency and catch hidden non-Python dependencies that security tools often miss.
Security News
Socket CEO Feross Aboukhadijeh discusses open source security challenges, including zero-day attacks and supply chain risks, on the Cyber Security Council podcast.
Security News
Research
Socket researchers uncover how threat actors weaponize Out-of-Band Application Security Testing (OAST) techniques across the npm, PyPI, and RubyGems ecosystems to exfiltrate sensitive data.