-
Notifications
You must be signed in to change notification settings - Fork 6
/
index.html
36 lines (34 loc) · 1.5 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
<!doctype html>
<html>
<head>
<title>Revision Tree Visualizer</title>
<meta charset="utf-8">
<link href="style.css" rel="stylesheet" type="text/css" />
</head>
<body>
<section>
<header>
<h1>Revision tree visualizer</h1>
<p>Paste url to your couchdb document.</p>
<form id="form">
<input type="url" id="url" name="url" />
<input type="submit" id="submit" value="Visualize" />
</form>
</header>
<div id="results">
<h2 id="info">Enter the url to a CouchDB document see a visualisation of its
revision tree.</h2>
<div id="svgPlaceholder"></div>
<div id="export">
<p>You can use this tool to create any revision tree you want and then export it to JSON. Click on nodes to open edit form. Edit key/value by double-clicking on it. Keep in mind that <code>_rev</code> property does not get changed automatically so you usually want to change <code>3-abcd</code> to something like <code>4-klmn</code>. Open console and click <button id="exportButton">export</button> to export document into <code>bulkDocs</code> friendly result.</p>
</div>
</div>
<a href="https://github.com/neojski/visualizeRevTree">
<img style="position: absolute; top: 0; right: 0; border: 0;"
src="https://s3.amazonaws.com/github/ribbons/forkme_right_green_007200.png"
alt="Fork me on GitHub">
</a>
</section>
<script src="dist/index.js"></script>
</body>
</html>