File tree Expand file tree Collapse file tree 10 files changed +131
-4
lines changed
Expand file tree Collapse file tree 10 files changed +131
-4
lines changed Original file line number Diff line number Diff line change @@ -85,6 +85,7 @@ A Docker image has not been created for this project because it requires access
8585- A dedicated website monitoring page for tracking uptime and performance.
8686- Track and save total network data sent/received in the database for data usage monitoring.
8787- Improve website monitor, save data in database with timestamp to show the history of the website.
88+ - Key-combinding to navigate through the website.
8889
8990## Learnings 📖
9091
Original file line number Diff line number Diff line change 44
55# background thread to monitor system settings changes
66# monitor_settings() # Starts monitoring for system logging changes
7- start_website_monitoring () # Starts pinging active websites
7+ # start_website_monitoring() # Starts pinging active websites
88
99if __name__ == "__main__" :
1010
Original file line number Diff line number Diff line change @@ -641,7 +641,6 @@ timer() {
641641}
642642
643643open_browser () {
644- log " Please use the above credentials to login to the SystemGuard server."
645644 log " If you face server server issues, run 'sudo systemguard-installer --fix' to fix the installation."
646645 log " Server may take 1-2 minutes to start. Opening the browser in 50 seconds..."
647646 # show timer for 50 seconds
@@ -878,6 +877,7 @@ fix() {
878877 update_dependencies
879878 log " Fixing $APP_NAME server..."
880879 stop_server
880+ open_browser
881881}
882882
883883# update the code to the latest version
Original file line number Diff line number Diff line change 1010app .config ['SQLALCHEMY_TRACK_MODIFICATIONS' ] = False
1111app .config ['SECRET_KEY' ] = 'secret'
1212
13+ # define a variable to use in the templates
14+ app .jinja_env .globals .update (
15+ title = "SystemGuard" ,
16+ description = "SystemGuard is a web application that allows you to monitor your system resources." ,
17+ author = "Deepak Raj" ,
18+ year = "2024" ,
19+ version = "1.0.4-pre-release" ,
20+ project_url = "https://github.com/codeperfectplus/SystemGuard" ,
21+ contact_email = "" ,
22+ )
23+
1324# Initialize the database
1425db = SQLAlchemy (app )
1526
Original file line number Diff line number Diff line change @@ -84,3 +84,8 @@ def send_email_page():
8484 return redirect (url_for ('send_email_page' ))
8585
8686 return render_template ("other/send_email.html" , enable_alerts = enable_alerts )
87+
88+
89+ @app .route ("/about" )
90+ def about ():
91+ return render_template ("other/about.html" )
Original file line number Diff line number Diff line change 1+ /* Ensure the card has a light background and dark text */
2+ .card {
3+ background-color : # ffffff ; /* White background */
4+ color : # 333333 ; /* Dark text for readability */
5+ border-radius : 0.5rem ; /* Rounded corners */
6+ margin-top : 1rem ; /* Add space above the card */
7+ }
8+
9+ .card-title {
10+ font-size : 2rem ; /* Larger font size for titles */
11+ font-weight : bold;
12+ }
13+
14+ .card-subtitle {
15+ font-size : 1.25rem ; /* Slightly smaller than the title */
16+ color : # 6c757d ; /* Muted text color */
17+ }
18+
19+ .card-text {
20+ font-size : 1rem ; /* Regular text size */
21+ line-height : 1.5 ; /* Line height for readability */
22+ }
23+
24+ .btn-primary {
25+ background-color : # 007bff ; /* Bootstrap primary color */
26+ border-color : # 007bff ;
27+ }
28+
29+ .text-primary {
30+ color : # 007bff ; /* Link color matching the button */
31+ }
32+
33+ hr {
34+ border-top : 1px solid # dee2e6 ; /* Light gray border for separators */
35+ }
Original file line number Diff line number Diff line change 7777 font-size : 1.5rem ;
7878 font-weight : bold;
7979 color : # 007bff ;
80+ display : flex;
81+ flex-direction : column; /* Stack items vertically */
82+ align-items : flex-start;
8083}
8184
8285.navbar-nav {
@@ -399,3 +402,15 @@ body {
399402 box-shadow : 0 10px 20px var (--color-speedtest );
400403 transition : transform 0.3s ease, box-shadow 0.3s ease; /* Smooth transition */
401404}
405+
406+ .title {
407+ font-size : 2rem ; /* Adjust the title size */
408+ font-weight : bold; /* Adjust as needed */
409+ }
410+
411+ .version {
412+ font-size : 0.65rem ; /* Smaller font size for version */
413+ color : # 6c757d ; /* Optional: Adjust color */
414+ margin-top : 0.25rem ; /* Space between title and version */
415+ }
416+
Original file line number Diff line number Diff line change 11< nav class ="navbar navbar-expand-lg navbar-light bg-light shadow-sm ">
22 < a class ="navbar-brand d-flex align-items-center {% if request.endpoint == 'dashboard' %}active{% endif %} "
3- href ="{{ url_for('dashboard') }} "> < i class ="fas fa-shield-alt "> </ i > SystemGuard
4- </ a >
3+ href ="{{ url_for('dashboard') }} ">
4+ < div >
5+ < i class ="fas fa-shield-alt "> </ i >
6+ < span class ="title "> {{title}}</ span >
7+ </ div >
8+ </ a >
9+
510 < button class ="navbar-toggler " type ="button " data-toggle ="collapse " data-target ="#navbarNav "
611 aria-controls ="navbarNav " aria-expanded ="false " aria-label ="Toggle navigation ">
712 < span class ="navbar-toggler-icon "> </ span >
Original file line number Diff line number Diff line change 1+ {% extends "base/base.html" %}
2+ {% block title %}About {{title}} {% endblock %}
3+ {% block extra_head %}
4+ < link rel ="stylesheet " href ="{{ url_for('static', filename='css/about.css') }} ">
5+ {% endblock %}
6+ {% block content %}
7+ < div class ="container mt-4 ">
8+ < div class ="row ">
9+ < div class ="col-md-8 mx-auto ">
10+ < div class ="card shadow-sm ">
11+ < div class ="card-body ">
12+ < h1 class ="card-title "> {{ title }}</ h1 >
13+ < h4 class ="card-subtitle mb-3 text-muted "> {{ version }}</ h4 >
14+
15+ < p class ="card-text ">
16+ {{ description }}
17+ </ p >
18+
19+ < hr >
20+
21+ < h5 class ="card-title "> Author</ h5 >
22+ < p class ="card-text "> {{ author }}</ p >
23+
24+ < h5 class ="card-title "> Year</ h5 >
25+ < p class ="card-text "> {{ year }}</ p >
26+
27+ < hr >
28+
29+ < h5 class ="card-title "> GitHub Repository</ h5 >
30+ < p class ="card-text ">
31+ < a href ="https://github.com/codeperfectplus/SystemGuard " target ="_blank "
32+ class ="btn btn-primary ">
33+ View on GitHub
34+ </ a >
35+ </ p >
36+
37+ < hr >
38+
39+ < h5 class ="card-title "> Contact</ h5 >
40+ < p class ="card-text ">
41+ For more information, please visit the < a href ="{{project_url}} " target ="_blank "> GitHub
42+ repository</ a >
43+ </ p >
44+ </ div >
45+ </ div >
46+ </ div >
47+ </ div >
48+ </ div >
49+ {% endblock %}
Original file line number Diff line number Diff line change @@ -53,5 +53,11 @@ <h1 class="settings-title">SystemGuard Settings
5353 </ a >
5454 </ div >
5555
56+ < div class ="settings-buttons ">
57+ < a href ="{{ url_for('about') }} " class ="btn btn-primary ">
58+ < i class ="fas fa-info-circle "> </ i > About {{ title }}
59+ </ a >
60+ </ div >
61+
5662</ div >
5763{% endblock %}
You can’t perform that action at this time.
0 commit comments