vue-add-to-calendar
Advanced tools
Comparing version
@@ -0,15 +1,19 @@ | ||
<a name="1.0.5"></a> | ||
# [1.0.5](https://github.com/nicolasbeauvais/vue-add-to-calendar/compare/1.0.4...1.0.5) (2020-05-13) | ||
- Fix Microsoft calendar | ||
<a name="1.0.4"></a> | ||
# [1.0.4](https://github.com/nicolasbeauvais/vue-social-sharing/compare/1.0.3...1.0.4) (2017-02-12) | ||
# [1.0.4](https://github.com/nicolasbeauvais/vue-add-to-calendar/compare/1.0.3...1.0.4) (2017-02-12) | ||
- Encode text parameters, fix microsoft description parameter | ||
<a name="1.0.3"></a> | ||
# [1.0.3](https://github.com/nicolasbeauvais/vue-social-sharing/compare/1.0.2...1.0.3) (2017-02-11) | ||
# [1.0.3](https://github.com/nicolasbeauvais/vue-add-to-calendar/compare/1.0.2...1.0.3) (2017-02-11) | ||
- Update slot rendering | ||
<a name="1.0.2"></a> | ||
# [1.0.2](https://github.com/nicolasbeauvais/vue-social-sharing/compare/1.0.1...1.0.2) (2017-02-11) | ||
# [1.0.2](https://github.com/nicolasbeauvais/vue-add-to-calendar/compare/1.0.1...1.0.2) (2017-02-11) | ||
- Remove parameters from url when null, refactor parser for more flexibility | ||
<a name="1.0.1"></a> | ||
# [1.0.1](https://github.com/nicolasbeauvais/vue-social-sharing/compare/1.0.0...1.0.1) (2017-02-11) | ||
# [1.0.1](https://github.com/nicolasbeauvais/vue-add-to-calendar/compare/1.0.0...1.0.1) (2017-02-11) | ||
- Fix error when using null start or end parameters | ||
@@ -16,0 +20,0 @@ |
/*! | ||
* vue-add-to-calendar v1.0.4 | ||
* (c) 2017 nicolasbeauvais | ||
* vue-add-to-calendar v1.0.5 | ||
* (c) 2020 nicolasbeauvais | ||
* Released under the MIT License. | ||
@@ -37,10 +37,10 @@ */ | ||
microsoft: { | ||
url: 'http://calendar.live.com/calendar/calendar.aspx?rru=addevent', | ||
url: 'https://outlook.live.com/owa/?rru=addevent', | ||
parameters: function parameters$1 (title, location, details, start, end) { | ||
return { | ||
summary: title, | ||
subject: title, | ||
location: location, | ||
description: details, | ||
dtstart: start, | ||
dtend: end | ||
body: details, | ||
startdt: start, | ||
enddt: end | ||
}; | ||
@@ -162,3 +162,3 @@ } | ||
AddToCalendar.version = '1.0.4'; | ||
AddToCalendar.version = '1.0.5'; | ||
@@ -165,0 +165,0 @@ AddToCalendar.install = function (Vue) { |
/*! | ||
* vue-add-to-calendar v1.0.4 | ||
* (c) 2017 nicolasbeauvais | ||
* vue-add-to-calendar v1.0.5 | ||
* (c) 2020 nicolasbeauvais | ||
* Released under the MIT License. | ||
@@ -41,10 +41,10 @@ */ | ||
microsoft: { | ||
url: 'http://calendar.live.com/calendar/calendar.aspx?rru=addevent', | ||
url: 'https://outlook.live.com/owa/?rru=addevent', | ||
parameters: function parameters$1 (title, location, details, start, end) { | ||
return { | ||
summary: title, | ||
subject: title, | ||
location: location, | ||
description: details, | ||
dtstart: start, | ||
dtend: end | ||
body: details, | ||
startdt: start, | ||
enddt: end | ||
}; | ||
@@ -166,3 +166,3 @@ } | ||
AddToCalendar.version = '1.0.4'; | ||
AddToCalendar.version = '1.0.5'; | ||
@@ -169,0 +169,0 @@ AddToCalendar.install = function (Vue) { |
/*! | ||
* vue-add-to-calendar v1.0.4 | ||
* (c) 2017 nicolasbeauvais | ||
* vue-add-to-calendar v1.0.5 | ||
* (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,a,n,r,o){var t={text:e,location:a,details:n};return r&&o&&(t.dates=r+"/"+o),t}},microsoft:{url:"http://calendar.live.com/calendar/calendar.aspx?rru=addevent",parameters:function(t,e,a,n,r){return{summary:t,location:e,description:a,dtstart:n,dtend: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"}}}}};return a.version="1.0.4",a.install=function(t){t.component("add-to-calendar",a)},"undefined"!=typeof window&&(window.AddToCalendar=a),a}); | ||
!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}); |
{ | ||
"name": "vue-add-to-calendar", | ||
"description": "A Vue.js component that provides 'Add to Calendar' functionality", | ||
"version": "1.0.4", | ||
"description": "A Vue.js component providing 'Add to Calendar' functionality", | ||
"version": "1.0.5", | ||
"author": { | ||
@@ -6,0 +6,0 @@ "name": "nicolasbeauvais", |
@@ -12,3 +12,3 @@ # vue-add-to-calendar | ||
##[Demo](https://nicolasbeauvais.github.io/vue-add-to-calendar/) | ||
## [Demo](https://nicolasbeauvais.github.io/vue-add-to-calendar/) | ||
| ||
@@ -15,0 +15,0 @@ ## Include support for: |
@@ -22,10 +22,10 @@ import AddToCalendarMixin from './add-to-calendar-mixin'; | ||
microsoft: { | ||
url: 'http://calendar.live.com/calendar/calendar.aspx?rru=addevent', | ||
url: 'https://outlook.live.com/owa/?rru=addevent', | ||
parameters (title, location, details, start, end) { | ||
return { | ||
summary: title, | ||
subject: title, | ||
location: location, | ||
description: details, | ||
dtstart: start, | ||
dtend: end | ||
body: details, | ||
startdt: start, | ||
enddt: end | ||
}; | ||
@@ -32,0 +32,0 @@ } |
import AddToCalendar from './add-to-calendar'; | ||
AddToCalendar.version = '1.0.4'; | ||
AddToCalendar.version = '1.0.5'; | ||
@@ -5,0 +5,0 @@ AddToCalendar.install = (Vue) => { |
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
Found 1 instance in 1 package
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
Found 1 instance in 1 package
21343
0.22%