
Security News
Package Maintainers Call for Improvements to GitHub’s New npm Security Plan
Maintainers back GitHub’s npm security overhaul but raise concerns about CI/CD workflows, enterprise support, and token management.
@ketch-in/components
Advanced tools
npm install
And then you can access to http://127.0.0.1:4173/example
npm run dev
npm run build
const toastRoot = document.querySelector("#toast");
const { ToastController } = window.ketchInComponents;
const toastController = new ToastController(toastRoot, { removeDelay: 2000 });
for (let i = 1; i < 5; i++) {
setTimeout(() => {
const p = document.createElement("p");
p.innerText = `Toast ${i} TEST`;
toastController.add({
children: p,
data: { i },
momentDelay: 3000,
onClick: (item) => {
item.unmount(true);
console.log(item.getData());
},
onClose: (item, action) => {
console.log("456", i, item, action);
},
});
}, i * 500);
}
const root = document.querySelector("#app");
const { ToolbarController } = window.ketchInComponents;
const toolbarController = new ToolbarController(root, {});
toolbarController.add({
status: "KetchIn",
handlePen: () => console.log("switch to drawing line mode"),
handleShape: (selectedShape) =>
console.log(`switch to drawing [${selectedShape.type}] shape mode`),
// TODO: selectedShape 객체의 svg 필드 활용
handleColor: (selectedColor) =>
console.log(`pen color is now [${selectedColor}]`),
onClear: () => console.log("clear canvas"),
});
const root = document.querySelector("#app");
const { ModalController } = window.ketchInComponents;
const modalController = new ModalController(root, {
removeDelay: 2000,
modalWidth: 200,
});
const p = document.createElement("p");
p.innerText = `Modal (${i})`;
modalController.add({
children: p,
onClose: (item) => {
console.log(item);
},
});
const { SelectModalController } = window.ketchInComponents;
const selectController = new SelectModalController(root, {
removeDelay: 2000,
modalWidth: 400,
});
const p = document.createElement("p");
p.innerText = `SelectModal TEST (${i})`;
selectController.add({
children: p,
buttons: { yes: "확인", no: "취소" },
onClick: (item, id, label) => {
console.log(item, id, label);
},
});
ketch in components
is MIT licensed.
FAQs
components for ketch-in
The npm package @ketch-in/components receives a total of 2 weekly downloads. As such, @ketch-in/components popularity was classified as not popular.
We found that @ketch-in/components 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
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.
Research
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.