-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathindex.html
117 lines (115 loc) · 5.92 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
<html>
<head>
<meta charset="utf-8">
<meta property="og:title" content="Tumblr Arena Migration Tool ⛵️"/>
<meta property="og:description" content="Copy your Tumblr blog to an Arena Channel"/>
<meta name="twitter:card" content="summary"/>
<meta name="twitter:title" content="Tumblr Arena Migration Tool ⛵️"/>
<meta name="twitter:description" content="Copy your Tumblr blog to an Arena Channel"/>
<title>Tumblr Arena Migration Tool ⛵️</title>
<link rel="shortcut icon" href="favicon.ico" type="image/x-icon">
<link rel="stylesheet" href="https://unpkg.com/spectre.css/dist/spectre.min.css">
<link rel="stylesheet" href="https://unpkg.com/spectre.css/dist/spectre-exp.min.css">
<link rel="stylesheet" href="https://unpkg.com/spectre.css/dist/spectre-icons.min.css">
<script src="https://code.jquery.com/jquery-3.2.1.min.js" integrity="sha256-hwg4gsxgFZhOsEEamdOYGBf13FyQuiTwlAQgxVSNgt4=" crossorigin="anonymous"></script>
<script src="https://unpkg.com/axios/dist/axios.min.js"></script>
<script src="./index.js"></script>
</head>
<body>
<div class="m-2">
<form class="form-group" id="migration_form">
<div class="columns m-2 p-2">
<h5 class="col-mx-auto mt-2 mb-2 p-2 p-centered">Copy your Tumblr blog to an Arena channel.</h5>
</div>
<div class="columns">
<div class="column col-5 col-ml-auto">
<div class="card">
<div class="card-header">
<div class="card-title h5">Tumblr Import</div>
</div>
<div class="card-body">
<p>Go to <a href="https://www.tumblr.com/settings/apps">https://www.tumblr.com/settings/apps</a> and create a Tumblr application and fill out the information here. ("Default callback URL" can be anything in this case.) Original blog will not be modified.</p>
<label class="form-label" for="input_tumblr_api_key">OAuth Consumer Key</label>
<input class="form-input" type="text" id="input_tumblr_api_key" placeholder="OAuth Consumer Key">
<label class="form-label" for="input_tumblr_blog_name">Tumblr Blog Name</label>
<input class="form-input" type="text" id="input_tumblr_blog_name" placeholder="Tumblr Blog Name">
<label class="form-label">Post Type</label>
<select class="form-select" id="tumblr-post-type">
<option>all</option>
<option>text</option>
<option>photo</option>
<option>link</option>
<option>answer</option>
<option>video</option>
<option>audio</option>
<option>chat</option>
</select>
</div>
</div>
</div>
<div class="column col-5 col-mr-auto">
<div class="card">
<div class="card-header">
<div class="card-title h5">Arena Export</div>
</div>
<div class="card-body">
<p>Go to <a href="https://dev.are.na/oauth/applications">https://dev.are.na/oauth/applications</a> and create an Arena application and fill out the information here. ("Redirect URI" can be anything in this case.)</p>
<label class="form-label" for="input_arena_api_key">Application ID</label>
<input class="form-input" type="text" id="input_arena_api_key" placeholder="Application ID">
<label class="form-label" for="input_arena_access_token">Personal Access Token</label>
<input class="form-input" type="text" id="input_arena_access_token" placeholder="Personal Access Token">
<label class="form-label" for="input_arena_channel_name">Arena Channel Name</label>
<input class="form-input" type="text" id="input_arena_channel_name" placeholder="Arena Channel Name">
<label class="form-radio">
<input type="radio" name="arena_visibility" value="public" checked>
<i class="form-icon"></i> Public
</label>
<label class="form-radio">
<input type="radio" name="arena_visibility" value="private">
<i class="form-icon"></i> Private (Non-Premium accounts have a limit of 100 private blocks, migration will fail if limit reached)
</label>
</div>
</div>
</div>
</div>
<div class="columns mt-2 p-2">
<div class="column col-1 col-mx-auto docs-block mt-2 p-2">
<button id="button_migrate" class="btn btn-primary input-group-btn">Migrate</button>
</div>
</div>
<div class="columns mt-2 p-2">
<div class="column col-8 col-mx-auto">
<div class="panel">
<div class="panel-header">
<div class="panel-title">Notes</div>
</div>
<div class="panel-body">
<ul>
<li>"Neue Post Format (NPF) Posts" format currently not supported.</li>
<li>Private Tumblr blogs currently not supported.</li>
</ul>
</div>
</div>
</div>
</div>
<div class="modal" id="loading_modal">
<div class="modal-container">
<div class="modal-header">
<div class="modal-title h6">Migration in progress</div>
</div>
<div class="modal-body">
<div class="content">
<progress id="progress-migration" class="progress mb-2"></progress>
<div id="progress-label"></div>
<div id="failure-label"></div>
</div>
</div>
<div class="modal-footer">
<button class="btn btn-link" id="cancel-migration" aria-label="Cancel">Cancel</button>
</div>
</div>
</div>
</form>
</div>
</body>
</html>