-
Notifications
You must be signed in to change notification settings - Fork 310
/
index.html
167 lines (159 loc) · 6.48 KB
/
index.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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<title>Microsoft Graph Toolkit Test</title>
<meta name="viewport" content="width=device-width, initial-scale=1" />
<!-- <link href="https://cdnjs.cloudflare.com/ajax/libs/normalize/8.0.1/normalize.min.css" rel="stylesheet" /> -->
<!-- <script src="./node_modules/@webcomponents/webcomponentsjs/webcomponents-loader.js"></script> -->
<!-- <script src="https://unpkg.com/@microsoft/teams-js@2/dist/MicrosoftTeams.min.js" crossorigin="anonymous"></script> -->
<script type="module">
// import { registerMgtComponents, Providers, MockProvider, Msal2Provider } from 'https://unpkg.com/@microsoft/mgt@next/dist/bundle/mgt.es6.js';
import { registerMgtComponents, Providers, MockProvider, Msal2Provider } from './packages/mgt/dist/bundle/mgt.js';
// Providers.globalProvider = new MockProvider(true);
Providers.globalProvider = new Msal2Provider({
clientId: '2dfea037-938a-4ed8-9b35-c05708a1b241',
redirectUri: "http://localhost:3000",
scopes: [
'user.read',
'user.read.all',
'mail.readBasic',
'people.read',
'people.read.all',
'sites.read.all',
'user.readbasic.all',
'contacts.read',
'presence.read',
'presence.read.all',
'tasks.readwrite',
'tasks.read',
'calendars.read',
'group.read.all',
'files.read',
'files.read.all',
'files.readwrite',
'files.readwrite.all'
]
});
registerMgtComponents();
</script>
<style>
header {
display: flex;
flex-direction: row;
justify-content: flex-end;
}
body {
background-color: var(--fill-color);
color: var(--neutral-foreground-rest);
font-family: var(--default-font-family, var(--body-font));
padding: 24px 12px;
}
.right-align {
display: flex;
flex-direction: row;
justify-content: flex-end;
}
</style>
</head>
<body>
<!-- <mgt-msal2-provider
client-id="2dfea037-938a-4ed8-9b35-c05708a1b241"
redirect-uri="http://localhost:3000"
scopes="user.read,user.read.all,mail.readBasic,people.read,people.read.all,sites.read.all,user.readbasic.all,contacts.read,presence.read,presence.read.all,tasks.readwrite,tasks.read,calendars.read,group.read.all,files.read,files.read.all,files.readwrite,files.readwrite.all"
></mgt-msal2-provider> -->
<!-- <mgt-msal2-provider
client-id="2dfea037-938a-4ed8-9b35-c05708a1b241"
redirect-uri="http://localhost:3000"
></mgt-msal2-provider> -->
<!-- <mgt-mock-provider></mgt-mock-provider> -->
<header>
<mgt-theme-toggle></mgt-theme-toggle>
</header>
<h1>Developer test page</h1>
<main>
<h2>mgt-login</h2>
<div class="right-align">
<mgt-login></mgt-login>
</div>
<!-- <mgt-login></mgt-login> -->
<!-- <h2>mgt-person me query two lines card on click with presence</h2> -->
<mgt-person person-query="me" view="twolines" person-card="hover" show-presence></mgt-person>
<mgt-person-card person-query="me"></mgt-person-card>
<!-- <mgt-person person-query="me" view="twolines" person-card="hover" show-presence></mgt-person> -->
<mgt-person fetch-image person-details='{
"id": "a2a36b00-b196-4286-adfc-7c1bedbffa39",
"deletedDateTime": null,
"classification": null,
"createdDateTime": "2022-07-07T16:04:37Z",
"creationOptions": [
"Team",
"ExchangeProvisioningFlags:3552"
],
"description": "Welcome to the team that we've assembled to create the Mark 8.",
"displayName": "Mark 8 Project Team",
"expirationDateTime": null,
"groupTypes": [
"Unified"
],
"isAssignableToRole": null,
"mail": "Mark8ProjectTeam@wgww6.onmicrosoft.com",
"mailEnabled": true,
"mailNickname": "Mark8ProjectTeam",
"membershipRule": null,
"membershipRuleProcessingState": null,
"onPremisesDomainName": null,
"onPremisesLastSyncDateTime": null,
"onPremisesNetBiosName": null,
"onPremisesSamAccountName": null,
"onPremisesSecurityIdentifier": null,
"onPremisesSyncEnabled": null,
"preferredDataLocation": null,
"preferredLanguage": null,
"proxyAddresses": [
"SPO:SPO_8e2a3ed7-94b3-4a3f-a010-06c6aadcbdbb@SPO_262437ff-351d-4f6c-b543-bac09b5a0c23",
"SMTP:Mark8ProjectTeam@wgww6.onmicrosoft.com"
],
"renewedDateTime": "2022-07-07T16:04:37Z",
"resourceBehaviorOptions": [
"HideGroupInOutlook",
"SubscribeMembersToCalendarEventsDisabled",
"WelcomeEmailDisabled"
],
"resourceProvisioningOptions": [
"Team"
],
"securityEnabled": false,
"securityIdentifier": "S-1-12-1-2728618752-1116123542-461175981-972734445",
"theme": null,
"visibility": "Public",
"onPremisesProvisioningErrors": [],
"serviceProvisioningErrors": []
}'></mgt-person>
<!-- <mgt-person-card person-query="me"></mgt-person-card> -->
<!-- <h2>mgt-people-picker</h2>
<mgt-people-picker selection-mode="single" show-max="6"></mgt-people-picker>
<mgt-people-picker show-max="6"></mgt-people-picker> -->
<!-- <h2>mgt-teams-channel-picker</h2>
<mgt-teams-channel-picker></mgt-teams-channel-picker> -->
<!-- <h2>mgt-tasks</h2>
<mgt-planner></mgt-planner> -->
<!-- <h2>mgt-agenda group-by-day</h2>
<mgt-agenda group-by-day></mgt-agenda> -->
<h2>mgt-people show-presence</h2>
<mgt-people group-id="a2a36b00-b196-4286-adfc-7c1bedbffa39"></mgt-people>
<!-- <h2>mgt-todo</h2>
<mgt-todo></mgt-todo> -->
<!-- <h2>mgt-file-list</h2>
<mgt-file-list></mgt-file-list> -->
<!-- <mgt-picker resource="me/messages" scopes="mail.read" placeholder="Select a message" key-name="subject" max-pages="5"></mgt-picker> -->
<!-- <h2>mgt-picker</h2>
<mgt-picker resource="me/todo/lists" scopes="tasks.read, tasks.readwrite"></mgt-picker> -->
<!-- <h2>mgt-search-box</h2>
<mgt-search-box search-term="contoso"></mgt-search-box>
<h2>mgt-search-results</h2>
<mgt-search-results query-string="contoso"></mgt-search-results>
</main>
</body>
</html>