-
Notifications
You must be signed in to change notification settings - Fork 11
/
index.html
162 lines (161 loc) · 8.02 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
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
<html lang="en">
<head>
<title>Config Generator | myHush.org</title>
<meta name="viewport" content="width=device-width, initial-scale=1" />
<link rel="shortcut icon" href="https://myhush.org/favicon.ico">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/normalize/5.0.0/normalize.min.css">
<link rel='stylesheet prefetch' href='https://cdnjs.cloudflare.com/ajax/libs/milligram/1.1.0/milligram.min.css'>
<link rel='stylesheet prefetch' href='https://fonts.googleapis.com/css?family=Poppins:300,400,500,700'>
<link rel='stylesheet prefetch' href='https://cdnjs.cloudflare.com/ajax/libs/animate.css/3.5.2/animate.min.css'>
<link rel="stylesheet" href="style.css">
</head>
<body>
<div id="app">
<div class="jumbo text-center">
<div class="logo">
<img src="logo.jpg" />
</div>
<h1>Hush Config Generator</h1>
<h4>Select your platform</h4>
<ul id="platform">
<li><button class="button-white button-outline" v-on:click="setPlatform('Linux')">Linux</button></li>
<li><button class="button-white button-outline" v-on:click="setPlatform('Mac OS')">Mac OS</button></li>
<li><button class="button-white button-outline" v-on:click="setPlatform('Windows')">Windows</button></li>
</ul>
</div>
<div id="build" class="content text-center">
<h3>Let's build your config</h3>
<h5>Update your settings on the left. Your <code class="dark">.conf</code> will update on the right.</h5>
<div class="row">
<div class="column">
<form class="center">
<fieldset>
<h4>Options</h4>
<div class="row">
<div class="column">
<h5>General</h5>
<p>Customize general Hush settings</p>
<ul class="toggles">
<li>
<label>Enable Daemon</label>
<label class="switch">
<input type="checkbox" v-model="optionDaemon">
<div class="slider round"></div>
</label>
</li>
<li>
<label>Enable Server</label>
<label class="switch">
<input type="checkbox" v-model="optionServer">
<div class="slider round"></div>
</label>
</li>
<li>
<label>Use Tor</label>
<label class="switch">
<input type="checkbox" v-model="optionTor">
<div class="slider round"></div>
</label>
</li>
<li>
<label>Enable Metrics</label>
<label class="switch">
<input type="checkbox" v-model="optionShowMetrics">
<div class="slider round"></div>
</label>
</li>
<li>
<label>Enable Mining</label>
<label class="switch">
<input type="checkbox" v-model="optionGen" v-on:click="showMinerInfo">
<div class="slider round"></div>
</label>
</li>
<li class="animated fadeInRight" id="minerAddress" v-on:click="showMinerAddress">
<label>Specific Address</label>
<label class="switch">
<input type="checkbox" v-model="customMinerToAddress" v-on:click="showMinerAddress">
<div class="slider round"></div>
</label>
</li>
<li class="animated fadeInLeft" id="threads" style="clear: left;">
<label>CPU Threads</label>
<span class="thread-count" v-on:click="decreaseThreads"><</span>
<input class="input" type="text" v-model="optionGenProcLimit" style="max-width: 40px; text-align: center;">
<span class="thread-count" v-on:click="increaseThreads">></span>
</li>
<li class="animated fadeInRight" id="minerInput" style="border-color: #2d2d2d;">
<label>Transparent Address</label>
<input class="input" type="text" v-model="optionMinerAddress" style="border-color: #2d2d2d;">
</li>
</ul>
<h5>Recommended</h5>
<p>We suggest enabling these by default.</p>
<ul class="toggles">
<li>
<label>Address Index</label>
<label class="switch">
<input type="checkbox" v-model="optionAddrIndex">
<div class="slider round"></div>
</label>
</li>
<li>
<label>Spent Index</label>
<label class="switch">
<input type="checkbox" v-model="optionSpentIndex">
<div class="slider round"></div>
</label>
</li>
<li>
<label>Timestamp Index</label>
<label class="switch">
<input type="checkbox" v-model="optionTimestampIndex">
<div class="slider round"></div>
</label>
</li>
</ul>
<h5>Paths</h5>
<p>Customize Hush data paths</p>
<label>Change Path?</label>
<label class="switch">
<input type="checkbox" v-model="customPath" v-on:click="showPathInput">
<div class="slider round"></div>
</label>
<li class="animated fadeInLeft" id="paths" style="list-style-type: none; border-color: #2d2d2d;">
<label>Blockchain Path</label>
<input class="input" type="url" v-model="optionDataDir" style="border-color: #2d2d2d;">
</li>
<h5 style="margin-top: 15px;">Whitelist</h5>
<p>Add trusted bootstrap nodes. Remove by clicking.</p>
<input style="border-color: #2d2d2d;" type="text" placeholder="Enter a ip address and hit enter" v-model="tempWhitelist" @keyup.enter="addWhiteList(tempWhitelist)">
<ul class="whitelist" v-for="item in optionWhiteList" v-bind:item="item">
<li v-on:click="removeWhiteListItem(item)">{{ item }}</li>
</ul>
</div>
</div>
</fieldset>
</form>
<button class="compile button-dark" v-on:click="compile">Compile</button>
</div>
<div class="column">
<div class="platform-banner animated fadeInDown">
You have selected <span class="bold">{{ platform }}</span> as your platform. Please place <code class="light">hush.conf</code> in the below path:
<div class="path">{{ path }}</div>
</div>
<div id="profile" class="profile animated fadeInDown" v-html="conf">
</div>
</div>
</div>
<div class="row donate">
<div class="column">
Developed by <b>@mreichardt</b><br/>
<span><b>HUSH3:</b> <i>RRJpqr5GDhR8xuKh7bvWyPHTqMuh3CZ6tt</i></span>
</div>
</div>
</div>
</div>
<script src='https://unpkg.com/vue'></script>
<script src='https://cdnjs.cloudflare.com/ajax/libs/jquery/3.1.1/jquery.min.js'></script>
<script src='main.js'></script>
</body>
</html>