From a43f3e4e0abbb18cfef34d88d164f1d1de2178df Mon Sep 17 00:00:00 2001 From: hided62 Date: Fri, 21 Aug 2026 01:45:20 +0000 Subject: [PATCH] =?UTF-8?q?perf:=20=ED=94=84=EB=9F=B0=ED=8A=B8=EC=97=94?= =?UTF-8?q?=EB=93=9C=20import=20=EA=B2=BD=EA=B3=84=EB=A5=BC=20=EC=84=B8?= =?UTF-8?q?=EB=B6=84=ED=99=94?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Gateway 화면을 route 단위로 지연 로딩하고 common runtime import를 실제 소유 leaf export로 분리한다.\n\npackage boundary와 route loading 회귀 테스트로 root barrel 재유입을 차단한다. --- .../command/reservedCommandBrief.ts | 2 +- .../components/main/GeneralBattleSummary.vue | 2 +- .../src/components/main/MainFrontStatus.vue | 2 +- app/game-frontend/src/stores/mainDashboard.ts | 8 ++--- .../src/utils/dashboardReadModel.ts | 2 +- app/game-frontend/src/utils/formatLog.ts | 2 +- app/game-frontend/src/utils/gatewayTrpc.ts | 2 +- app/game-frontend/src/utils/legacyDateTime.ts | 2 +- app/game-frontend/src/utils/trpc.ts | 3 +- app/game-frontend/src/views/AuctionView.vue | 2 +- .../src/views/BattleCenterView.vue | 2 +- app/game-frontend/src/views/BettingView.vue | 2 +- app/game-frontend/src/views/BoardView.vue | 2 +- .../src/views/DynastyDetailView.vue | 2 +- app/game-frontend/src/views/InheritView.vue | 3 +- app/game-frontend/src/views/MainView.vue | 2 +- .../src/views/NationCitiesView.vue | 2 +- .../src/views/NationPersonnelView.vue | 2 +- .../src/views/NationSecretView.vue | 2 +- app/game-frontend/src/views/PastPlaysView.vue | 5 ++- app/game-frontend/src/views/SurveyView.vue | 2 +- .../src/views/TournamentView.vue | 2 +- app/game-frontend/src/views/TrafficView.vue | 2 +- app/game-frontend/src/views/TroopView.vue | 2 +- app/gateway-frontend/src/router/index.ts | 17 ++++----- app/gateway-frontend/src/utils/formatLog.ts | 2 +- app/gateway-frontend/src/utils/gameTrpc.ts | 6 ++-- app/gateway-frontend/src/utils/trpc.ts | 2 +- .../src/views/AccountView.vue | 2 +- app/gateway-frontend/src/views/AdminView.vue | 5 ++- app/gateway-frontend/src/views/HomeView.vue | 2 +- app/gateway-frontend/src/views/LobbyView.vue | 2 +- .../src/views/ServerOperationsView.vue | 2 +- .../test/routerLoading.test.mjs | 25 +++++++++++++ packages/common/package.json | 32 +++++++++++++++++ packages/common/tsdown.config.ts | 8 +++++ tools/check-package-boundaries.mjs | 26 +++++++++++++- tools/check-package-boundaries.test.mjs | 36 +++++++++++++++++++ 38 files changed, 175 insertions(+), 51 deletions(-) create mode 100644 app/gateway-frontend/test/routerLoading.test.mjs diff --git a/app/game-frontend/src/components/command/reservedCommandBrief.ts b/app/game-frontend/src/components/command/reservedCommandBrief.ts index 0e113877..500804aa 100644 --- a/app/game-frontend/src/components/command/reservedCommandBrief.ts +++ b/app/game-frontend/src/components/command/reservedCommandBrief.ts @@ -1,4 +1,4 @@ -import { JosaUtil } from '@sammo-ts/common'; +import { JosaUtil } from '@sammo-ts/common/util/JosaUtil'; import type { CommandOption, CommandTable } from './types'; diff --git a/app/game-frontend/src/components/main/GeneralBattleSummary.vue b/app/game-frontend/src/components/main/GeneralBattleSummary.vue index d67bb894..55ba881e 100644 --- a/app/game-frontend/src/components/main/GeneralBattleSummary.vue +++ b/app/game-frontend/src/components/main/GeneralBattleSummary.vue @@ -1,7 +1,7 @@