
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
@calenderjs/core
Advanced tools
CalenderJS 核心日历组件库,支持基于 Appointment DSL 的渲染。
pnpm add @calenderjs/core @calenderjs/event-dsl
<!DOCTYPE html>
<html>
<head>
<script type="module">
import { Calendar } from '@calenderjs/core';
// 注册组件
customElements.define('wsx-calendar', Calendar);
// 使用组件
const calendar = document.querySelector('wsx-calendar');
calendar.setAppointments([
{
id: '1',
title: '团队会议',
startTime: new Date('2024-12-20T10:00:00'),
endTime: new Date('2024-12-20T11:00:00'),
color: '#4285f4'
}
]);
</script>
</head>
<body>
<wsx-calendar></wsx-calendar>
</body>
</html>
import { Calendar } from '@calenderjs/core';
import { AppointmentDSLCompiler, AppointmentDSLRuntime } from '@calenderjs/event-dsl';
import { meetingAppointmentType } from './appointment-types';
// 定义 DSL
const dsl = {
types: [meetingAppointmentType]
};
// 编译 DSL
const compiler = new AppointmentDSLCompiler();
const compiled = compiler.compile(dsl);
// 创建运行时
const runtime = new AppointmentDSLRuntime(compiled);
// 使用组件
const calendar = document.querySelector('wsx-calendar') as Calendar;
calendar.setDSLRuntime(runtime);
calendar.setAppointments([
{
id: '1',
type: 'meeting',
title: '团队会议',
startTime: new Date('2024-12-20T10:00:00'),
endTime: new Date('2024-12-20T11:00:00'),
dslData: {
attendees: ['user1@example.com', 'user2@example.com'],
location: '会议室 A'
}
}
]);
setDSLRuntime(runtime: AppointmentDSLRuntime): 设置 DSL 运行时setAppointments(appointments: Appointment[]): 设置预约列表default-view: 默认视图('month' | 'week' | 'day')data-appointments: JSON 格式的预约列表FAQs
CalenderJS 核心日历组件库 - 基于 Web Components
We found that @calenderjs/core 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
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.