major refactor - start shelling out as a prototype to process per user
parent
549193f0be
commit
8324dc3444
@ -1,3 +1,22 @@
|
||||
# wowstash
|
||||
|
||||
A web wallet for noobs who can't use a CLI.
|
||||
|
||||
## Notes
|
||||
|
||||
|
||||
```
|
||||
wownero-wallet-cli --generate-from-json e.json --restore-height 247969 --daemon-address node.suchwow.xyz:34568 --command version
|
||||
|
||||
wownero-wallet-rpc --non-interactive --rpc-bind-port 8888 --daemon-address node.suchwow.xyz:34568 --wallet-file wer --rpc-login user1:mypass1 --password pass
|
||||
```
|
||||
|
||||
```
|
||||
{
|
||||
"version": 1,
|
||||
"filename": "<user specific name>",
|
||||
"scan_from_height": <height>,
|
||||
"password": "<password>",
|
||||
"seed": "<seed phrase>"
|
||||
}
|
||||
```
|
||||
|
Binary file not shown.
After Width: | Height: | Size: 550 KiB |
@ -0,0 +1,67 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
|
||||
{% include 'head.html' %}
|
||||
|
||||
<body id="page-top">
|
||||
|
||||
{% include 'navbar.html' %}
|
||||
|
||||
<section class="section2">
|
||||
<div class="container">
|
||||
<div class="section-heading text-center">
|
||||
{% if current_user.wallet_created == False %}
|
||||
<h2>Your wallet is being created</h2>
|
||||
{% else %}
|
||||
<h2>Your wallet is connecting</h2>
|
||||
{% endif %}
|
||||
<p>Go smoke a fatty. This page should auto-refresh when it's ready...if not, click the button below</p>
|
||||
<img src="/static/img/loading-cat.gif" width=300>
|
||||
<span class="dashboard-buttons">
|
||||
<div class="col-sm-12 dashboard-button">
|
||||
<a class="btn btn-lg btn-link btn-outline btn-xl" href="{{ url_for('wallet.dashboard') }}">Check Again</a>
|
||||
</div>
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<script>
|
||||
function check_wallet_status(attrib) {
|
||||
var xhr = new XMLHttpRequest();
|
||||
xhr.onreadystatechange = function() {
|
||||
if (xhr.readyState === 4){
|
||||
let res = JSON.parse(xhr.responseText);
|
||||
if (res[attrib] == true) {
|
||||
window.location.href = "{{ url_for('wallet.dashboard') }}"
|
||||
}
|
||||
}
|
||||
};
|
||||
xhr.open('GET', '{{ url_for("wallet.status") }}');
|
||||
xhr.send();
|
||||
}
|
||||
|
||||
{% if current_user.wallet_connected == False %}
|
||||
document.addEventListener("DOMContentLoaded", function(){
|
||||
var xhr = new XMLHttpRequest();
|
||||
xhr.open('GET', '{{ url_for("wallet.connect") }}');
|
||||
xhr.send();
|
||||
});
|
||||
{% endif %}
|
||||
|
||||
window.setInterval(function(){
|
||||
{% if current_user.wallet_connected == False %}
|
||||
check_wallet_status('connected');
|
||||
{% else %}
|
||||
check_wallet_status('created');
|
||||
{% endif %}
|
||||
}, 5000);
|
||||
</script>
|
||||
|
||||
{% include 'footer.html' %}
|
||||
|
||||
{% include 'scripts.html' %}
|
||||
|
||||
</body>
|
||||
|
||||
</html>
|
Loading…
Reference in New Issue