vue-add-to-calendar
Advanced tools
Comparing version
@@ -0,1 +1,5 @@ | ||
<a name="1.0.7"></a> | ||
# [1.0.7](https://github.com/nicolasbeauvais/vue-add-to-calendar/compare/1.0.6..1.0.7) (2020-05-13) | ||
- Fix Google calendar link | ||
<a name="1.0.6"></a> | ||
@@ -2,0 +6,0 @@ # [1.0.6](https://github.com/nicolasbeauvais/vue-add-to-calendar/compare/1.0.5..1.0.6) (2020-05-13) |
/*! | ||
* vue-add-to-calendar v1.0.6 | ||
* (c) 2020 nicolasbeauvais | ||
* vue-add-to-calendar v1.0.7 | ||
* (c) 2021 nicolasbeauvais | ||
* Released under the MIT License. | ||
@@ -20,3 +20,3 @@ */ | ||
google: { | ||
url: 'http://www.google.com/calendar/event?action=TEMPLATE&trp=false', | ||
url: 'http://www.google.com/calendar/render?action=TEMPLATE&trp=false', | ||
parameters: function parameters (title, location, details, start, end) { | ||
@@ -179,3 +179,3 @@ var parameters = { | ||
AddToCalendar.version = '1.0.6'; | ||
AddToCalendar.version = '1.0.7'; | ||
@@ -182,0 +182,0 @@ AddToCalendar.install = function (Vue) { |
/*! | ||
* vue-add-to-calendar v1.0.6 | ||
* (c) 2020 nicolasbeauvais | ||
* vue-add-to-calendar v1.0.7 | ||
* (c) 2021 nicolasbeauvais | ||
* Released under the MIT License. | ||
@@ -24,3 +24,3 @@ */ | ||
google: { | ||
url: 'http://www.google.com/calendar/event?action=TEMPLATE&trp=false', | ||
url: 'http://www.google.com/calendar/render?action=TEMPLATE&trp=false', | ||
parameters: function parameters (title, location, details, start, end) { | ||
@@ -183,3 +183,3 @@ var parameters = { | ||
AddToCalendar.version = '1.0.6'; | ||
AddToCalendar.version = '1.0.7'; | ||
@@ -186,0 +186,0 @@ AddToCalendar.install = function (Vue) { |
/*! | ||
* vue-add-to-calendar v1.0.6 | ||
* (c) 2020 nicolasbeauvais | ||
* vue-add-to-calendar v1.0.7 | ||
* (c) 2021 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){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}); | ||
!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/render?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.7",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.6", | ||
"version": "1.0.7", | ||
"author": { | ||
@@ -20,3 +20,3 @@ "name": "nicolasbeauvais", | ||
"buble": "^0.13.1", | ||
"chromedriver": "^2.21.2", | ||
"chromedriver": "^2.46.0", | ||
"conventional-changelog-cli": "^1.1.1", | ||
@@ -26,3 +26,3 @@ "conventional-github-releaser": "^1.1.3", | ||
"dotenv": "^2.0.0", | ||
"eslint": "^4.18.2", | ||
"eslint": "^4.19.1", | ||
"eslint-config-vue": "^1.1.0", | ||
@@ -32,3 +32,3 @@ "eslint-loader": "^1.3.0", | ||
"html-webpack-plugin": "^2.19.0", | ||
"http-server": "^0.9.0", | ||
"http-server": "^0.12.3", | ||
"jasmine": "^2.4.1", | ||
@@ -41,3 +41,3 @@ "jasmine-core": "^2.4.1", | ||
"karma-coveralls": "^1.1.2", | ||
"karma-firefox-launcher": "^1.0.0", | ||
"karma-firefox-launcher": "^1.3.0", | ||
"karma-jasmine": "^1.0.2", | ||
@@ -48,3 +48,3 @@ "karma-mocha-reporter": "^2.0.4", | ||
"karma-sauce-launcher": "^1.0.0", | ||
"karma-sourcemap-loader": "^0.3.5", | ||
"karma-sourcemap-loader": "^0.3.8", | ||
"karma-webpack": "^1.7.0", | ||
@@ -60,5 +60,5 @@ "nightwatch": "^0.9.0", | ||
"uglify-js": "^2.6.1", | ||
"vue": "^2.0.0", | ||
"vue": "^2.6.12", | ||
"webpack": "^1.12.9", | ||
"webpack-dev-server": "^1.14.1" | ||
"webpack-dev-server": "^3.11.1" | ||
}, | ||
@@ -106,3 +106,6 @@ "files": [ | ||
"test:unit": "karma start config/karma.unit.conf.js" | ||
}, | ||
"dependencies": { | ||
"escope": "^3.6.0" | ||
} | ||
} |
<h1 align="center">Vue Add To Calendar</h1> | ||
[](https://github.com/nicolasbeauvais/vue-add-to-calendar/releases) | ||
[](https://travis-ci.org/nicolasbeauvais/vue-add-to-calendar) | ||
[](https://coveralls.io/github/nicolasbeauvais/vue-add-to-calendar?branch=master) | ||
[](https://www.npmjs.com/package/vue-add-to-calendar) | ||
[](https://github.com/nicolasbeauvais/vue-add-to-calendar/blob/master/LICENSE) | ||
[](https://vuejs.org/) | ||
<p align="center"> | ||
<a href="https://github.com/nicolasbeauvais/vue-add-to-calendar/releases"><img src="https://img.shields.io/github/release/nicolasbeauvais/vue-add-to-calendar.svg?style=flat-square" alt="Release"></a> | ||
<a href="https://travis-ci.org/nicolasbeauvais/vue-add-to-calendar"><img src="https://travis-ci.org/nicolasbeauvais/vue-add-to-calendar.svg?branch=master" alt="Build Status"></a> | ||
<a href="https://coveralls.io/github/nicolasbeauvais/vue-add-to-calendar?branch=master"><img src="https://img.shields.io/coveralls/nicolasbeauvais/vue-add-to-calendar/master.svg?style=flat-square" alt="Coverage Status"></a> | ||
<a href="https://www.npmjs.com/package/vue-add-to-calendar"><img src="https://img.shields.io/npm/dt/vue-add-to-calendar.svg?style=flat-square" alt="Downloads"></a> | ||
<a href="https://github.com/nicolasbeauvais/vue-add-to-calendar/blob/master/LICENSE"><img src="https://img.shields.io/github/license/nicolasbeauvais/vue-add-to-calendar.svg?style=flat-square" alt="License"></a> | ||
<a href="https://vuejs.org/"><img src="https://img.shields.io/badge/vue-2.x-brightgreen.svg" alt="vue2"></a> | ||
</p> | ||
@@ -10,0 +12,0 @@ <h3 align="center">A Vue.js renderless component providing 'Add to Calendar' functionality</h3> |
@@ -5,3 +5,3 @@ import AddToCalendarMixin from './add-to-calendar-mixin'; | ||
google: { | ||
url: 'http://www.google.com/calendar/event?action=TEMPLATE&trp=false', | ||
url: 'http://www.google.com/calendar/render?action=TEMPLATE&trp=false', | ||
parameters (title, location, details, start, end) { | ||
@@ -8,0 +8,0 @@ const parameters = { |
import AddToCalendar from './add-to-calendar'; | ||
AddToCalendar.version = '1.0.6'; | ||
AddToCalendar.version = '1.0.7'; | ||
@@ -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
23914
1.6%112
1.82%1
Infinity%+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added