Add Premium+ log

This commit is contained in:
Taylor Helsper 2023-03-23 20:53:48 -05:00
parent 54e30d8b41
commit 51dbf123fd
2 changed files with 30 additions and 0 deletions

View File

@ -212,6 +212,8 @@ def page_status():
"quicksync_status": quicksync_status,
"quicksync_status_color": quicksync_status_color,
"is_bitcoin_synced": is_bitcoin_synced(),
"is_premium_plus_token_set": has_premium_plus_token(),
"is_premium_plus_active": is_premium_plus_active(),
"apps": get_all_applications(order_by="alphabetic"),
#"bitcoin_status_log": bitcoin_status_log,
"bitcoin_status": get_service_status_basic_text("bitcoin"),
@ -289,6 +291,12 @@ def page_status():
#"usb_extras_status_log": get_journalctl_log("usb_extras"),
"usb_extras_status": get_service_status_basic_text("usb_extras"),
"usb_extras_status_color": get_service_status_color("usb_extras"),
#"premium_plus_connect_status_log": get_journalctl_log("premium_plus_connect"),
"premium_plus_connect_status": get_service_status_basic_text("premium_plus_connect"),
"premium_plus_connect_status_color": get_service_status_color("premium_plus_connect"),
#"rathole_status_log": get_journalctl_log("rathole"),
"rathole_status": get_service_status_basic_text("rathole"),
"rathole_status_color": get_service_status_color("rathole"),
#"corsproxy_status_log": get_journalctl_log("corsproxy"),
"corsproxy_status": get_service_status_basic_text("corsproxy_btcrpc"),
"corsproxy_status_color": get_service_status_color("corsproxy_btcrpc"),

View File

@ -337,6 +337,28 @@
<div class="divider"></div>
{% endif %}
{% if is_premium_plus_token_set %}
<div class="settings_block_subheader">Premium+ Status</div>
<div class="settings_block_subheader_status">
<div class="settings_block_subheader_status_icon {{ premium_plus_connect_status_color }}"></div>
{{ premium_plus_connect_status }}
</div>
<button id="show_premium_plus_connect_log" onclick="showLog('premium_plus_connect')" class="ui-button ui-widget ui-corner-all settings_button_small">Show Log</button>
<div id="premium_plus_connect_log" style='text-align: left; font-size: 12px; width: 800px; display: none;'><pre>{{premium_plus_connect_status_log}}</pre></div>
<div class="divider"></div>
{% endif %}
{% if is_bitcoin_synced and is_premium_plus_active %}
<div class="settings_block_subheader">Public Apps Status</div>
<div class="settings_block_subheader_status">
<div class="settings_block_subheader_status_icon {{ rathole_status_color }}"></div>
{{ rathole_status }}
</div>
<button id="show_rathole_log" onclick="showLog('rathole')" class="ui-button ui-widget ui-corner-all settings_button_small">Show Log</button>
<div id="rathole_log" style='text-align: left; font-size: 12px; width: 800px; display: none;'><pre>{{rathole_status_log}}</pre></div>
<div class="divider"></div>
{% endif %}
<div class="settings_block_subheader">Web Server Status</div>
<div class="settings_block_subheader_status">
<div class="settings_block_subheader_status_icon {{ www_status_color }}"></div>