Create content
MODIFY
HiddenWallet/HiddenWallet.GUI/HiddenWallet.GUI.njsproj
HiddenWallet/HiddenWallet.GUI/HiddenWallet.GUI.njsproj
</Compile>
<Compile Include="main.js" />
<Content Include="app\css\justified-nav.css" />
+ <Content Include="app\html\decryption-phase-content.html" />
<Content Include="app\html\decryption-phase-menu.html" />
<Content Include="index.html" />
<Content Include="package.json" />

ADD
HiddenWallet/HiddenWallet.GUI/app/html/decryption-phase-content.html
+<div class="jumbotron" id="decrypt-active">
+ <form class="form-signin">
+ <input type="password" id="inputPassword" class="form-control" placeholder="Password" />
+ <br />
+ <button class="btn btn-lg btn-primary btn-block" type="submit">Decrypt</button>
+ </form>
+ <div class="container" ng-controller="WalletCtrl as ctrl">
+ <p style="color: red" ng-show="ctrl.ErrorMessage">{{ctrl.ErrorMessage}}</p>
+ <p>{{ ctrl.Wallet }}</p>
+ </div>
+</div>
+<div class="jumbotron" id="generate-active">
+ <form class="form-signin">
+ <input type="password" id="inputPassword" class="form-control" placeholder="Password" />
+ <input type="password" id="confirmPassword" class="form-control" placeholder="Confirm password" />
+ <br />
+ <button class="btn btn-lg btn-primary btn-block" type="submit">Generate</button>
+ </form>
+</div>
+<div class="jumbotron" id="recover-active">
+ <form class="form-signin">
+ <label>Syncronize transactions from:</label>
+ <input type="date" id="inputSyncFrom" class="form-control" required />
+ <label>Password:</label>
+ <input type="password" id="inputPassword" class="form-control" placeholder="Password" />
+ <label>Mnemonic words:</label>
+ <input type="text" id="inputMnemonic" class="form-control" placeholder="because evil federal west carry frog trophy quantum dry blast luggage piece" required />
+ <br />
+ <div class="alert alert-info" role="alert">
+ <strong>Heads up!</strong> At recovery the wallet is unable to check if your password is correct or not. If you provide a wrong password a wallet will be recovered with the provided mnemonic and password combination.
+ </div>
+ <button class="btn btn-lg btn-primary btn-block" type="submit">Recover</button>
+ </form>
+</div>
\ No newline at end of file

MODIFY
HiddenWallet/HiddenWallet.GUI/index.html
HiddenWallet/HiddenWallet.GUI/index.html
</head>
<body onload="decryptionPhaseMenuShow('decrypt')">
<iframe id="decryption-phase-menu-frame" src="app/html/decryption-phase-menu.html" style="display:none"></iframe>
+ <iframe id="decryption-phase-content-frame" src="app/html/decryption-phase-content.html" style="display:none"></iframe>
<div class="container">
- <div id="menu">
- </div>
- <div class="jumbotron" id="decryption-phase-content">
- <form class="form-signin">
- <label for="inputPassword" class="sr-only">Password</label>
- <input type="password" id="inputPassword" class="form-control" placeholder="Password" required>
- <button class="btn btn-lg btn-primary btn-block" type="submit">Decrypt</button>
- </form>
- <div class="container" ng-controller="WalletCtrl as ctrl">
- <p style="color: red" ng-show="ctrl.ErrorMessage">{{ctrl.ErrorMessage}}</p>
- <p>{{ ctrl.Wallet }}</p>
- </div>
- </div>
+ <div id="menu"> </div>
+ <hr />
+ <div id="content"> </div>
</div>
<script type="text/javascript" src="node_modules/angular/angular.min.js"></script>
<script type="text/javascript" src="app/app.js"></script>
if (menuItem === "decrypt")
{
document.getElementById("menu").innerHTML = document.getElementById("decryption-phase-menu-frame").contentWindow.document.getElementById("decrypt-active").innerHTML;
- document.getElementById("decryption-phase-content").innerHTML = "decrypt";
+ document.getElementById("content").innerHTML = document.getElementById("decryption-phase-content-frame").contentWindow.document.getElementById("decrypt-active").innerHTML;
}
else if (menuItem === "generate")
{
document.getElementById("menu").innerHTML = document.getElementById("decryption-phase-menu-frame").contentWindow.document.getElementById("generate-active").innerHTML;
- document.getElementById("decryption-phase-content").innerHTML = "generate";
+ document.getElementById("content").innerHTML = document.getElementById("decryption-phase-content-frame").contentWindow.document.getElementById("generate-active").innerHTML;
}
else if (menuItem === "recover")
{
document.getElementById("menu").innerHTML = document.getElementById("decryption-phase-menu-frame").contentWindow.document.getElementById("recover-active").innerHTML;
- document.getElementById("decryption-phase-content").innerHTML = "recover";
+ document.getElementById("content").innerHTML = document.getElementById("decryption-phase-content-frame").contentWindow.document.getElementById("recover-active").innerHTML;
}
}
</script>

MODIFY
HiddenWallet/HiddenWallet.GUI/main.js
HiddenWallet/HiddenWallet.GUI/main.js
@@ -14,7 +14,7 @@ let mainWindow;
function createWindow() {
// Create the browser window.
- var constructedTitle = "HiddenWallet " + packageJson.version + " - " + packageJson.author.name;
+ var constructedTitle = "HiddenWallet " + packageJson.version + " - " + packageJson.author.name + " (EXPERIMENTAL)";
mainWindow = new BrowserWindow({ width: 800, height: 600, resizable: false, title: constructedTitle });
// and load the index.html of the app.

Create content