From 00e25465ca505fb424e6d3de92b26aba676aa06a Mon Sep 17 00:00:00 2001 From: liuxy0551 Date: Thu, 11 Jul 2024 15:32:49 +0800 Subject: [PATCH] feat: optimize --- apps/server/src/app.module.ts | 1 - apps/server/src/main.ts | 1 + apps/web/src/const/index.ts | 6 +++--- apps/web/src/views/home/components/taskTable/index.tsx | 2 ++ docker/Dockerfile.server | 3 ++- scripts/deploy.mjs | 6 ++---- 6 files changed, 10 insertions(+), 9 deletions(-) diff --git a/apps/server/src/app.module.ts b/apps/server/src/app.module.ts index 29405b2..faffd59 100644 --- a/apps/server/src/app.module.ts +++ b/apps/server/src/app.module.ts @@ -23,7 +23,6 @@ import { ValidationPipe } from './pipe/validation/validation.pipe'; ConfigModule.forRoot({ isGlobal: true, envFilePath: [ - join(__dirname, '../../../', '.env.prod'), join(__dirname, '../../../', '.env.local'), join(__dirname, '../../../', '.env'), ], diff --git a/apps/server/src/main.ts b/apps/server/src/main.ts index c3027ac..9fa2b15 100644 --- a/apps/server/src/main.ts +++ b/apps/server/src/main.ts @@ -41,4 +41,5 @@ async function bootstrap() { console.log(`${formatDate()} api docs: http://localhost:${APP_PORT}/docs`); }); } + bootstrap(); diff --git a/apps/web/src/const/index.ts b/apps/web/src/const/index.ts index 744553c..ba2ac8d 100644 --- a/apps/web/src/const/index.ts +++ b/apps/web/src/const/index.ts @@ -37,9 +37,9 @@ export const IS_USEFUL_TEXT = [ /** * 得分的颜色 - * 慢 red #FF3333 0 ~ 49 - * 平均值 orange #FFAA33 50 ~ 79 - * 快 green #00CC66 80 ~ 100 + * 分数较低 red #FF3333 + * 分数中等 orange #FFAA33 + * 分数较高 green #00CC66 */ const scoreColor = { orangeMin: 50, diff --git a/apps/web/src/views/home/components/taskTable/index.tsx b/apps/web/src/views/home/components/taskTable/index.tsx index 64a6a77..531a64d 100644 --- a/apps/web/src/views/home/components/taskTable/index.tsx +++ b/apps/web/src/views/home/components/taskTable/index.tsx @@ -341,6 +341,8 @@ export default function TaskTable(props: IPros) { 操作