Skip to content

Commit

Permalink
init-devmode
Browse files Browse the repository at this point in the history
  • Loading branch information
GregorioMonari committed Mar 13, 2023
1 parent a5a2c23 commit 5b84dca
Show file tree
Hide file tree
Showing 10,606 changed files with 2,167,956 additions and 23 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
11 changes: 11 additions & 0 deletions 1_ActivityWatchProducer/Assets/icons/reload-window.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
12 changes: 12 additions & 0 deletions 1_ActivityWatchProducer/CSS/embeddedDashboard.css
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,21 @@
#my-superset-container{
/*width: auto;*/
flex-grow: 1;

}
#my-superset-container iframe {
width:100%;
height: 86vh;
border-width: 0px;

}
.missing_dashboard_error{
border-radius: 30px;
margin: 3%;
width: 92%;
height: 75vh;
background: rgb(221, 0, 0);
font-family: Arial, Helvetica, sans-serif;
display: flex;
align-items: center;
}
21 changes: 18 additions & 3 deletions 1_ActivityWatchProducer/JS/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -75,16 +75,30 @@ async function init(){
console.log(" ")

log.info("----------< Init SUPERSET dashboard >----------")
var superset_host="http://dld.arces.unibo.it:8087";
var container_id="my-superset-container";
try{
var dash_id=await userInfoConsumer.sepa_getUserDashboard();//"755f0434-6ac6-4d4f-8415-3b2b80c571e9";
log.info("Fetched dashboard_id of "+userInfoConsumer.userName+" :"+dash_id)
var superset_host="http://dld.arces.unibo.it:8087";
var container_id="my-superset-container";
var embed = createDashboard(dash_id,superset_host,container_id)
if(!dash_id){
log.error("Error: invalid dashboard id, showing error message to the user")
document.getElementById(container_id).innerHTML=`
<div class="missing_dashboard_error">
<div style="width:100%" align="center">
<h2>WARNING, missing events dashboard.</h2>
Contact your server administrator (discord/email) to activate it for you.
<div>
<div>
`
}else{
createDashboard(dash_id,superset_host,container_id)
}
}catch(e){
console.log(e)
}
console.log(" ")




log.info("----------< Init TASKS dashboard >----------")
Expand Down Expand Up @@ -297,6 +311,7 @@ async function start_update_procedure(){
async function abort_update_procedure(){
awApiUpdateManager.abort_update_procedure();
awApiUpdateManager.stop();
refreshSupersetDashboard('my-superset-container')
}
//when user presses the validation button in any of the three sections
async function on_validation_button_pressed(){
Expand Down
Binary file added 1_ActivityWatchProducer/PY/install/API_my2sec.exe
Binary file not shown.
Loading

0 comments on commit 5b84dca

Please sign in to comment.