forked from SaraVieira/flo-to-drip
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathindex.html
63 lines (54 loc) · 1.85 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="icon" href="favicon.ico" />
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Jost:ital,wght@0,100..900;1,100..900&display=swap"
rel="stylesheet">
<script type="module" src="/main.js"></script>
<link href="/style.css" rel="stylesheet" />
<title>Clue to Drip</title>
</head>
<body>
<h1><a href="https://helloclue.com/">Clue</a> to <a href="https://dripapp.org/">Drip</a> Converter</h1>
<h2>
Upload an exported clue file and you can download a CSV compatible with
drop
</h2>
<p>
Export your Clue data and extract the password-protected zip file. From that folder select the file called "measurements.json". This is the file you will upload here.
</p>
<div x-data="fileUpload">
<div id="FileUpload" class="file-upload">
<input type="file" x-on:change="onUpload" accept="application/JSON" />
<template x-if="file !== null">
<div>
<div>
<span x-text="file.name">Uploading</span>
</div>
</div>
</template>
<template x-if="file === null">
<div>
<p>Drag your files here or click in this area.</p>
<a href="javascript:void(0)">Select a file</a>
</div>
</template>
</div>
<template x-if="error">
<p class="read-error">We could not read your uploaded file</p>
</template>
<template x-if="fileToDownload">
<button @click="downloadCSV" class="download-button">
Download File
</button>
</template>
</div>
<a href="https://github.com/morris-frank/clue-to-drip">
Source code (github)
</a>
</body>
</html>