forked from microsoft/vsts-team-calendar
-
Notifications
You must be signed in to change notification settings - Fork 0
/
calendarServices.html
51 lines (48 loc) · 2.11 KB
/
calendarServices.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
<!DOCTYPE html>
<html>
<head>
<title>Calendar built-in services</title>
<script src="sdk/scripts/VSS.SDK.js"></script>
</head>
<body>
<script type="text/javascript">
VSS.init({
explicitNotifyLoaded: true,
moduleLoaderConfig: {
paths: {
"Calendar": "built/min/Calendar",
}
}
});
VSS.require([
"Calendar/EventSources/FreeFormEventsSource",
"Calendar/EventSources/VSOCapacityEventSource",
"Calendar/EventSources/VSOIterationEventSource"
], function (FreeFormEventsSource, VSOCapacityEventSource, VSOIterationEventSource) {
// Register the eventSource contributions using the fully qualified contributionId
VSS.register("ms-devlabs.team-calendar.freeForm", function (context) {
return new FreeFormEventsSource.FreeFormEventsSource();
});
VSS.register("ms-devlabs.team-calendar.daysOff", function (context) {
return new VSOCapacityEventSource.VSOCapacityEventSource();
});
VSS.register("ms-devlabs.team-calendar.iterations", function (context) {
return new VSOIterationEventSource.VSOIterationEventSource();
});
// Deprecated form of contribution registration using the short Id for back-compat.
// DO NOT register this form any longer, use the fully qualified contributionId
// unless you have previous shipped dependencies on the short Id's
VSS.register("freeForm", function (context) {
return new FreeFormEventsSource.FreeFormEventsSource();
});
VSS.register("daysOff", function (context) {
return new VSOCapacityEventSource.VSOCapacityEventSource();
});
VSS.register("iterations", function (context) {
return new VSOIterationEventSource.VSOIterationEventSource();
});
VSS.notifyLoadSucceeded();
});
</script>
</body>
</html>