1
0
mirror of https://github.com/ebosas/microservices.git synced 2025-06-30 22:33:51 +02:00

updates to readme, frontend

This commit is contained in:
ebosas
2021-06-02 12:38:11 +03:00
parent c44f98fac4
commit 75f6da97f5
9 changed files with 58 additions and 19 deletions

View File

@ -4,7 +4,8 @@
"description": "",
"scripts": {
"build": "node esbuild.js",
"build-server": "esbuild src/index.jsx --bundle --sourcemap --outdir=../server/static"
"build-server": "esbuild src/index.jsx --bundle --outdir=../server/static",
"serve": "esbuild src/index.jsx --outfile=index.js --bundle --sourcemap --serve=8000"
},
"keywords": [],
"author": "",

View File

@ -68,7 +68,7 @@ function App(){
React.useEffect(() => {
clearTimeout(timeout.current);
timeout.current = setTimeout(() => {setAlerts([])}, 15000);
timeout.current = setTimeout(() => {setAlerts([])}, 20000);
return () => {
clearTimeout(timeout.current);

View File

@ -2,7 +2,7 @@ import * as React from 'react'
import * as ReactDOM from 'react-dom'
import App from './app';
ReactDOM.hydrate(
ReactDOM.render(
<App />,
document.getElementById('root')
);