-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
104 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
from flask import Flask | ||
from flask import render_template | ||
#import requests | ||
|
||
app = Flask(__name__) | ||
|
||
#curl -g -d '{ "action": "version" }' | ||
|
||
title = 'Stunts\' Nano Node' | ||
rpc_address = '[::1]:7076' | ||
account = 'xrb_1stuntsgoycyqjdzszzzkqj3nzyj44kgtxt7prf6sapo37tb7znp3h7usw7w' | ||
#payload = open("request.json") | ||
#headers = {'content-type': 'application/json'} | ||
#r = requests.post(url, data=payload, headers=headers) | ||
|
||
@app.route("/") | ||
def restSystemInfo(): | ||
return render_template('template.html', title=title, account=account) | ||
|
||
if __name__ == '__main__': | ||
app.run(debug=True,port=7575) |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
body { | ||
background-color: #1f1f1f; | ||
color:#dddddddd; | ||
} | ||
|
||
.nav { | ||
background: black; | ||
color: #f9be03; | ||
} | ||
.nav-text { | ||
padding: 5px; | ||
font-size: 1.25em; | ||
margin: 0px; | ||
opacity: 0.9; | ||
cursor: default; | ||
} | ||
|
||
.git { | ||
opacity: 0.75; | ||
} | ||
.git:hover { | ||
opacity: 0.9; | ||
cursor: pointer; | ||
} | ||
|
||
.logo { | ||
width: 100%; | ||
} |
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
<!doctype html> | ||
<head> | ||
<title>{{ title }}</title> | ||
|
||
<meta charset="UTF-8" /> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> | ||
<meta name="description" content="Nano node status page" /> | ||
<meta name="author" content="stunts" /> | ||
|
||
<link rel="stylesheet" href="{{url_for('static', filename='vendor/bootstrap.min.css')}}"> | ||
<link rel="stylesheet" href="{{url_for('static', filename='styles.css')}}"> | ||
</head> | ||
<body> | ||
<nav class="navbar nav"> | ||
<div> | ||
<p class="nav-text">Nano Node Status</p> | ||
</div> | ||
<div> | ||
<img class="git" src="{{url_for('static', filename='img/git.png')}}"> | ||
</div> | ||
</nav> | ||
<div class="col-12 offset-lg-2 offset-xl-3 col-lg-8 col-xl-6" style="padding: 5vh;"> | ||
<div class="col-12 col-md-8 col-xl-6"> | ||
<img class="logo" src="{{url_for('static', filename='img/logo.svg')}}"> | ||
</div> | ||
|
||
</div> | ||
<script src="{{url_for('static', filename='vendor/jquery.min.js')}}"></script> | ||
<script src="{{url_for('static', filename='vendor/popper.min.js')}}"></script> | ||
<script src="{{url_for('static', filename='vendor/bootstrap.min.js')}}"></script> | ||
</body> |