Skip to content

Commit

Permalink
highlight
Browse files Browse the repository at this point in the history
  • Loading branch information
AXRBLK committed Nov 10, 2024
1 parent c097ee7 commit f050b48
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 11 deletions.
6 changes: 3 additions & 3 deletions build/asset-manifest.json
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
{
"files": {
"main.css": "/mycelialnet-g/static/css/main.f855e6bc.css",
"main.js": "/mycelialnet-g/static/js/main.ea81680e.js",
"main.js": "/mycelialnet-g/static/js/main.509cfb6f.js",
"static/js/453.74927aeb.chunk.js": "/mycelialnet-g/static/js/453.74927aeb.chunk.js",
"index.html": "/mycelialnet-g/index.html",
"main.f855e6bc.css.map": "/mycelialnet-g/static/css/main.f855e6bc.css.map",
"main.ea81680e.js.map": "/mycelialnet-g/static/js/main.ea81680e.js.map",
"main.509cfb6f.js.map": "/mycelialnet-g/static/js/main.509cfb6f.js.map",
"453.74927aeb.chunk.js.map": "/mycelialnet-g/static/js/453.74927aeb.chunk.js.map"
},
"entrypoints": [
"static/css/main.f855e6bc.css",
"static/js/main.ea81680e.js"
"static/js/main.509cfb6f.js"
]
}
2 changes: 1 addition & 1 deletion build/index.html
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<!doctype html><html lang="en"><head><meta charset="utf-8"/><link rel="icon" href="/mycelialnet-g/favicon.ico"/><meta name="viewport" content="width=device-width,initial-scale=1"/><meta name="theme-color" content="#000000"/><meta name="description" content="Community-driven network of the myceliated industry"/><link rel="apple-touch-icon" href="/mycelialnet-g/favicon.ico"/><link rel="manifest" href="/mycelialnet-g/manifest.json"/><title>Myceliated.Net</title><script defer="defer" src="/mycelialnet-g/static/js/main.ea81680e.js"></script><link href="/mycelialnet-g/static/css/main.f855e6bc.css" rel="stylesheet"></head><body><noscript>You need to enable JavaScript to run this app.</noscript><div id="root"></div></body></html>
<!doctype html><html lang="en"><head><meta charset="utf-8"/><link rel="icon" href="/mycelialnet-g/favicon.ico"/><meta name="viewport" content="width=device-width,initial-scale=1"/><meta name="theme-color" content="#000000"/><meta name="description" content="Community-driven network of the myceliated industry"/><link rel="apple-touch-icon" href="/mycelialnet-g/favicon.ico"/><link rel="manifest" href="/mycelialnet-g/manifest.json"/><title>Myceliated.Net</title><script defer="defer" src="/mycelialnet-g/static/js/main.509cfb6f.js"></script><link href="/mycelialnet-g/static/css/main.f855e6bc.css" rel="stylesheet"></head><body><noscript>You need to enable JavaScript to run this app.</noscript><div id="root"></div></body></html>

Large diffs are not rendered by default.

Large diffs are not rendered by default.

11 changes: 8 additions & 3 deletions src/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ function App() {
const [isHovering, setIsHovering] = useState(false);
const [viewMode, setViewMode] = useState('Industry');
const [searchQuery, setSearchQuery] = useState('');
const [rowCount, setRowCount] = useState(0);


const fgRef = useRef();
Expand All @@ -21,9 +22,9 @@ function App() {

// Configurable highlight styling
const highlightStyle = {
color: 'rgba(102, 255, 150,.9',
color: 'rgba(207, 255, 102,.7',
zIndex:1000,
thickness: 15,
thickness: 12,
fontSizeMultiplier: 4,
};

Expand Down Expand Up @@ -61,7 +62,7 @@ function App() {
const fetchData = async () => {
const sheetId = '1Ci4Hay8-cHgqq9L8LZV6WIH5rgn8BVJa6018xEmdKTo';
const apiKey = 'AIzaSyCvCL5fqdrjGj_WjMt_fVDpPLWYSSLRjs8';
const range = 'Main!A1:N500';
const range = 'Main!A1:R500';
const url = `https://sheets.googleapis.com/v4/spreadsheets/${sheetId}/values/${range}?key=${apiKey}`;

try {
Expand All @@ -70,6 +71,7 @@ function App() {

let nodeData = [];
let linkData = [];


if (viewMode === 'Industry') {
const parentMap = {};
Expand Down Expand Up @@ -163,6 +165,9 @@ function App() {
}
};




fetchData();

}, [viewMode]);
Expand Down

0 comments on commit f050b48

Please sign in to comment.