mirror of
https://github.com/mynodebtc/mynode.git
synced 2024-12-27 06:54:00 +00:00
Add changelog and way to view it on settings page
This commit is contained in:
parent
0a5851f76d
commit
cd8fad2a13
23
rootfs/standard/usr/share/mynode/changelog
Normal file
23
rootfs/standard/usr/share/mynode/changelog
Normal 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...
|
|
@ -122,3 +122,12 @@ def get_local_ip():
|
||||||
local_ip = "error"
|
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
|
|
@ -126,6 +126,7 @@ def page_settings():
|
||||||
current_version = get_current_version()
|
current_version = get_current_version()
|
||||||
latest_version = get_latest_version()
|
latest_version = get_latest_version()
|
||||||
|
|
||||||
|
changelog = get_device_changelog()
|
||||||
serial_number = get_device_serial()
|
serial_number = get_device_serial()
|
||||||
device_type = get_device_type()
|
device_type = get_device_type()
|
||||||
product_key = get_product_key()
|
product_key = get_product_key()
|
||||||
|
@ -151,6 +152,7 @@ def page_settings():
|
||||||
"product_key": product_key,
|
"product_key": product_key,
|
||||||
"product_key_skipped": pk_skipped,
|
"product_key_skipped": pk_skipped,
|
||||||
"product_key_error": pk_error,
|
"product_key_error": pk_error,
|
||||||
|
"changelog": changelog,
|
||||||
"quicksync_status": quicksync_status,
|
"quicksync_status": quicksync_status,
|
||||||
"is_quicksync_disabled": not is_quicksync_enabled(),
|
"is_quicksync_disabled": not is_quicksync_enabled(),
|
||||||
"is_uploader_device": is_uploader(),
|
"is_uploader_device": is_uploader(),
|
||||||
|
|
|
@ -173,6 +173,11 @@
|
||||||
$("#quicksync_status").show();
|
$("#quicksync_status").show();
|
||||||
});
|
});
|
||||||
|
|
||||||
|
$("#show_mynode_changelog").on("click", function() {
|
||||||
|
$("#show_mynode_changelog").hide(0);
|
||||||
|
$("#mynode_changelog").show();
|
||||||
|
});
|
||||||
|
|
||||||
{% if product_key_skipped %}
|
{% if product_key_skipped %}
|
||||||
$( "#upgrade" ).button({
|
$( "#upgrade" ).button({
|
||||||
disabled: true
|
disabled: true
|
||||||
|
@ -253,6 +258,10 @@
|
||||||
</table>
|
</table>
|
||||||
<div class="divider"></div>
|
<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>
|
<div class="settings_block_subheader">Change Password</div>
|
||||||
{{password_message}}
|
{{password_message}}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user