Log file system implemented

This commit is contained in:
2023-08-25 17:41:42 +02:00
parent 0d8fa6449c
commit 5ca5b76d7c
5 changed files with 260 additions and 117 deletions

View File

@@ -3,8 +3,12 @@
"type": "layout",
"pages": [
"pg_config",
"pg_logs",
"pg_about"
],
"pg_config": {
"type": "page",
"title": "Configuration",
@@ -14,17 +18,25 @@
"sec_times"
]
},
"pg_logs": {
"type": "page",
"title": "Debugging",
"sections": [
"sec_logs",
"sec_report_issue"
]
},
"pg_about": {
"type": "page",
"title": "About",
"sections": [
"sec_project",
"sec_github",
"sec_report_issue"
"sec_github"
]
},
"sec_image_configuration": {
"type": "section",
"title": "Image set",
@@ -43,7 +55,7 @@
"etr_latitude",
"etr_longitude"
]
},
},
"sec_times": {
"type": "section",
"title": "Time periods",
@@ -51,6 +63,26 @@
"tv_times"
]
},
"sec_logs": {
"type": "section",
"title": "Logs",
"keys": [
"tv_log_description",
"tv_logs"
]
},
"sec_report_issue": {
"type": "section",
"title": "Report an issue",
"keys": [
"lb_report_issue",
"btn_report_issue"
]
},
"sec_project": {
"type": "section",
"title": "About the project",
@@ -68,18 +100,11 @@
"lb_repository",
"btn_open_repository"
]
},
"sec_report_issue": {
"type": "section",
"title": "Report an issue",
"keys": [
"lb_report_issue",
"btn_report_issue"
]
}
},
"lb_image_configuration": {
"type": "label",
"description": "Choose an included image set or import a heic-file with the Image Configurator"
@@ -92,8 +117,9 @@
"sw_image_stretch": {
"type": "switch",
"description": "Expand image over all displays",
"default": true
"default": false
},
"sw_auto_location": {
"type": "switch",
"default": true,
@@ -120,12 +146,35 @@
"description": "Longitude",
"dependency": "!sw_auto_location"
},
"tv_times": {
"type": "textview",
"description": "Time sections today",
"default": ""
},
"tv_log_description": {
"type": "label",
"description": "Logs contains informations about time, date and successful or failed operations of the extension.",
"default": ""
},
"tv_logs": {
"type": "textview",
"description": "See all logs",
"default": ""
},
"lb_report_issue": {
"type": "label",
"description": "Do you find an issue? Or want a new feature? Go to the GitHub repository and create a new issue. If you find an error message in the logs above, add it to the issue report."
},
"btn_report_issue": {
"type": "button",
"description": "Submit an Issue",
"callback": "openIssueWebsite"
},
"lb_about": {
"type": "label",
@@ -155,16 +204,7 @@
"callback": "openRepoWebsite"
},
"lb_report_issue": {
"type": "label",
"description": "Do you find an issue? Or want a new feature? Go to the GitHub repository and create a new issue."
},
"btn_report_issue": {
"type": "button",
"description": "Submit an Issue",
"callback": "openIssueWebsite"
},
"etr_choosen_image_set": {