This commit is contained in:
Andrew Trieu
2023-05-27 16:19:15 +03:00
parent fe2b81a509
commit 4597b8deae
13 changed files with 92 additions and 2 deletions

View File

@@ -0,0 +1,13 @@
{
"files": {
"main.css": "/static/css/main.7e49b65b.css",
"main.js": "/static/js/main.fee9d5c6.js",
"index.html": "/index.html",
"main.7e49b65b.css.map": "/static/css/main.7e49b65b.css.map",
"main.fee9d5c6.js.map": "/static/js/main.fee9d5c6.js.map"
},
"entrypoints": [
"static/css/main.7e49b65b.css",
"static/js/main.fee9d5c6.js"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.8 KiB

View File

@@ -0,0 +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.fee9d5c6.js"></script><link href="/static/css/main.7e49b65b.css" rel="stylesheet"></head><body><noscript>You need to enable JavaScript to run this app.</noscript><div id="root"></div></body></html>

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.4 KiB

View File

@@ -0,0 +1,25 @@
{
"short_name": "React App",
"name": "Create React App Sample",
"icons": [
{
"src": "favicon.ico",
"sizes": "64x64 32x32 24x24 16x16",
"type": "image/x-icon"
},
{
"src": "logo192.png",
"type": "image/png",
"sizes": "192x192"
},
{
"src": "logo512.png",
"type": "image/png",
"sizes": "512x512"
}
],
"start_url": ".",
"display": "standalone",
"theme_color": "#000000",
"background_color": "#ffffff"
}

View File

@@ -0,0 +1,3 @@
# https://www.robotstxt.org/robotstxt.html
User-agent: *
Disallow:

View File

@@ -0,0 +1,2 @@
.success-message{color:green}.error-message{color:red}.error-message,.success-message{background:gray;border-radius:5px;border-style:solid;font-size:20px;margin-bottom:10px;padding:10px}
/*# sourceMappingURL=main.7e49b65b.css.map*/

View File

@@ -0,0 +1 @@
{"version":3,"file":"static/css/main.7e49b65b.css","mappings":"AAAA,iBACI,WACJ,CAEA,eACI,SACJ,CAEA,gCACI,eAAgB,CAGhB,iBAAkB,CADlB,kBAAmB,CADnB,cAAe,CAIf,kBAAmB,CADnB,YAEJ","sources":["index.css"],"sourcesContent":[".success-message {\n color: green;\n}\n\n.error-message {\n color: red;\n}\n\n.success-message, .error-message {\n background: gray;\n font-size: 20px;\n border-style: solid;\n border-radius: 5px;\n padding: 10px;\n margin-bottom: 10px;\n}\n"],"names":[],"sourceRoot":""}

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1,39 @@
/**
* @license React
* react-dom.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
/**
* @license React
* react-jsx-runtime.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
/**
* @license React
* react.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
/**
* @license React
* scheduler.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/

File diff suppressed because one or more lines are too long

View File

@@ -1,10 +1,12 @@
const express = require("express");
const app = express();
app.use(express.json());
const cors = require("cors");
app.use(cors());
const morgan = require("morgan");
app.use(express.json());
app.use(cors());
app.use(express.static('build'))
morgan.token("body", function (req, res) {
return req.method === "POST" ? JSON.stringify(req.body) : "";
});