-
Notifications
You must be signed in to change notification settings - Fork 62
/
index.html
70 lines (62 loc) · 2.62 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
<!DOCTYPE html>
<html>
<head>
<title>xlskubectl</title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="https://unpkg.com/tachyons@4.10.0/css/tachyons.min.css" />
</head>
<body class="sans-serif">
<div class="mw7 center">
<h1 class="f2 lh-solid">xlskubectl bridge</h1>
<div class="" id="form">
<ol class="list ph3 pv1 bg-washed-yellow mv0 br2">
<li class='mv3'>
<label for="client-id" class="w4 dib">Client ID:</label>
<input id="client-id" type="text"
class="input-reset bn bb b--black-20 pa2 dib bg-black-05 br2 f5 mr2 measure-wide w-100">
</li>
<li class="mv3">
<label for="api-key" class="w4 dib">API key:</label>
<input id="api-key" type="text"
class="input-reset bn bb b--black-20 pa2 dib bg-black-05 br2 f5 mr2 measure-wide w-100">
</li>
<li class="mv3">
<label for="spreadsheet-id" class="w4 dib">Spreadsheet ID:</label>
<input id="spreadsheet-id" type="text"
class="input-reset bn bb b--black-20 pa2 dib bg-black-05 br2 f5 mr2 measure-wide w-100">
</li>
<li class="mt4 mb3">
<button id="connect_button" class="dim br1 ph3 pv2 mb2 dib white bg-dark-pink bn br1">Connect</button>
</li>
</ol>
<div class="mv6">
<h2 class="f3 lh-solid">How to set up the inegration with Google Sheets</h2>
<p class="lh-copy">You can generate Client ID and API key from the following link: <a
href="https://developers.google.com/sheets/api/quickstart/js" target="_blank">Google Sheets Quickstart</a>.
</p>
<div class="tc">
<img src="apikey-clientid.png" alt="">
</div>
<p class="lh-copy mv4">
You can retrieve the Spreadsheet ID from the url.
</p>
<div class="tc">
<img src="spreadsheetid.png" alt="">
</div>
</div>
</div>
<div class="dn" id="authorize">
<p class="f4 bg-washed-yellow pa2">Connected. You should authorize the app.</p>
<button id="authorize_button" class="dim br1 ph3 pv2 mb2 dib white bg-dark-pink bn br1">Authorise</button>
</div>
<div class="dn" id="connected">
<p class="f4 bg-washed-yellow pa2">Streaming updates.</p>
<button id="signout_button" class="dim br1 ph3 pv2 mb2 dib white bg-dark-pink bn br1">Sign Out</button>
</div>
<pre id="content" style="white-space: pre-wrap;"></pre>
</div>
<script src="gsheet.js"></script>
<script async defer src="https://apis.google.com/js/api.js"></script>
</body>
</html>