chore(web): 清理 IwoooS D2 註解語氣
All checks were successful
CD Pipeline / tests (push) Successful in 1m23s
Code Review / ai-code-review (push) Successful in 13s
CD Pipeline / build-and-deploy (push) Successful in 4m18s
CD Pipeline / post-deploy-checks (push) Successful in 1m44s

This commit is contained in:
Your Name
2026-06-05 01:11:44 +08:00
parent 8f8c914a9e
commit 6ccdf199ad
26 changed files with 72 additions and 37 deletions

View File

@@ -3,13 +3,13 @@
/**
* useGlobalPulseMetrics - 全局脈搏真實數據 Hook
* =============================================
* 統帥鐵律: 禁止假數據!所有指標必須來自 188 基地真實血脈
* 專案鐵律: 禁止假數據!所有指標必須來自 production 真實資料源
*
* Features:
* - Fail Fast 錯誤處理
* - 自動輪詢 (30 秒)
* - 誠實渲染 (無數據顯示 "--")
* - 統帥鐵律: 禁止 Hardcode API URL
* - 專案鐵律: 禁止 Hardcode API URL
*/
import { useState, useEffect, useCallback, useRef } from 'react'
@@ -59,7 +59,7 @@ interface UseGlobalPulseMetricsResult {
}
// =============================================================================
// API Helper (統帥鐵律: 禁止 Hardcode)
// API Helper (專案鐵律: 禁止 Hardcode)
// =============================================================================
const getApiBaseUrl = (): string => {

View File

@@ -9,7 +9,7 @@
* - 從 /api/v1/approvals/pending 獲取待簽核提案
* - 支援輪詢更新 (Smart Polling)
*
* 統帥鐵律: 禁止假數據!所有資料必須來自真實 API
* 專案鐵律: 禁止假數據!所有資料必須來自真實 API
*/
import { useState, useEffect, useCallback, useRef } from 'react'

View File

@@ -53,7 +53,7 @@ const getApiBaseUrl = (): string => {
// Server-side rendering 時回傳空字串
if (typeof window === 'undefined') return ''
// 統帥鐵律: 禁止任何 Fallback IP
// 專案鐵律: 禁止任何 Fallback IP
const url = process.env.NEXT_PUBLIC_API_URL
if (!url) {
console.error('[AWOOOI ERROR] Missing NEXT_PUBLIC_API_URL. SSE will not connect.')