-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
76 lines (56 loc) · 2.65 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
<!DOCTYPE html>
<html ng-app="app">
<head>
<title>Front Plugin v1</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<script type="text/javascript" src="//dl.frontapp.com/libs/plugin-sdk-1.4.0.min.js"></script>
<meta http-equiv="Content-Security-Policy" content="
frame-ancestors 'self' https://*.frontapp.com https://*.frontapplication.com;
frame-src 'self' tel:;
default-src 'self';
connect-src 'self';
script-src 'self' 'unsafe-inline' 'unsafe-eval';
style-src 'self' 'unsafe-inline';
img-src 'self' data:;
font-src 'self';
media-src 'self';
object-src 'none';
child-src 'self' tel:;
form-action 'self';
base-uri 'self';
navigate-to 'self'
">
</head>
<body>
<h3 id="frontTeammate"></h3>
<h5 id="selectedConversation"></h5>
<ul>
<li><button onClick="assign()">Assign (to me)</button></li>
<li><button onClick="unassign()">Unassign</button></li>
<li><button onClick="insertDraftReply()">Insert Draft Reply</button></li>
<li><button onClick="insertBasicDraft()">Insert Basic Draft</button></li>
<li><button onClick="createDraft()">Create Draft</button></li>
<li><button onClick="insertDraftWithFile()">Insert Draft w/ Attachment</button></li>
<li><button onClick="newRandomTag()">Tag with new random tag</button></li>
<li><button onClick="listTags()">List Tags</button></li>
<li><button onClick="applyTag1()">Apply Tag 1</button></li>
<li><button onClick="applyTag2()">Apply Tag 2</button></li>
<li><button onClick="listMessages()">List Messages</button></li>
<li><button onClick="listRecipients()">List Recipients</button></li>
<li><button onclick="openUrl()">Front.openURL()</button></li>
<li><button onclick="openUrlInPopup()">Front.openUrlInPopup()</button></li>
<li><button id="contextExternalURL">Context External URL</button></li>
<li><button onClick="peerReviewDraft()">Peer Review Draft</button></li>
<li><button id="assign">Assign</button></li>
<li><button id="confirm" onClick="openConfirm()">Open Confirm Dialog</button></li>
<li><button id="alert" onClick="openAlert()">Open Alert Dialog</button></li>
<li><button id="updateDraftInsert" onClick="updateDraft('insert')">Update Draft (Insert)</button></li>
<li><button id="updateDraftReplace" onClick="updateDraft('replace')">Update Draft (Replace)</button></li>
<li><button id="logDraft">Log Draft</button></li>
<li><button onClick="search()">Search</button></li>
<li><button onClick="downloadAttachments()">Download Attachments</button></li>
</ul>
<a href="tel:+2125551234">Phone me</a>
<script type="text/javascript" src="./index.js"></script>
</body>
</html>