🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more

vue-add-to-calendar

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vue-add-to-calendar - npm Package Compare versions

Comparing version

to
1.0.6

@@ -0,1 +1,5 @@

<a name="1.0.6"></a>
# [1.0.6](https://github.com/nicolasbeauvais/vue-add-to-calendar/compare/1.0.5..1.0.6) (2020-05-13)
- Add Office 365 calendar
<a name="1.0.5"></a>

@@ -2,0 +6,0 @@ # [1.0.5](https://github.com/nicolasbeauvais/vue-add-to-calendar/compare/1.0.4...1.0.5) (2020-05-13)

/*!
* vue-add-to-calendar v1.0.5
* vue-add-to-calendar v1.0.6
* (c) 2020 nicolasbeauvais

@@ -47,2 +47,15 @@ * Released under the MIT License.

}
},
office365: {
url: 'https://outlook.office.com/owa/?path=/calendar/action/compose&rru=addevent',
parameters: function parameters$2 (title, location, details, start, end) {
return {
subject: title,
location: location,
body: details,
startdt: start,
enddt: end
};
}
}

@@ -158,2 +171,6 @@ };

data: function () { return { calendar: 'microsoft' }; }
},
'office365-calendar': {
mixins: [AddToCalendarMixin],
data: function () { return { calendar: 'office365' }; }
}

@@ -163,3 +180,3 @@ }

AddToCalendar.version = '1.0.5';
AddToCalendar.version = '1.0.6';

@@ -166,0 +183,0 @@ AddToCalendar.install = function (Vue) {

/*!
* vue-add-to-calendar v1.0.5
* vue-add-to-calendar v1.0.6
* (c) 2020 nicolasbeauvais

@@ -51,2 +51,15 @@ * Released under the MIT License.

}
},
office365: {
url: 'https://outlook.office.com/owa/?path=/calendar/action/compose&rru=addevent',
parameters: function parameters$2 (title, location, details, start, end) {
return {
subject: title,
location: location,
body: details,
startdt: start,
enddt: end
};
}
}

@@ -162,2 +175,6 @@ };

data: function () { return { calendar: 'microsoft' }; }
},
'office365-calendar': {
mixins: [AddToCalendarMixin],
data: function () { return { calendar: 'office365' }; }
}

@@ -167,3 +184,3 @@ }

AddToCalendar.version = '1.0.5';
AddToCalendar.version = '1.0.6';

@@ -170,0 +187,0 @@ AddToCalendar.install = function (Vue) {

/*!
* vue-add-to-calendar v1.0.5
* vue-add-to-calendar v1.0.6
* (c) 2020 nicolasbeauvais
* Released under the MIT License.
*/
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):t.VueAddToCalendar=e()}(this,function(){"use strict";var t={template:'<a :href="$parent.calendarUrl(calendar)" :class="calendarClass" target="_blank"><slot></slot></a>',computed:{calendarClass:function(){return["vue-add-to-calendar",this.calendar+"-calendar"]}}},e={google:{url:"http://www.google.com/calendar/event?action=TEMPLATE&trp=false",parameters:function(t,e,n,a,r){var o={text:t,location:e,details:n};return a&&r&&(o.dates=a+"/"+r),o}},microsoft:{url:"https://outlook.live.com/owa/?rru=addevent",parameters:function(t,e,n,a,r){return{subject:t,location:e,body:n,startdt:a,enddt:r}}}},n={props:{title:{type:String,default:""},location:{type:String,default:""},details:{type:String,default:""},start:{type:Date,default:null},end:{type:Date,default:null}},data:function(){return{calendars:e}},methods:{calendarUrl:function(t){var e=this.calendars[t].url,n=this.calendars[t].parameters(this.formatString(this.title),this.formatString(this.location),this.formatString(this.details),this.formatDate(this.start),this.formatDate(this.end));for(var a in n)n.hasOwnProperty(a)&&n[a]&&(e+="&"+a+"="+n[a]);return e},formatString:function(t){return encodeURIComponent(t).replace(/%20/g,"+")},formatDate:function(t){return t?t.toISOString().replace(/-|:|\.\d+/g,""):null}},mounted:function(){},components:{"google-calendar":{mixins:[t],data:function(){return{calendar:"google"}}},"microsoft-calendar":{mixins:[t],data:function(){return{calendar:"microsoft"}}}}};return n.version="1.0.5",n.install=function(t){t.component("add-to-calendar",n)},"undefined"!=typeof window&&(window.AddToCalendar=n),n});
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):t.VueAddToCalendar=e()}(this,function(){"use strict";var t={template:'<a :href="$parent.calendarUrl(calendar)" :class="calendarClass" target="_blank"><slot></slot></a>',computed:{calendarClass:function(){return["vue-add-to-calendar",this.calendar+"-calendar"]}}},e={google:{url:"http://www.google.com/calendar/event?action=TEMPLATE&trp=false",parameters:function(t,e,a,n,r){var o={text:t,location:e,details:a};return n&&r&&(o.dates=n+"/"+r),o}},microsoft:{url:"https://outlook.live.com/owa/?rru=addevent",parameters:function(t,e,a,n,r){return{subject:t,location:e,body:a,startdt:n,enddt:r}}},office365:{url:"https://outlook.office.com/owa/?path=/calendar/action/compose&rru=addevent",parameters:function(t,e,a,n,r){return{subject:t,location:e,body:a,startdt:n,enddt:r}}}},a={props:{title:{type:String,default:""},location:{type:String,default:""},details:{type:String,default:""},start:{type:Date,default:null},end:{type:Date,default:null}},data:function(){return{calendars:e}},methods:{calendarUrl:function(t){var e=this.calendars[t].url,a=this.calendars[t].parameters(this.formatString(this.title),this.formatString(this.location),this.formatString(this.details),this.formatDate(this.start),this.formatDate(this.end));for(var n in a)a.hasOwnProperty(n)&&a[n]&&(e+="&"+n+"="+a[n]);return e},formatString:function(t){return encodeURIComponent(t).replace(/%20/g,"+")},formatDate:function(t){return t?t.toISOString().replace(/-|:|\.\d+/g,""):null}},mounted:function(){},components:{"google-calendar":{mixins:[t],data:function(){return{calendar:"google"}}},"microsoft-calendar":{mixins:[t],data:function(){return{calendar:"microsoft"}}},"office365-calendar":{mixins:[t],data:function(){return{calendar:"office365"}}}}};return a.version="1.0.6",a.install=function(t){t.component("add-to-calendar",a)},"undefined"!=typeof window&&(window.AddToCalendar=a),a});
{
"name": "vue-add-to-calendar",
"description": "A Vue.js component providing 'Add to Calendar' functionality",
"version": "1.0.5",
"version": "1.0.6",
"author": {

@@ -25,3 +25,3 @@ "name": "nicolasbeauvais",

"dotenv": "^2.0.0",
"eslint": "^3.4.0",
"eslint": "^4.18.2",
"eslint-config-vue": "^1.1.0",

@@ -28,0 +28,0 @@ "eslint-loader": "^1.3.0",

@@ -1,2 +0,2 @@

# vue-add-to-calendar
<h1 align="center">Vue Add To Calendar</h1>

@@ -10,12 +10,18 @@ [![Release](https://img.shields.io/github/release/nicolasbeauvais/vue-add-to-calendar.svg?style=flat-square)](https://github.com/nicolasbeauvais/vue-add-to-calendar/releases)

A Vue.js component that provides 'Add to Calendar' functionality
<h3 align="center">A Vue.js renderless component providing 'Add to Calendar' functionality</h3>
<h4 align="center">Less than 1kb gzipped</h4>
---
## [Demo](https://nicolasbeauvais.github.io/vue-add-to-calendar/)
&nbsp;
### What is a renderless component?
Renderless components give you the highest possible control over your markup and styling. This means that `vue-add-to-calendar` ship with minimal HTML and no CSS to let you adapt the look and feel of the components to your needs. You can learn more about renderless components in [this blog article](https://adamwathan.me/renderless-components-in-vuejs/) by [@adamwathan](https://github.com/adamwathan).
## Include support for:
- Google calendar
- Microsoft live calendar
- Office 365 calendar
---
## Installation

@@ -71,2 +77,5 @@

<office365-calendar id="office365-calendar">
<i class="fa fa-windows"></i> Add to Office365 outlook calendar
</office365-calendar>
</div>

@@ -92,3 +101,3 @@ </add-to-calendar>

## Changelog
Details changes for each release are documented in the [CHANGELOG.md](https://github.com/nicolasbeauvais/vue-add-to-calendar/blob/master/CHANGELOG.md).
Detailed changes for each release can be found in [CHANGELOG.md](https://github.com/nicolasbeauvais/vue-add-to-calendar/blob/master/CHANGELOG.md).

@@ -95,0 +104,0 @@ ## Issues

@@ -32,2 +32,15 @@ import AddToCalendarMixin from './add-to-calendar-mixin';

}
},
office365: {
url: 'https://outlook.office.com/owa/?path=/calendar/action/compose&rru=addevent',
parameters (title, location, details, start, end) {
return {
subject: title,
location: location,
body: details,
startdt: start,
enddt: end
};
}
}

@@ -143,4 +156,8 @@ };

data: function () { return { calendar: 'microsoft' }; }
},
'office365-calendar': {
mixins: [AddToCalendarMixin],
data: function () { return { calendar: 'office365' }; }
}
}
};
import AddToCalendar from './add-to-calendar';
AddToCalendar.version = '1.0.5';
AddToCalendar.version = '1.0.6';

@@ -5,0 +5,0 @@ AddToCalendar.install = (Vue) => {