From 6c52a091c9ec9f184146d8099181542dcec49590 Mon Sep 17 00:00:00 2001 From: goodmice Date: Tue, 13 Sep 2022 16:21:30 +0500 Subject: [PATCH] =?UTF-8?q?=D0=A1=D1=82=D0=B8=D0=BB=D0=B8=D1=81=D1=82?= =?UTF-8?q?=D0=B8=D1=87=D0=B5=D1=81=D0=BA=D0=B8=D0=B5=20=D0=B8=D0=B7=D0=BC?= =?UTF-8?q?=D0=B5=D0=BD=D0=B5=D0=BD=D0=B8=D1=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 8 ++++---- package.json | 5 +++-- src/components/PageHeader.tsx | 30 +++++++++++++----------------- 3 files changed, 20 insertions(+), 23 deletions(-) diff --git a/README.md b/README.md index de49569..cc48f9f 100755 --- a/README.md +++ b/README.md @@ -38,10 +38,10 @@ npx openapi -i http://{IP_ADDRESS}:{PORT}/swagger/v1/swagger.json -o src/service | IP-адрес | Описание | |:-|:-| -| 127.0.0.1:5000 | Локальный адрес вашей машины (привязан к `update_openapi`) | -| 192.168.1.70:5000 | Локальный адрес development-сервера (привязан к `update_openapi_server`) | -| 46.146.209.148:89 | Внешний адрес development-сервера | -| 46.146.209.148 | Внешний адрес production-сервера | +| 127.0.0.1:5000 | Локальный адрес вашей машины (привязан к `update_openapi`) | +| 192.168.1.113:5000 | Локальный адрес development-сервера (привязан к `update_openapi_server`) | +| 46.146.209.148:89 | Внешний адрес development-сервера | +| cloud.digitaldrilling.ru | Внешний адрес production-сервера | ## 3. Компиляция production-версии приложения После выполнения вышеописанных пунктов приложение готово к компиляции. diff --git a/package.json b/package.json index 39758dd..c9fc9b3 100755 --- a/package.json +++ b/package.json @@ -19,9 +19,10 @@ "start": "webpack-dev-server --mode=development --open --hot", "build": "webpack --mode=production", "test": "jest", + "dev": "webpack-dev-server --mode=development --open --hot", "oul": "npx openapi -i http://127.0.0.1:5000/swagger/v1/swagger.json -o src/services/api", - "oud": "npx openapi -i http://192.168.1.70:5000/swagger/v1/swagger.json -o src/services/api", - "oug": "npx openapi -i http://46.146.209.148/swagger/v1/swagger.json -o src/services/api", + "oud": "npx openapi -i http://192.168.1.113:5000/swagger/v1/swagger.json -o src/services/api", + "oug": "npx openapi -i https://cloud.digitaldrilling.ru/swagger/v1/swagger.json -o src/services/api", "oug_dev": "npx openapi -i http://46.146.209.148:89/swagger/v1/swagger.json -o src/services/api" }, "proxy": "http://46.146.209.148:89", diff --git a/src/components/PageHeader.tsx b/src/components/PageHeader.tsx index 1db85e2..3dc6c02 100755 --- a/src/components/PageHeader.tsx +++ b/src/components/PageHeader.tsx @@ -1,6 +1,6 @@ import { memo } from 'react' import { Layout } from 'antd' -import { Link, useLocation } from 'react-router-dom' +import { Link } from 'react-router-dom' import { BasicProps } from 'antd/lib/layout/layout' import { headerHeight } from '@utils' @@ -14,21 +14,17 @@ export type PageHeaderProps = BasicProps & { children?: React.ReactNode } -export const PageHeader: React.FC = memo(({ title = 'Мониторинг', isAdmin, children, ...other }) => { - const location = useLocation() - - return ( - - - - - -

{title}

- {children} - -
-
- ) -}) +export const PageHeader: React.FC = memo(({ title = 'Мониторинг', isAdmin, children, ...other }) => ( + + + + + +

{title}

+ {children} + +
+
+)) export default PageHeader