Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
vue-holiday-planner
Advanced tools
This library consists of of a calendar component - Resource view which displays a scrollable overview of several people's calendars through months. Check out the [Demo](https://anovokmet.github.io/vue-holiday-planner/)
This library consists of of a calendar component - Resource view which displays a scrollable overview of several people's calendars through months. Check out the Demo
npm install vue-holiday-planner
<template>
<HolidayPlanner :resources="rows">
</HolidayPlanner>
</template>
<script lang="ts">
import Vue from 'vue';
import { HolidayPlanner } from 'vue-holiday-planner';
import dayjs from 'dayjs';
export default Vue.extend({
name: "App",
components: {
HolidayPlanner,
},
data() {
return {
rows: [
{
id: 1,
title: "Krystalle Logie",
subtitle: "Senior Sales Associate",
img: "assets/woman1.jpg",
days: [
{
date: dayjs(),
class: 'orange',
},
{
startDate: dayjs(),
endDate: dayjs().add(3, 'day'),
class: 'purple',
}
],
}
],
};
},
});
</script>
resources
- Array of items (rows) displayed in the calendar:
id
title
subtitle
img
- Href of image displayed in the default row header templatedays
- Array of dates highlighted in the calendar for this resource
date
{DayJs} - Highlighted datestartDate
{DayJs} - Optional, if date is null, use as start of the interval of selected datesendDate
{DayJs} - Optional, if date is null, use as end of the interval of selected datesclass
string|string[]{
/**
* Rows to display
*/
resources: {
type: Array as PropType<Resource[]>,
required: true,
},
/**
* Planner initializes on this date and scrolls to it initially
*/
startDate: {
default: () => dayjs().startOf('day'),
},
/** if infinite scroll is disabled, this is max scrollable date */
maxDate: {
default: () => dayjs().endOf('year'),
},
/** if infinite scroll is disabled, this is min scrollable date */
minDate: {
default: () => dayjs().startOf('year'),
},
/** is infinite scroll enabled */
infiniteScroll: {
type: Boolean,
default: true,
},
/** custom day classes to apply every row of the date, eg. national holidays */
customDays: {
type: Array as PropType<CustomDay[]>,
default: () => ([]),
},
/**
* Function to generate classes of body days
*/
getClassFn: {
type: Function,
default: (date: Dayjs) => {
const d = date.day();
if (d === 6 || d === 0) {
return 'weekend';
}
},
},
/**
* Function to generate classes of header days
*/
getHeaderClassFn: {
type: Function,
default: (date: Dayjs) => {
return {
'today': date.isSame(dayjs(), 'day'),
'start-of-month': date.date() === 1
};
},
},
/** function for date labels in body */
getDayValueFn: {
type: Function,
default: (date: Dayjs) => {
return date.date();
},
},
/** function for date labels in header */
getDayHeaderFn: {
type: Function,
default: (date: Dayjs) => {
return date.format('dd')[0];
},
},
/** enable selection of dates */
selectionEnabled: {
type: Boolean,
default: true,
}
}
Most are self-explanatory
@header-click
- Emits when a date is clicked in the header.@row-click
@day-click
date
{DayJs}event
row
model
- If clicked on a highlighted date, returns the input model of the day@selection-end
dates
{DayJs[]} - Array of selected datesresources
- Array of selected resource input modelsevent
row-header
- Custom row templateExample:
<template v-slot:row-header="{ row }">
<div>Row:{{row.title}}</div>
</template>
title
- Custom title templateExample:
<template v-slot:title="{ from, to }">
<div>
From:{{from && from.format('MMM D. YYYY')}}, To:{{to && to.format('MMM D. YYYY')}
<div>
</template>
FAQs
This library consists of of a calendar component - Resource view which displays a scrollable overview of several people's calendars through months. Check out the [Demo](https://anovokmet.github.io/vue-holiday-planner/)
The npm package vue-holiday-planner receives a total of 8 weekly downloads. As such, vue-holiday-planner popularity was classified as not popular.
We found that vue-holiday-planner demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 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.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
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.