Create information area for bug reports or errors to the Support Team (#6876)

* initial commit for system information bug report data

* add javascript to copy to clipboard

* add javascript to copy to clipboard

* Update copy_to_clipboard.js

* Update system.php

* Update app_languages.php

Add other languages

* move function file to resources/functions directory

* use the array returned from system_information function

* Update app_languages.php

* update path locations

* remove require files

* Merge origin/create_json_page_for_bug_report into create_json_page_for_bug_report
This commit is contained in:
frytimo
2024-01-23 19:11:51 -04:00
committed by GitHub
parent 1cba516bdc
commit 4e9dd1cdc9
4 changed files with 506 additions and 284 deletions

View File

@@ -0,0 +1,12 @@
function copy_to_clipboard() {
const span_id = document.getElementById("system_information");
const text_to_copy = span_id.innerText;
navigator.clipboard.writeText(text_to_copy)
.then(function() {
console.log('Text successfully copied to clipboard');
})
.catch(function(err) {
console.error('Unable to copy text to clipboard', err);
});
}