Skip to content

Commit 31be85e

Browse files
nicolasbeauvaisNicolas Beauvais
authored and
Nicolas Beauvais
committed
Merge pull request #3 from abdulghafoormahoon/ms-calendar-fix
Fixed Add to Microsoft Live Calendar
2 parents a0da923 + d7ab901 commit 31be85e

9 files changed

+10952
-32
lines changed

CHANGELOG.md

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,21 @@
1+
<a name="1.0.5"></a>
2+
# [1.0.5](https://github.com/nicolasbeauvais/vue-add-to-calendar/compare/1.0.4...1.0.5) (2020-05-13)
3+
- Fix Microsoft calendar
4+
15
<a name="1.0.4"></a>
2-
# [1.0.4](https://github.com/nicolasbeauvais/vue-social-sharing/compare/1.0.3...1.0.4) (2017-02-12)
6+
# [1.0.4](https://github.com/nicolasbeauvais/vue-add-to-calendar/compare/1.0.3...1.0.4) (2017-02-12)
37
- Encode text parameters, fix microsoft description parameter
48

59
<a name="1.0.3"></a>
6-
# [1.0.3](https://github.com/nicolasbeauvais/vue-social-sharing/compare/1.0.2...1.0.3) (2017-02-11)
10+
# [1.0.3](https://github.com/nicolasbeauvais/vue-add-to-calendar/compare/1.0.2...1.0.3) (2017-02-11)
711
- Update slot rendering
812

913
<a name="1.0.2"></a>
10-
# [1.0.2](https://github.com/nicolasbeauvais/vue-social-sharing/compare/1.0.1...1.0.2) (2017-02-11)
14+
# [1.0.2](https://github.com/nicolasbeauvais/vue-add-to-calendar/compare/1.0.1...1.0.2) (2017-02-11)
1115
- Remove parameters from url when null, refactor parser for more flexibility
1216

1317
<a name="1.0.1"></a>
14-
# [1.0.1](https://github.com/nicolasbeauvais/vue-social-sharing/compare/1.0.0...1.0.1) (2017-02-11)
18+
# [1.0.1](https://github.com/nicolasbeauvais/vue-add-to-calendar/compare/1.0.0...1.0.1) (2017-02-11)
1519
- Fix error when using null start or end parameters
1620

1721
<a name="1.0.0"></a>

dist/vue-add-to-calendar.common.js

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*!
2-
* vue-add-to-calendar v1.0.4
3-
* (c) 2017 nicolasbeauvais
2+
* vue-add-to-calendar v1.0.5
3+
* (c) 2020 nicolasbeauvais
44
* Released under the MIT License.
55
*/
66
'use strict';
@@ -34,14 +34,14 @@ var calendars = {
3434
},
3535

3636
microsoft: {
37-
url: 'http://calendar.live.com/calendar/calendar.aspx?rru=addevent',
37+
url: 'https://outlook.live.com/owa/?rru=addevent',
3838
parameters: function parameters$1 (title, location, details, start, end) {
3939
return {
40-
summary: title,
40+
subject: title,
4141
location: location,
42-
description: details,
43-
dtstart: start,
44-
dtend: end
42+
body: details,
43+
startdt: start,
44+
enddt: end
4545
};
4646
}
4747
}
@@ -158,7 +158,7 @@ var AddToCalendar = {
158158
}
159159
};
160160

161-
AddToCalendar.version = '1.0.4';
161+
AddToCalendar.version = '1.0.5';
162162

163163
AddToCalendar.install = function (Vue) {
164164
Vue.component('add-to-calendar', AddToCalendar);

dist/vue-add-to-calendar.js

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*!
2-
* vue-add-to-calendar v1.0.4
3-
* (c) 2017 nicolasbeauvais
2+
* vue-add-to-calendar v1.0.5
3+
* (c) 2020 nicolasbeauvais
44
* Released under the MIT License.
55
*/
66
(function (global, factory) {
@@ -38,14 +38,14 @@ var calendars = {
3838
},
3939

4040
microsoft: {
41-
url: 'http://calendar.live.com/calendar/calendar.aspx?rru=addevent',
41+
url: 'https://outlook.live.com/owa/?rru=addevent',
4242
parameters: function parameters$1 (title, location, details, start, end) {
4343
return {
44-
summary: title,
44+
subject: title,
4545
location: location,
46-
description: details,
47-
dtstart: start,
48-
dtend: end
46+
body: details,
47+
startdt: start,
48+
enddt: end
4949
};
5050
}
5151
}
@@ -162,7 +162,7 @@ var AddToCalendar = {
162162
}
163163
};
164164

165-
AddToCalendar.version = '1.0.4';
165+
AddToCalendar.version = '1.0.5';
166166

167167
AddToCalendar.install = function (Vue) {
168168
Vue.component('add-to-calendar', AddToCalendar);

dist/vue-add-to-calendar.min.js

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

examples/example.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<html lang="en">
33
<head>
44
<meta charset="utf-8">
5-
<title>Vue social sharing example</title>
5+
<title>Vue add to calendar example</title>
66
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.6.3/css/font-awesome.min.css">
77

88
<script src="https://cdnjs.cloudflare.com/ajax/libs/vue/2.1.10/vue.min.js"></script>

0 commit comments

Comments
 (0)