Add changelog and way to view it on settings page

This commit is contained in:
Taylor Helsper 2019-09-09 22:15:14 -05:00
parent 0a5851f76d
commit cd8fad2a13
4 changed files with 45 additions and 2 deletions

View File

@ -0,0 +1,23 @@
=== v0.1.44 ===
- TODO
=== v0.1.43 ===
- Initial changelog
- Add all the features!
- Bitcoin Core
- Lightning Daemon
- Electrum Server
- VPN
- Tor
- LND Hub
- LND Connect
- RTL
- LND Admin
- Set LND Alias
- Monitor LND / Bitcoin Status
- Bitcoin Explorer
- Bitcoin CLI
- Device Status
- QuickSync
- Drive Management
- More...

View File

@ -121,4 +121,13 @@ def get_local_ip():
except Exception as e:
local_ip = "error"
return local_ip
return local_ip
def get_device_changelog():
changelog = ""
try:
changelog = subprocess.check_output(["cat", "/usr/share/mynode/changelog"])
except:
changelog = "ERROR"
return changelog

View File

@ -126,6 +126,7 @@ def page_settings():
current_version = get_current_version()
latest_version = get_latest_version()
changelog = get_device_changelog()
serial_number = get_device_serial()
device_type = get_device_type()
product_key = get_product_key()
@ -151,6 +152,7 @@ def page_settings():
"product_key": product_key,
"product_key_skipped": pk_skipped,
"product_key_error": pk_error,
"changelog": changelog,
"quicksync_status": quicksync_status,
"is_quicksync_disabled": not is_quicksync_enabled(),
"is_uploader_device": is_uploader(),

View File

@ -173,6 +173,11 @@
$("#quicksync_status").show();
});
$("#show_mynode_changelog").on("click", function() {
$("#show_mynode_changelog").hide(0);
$("#mynode_changelog").show();
});
{% if product_key_skipped %}
$( "#upgrade" ).button({
disabled: true
@ -253,7 +258,11 @@
</table>
<div class="divider"></div>
<div class="settings_block_subheader">Change Log</div>
<button id="show_mynode_changelog" class="ui-button ui-widget ui-corner-all settings_button">View Change Log</button>
<div id="mynode_changelog" style='text-align: left; font-size: 12px; width: 800px; display: none;'><pre>{{changelog}}</pre></div>
<div class="divider"></div>
<div class="settings_block_subheader">Change Password</div>
{{password_message}}
This will change the password used to connect to your myNode via SSH.