From b5a78a5fa96d5324fbd68bf0245d821dbe448448 Mon Sep 17 00:00:00 2001 From: mac Date: Wed, 10 Jul 2024 16:29:44 +0800 Subject: [PATCH] commit --- .env | 3 +- env-temp | 7 +-- package.json | 2 +- src/components/layout/Slider.tsx | 1 + src/http/api.ts | 2 + src/pages/record/bonus/index.tsx | 2 +- src/pages/transfer/index.tsx | 18 ++++-- src/router/index.tsx | 97 ++++++++++++++++++++++---------- src/store/index.ts | 6 +- src/types/index.ts | 5 ++ 10 files changed, 100 insertions(+), 43 deletions(-) diff --git a/.env b/.env index c01847d..79e0939 100644 --- a/.env +++ b/.env @@ -1,4 +1,3 @@ SKIP_PREFLIGHT_CHECK=true GENERATE_SOURCEMAP=false -REACT_APP_BASEURL='https://matontrading.com' -REACT_APP_ORIGIN='https://matontrading.com' \ No newline at end of file +REACT_APP_BASEURL='https://matontrading.com' \ No newline at end of file diff --git a/env-temp b/env-temp index 18b442a..c59e6a3 100644 --- a/env-temp +++ b/env-temp @@ -1,5 +1,4 @@ +// prod REACT_APP_BASEURL='https://matontrading.com' -REACT_APP_ORIGIN='https://matontrading.com' - -REACT_APP_BASEURL='http://203.161.61.234:8082' -REACT_APP_ORIGIN='http://162.254.37.253:8086' \ No newline at end of file +// dev +REACT_APP_BASEURL='http://203.161.61.234:8082' \ No newline at end of file diff --git a/package.json b/package.json index f606aed..3035dab 100644 --- a/package.json +++ b/package.json @@ -32,7 +32,7 @@ "build": "react-scripts build", "test": "react-scripts test", "eject": "react-scripts eject", - "deploy": "npm run build && scp -r ./build/* dcfilefast_prod:/data/wwwroot/tarder", + "deploy:dev": "npm run build && scp -r ./build/* dcfilefast_prod:/data/wwwroot/tarder", "deploy:prod": "npm run build && scp -r ./build/* metatrader_prod:/data/wwwroot/matontrading.com" }, "eslintConfig": { diff --git a/src/components/layout/Slider.tsx b/src/components/layout/Slider.tsx index f31349f..cc32cc1 100644 --- a/src/components/layout/Slider.tsx +++ b/src/components/layout/Slider.tsx @@ -66,6 +66,7 @@ const Slider = () => {
{userInfo.email}
+
[{userInfo.level}]