Compare commits

..

No commits in common. "fd4b3636969159fe71a6cd96dabe5cc4d07cd968" and "9492d073ffc3e0f2b59228c0fca03691e390cd25" have entirely different histories.

3 changed files with 6 additions and 33 deletions

View File

@ -16,13 +16,11 @@
<img src="logo.jpg" />
</div>
<h1>Hush Smart Chain Creator</h1>
<!--
<h4>Select your flavor</h4>
<ul id="flavor">
<li><button class="button-white button-outline" v-on:click="setFlavor('z2z')">Full Privacy (z2z)</button></li>
<li><button class="button-white button-outline" v-on:click="setFlavor('hybrid')">Hybrid Privacy (Smart contracts)</button></li>
</ul>
-->
</div>
<div id="build" class="content text-center">
<h3>Let's create a HUSH Smart Chain!</h3>
@ -74,7 +72,6 @@
</li>
<li class="animated fadeInRight" id="rewardInput" style="border-color: #2d2d2d;">
<label>Initial Block Reward (-ac_reward)</label>
<pre>This is in satoshis. 1 COIN = 100000000 satoshis.</pre>
<input class="input" type="text" v-model="optionReward" style="border-color: #2d2d2d;">
</li>
<li class="animated fadeInRight" id="blocktimeInput" style="border-color: #2d2d2d;">
@ -98,25 +95,6 @@
</ul>
</div>
</div>
<li>
<label> Test Chain (-testnode=1)</label>
<pre>Use this for testing. Requires only a single node.</pre>
<label class="switch">
<input type="checkbox" v-model="optionTestNode">
<div class="slider round"></div>
</label>
</li>
<li>
<label> Mining (-gen=1)</label>
<pre>Enable mining.</pre>
<label class="switch">
<input type="checkbox" v-model="optionGen">
<div class="slider round"></div>
</label>
</li>
</fieldset>
</form>
<button class="compile button-dark" v-on:click="compile">Compile</button>
@ -141,6 +119,6 @@
</div>
<script src='https://cdn.jsdelivr.net/npm/vue@2.6.0'></script>
<script src='https://cdnjs.cloudflare.com/ajax/libs/jquery/3.1.1/jquery.min.js'></script>
<script src='main.js?v=8'></script>
<script src='main.js?v=7'></script>
</body>
</html>

11
main.js
View File

@ -28,7 +28,6 @@ new Vue({
optionRpcAllowIp: '127.0.0.1',
optionRpcUser: 'rpcuser',
optionRpcPassword: Math.random().toString(36).slice(2),
optionTestNode: 0,
optionShowMetrics: 0,
optionDataDir: '',
optionZIndex: 0,
@ -40,11 +39,11 @@ new Vue({
setFlavor: function (option) {
this.flavor = option
if (this.flavor == 'Linux') {
this.path = '/home/user/.hush/HUSH3.conf'
this.path = '/home/user/.komodo/HUSH3.conf'
} else if (this.flavor == "Mac OS") {
this.path = '~/Library/Application Support/Hush/HUSH3.conf'
this.path = '~/Library/Application Support/Komodo/HUSH3.conf'
} else {
this.path = 'C:\\Users\\your_username\\AppData\\Roaming\\Hush\\HUSH3.conf'
this.path = 'C:\\Users\\your_username\\AppData\\Roaming\\Komodo\\HUSH3.conf'
}
$('.flavor-banner').show()
$(document.body).animate({
@ -98,10 +97,6 @@ new Vue({
this.command += " -ac_reward=" + this.optionReward + " -ac_halving=" + this.optionHalving;
if(this.optionPubkey != '')
this.command += " -ac_pubkey=" + this.optionPubkey;
if(this.optionTestNode)
this.command += " -testnode=1";
if(this.optionGen)
this.command += " -gen=1";
/*
if (this.optionAllowList.length != 0) {
this.command = this.conf + "<br /><br />whitelist=" + this.optionAllowList

View File

@ -7,11 +7,11 @@ body {
}
.column {
width: 45%;
width: 40%;
}
.row {
width: 95%;
width: 90%;
}
.center {