Spaces:
Sleeping
Sleeping
alexanderHSG commited on
Commit ·
c38adc8
1
Parent(s): 7b4858c
Update app.py
Browse files
app.py
CHANGED
|
@@ -11,8 +11,8 @@ import re
|
|
| 11 |
import mysql.connector
|
| 12 |
|
| 13 |
|
| 14 |
-
from dotenv import load_dotenv
|
| 15 |
-
load_dotenv()
|
| 16 |
|
| 17 |
|
| 18 |
|
|
@@ -445,7 +445,8 @@ async () => {
|
|
| 445 |
shape: "image" // Sets the shape to use an image (use "circularImage" for circular nodes)
|
| 446 |
},
|
| 447 |
function: {
|
| 448 |
-
image: (node) => "https://slidestorage.s3.eu-north-1.amazonaws.com/" + node.properties.object_id + ".png"
|
|
|
|
| 449 |
}
|
| 450 |
}
|
| 451 |
},
|
|
@@ -467,18 +468,19 @@ async () => {
|
|
| 467 |
color: 'black',
|
| 468 |
size: 14, // Pixel size
|
| 469 |
face: 'Quicksand' // Uniform font across all graph elements
|
| 470 |
-
}
|
| 471 |
-
|
|
|
|
|
|
|
|
|
|
| 472 |
}
|
| 473 |
}
|
| 474 |
},
|
| 475 |
SLIDE_DECK: {
|
| 476 |
-
label: "
|
| 477 |
-
|
| 478 |
-
|
| 479 |
[NeoVis.NEOVIS_ADVANCED_CONFIG]: {
|
| 480 |
static: {
|
| 481 |
-
|
| 482 |
shape: 'circle', // Updated to circle for a uniform and standard appearance
|
| 483 |
color: {
|
| 484 |
background: 'lightyellow',
|
|
@@ -493,6 +495,11 @@ async () => {
|
|
| 493 |
size: 14, // Pixel size
|
| 494 |
face: 'Quicksand' // Uniform font across all graph elements
|
| 495 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 496 |
}
|
| 497 |
}
|
| 498 |
}
|
|
|
|
| 11 |
import mysql.connector
|
| 12 |
|
| 13 |
|
| 14 |
+
#from dotenv import load_dotenv
|
| 15 |
+
#load_dotenv()
|
| 16 |
|
| 17 |
|
| 18 |
|
|
|
|
| 445 |
shape: "image" // Sets the shape to use an image (use "circularImage" for circular nodes)
|
| 446 |
},
|
| 447 |
function: {
|
| 448 |
+
image: (node) => "https://slidestorage.s3.eu-north-1.amazonaws.com/" + node.properties.object_id + ".png",
|
| 449 |
+
title: (node) => `Slide Title: ${node.properties.title}, ID: ${node.properties.id}`
|
| 450 |
}
|
| 451 |
}
|
| 452 |
},
|
|
|
|
| 468 |
color: 'black',
|
| 469 |
size: 14, // Pixel size
|
| 470 |
face: 'Quicksand' // Uniform font across all graph elements
|
| 471 |
+
},
|
| 472 |
+
|
| 473 |
+
},
|
| 474 |
+
function: {
|
| 475 |
+
title: (node) => `ID of the Storypoint: ${node.properties.id}`
|
| 476 |
}
|
| 477 |
}
|
| 478 |
},
|
| 479 |
SLIDE_DECK: {
|
| 480 |
+
label: "Slide Deck",
|
|
|
|
|
|
|
| 481 |
[NeoVis.NEOVIS_ADVANCED_CONFIG]: {
|
| 482 |
static: {
|
| 483 |
+
|
| 484 |
shape: 'circle', // Updated to circle for a uniform and standard appearance
|
| 485 |
color: {
|
| 486 |
background: 'lightyellow',
|
|
|
|
| 495 |
size: 14, // Pixel size
|
| 496 |
face: 'Quicksand' // Uniform font across all graph elements
|
| 497 |
}
|
| 498 |
+
|
| 499 |
+
},
|
| 500 |
+
function: {
|
| 501 |
+
title: (node) => `This is a slide deck
|
| 502 |
+
ID: ${node.properties.deck_id}`
|
| 503 |
}
|
| 504 |
}
|
| 505 |
}
|