Security News
Input Validation Vulnerabilities Dominate MITRE's 2024 CWE Top 25 List
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
@ed-components/ed-components
Advanced tools
A set of web-components for education.
Not ready for production yet. These components are used for research.
<ed-pb>
: Handle a set of questions and interactive answers.<ed-micro>
: Allows wrapping content inside a minimal dialog
element to easily chunk information and maximize memorization.<ed-choice>
: Single or multiple choice answer.<ed-ans>
: Simple text answer analyzed with NLP.<ed-num>
Components are published as npm packages, you can easily import all components and register it with the ed-components
file including side-effects.
import "https://esm.sh/@ed-components/ed-components/ed-components";
You can also install locally with npm i @ed-components/ed-components
and then in your code.
import "@ed-components/ed-components/ed-components";
A registerComponents
function is also provided.
import registerElements from "https://esm.sh/@ed-components/ed-components";
registerElements()
With local package:
import registerElements from "@ed-components/ed-components";
registerElements()
You also can register the elements you use and rename them. See dedicated pages for each component.
Via CSS custom properties (variables) inspired by bootstrap.
--ed-primary
--ed-success
--ed-danger
Ideas comes from Edx licensed CC-BY-SA.
EdXyzElement
and have a static method
define
that allow to register element in the custom registry with default
name ed-xyz
. See webcomponents.guide.All components are tested from the components
directory.
To execute all tests npm run test
, in watch mode: npm run test:watch
.
To execute test for a single component, pass the test group to wtr:
npm run test -- --group ed-survey
FAQs
A set of web-components for education.
We found that @ed-components/ed-components demonstrated a healthy version release cadence and project activity because the last version was released less than 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
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.
Research
Security News
A threat actor's playbook for exploiting the npm ecosystem was exposed on the dark web, detailing how to build a blockchain-powered botnet.