Use relative path now
Browse files- backend/static/asset-manifest.json +3 -3
- backend/static/index.html +1 -1
- backend/static/static/js/{main.af137dc3.js → main.f13a7657.js} +0 -0
- backend/static/static/js/{main.af137dc3.js.LICENSE.txt → main.f13a7657.js.LICENSE.txt} +0 -0
- backend/static/static/js/{main.af137dc3.js.map → main.f13a7657.js.map} +0 -0
- frontend/src/App.js +3 -3
backend/static/asset-manifest.json
CHANGED
|
@@ -1,15 +1,15 @@
|
|
| 1 |
{
|
| 2 |
"files": {
|
| 3 |
"main.css": "/static/css/main.e6c13ad2.css",
|
| 4 |
-
"main.js": "/static/js/main.
|
| 5 |
"static/js/453.8ab44547.chunk.js": "/static/js/453.8ab44547.chunk.js",
|
| 6 |
"index.html": "/index.html",
|
| 7 |
"main.e6c13ad2.css.map": "/static/css/main.e6c13ad2.css.map",
|
| 8 |
-
"main.
|
| 9 |
"453.8ab44547.chunk.js.map": "/static/js/453.8ab44547.chunk.js.map"
|
| 10 |
},
|
| 11 |
"entrypoints": [
|
| 12 |
"static/css/main.e6c13ad2.css",
|
| 13 |
-
"static/js/main.
|
| 14 |
]
|
| 15 |
}
|
|
|
|
| 1 |
{
|
| 2 |
"files": {
|
| 3 |
"main.css": "/static/css/main.e6c13ad2.css",
|
| 4 |
+
"main.js": "/static/js/main.f13a7657.js",
|
| 5 |
"static/js/453.8ab44547.chunk.js": "/static/js/453.8ab44547.chunk.js",
|
| 6 |
"index.html": "/index.html",
|
| 7 |
"main.e6c13ad2.css.map": "/static/css/main.e6c13ad2.css.map",
|
| 8 |
+
"main.f13a7657.js.map": "/static/js/main.f13a7657.js.map",
|
| 9 |
"453.8ab44547.chunk.js.map": "/static/js/453.8ab44547.chunk.js.map"
|
| 10 |
},
|
| 11 |
"entrypoints": [
|
| 12 |
"static/css/main.e6c13ad2.css",
|
| 13 |
+
"static/js/main.f13a7657.js"
|
| 14 |
]
|
| 15 |
}
|
backend/static/index.html
CHANGED
|
@@ -1 +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="Web site created using create-react-app"/><link rel="apple-touch-icon" href="/logo192.png"/><link rel="manifest" href="/manifest.json"/><title>React App</title><script defer="defer" src="/static/js/main.
|
|
|
|
| 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="Web site created using create-react-app"/><link rel="apple-touch-icon" href="/logo192.png"/><link rel="manifest" href="/manifest.json"/><title>React App</title><script defer="defer" src="/static/js/main.f13a7657.js"></script><link href="/static/css/main.e6c13ad2.css" rel="stylesheet"></head><body><noscript>You need to enable JavaScript to run this app.</noscript><div id="root"></div></body></html>
|
backend/static/static/js/{main.af137dc3.js → main.f13a7657.js}
RENAMED
|
The diff for this file is too large to render.
See raw diff
|
|
|
backend/static/static/js/{main.af137dc3.js.LICENSE.txt → main.f13a7657.js.LICENSE.txt}
RENAMED
|
File without changes
|
backend/static/static/js/{main.af137dc3.js.map → main.f13a7657.js.map}
RENAMED
|
The diff for this file is too large to render.
See raw diff
|
|
|
frontend/src/App.js
CHANGED
|
@@ -18,7 +18,7 @@ function App() {
|
|
| 18 |
|
| 19 |
// 前端先获取默认 sysContent
|
| 20 |
useEffect(() => {
|
| 21 |
-
fetch("
|
| 22 |
.then(res => res.json())
|
| 23 |
.then(data => {
|
| 24 |
if(data.success) {
|
|
@@ -30,7 +30,7 @@ function App() {
|
|
| 30 |
|
| 31 |
// 当 puzzleIndex 改变时,自动获取对应 puzzle
|
| 32 |
useEffect(() => {
|
| 33 |
-
fetch(
|
| 34 |
.then(res => res.json())
|
| 35 |
.then(data => {
|
| 36 |
if(data.success) {
|
|
@@ -57,7 +57,7 @@ function App() {
|
|
| 57 |
sys_content: sysContent
|
| 58 |
};
|
| 59 |
|
| 60 |
-
fetch("
|
| 61 |
method: "POST",
|
| 62 |
headers: { "Content-Type": "application/json" },
|
| 63 |
body: JSON.stringify(payload)
|
|
|
|
| 18 |
|
| 19 |
// 前端先获取默认 sysContent
|
| 20 |
useEffect(() => {
|
| 21 |
+
fetch("/default_sys_content")
|
| 22 |
.then(res => res.json())
|
| 23 |
.then(data => {
|
| 24 |
if(data.success) {
|
|
|
|
| 30 |
|
| 31 |
// 当 puzzleIndex 改变时,自动获取对应 puzzle
|
| 32 |
useEffect(() => {
|
| 33 |
+
fetch(`/get_puzzle?index=${puzzleIndex}`)
|
| 34 |
.then(res => res.json())
|
| 35 |
.then(data => {
|
| 36 |
if(data.success) {
|
|
|
|
| 57 |
sys_content: sysContent
|
| 58 |
};
|
| 59 |
|
| 60 |
+
fetch("/solve", {
|
| 61 |
method: "POST",
|
| 62 |
headers: { "Content-Type": "application/json" },
|
| 63 |
body: JSON.stringify(payload)
|