Skip to content

Commit

Permalink
fix: demos so that it uses relative path to data.json (#181)
Browse files Browse the repository at this point in the history
* fix: demos relative path to data.json

* fix: updated demos with path
  • Loading branch information
regeter authored Sep 5, 2024
1 parent 73ab6a4 commit 5d1d024
Show file tree
Hide file tree
Showing 22 changed files with 25 additions and 26 deletions.
6 changes: 3 additions & 3 deletions demos/jump/asset-manifest.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
{
"files": {
"main.css": "./static/css/main.a527fc8c.css",
"main.js": "./static/js/main.ddad92a1.js",
"main.js": "./static/js/main.64c4b9ce.js",
"index.html": "./index.html",
"main.a527fc8c.css.map": "./static/css/main.a527fc8c.css.map",
"main.ddad92a1.js.map": "./static/js/main.ddad92a1.js.map"
"main.64c4b9ce.js.map": "./static/js/main.64c4b9ce.js.map"
},
"entrypoints": [
"static/css/main.a527fc8c.css",
"static/js/main.ddad92a1.js"
"static/js/main.64c4b9ce.js"
]
}
Empty file modified demos/jump/data.json
100755 → 100644
Empty file.
2 changes: 1 addition & 1 deletion demos/jump/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="./favicon.ico"/><meta name="viewport" content="width=device-width,initial-scale=1"/><meta name="theme-color" content="#000000"/><meta name="description" content="Fleet Debugger Front-end Web site created using create-react-app"/><link rel="apple-touch-icon" href="./logo192.png"/><link rel="manifest" href="./manifest.json"/><title>Fleet Debugger</title><script defer="defer" src="./static/js/main.ddad92a1.js"></script><link href="./static/css/main.a527fc8c.css" rel="stylesheet"></head><body><noscript>You need to enable JavaScript to run this app.</noscript><div id="root"></div></body></html></doctype>
<doctype html><html lang="en"><head><meta charset="utf-8"/><link rel="icon" href="./favicon.ico"/><meta name="viewport" content="width=device-width,initial-scale=1"/><meta name="theme-color" content="#000000"/><meta name="description" content="Fleet Debugger Front-end Web site created using create-react-app"/><link rel="apple-touch-icon" href="./logo192.png"/><link rel="manifest" href="./manifest.json"/><title>Fleet Debugger</title><script defer="defer" src="./static/js/main.64c4b9ce.js"></script><link href="./static/css/main.a527fc8c.css" rel="stylesheet"></head><body><noscript>You need to enable JavaScript to run this app.</noscript><div id="root"></div></body></html></doctype>

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions demos/jump/static/js/main.64c4b9ce.js.map

Large diffs are not rendered by default.

1 change: 0 additions & 1 deletion demos/jump/static/js/main.ddad92a1.js.map

This file was deleted.

6 changes: 3 additions & 3 deletions demos/lmfs/asset-manifest.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
{
"files": {
"main.css": "./static/css/main.a527fc8c.css",
"main.js": "./static/js/main.ddad92a1.js",
"main.js": "./static/js/main.64c4b9ce.js",
"index.html": "./index.html",
"main.a527fc8c.css.map": "./static/css/main.a527fc8c.css.map",
"main.ddad92a1.js.map": "./static/js/main.ddad92a1.js.map"
"main.64c4b9ce.js.map": "./static/js/main.64c4b9ce.js.map"
},
"entrypoints": [
"static/css/main.a527fc8c.css",
"static/js/main.ddad92a1.js"
"static/js/main.64c4b9ce.js"
]
}
Empty file modified demos/lmfs/data.json
100755 → 100644
Empty file.
2 changes: 1 addition & 1 deletion demos/lmfs/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="./favicon.ico"/><meta name="viewport" content="width=device-width,initial-scale=1"/><meta name="theme-color" content="#000000"/><meta name="description" content="Fleet Debugger Front-end Web site created using create-react-app"/><link rel="apple-touch-icon" href="./logo192.png"/><link rel="manifest" href="./manifest.json"/><title>Fleet Debugger</title><script defer="defer" src="./static/js/main.ddad92a1.js"></script><link href="./static/css/main.a527fc8c.css" rel="stylesheet"></head><body><noscript>You need to enable JavaScript to run this app.</noscript><div id="root"></div></body></html></doctype>
<doctype html><html lang="en"><head><meta charset="utf-8"/><link rel="icon" href="./favicon.ico"/><meta name="viewport" content="width=device-width,initial-scale=1"/><meta name="theme-color" content="#000000"/><meta name="description" content="Fleet Debugger Front-end Web site created using create-react-app"/><link rel="apple-touch-icon" href="./logo192.png"/><link rel="manifest" href="./manifest.json"/><title>Fleet Debugger</title><script defer="defer" src="./static/js/main.64c4b9ce.js"></script><link href="./static/css/main.a527fc8c.css" rel="stylesheet"></head><body><noscript>You need to enable JavaScript to run this app.</noscript><div id="root"></div></body></html></doctype>

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions demos/lmfs/static/js/main.64c4b9ce.js.map

Large diffs are not rendered by default.

1 change: 0 additions & 1 deletion demos/lmfs/static/js/main.ddad92a1.js.map

This file was deleted.

6 changes: 3 additions & 3 deletions demos/multiple-trips/asset-manifest.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
{
"files": {
"main.css": "./static/css/main.a527fc8c.css",
"main.js": "./static/js/main.ddad92a1.js",
"main.js": "./static/js/main.64c4b9ce.js",
"index.html": "./index.html",
"main.a527fc8c.css.map": "./static/css/main.a527fc8c.css.map",
"main.ddad92a1.js.map": "./static/js/main.ddad92a1.js.map"
"main.64c4b9ce.js.map": "./static/js/main.64c4b9ce.js.map"
},
"entrypoints": [
"static/css/main.a527fc8c.css",
"static/js/main.ddad92a1.js"
"static/js/main.64c4b9ce.js"
]
}
Empty file modified demos/multiple-trips/data.json
100755 → 100644
Empty file.
2 changes: 1 addition & 1 deletion demos/multiple-trips/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="./favicon.ico"/><meta name="viewport" content="width=device-width,initial-scale=1"/><meta name="theme-color" content="#000000"/><meta name="description" content="Fleet Debugger Front-end Web site created using create-react-app"/><link rel="apple-touch-icon" href="./logo192.png"/><link rel="manifest" href="./manifest.json"/><title>Fleet Debugger</title><script defer="defer" src="./static/js/main.ddad92a1.js"></script><link href="./static/css/main.a527fc8c.css" rel="stylesheet"></head><body><noscript>You need to enable JavaScript to run this app.</noscript><div id="root"></div></body></html></doctype>
<doctype html><html lang="en"><head><meta charset="utf-8"/><link rel="icon" href="./favicon.ico"/><meta name="viewport" content="width=device-width,initial-scale=1"/><meta name="theme-color" content="#000000"/><meta name="description" content="Fleet Debugger Front-end Web site created using create-react-app"/><link rel="apple-touch-icon" href="./logo192.png"/><link rel="manifest" href="./manifest.json"/><title>Fleet Debugger</title><script defer="defer" src="./static/js/main.64c4b9ce.js"></script><link href="./static/css/main.a527fc8c.css" rel="stylesheet"></head><body><noscript>You need to enable JavaScript to run this app.</noscript><div id="root"></div></body></html></doctype>

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions demos/multiple-trips/static/js/main.64c4b9ce.js.map

Large diffs are not rendered by default.

1 change: 0 additions & 1 deletion demos/multiple-trips/static/js/main.ddad92a1.js.map

This file was deleted.

3 changes: 1 addition & 2 deletions src/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -440,7 +440,7 @@ class App extends React.Component {

checkForDemoFile = async () => {
try {
const response = await fetch("/data.json");
const response = await fetch("./data.json");
if (!response.ok) {
return;
}
Expand Down Expand Up @@ -490,7 +490,6 @@ class App extends React.Component {
this.switchDataset(index);
} catch (error) {
console.error("Error uploading file:", error);
alert("Error uploading file. Please try again.");
}
}
};
Expand Down

0 comments on commit 5d1d024

Please sign in to comment.