clpd-demo-web 0.0.0-stage → 0.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.env +15 -0
- package/.env.lan +13 -0
- package/.env.mock +13 -0
- package/.env.prod +12 -0
- package/.env.production +6 -0
- package/.env.test +12 -0
- package/.gitignore +19 -0
- package/CLPD-/345/211/215/347/253/257/346/212/200/346/234/257/350/257/264/346/230/216/344/271/246.html +766 -0
- package/CLPD-/345/220/216/347/253/257/346/212/200/346/234/257/350/257/264/346/230/216/344/271/246.html +894 -0
- package/CLPD/345/211/215/345/220/216/347/253/257/346/212/200/346/234/257/351/200/211/345/236/213/344/270/216/345/274/200/345/217/221/346/214/207/345/215/227_v4.1.html +2560 -0
- package/CLPD/351/241/271/347/233/256-/345/244/232/344/273/223/347/256/241/347/220/206/344/270/216/345/215/217/344/275/234/350/247/204/350/214/203.html +280 -0
- package/README.md +291 -3
- package/config/check-lan.mjs +17 -0
- package/config/lan.d.mts +30 -0
- package/config/lan.mjs +177 -0
- package/docs/01-/351/241/271/347/233/256/346/200/273/350/247/210.md +80 -0
- package/docs/02-/344/270/232/345/212/241/351/200/273/350/276/221/347/273/223/346/236/204.md +88 -0
- package/docs/03-/346/250/241/345/235/227/345/210/222/345/210/206/344/270/216/346/236/266/346/236/204.md +99 -0
- package/docs/04-/345/205/263/351/224/256/346/265/201/347/250/213/350/257/264/346/230/216.md +102 -0
- package/docs/05-/345/276/205/347/241/256/350/256/244/351/241/271/344/270/216/351/243/216/351/231/251.md +101 -0
- package/docs/06-/346/263/250/351/207/212/344/270/216/347/273/264/346/212/244/346/214/207/345/215/227.md +71 -0
- package/docs/07-/345/211/215/347/253/257/345/274/200/345/217/221/351/234/200/346/261/202/350/241/245/345/205/250.md +259 -0
- package/docs/API-00-/346/200/273/350/247/210/344/270/216/345/205/254/345/205/261/347/272/246/345/256/232.md +298 -0
- package/docs/API-01-/344/274/232/350/257/235/344/270/216/345/257/274/350/210/252/346/216/245/345/217/243.md +166 -0
- package/docs/API-02-/345/256/232/344/273/267/344/270/216/346/212/245/344/273/267/346/216/245/345/217/243.md +266 -0
- package/docs/API-03-/345/217/202/346/225/260/350/256/276/347/275/256/346/216/245/345/217/243.md +435 -0
- package/docs/API-04-/344/272/244/346/230/223/346/237/245/350/257/242/344/270/216/346/212/245/350/241/250/346/216/245/345/217/243.md +183 -0
- package/docs/API-05-/346/222/244/351/224/200/344/270/216/346/217/220/345/211/215/346/224/257/345/217/226/346/216/245/345/217/243.md +357 -0
- package/docs/API-06-/345/256/236/346/227/266/350/241/214/346/203/205WebSocket/346/216/245/345/217/243.md +194 -0
- package/docs/API-07-/347/263/273/347/273/237/347/256/241/347/220/206/344/270/216/350/207/252/345/212/251/346/216/245/345/217/243.md +365 -0
- package/docs/API-08-/344/270/213/345/215/225/344/270/216/345/256/242/346/210/267/345/220/210/350/247/204/346/216/245/345/217/243.md +380 -0
- package/docs/API-09-/346/222/244/351/224/200/345/256/241/346/211/271/344/270/216/346/212/245/350/241/250/345/257/274/345/207/272/346/216/245/345/217/243.md +375 -0
- package/docs/API-10-/345/220/216/347/253/257RESTful/346/216/245/345/217/243/350/247/204/350/214/203.md +877 -0
- package/docs/README.md +49 -0
- package/docs/html/clpd-backend-api-docs.html +1013 -0
- package/docs/html/clpd-backend-api-docs_V0.1.html +368 -0
- package/docs/html/clpd-frontend-docs.html +356 -0
- package/eslint.config.js +67 -0
- package/index.html +13 -0
- package/lan.config.example.json +4 -0
- package/package.json +119 -6
- package/playwright.config.ts +40 -0
- package/scripts/audit-layout.mjs +140 -0
- package/scripts/audit-raw-i18n.mjs +61 -0
- package/scripts/build_docs_html.py +560 -0
- package/scripts/check-i18n-keys.mjs +68 -0
- package/scripts/docs-html-screenshot.mjs +30 -0
- package/scripts/screenshot-selfcheck.mjs +57 -0
- package/scripts/screenshots/amendment-monitor-desktop.png +0 -0
- package/scripts/screenshots/amendment-monitor-mobile.png +0 -0
- package/scripts/screenshots/cancel-dialog-desktop.png +0 -0
- package/scripts/screenshots/currency-pair-desktop.png +0 -0
- package/scripts/screenshots/currency-pair-mobile.png +0 -0
- package/scripts/screenshots/funding-rate-desktop.png +0 -0
- package/scripts/screenshots/funding-rate-mobile.png +0 -0
- package/scripts/screenshots/fx-reports-desktop.png +0 -0
- package/scripts/screenshots/fx-reports-mobile.png +0 -0
- package/scripts/screenshots/home-desktop.png +0 -0
- package/scripts/screenshots/home-mobile.png +0 -0
- package/scripts/screenshots/order-ticket-desktop.png +0 -0
- package/scripts/screenshots/order-ticket-mobile.png +0 -0
- package/scripts/screenshots/price-grid-desktop.png +0 -0
- package/scripts/screenshots/price-grid-mobile.png +0 -0
- package/scripts/screenshots/spread-desktop.png +0 -0
- package/scripts/screenshots/spread-mobile.png +0 -0
- package/scripts/screenshots/transaction-monitor-desktop.png +0 -0
- package/scripts/screenshots/transaction-monitor-mobile.png +0 -0
- package/scripts/upgrade-antd6.py +48 -0
- package/src/api/README.md +94 -0
- package/src/api/client.ts +52 -0
- package/src/api/gateway.ts +96 -0
- package/src/api/index.ts +24 -0
- package/src/api/modules/administration.ts +163 -0
- package/src/api/modules/cancellation.ts +173 -0
- package/src/api/modules/customer.ts +155 -0
- package/src/api/modules/inquiry.ts +105 -0
- package/src/api/modules/orders.ts +30 -0
- package/src/api/modules/ordersMock.ts +72 -0
- package/src/api/modules/pricing.ts +42 -0
- package/src/api/modules/session.ts +64 -0
- package/src/api/modules/settings.ts +379 -0
- package/src/api/shared/runtime.ts +53 -0
- package/src/app/AppLayout.tsx +329 -0
- package/src/app/Providers.tsx +53 -0
- package/src/app/menuIcons.tsx +47 -0
- package/src/app/navigation.ts +313 -0
- package/src/app/router.tsx +288 -0
- package/src/app/theme.ts +117 -0
- package/src/auth/roles.ts +193 -0
- package/src/components/layout/AppBreadcrumb.tsx +44 -0
- package/src/components/layout/CommonPage.tsx +20 -0
- package/src/components/layout/ResultCatalogPage.tsx +58 -0
- package/src/components/layout/ResultPage.tsx +119 -0
- package/src/components/layout/ResultShowcasePage.tsx +107 -0
- package/src/components/layout/UserContextBar.tsx +61 -0
- package/src/components/result/ResultActions.tsx +70 -0
- package/src/components/result/ResultCard.tsx +53 -0
- package/src/components/result/ResultCatalogCard.tsx +81 -0
- package/src/components/result/ResultCodeBadge.tsx +28 -0
- package/src/components/result/ResultDetail.tsx +36 -0
- package/src/components/result/ResultMessage.tsx +41 -0
- package/src/components/result/ResultPoints.tsx +32 -0
- package/src/components/result/ResultStatusIcon.tsx +58 -0
- package/src/components/result/index.ts +13 -0
- package/src/components/result/result.css +141 -0
- package/src/components/ui/ExportProgress.tsx +27 -0
- package/src/components/ui/ScrollLockModal.tsx +14 -0
- package/src/components/ui/UnifiedUI.tsx +217 -0
- package/src/config/env.ts +127 -0
- package/src/config/lan.ts +39 -0
- package/src/config/navigationIcons.ts +17 -0
- package/src/config/resultPages.ts +136 -0
- package/src/features/auth/LoginPage/components/CapabilityTags.tsx +27 -0
- package/src/features/auth/LoginPage/index.tsx +186 -0
- package/src/features/auth/LoginPage/login-page.css +27 -0
- package/src/features/auth/LoginPage/types.ts +4 -0
- package/src/features/monitoring/AmendmentMonitorPage/amendment-dialog.css +332 -0
- package/src/features/monitoring/AmendmentMonitorPage/amendment-monitor-page.css +15 -0
- package/src/features/monitoring/AmendmentMonitorPage/components/AmendmentDialog.tsx +219 -0
- package/src/features/monitoring/AmendmentMonitorPage/components/DialogParts.tsx +30 -0
- package/src/features/monitoring/AmendmentMonitorPage/constants.ts +75 -0
- package/src/features/monitoring/AmendmentMonitorPage/index.tsx +832 -0
- package/src/features/monitoring/AmendmentMonitorPage/types.ts +70 -0
- package/src/features/monitoring/OrderMonitorPage/constants.ts +102 -0
- package/src/features/monitoring/OrderMonitorPage/index.tsx +542 -0
- package/src/features/monitoring/OrderMonitorPage/order-monitor-page.css +4 -0
- package/src/features/monitoring/TransactionMonitorPage/constants.ts +103 -0
- package/src/features/monitoring/TransactionMonitorPage/index.tsx +609 -0
- package/src/features/monitoring/TransactionMonitorPage/sorting.ts +23 -0
- package/src/features/monitoring/TransactionMonitorPage/transaction-monitor-page.css +25 -0
- package/src/features/monitoring/TransactionMonitorPage/types.ts +52 -0
- package/src/features/portal/HomePage/home-page.css +17 -0
- package/src/features/portal/HomePage/index.tsx +68 -0
- package/src/features/pricing/CurrencyPairPage/currency-pair-page.css +2 -0
- package/src/features/pricing/CurrencyPairPage/helpers.ts +10 -0
- package/src/features/pricing/CurrencyPairPage/index.tsx +173 -0
- package/src/features/pricing/CurrencyPairPage/types.ts +4 -0
- package/src/features/pricing/FundingRatePage/constants.ts +24 -0
- package/src/features/pricing/FundingRatePage/funding-rate-page.css +1 -0
- package/src/features/pricing/FundingRatePage/index.tsx +330 -0
- package/src/features/pricing/FundingRatePage/types.ts +22 -0
- package/src/features/pricing/FundingRatePage/validation.ts +92 -0
- package/src/features/pricing/PriceGridPage/components/YieldCell.tsx +35 -0
- package/src/features/pricing/PriceGridPage/constants.ts +14 -0
- package/src/features/pricing/PriceGridPage/index.tsx +443 -0
- package/src/features/pricing/PriceGridPage/price-grid-page.css +254 -0
- package/src/features/pricing/PriceGridPage/types.ts +29 -0
- package/src/features/pricing/SpreadPage/constants.ts +11 -0
- package/src/features/pricing/SpreadPage/index.tsx +388 -0
- package/src/features/pricing/SpreadPage/spread-page.css +377 -0
- package/src/features/pricing/SpreadPage/types.ts +14 -0
- package/src/features/pricing/ViewCldYieldPage/constants.ts +5 -0
- package/src/features/pricing/ViewCldYieldPage/index.tsx +225 -0
- package/src/features/pricing/ViewCldYieldPage/types.ts +11 -0
- package/src/features/pricing/ViewCldYieldPage/view-cld-yield-page.css +152 -0
- package/src/features/reports/FxReportsPage/constants.ts +59 -0
- package/src/features/reports/FxReportsPage/fx-reports-page.css +50 -0
- package/src/features/reports/FxReportsPage/index.tsx +420 -0
- package/src/features/reports/FxReportsPage/types.ts +23 -0
- package/src/features/settings/ApprovalPage/approval-page.css +7 -0
- package/src/features/settings/ApprovalPage/constants.ts +53 -0
- package/src/features/settings/ApprovalPage/index.tsx +326 -0
- package/src/features/settings/CldDatePage/calendar.ts +279 -0
- package/src/features/settings/CldDatePage/cld-date-page.css +169 -0
- package/src/features/settings/CldDatePage/index.tsx +646 -0
- package/src/features/settings/MinDepositPage/index.tsx +207 -0
- package/src/features/settings/MinDepositPage/min-deposit-page.css +3 -0
- package/src/features/settings/MinDepositPage/validation.ts +34 -0
- package/src/features/settings/MinSizePage/index.tsx +232 -0
- package/src/features/settings/MinSizePage/min-size-page.css +3 -0
- package/src/features/settings/MinSizePage/validation.ts +49 -0
- package/src/features/settings/SetCldPairPage/index.tsx +267 -0
- package/src/features/settings/SetCldPairPage/set-cld-pair-page.css +5 -0
- package/src/features/settings/SetCldPairPage/types.ts +19 -0
- package/src/features/settings/TradingLimitPage/constants.ts +18 -0
- package/src/features/settings/TradingLimitPage/index.tsx +143 -0
- package/src/features/settings/TradingLimitPage/trading-limit-page.css +5 -0
- package/src/features/system/AuditLogPage/audit-log-page.css +79 -0
- package/src/features/system/AuditLogPage/index.tsx +351 -0
- package/src/features/system/ExternalFramePage/external-frame-page.css +1 -0
- package/src/features/system/ExternalFramePage/index.tsx +56 -0
- package/src/features/system/PlaceholderPage/index.tsx +46 -0
- package/src/features/system/PlaceholderPage/placeholder-page.css +1 -0
- package/src/features/system/ProfilePage/index.tsx +237 -0
- package/src/features/system/ProfilePage/profile-page.css +19 -0
- package/src/features/system/UserPage/index.tsx +317 -0
- package/src/features/system/UserPage/user-page.css +3 -0
- package/src/features/trading/OrderTicketPage/components/Fields.tsx +41 -0
- package/src/features/trading/OrderTicketPage/components/OrderTicketDialogs.tsx +126 -0
- package/src/features/trading/OrderTicketPage/components/RenderHelpers.tsx +265 -0
- package/src/features/trading/OrderTicketPage/constants.ts +54 -0
- package/src/features/trading/OrderTicketPage/errors.ts +72 -0
- package/src/features/trading/OrderTicketPage/helpers.ts +42 -0
- package/src/features/trading/OrderTicketPage/index.tsx +1400 -0
- package/src/features/trading/OrderTicketPage/order-ticket-page.css +561 -0
- package/src/features/trading/OrderTicketPage/types.ts +26 -0
- package/src/features/trading/OrderTicketPage/useOrderTicketState.tsx +1216 -0
- package/src/hooks/useAliveFetch.ts +59 -0
- package/src/hooks/useCsvExport.ts +31 -0
- package/src/hooks/useExportClose.ts +89 -0
- package/src/hooks/useHolidayDisabledDate.ts +114 -0
- package/src/hooks/usePageScrollLock.ts +133 -0
- package/src/i18n/index.ts +104 -0
- package/src/i18n/locales/en/amendmentMonitor.json +220 -0
- package/src/i18n/locales/en/approval.json +59 -0
- package/src/i18n/locales/en/auditLog.json +78 -0
- package/src/i18n/locales/en/cldDate.json +121 -0
- package/src/i18n/locales/en/common.json +240 -0
- package/src/i18n/locales/en/currencyPair.json +40 -0
- package/src/i18n/locales/en/fundingRate.json +79 -0
- package/src/i18n/locales/en/fxReports.json +73 -0
- package/src/i18n/locales/en/login.json +55 -0
- package/src/i18n/locales/en/minDeposit.json +33 -0
- package/src/i18n/locales/en/minSize.json +46 -0
- package/src/i18n/locales/en/orderMonitor.json +64 -0
- package/src/i18n/locales/en/orderTicket.json +359 -0
- package/src/i18n/locales/en/priceGrid.json +58 -0
- package/src/i18n/locales/en/profile.json +33 -0
- package/src/i18n/locales/en/resultPage.json +107 -0
- package/src/i18n/locales/en/setCldPair.json +36 -0
- package/src/i18n/locales/en/spread.json +117 -0
- package/src/i18n/locales/en/tradingLimit.json +43 -0
- package/src/i18n/locales/en/transactionMonitor.json +87 -0
- package/src/i18n/locales/en/user.json +57 -0
- package/src/i18n/locales/en/viewCldYield.json +29 -0
- package/src/i18n/locales/zh-CN/amendmentMonitor.json +220 -0
- package/src/i18n/locales/zh-CN/approval.json +59 -0
- package/src/i18n/locales/zh-CN/auditLog.json +78 -0
- package/src/i18n/locales/zh-CN/cldDate.json +121 -0
- package/src/i18n/locales/zh-CN/common.json +240 -0
- package/src/i18n/locales/zh-CN/currencyPair.json +40 -0
- package/src/i18n/locales/zh-CN/fundingRate.json +79 -0
- package/src/i18n/locales/zh-CN/fxReports.json +73 -0
- package/src/i18n/locales/zh-CN/login.json +55 -0
- package/src/i18n/locales/zh-CN/minDeposit.json +33 -0
- package/src/i18n/locales/zh-CN/minSize.json +46 -0
- package/src/i18n/locales/zh-CN/orderMonitor.json +64 -0
- package/src/i18n/locales/zh-CN/orderTicket.json +359 -0
- package/src/i18n/locales/zh-CN/priceGrid.json +58 -0
- package/src/i18n/locales/zh-CN/profile.json +33 -0
- package/src/i18n/locales/zh-CN/resultPage.json +107 -0
- package/src/i18n/locales/zh-CN/setCldPair.json +36 -0
- package/src/i18n/locales/zh-CN/spread.json +117 -0
- package/src/i18n/locales/zh-CN/tradingLimit.json +43 -0
- package/src/i18n/locales/zh-CN/transactionMonitor.json +87 -0
- package/src/i18n/locales/zh-CN/user.json +57 -0
- package/src/i18n/locales/zh-CN/viewCldYield.json +29 -0
- package/src/i18n/locales/zh-TW/amendmentMonitor.json +220 -0
- package/src/i18n/locales/zh-TW/approval.json +59 -0
- package/src/i18n/locales/zh-TW/auditLog.json +78 -0
- package/src/i18n/locales/zh-TW/cldDate.json +121 -0
- package/src/i18n/locales/zh-TW/common.json +240 -0
- package/src/i18n/locales/zh-TW/currencyPair.json +40 -0
- package/src/i18n/locales/zh-TW/fundingRate.json +79 -0
- package/src/i18n/locales/zh-TW/fxReports.json +73 -0
- package/src/i18n/locales/zh-TW/login.json +55 -0
- package/src/i18n/locales/zh-TW/minDeposit.json +33 -0
- package/src/i18n/locales/zh-TW/minSize.json +46 -0
- package/src/i18n/locales/zh-TW/orderMonitor.json +64 -0
- package/src/i18n/locales/zh-TW/orderTicket.json +359 -0
- package/src/i18n/locales/zh-TW/priceGrid.json +58 -0
- package/src/i18n/locales/zh-TW/profile.json +33 -0
- package/src/i18n/locales/zh-TW/resultPage.json +107 -0
- package/src/i18n/locales/zh-TW/setCldPair.json +36 -0
- package/src/i18n/locales/zh-TW/spread.json +117 -0
- package/src/i18n/locales/zh-TW/tradingLimit.json +43 -0
- package/src/i18n/locales/zh-TW/transactionMonitor.json +87 -0
- package/src/i18n/locales/zh-TW/user.json +57 -0
- package/src/i18n/locales/zh-TW/viewCldYield.json +29 -0
- package/src/main.tsx +28 -0
- package/src/mocks/dictionaries/ccyRank.ts +16 -0
- package/src/mocks/dictionaries/hkGeneralHolidays.ts +54 -0
- package/src/mocks/dictionaries/hkTradingCalendar.ts +22 -0
- package/src/mocks/fixtures/amendments.ts +61 -0
- package/src/mocks/fixtures/auditLogs.ts +82 -0
- package/src/mocks/fixtures/calculator.ts +290 -0
- package/src/mocks/fixtures/cancelDeposit.ts +117 -0
- package/src/mocks/fixtures/cldCalendar.ts +214 -0
- package/src/mocks/fixtures/navigation.ts +177 -0
- package/src/mocks/fixtures/orderMonitor.ts +160 -0
- package/src/mocks/fixtures/orderTicket.ts +134 -0
- package/src/mocks/fixtures/prototypeData.ts +25 -0
- package/src/mocks/fixtures/reference.ts +98 -0
- package/src/mocks/fixtures/settings.ts +54 -0
- package/src/mocks/fixtures/ticketSize.ts +39 -0
- package/src/mocks/fixtures/topNavigation.ts +23 -0
- package/src/mocks/fixtures/tradingLimit.ts +23 -0
- package/src/mocks/fixtures/transactions.ts +85 -0
- package/src/mocks/fixtures/users.ts +15 -0
- package/src/mocks/server/pricingEngine.ts +166 -0
- package/src/stores/app.store.ts +161 -0
- package/src/stores/realtime.store.ts +88 -0
- package/src/styles/global.css +571 -0
- package/src/styles/tokens.css +170 -0
- package/src/types/domain.ts +641 -0
- package/src/utils/collection.ts +29 -0
- package/src/utils/csv.ts +25 -0
- package/src/utils/datetime.ts +31 -0
- package/src/utils/format.ts +186 -0
- package/src/utils/navigation.ts +113 -0
- package/src/utils/options.ts +12 -0
- package/src/vite-env.d.ts +27 -0
- package/src/ws/realtime.ts +415 -0
- package/test-results/.last-run.json +4 -0
- package/tests/component/antd-locale-sync.test.tsx +61 -0
- package/tests/component/app.test.tsx +381 -0
- package/tests/component/resultComponents.test.tsx +161 -0
- package/tests/component/resultPage.test.tsx +66 -0
- package/tests/e2e/approval-trading-limit.spec.ts +65 -0
- package/tests/e2e/auth.setup.ts +22 -0
- package/tests/e2e/cld-date.spec.ts +101 -0
- package/tests/e2e/compatibility.spec.ts +308 -0
- package/tests/e2e/frs-pages.spec.ts +103 -0
- package/tests/e2e/interactions.spec.ts +248 -0
- package/tests/e2e/pages.spec.ts +214 -0
- package/tests/e2e/rebuild.spec.ts +207 -0
- package/tests/e2e/settings-pages.spec.ts +164 -0
- package/tests/setup.ts +42 -0
- package/tests/unit/cldCalendar.test.ts +208 -0
- package/tests/unit/dataGateway.test.ts +99 -0
- package/tests/unit/env.test.ts +75 -0
- package/tests/unit/format.test.ts +61 -0
- package/tests/unit/functionCodeEntitlement.test.ts +132 -0
- package/tests/unit/i18n.test.ts +66 -0
- package/tests/unit/i18nKeyGuard.test.ts +96 -0
- package/tests/unit/lan.test.ts +72 -0
- package/tests/unit/pe14-guards.test.ts +152 -0
- package/tests/unit/pricingEngine.test.ts +120 -0
- package/tests/unit/prototypeData.test.ts +200 -0
- package/tests/unit/realtime.test.ts +115 -0
- package/tests/unit/resultPages.test.ts +72 -0
- package/tests/unit/uiConsistency.test.ts +166 -0
- package/tests/unit/writePathGateway.test.ts +207 -0
- package/tsconfig.app.json +27 -0
- package/tsconfig.json +7 -0
- package/tsconfig.node.json +17 -0
- package/vite.config.ts +69 -0
package/.env
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
# ---------------------------------------------------------------------------
|
|
2
|
+
# Global defaults shared by every Vite mode.
|
|
3
|
+
# Prod is the default data source; mock/test opt out in their own env files.
|
|
4
|
+
# All environments default to English (per project constraint).
|
|
5
|
+
# ---------------------------------------------------------------------------
|
|
6
|
+
VITE_DATA_MODE=prod
|
|
7
|
+
VITE_APP_NAME=CLPD Booking Platform — Demo
|
|
8
|
+
VITE_DEFAULT_LOCALE=en
|
|
9
|
+
VITE_SUPPORTED_LOCALES=en,zh-TW,zh-CN
|
|
10
|
+
# External HTTP(S) links: new-window (default) | iframe (generic embedded page)
|
|
11
|
+
VITE_EXTERNAL_LINK_MODE=new-window
|
|
12
|
+
# Dedicated port: 5173 is occupied by the pre-existing D:\codeHisun\clpd-web
|
|
13
|
+
# project. The default 5180 + strictPort now lives in config/lan.mjs so that
|
|
14
|
+
# lan.config.json can override it; set VITE_LAN_PORT / VITE_DEV_PORT only when
|
|
15
|
+
# you intentionally want an environment override.
|
package/.env.lan
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
# ---------------------------------------------------------------------------
|
|
2
|
+
# LAN debugging mode (`npm run dev:lan`). Same mock data source as .env.mock.
|
|
3
|
+
# Bind address / port come from lan.config.json or VITE_LAN_HOST / VITE_LAN_PORT
|
|
4
|
+
# (see README §2.1); with no override the server stays on 127.0.0.1:5180.
|
|
5
|
+
# ---------------------------------------------------------------------------
|
|
6
|
+
VITE_DATA_MODE=mock
|
|
7
|
+
VITE_MOCK_TRANSPORT=local
|
|
8
|
+
VITE_MOCK_WS_ENABLED=true
|
|
9
|
+
VITE_MOCK_WS_HEARTBEAT_MS=15000
|
|
10
|
+
VITE_MOCK_WS_TICK_MS=10000
|
|
11
|
+
VITE_MOCK_LATENCY_MS=120
|
|
12
|
+
VITE_API_BASE_URL=
|
|
13
|
+
VITE_WS_URL=
|
package/.env.mock
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
# ---------------------------------------------------------------------------
|
|
2
|
+
# Default local development mode: 100% mock data, no backend required.
|
|
3
|
+
# `npm run dev` / `npm run dev:mock` / `npm run build:mock` use this mode.
|
|
4
|
+
# ---------------------------------------------------------------------------
|
|
5
|
+
VITE_DATA_MODE=mock
|
|
6
|
+
VITE_MOCK_TRANSPORT=local
|
|
7
|
+
VITE_MOCK_WS_ENABLED=true
|
|
8
|
+
VITE_MOCK_WS_HEARTBEAT_MS=15000
|
|
9
|
+
# Realtime price refresh cadence ~10s (configurable; was 1s).
|
|
10
|
+
VITE_MOCK_WS_TICK_MS=10000
|
|
11
|
+
VITE_MOCK_LATENCY_MS=120
|
|
12
|
+
VITE_API_BASE_URL=
|
|
13
|
+
VITE_WS_URL=
|
package/.env.prod
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
# ---------------------------------------------------------------------------
|
|
2
|
+
# Prod backend integration mode. Data source interfaces are NOT available yet
|
|
3
|
+
# (G4 gate not released), so values below are placeholders - do not invent
|
|
4
|
+
# API hosts. Fill them when the backend contracts are delivered.
|
|
5
|
+
# ---------------------------------------------------------------------------
|
|
6
|
+
VITE_DATA_MODE=prod
|
|
7
|
+
VITE_MOCK_TRANSPORT=none
|
|
8
|
+
VITE_MOCK_WS_ENABLED=false
|
|
9
|
+
VITE_API_BASE_URL=
|
|
10
|
+
VITE_WS_URL=
|
|
11
|
+
# VITE_API_BASE_URL=https://TBC
|
|
12
|
+
# VITE_WS_URL=wss://TBC
|
package/.env.production
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
# ---------------------------------------------------------------------------
|
|
2
|
+
# Vite's built-in `production` mode resolves to the prod data source.
|
|
3
|
+
# Project scripts use `--mode prod` (.env.prod); keep this file aligned so a
|
|
4
|
+
# bare `vite build` cannot silently fall back to mock.
|
|
5
|
+
# ---------------------------------------------------------------------------
|
|
6
|
+
VITE_DATA_MODE=prod
|
package/.env.test
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
# ---------------------------------------------------------------------------
|
|
2
|
+
# Test mode: deterministic mock fixtures, no timers / no streaming jitter.
|
|
3
|
+
# Vitest and Playwright both run against this mode via `loadEnv('test')`.
|
|
4
|
+
# ---------------------------------------------------------------------------
|
|
5
|
+
VITE_DATA_MODE=mock
|
|
6
|
+
VITE_MOCK_TRANSPORT=local
|
|
7
|
+
VITE_MOCK_WS_ENABLED=false
|
|
8
|
+
VITE_MOCK_WS_HEARTBEAT_MS=0
|
|
9
|
+
VITE_MOCK_WS_TICK_MS=0
|
|
10
|
+
VITE_MOCK_LATENCY_MS=0
|
|
11
|
+
VITE_API_BASE_URL=
|
|
12
|
+
VITE_WS_URL=
|
package/.gitignore
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
node_modules/
|
|
2
|
+
dist/
|
|
3
|
+
coverage/
|
|
4
|
+
dist-check
|
|
5
|
+
dist-check2
|
|
6
|
+
test-results/
|
|
7
|
+
playwright-report/
|
|
8
|
+
playwright/.cache/
|
|
9
|
+
*.tsbuildinfo
|
|
10
|
+
.env.local
|
|
11
|
+
.env.*.local
|
|
12
|
+
lan.config.json
|
|
13
|
+
dev-lan.cmd
|
|
14
|
+
.DS_Store
|
|
15
|
+
*.log
|
|
16
|
+
.workbuddy/
|
|
17
|
+
.tmp-trd
|
|
18
|
+
.tmp-kit-shots
|
|
19
|
+
scripts/
|