
Security News
PodRocket Podcast: Inside the Recent npm Supply Chain Attacks
Socket CEO Feross Aboukhadijeh discusses the recent npm supply chain attacks on PodRocket, covering novel attack vectors and how developers can protect themselves.
@fullcube/campaign
Advanced tools
- 0 dependencies - all shipped code is vanilla JS, minimalistic and performant. The only dependency is optional APM run for logging and debugging purposes. - 0 css - library is style-agnostic. Specific events can add or remove classes up to your cust
{languageCode}.json
file in data/i18n directory.<script type="module">
import { fcCampaign } from 'https://cdn.jsdelivr.net/npm/@fullcube/campaign@latest/dist/campaign.js';
fcCampaign.bootstrap({
/* -------------------------------------------------------------------------- */
/* Defaults */
/* -------------------------------------------------------------------------- */
// Specify modules you plan to use on a page.
modules: [
{
name: 'add-member'
}
],
// Actions to be performed on submit button clicked. Modules are loaded on-demand through inspection of an array.
actions: [
{
// Module name in kebab-case convention.
module: 'add-prospect',
// Action name in camelCase convention.
name: 'addProspect'
},
{
module: 'discord',
name: 'login'
}
],
/* ------------------------------ Internal services ------------------------------- */
api: {
// API url.
url: `https://api.fullcube.io/api/v1`,
// ID of landing page in fullcube admin. Getter allows specifying additional logic.
landingPage() {
return {
id: `cjs-landingPage-1`
};
}
},
i18n: {
// Specifies name of json file that will be loaded from path ${assets.path}/i18n/${i18n.language}.js
language: 'en'
},
assets: {
// Path to static resources required by certain modules like languages, countries, states etc. in JSON.
path: `https://cdn.jsdelivr.net/npm/@fullcube/campaign@latest/dist/data`
},
dom: {
// Classes added to elements when they are disabled.
disabledClasses: [
`bg-gray-500`,
`-bg-blue-500`,
`-hover:bg-blue-700`
],
// Classes added to elements on error.
errorClasses: [`border-red-500`],
// Suffix of feedback HTMLElements (labels) like fc-firstName-feedback.
feedbackSuffix: `feedback`,
// Prefix for all HTMLElement's id's.
idPrefix: `fc`
}
});
</script>
add-prospect
).fc-firstName
, fc-firstName-feedback
; form
, error
and submit
are obligatory).Contains example pages required for development setup.
Modules are parts of library loaded on demand. They define fields that are should be hijacked from DOM, their validation methods and actions available to perform on form submit via actions
option. Logically, one module should handle single usual use case.
FAQs
- 0 dependencies - all shipped code is vanilla JS, minimalistic and performant. The only dependency is optional APM run for logging and debugging purposes. - 0 css - library is style-agnostic. Specific events can add or remove classes up to your cust
The npm package @fullcube/campaign receives a total of 2 weekly downloads. As such, @fullcube/campaign popularity was classified as not popular.
We found that @fullcube/campaign demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 8 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
Socket CEO Feross Aboukhadijeh discusses the recent npm supply chain attacks on PodRocket, covering novel attack vectors and how developers can protect themselves.
Security News
Maintainers back GitHub’s npm security overhaul but raise concerns about CI/CD workflows, enterprise support, and token management.
Product
Socket Firewall is a free tool that blocks malicious packages at install time, giving developers proactive protection against rising supply chain attacks.