
Security News
Deno 2.6 + Socket: Supply Chain Defense In Your CLI
Deno 2.6 introduces deno audit with a new --socket flag that plugs directly into Socket to bring supply chain security checks into the Deno CLI.
This project was bootstrapped with [Create React App](https://github.com/facebook/create-react-app).
This project was bootstrapped with Create React App.
Application web et plugin Javascript permettant la création de pop-ups de devis / qualification / leadgen sur mesure.
Les données de structure des formulaires et méta-données sont persistées sur l'API de Contentful : https://app.contentful.com/spaces/n3fqi1ufw4d2
L'application Web utilise l'API contentful-management qui permet de manipuler les ressources : https://contentful.github.io/contentful-management.js/contentful-management/5.11.0/
Le script JS, quant Ă lui, utilise le SDK contentful content delivery : https://contentful.github.io/contentful.js/contentful/7.10.0/
yarn startLance l'admin en mode développement (auto-reload, non-minifié, etc.). Par défaut, utilise le port 3000.
Par défaut lancé en HTTPS (requis pour le SSO Contentful).
yarn buildL'action build va lancer en parallèle les actions build:app et build:sdk. Les deux vont écrire dans le répertoire
/build.
Une page /tester.html permet de tester le fonctionnement du SDK.
Le SDK déclare une classe MGFormLoader sur l'objet window. Cette classe est instanciée avec les paramètres suivant :
const loader = new MGFormLoader({
contentfulParams: {
space: "n3fqi1ufw4d2",
accessToken: "byDuC5n8v18DCyMknlbwDS6nDuRO3Hrl-LF1lsySwos"
},
userId: "ft1xqb2345",
onReady: function() {}
});
Attention pour Contenful, l'accessToken correspond Ă une API key pour l'API content-delivery (Settings / API Keys)
Cette classe est responsable de la récupération des configurations de formulaires sur Contentful et détermine, en fonction de la pondération des différents formulaires, quel formulaire afficher.
Une fois le FormLoader instancié, celui-ci expose une méthode createForm qui prend les paramètres suivants :
loader.createForm({
type: 'express',
onStepEvent: function(event) {
console.info("Step Event", event);
},
onComplete: function(value) {
console.info("Form Complete", value);
},
onChange: function(value) {
console.info("Form value Change", value);
},
onMount: function() {
console.info("Form mounted");
},
value: {
product_id: 1234
},
container: document.getElementById("mount")
});
FAQs
This project was bootstrapped with [Create React App](https://github.com/facebook/create-react-app).
We found that mg-forms 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
Deno 2.6 introduces deno audit with a new --socket flag that plugs directly into Socket to bring supply chain security checks into the Deno CLI.

Security News
New DoS and source code exposure bugs in React Server Components and Next.js: what’s affected and how to update safely.

Security News
Socket CEO Feross Aboukhadijeh joins Software Engineering Daily to discuss modern software supply chain attacks and rising AI-driven security risks.