-
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.
Merge pull request #2 from mikecarr/settings-file
Settings file
- Loading branch information
Showing
20 changed files
with
166 additions
and
174 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
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
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.
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.
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
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
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,3 @@ | ||
|
||
|
||
|
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,38 @@ | ||
<!-- templates/base.html --> | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
<title>{% block title %}My Flask App{% endblock %}</title> | ||
<link rel="stylesheet" href="{{ url_for('static', filename='css/styles.css') }}"> | ||
</head> | ||
<body> | ||
|
||
<!-- Header Section --> | ||
<header> | ||
<h1>Welcome to the Configuration Manager</h1> | ||
|
||
<div class="tabs"> | ||
<ul> | ||
<li><a href="{{ url_for('home') }}">Home</a></li> | ||
<li><a href="{{ url_for('journal') }}">Journal</a></li> | ||
<li><a href="{{ url_for('videos') }}">Videos</a></li> | ||
</ul> | ||
</div> | ||
|
||
</header> | ||
|
||
<!-- Main Content Block --> | ||
<main> | ||
{% block content %} | ||
{% endblock %} | ||
</main> | ||
|
||
<!-- Footer Section --> | ||
<footer> | ||
<p>© 2024 PyConfig Groundstation, version: {{ version }}</p> | ||
</footer> | ||
|
||
</body> | ||
</html> |
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
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
<!-- templates/footer.html --> | ||
<footer> | ||
<p>© 2024 PyConfig Groundstation</p> | ||
<p>© 2024 PyConfig Groundstation, version: {{ version }}</p> | ||
</footer> |
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
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 |
---|---|---|
@@ -1,46 +1,33 @@ | ||
<!-- templates/journal.html --> | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
<title>Journal Logs</title> | ||
<link rel="stylesheet" href="{{ url_for('static', filename='styles.css') }}"> | ||
<script> | ||
function startStream() { | ||
const eventSource = new EventSource("/stream"); | ||
const logBox = document.getElementById("logBox"); | ||
|
||
eventSource.onmessage = function(event) { | ||
logBox.value += event.data + "\n"; | ||
logBox.scrollTop = logBox.scrollHeight; // Auto-scroll to the bottom | ||
}; | ||
{% extends "base.html" %} | ||
|
||
eventSource.onerror = function() { | ||
console.error("EventSource failed."); | ||
eventSource.close(); | ||
}; | ||
} | ||
{% block content %} | ||
<div class="content"> | ||
<h2>Journal Logs</h2> | ||
<textarea id="logBox" rows="20" cols="100" readonly></textarea> | ||
</div> | ||
|
||
window.onload = startStream; | ||
</script> | ||
</head> | ||
<body> | ||
<h1>Welcome to the Configuration Manager</h1> | ||
|
||
|
||
<!-- Include the JavaScript file --> | ||
<script> | ||
function startStream() { | ||
const eventSource = new EventSource("/stream"); | ||
const logBox = document.getElementById("logBox"); | ||
|
||
<div class="tabs"> | ||
<ul> | ||
<li><a href="{{ url_for('home') }}">Home</a></li> | ||
<li><a href="{{ url_for('journal') }}">Journal</a></li> | ||
<li><a href="{{ url_for('videos') }}">Videos</a></li> | ||
</ul> | ||
</div> | ||
eventSource.onmessage = function(event) { | ||
logBox.value += event.data + "\n"; | ||
logBox.scrollTop = logBox.scrollHeight; // Auto-scroll to the bottom | ||
}; | ||
|
||
eventSource.onerror = function() { | ||
console.error("EventSource failed."); | ||
eventSource.close(); | ||
}; | ||
} | ||
|
||
window.onload = startStream; | ||
</script> | ||
<!-- <script src="{{ url_for('static', filename='js/script.js') }}"></script> --> | ||
|
||
<div class="content"> | ||
<h2>Journal Logs</h2> | ||
<textarea id="logBox" rows="20" cols="100" readonly></textarea> | ||
</div> | ||
{% include 'footer.html' %} | ||
</body> | ||
</html> | ||
{% endblock %} |
Oops, something went wrong.