chore(web): 清理 IwoooS D2 註解語氣
This commit is contained in:
@@ -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 => {
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
* - 從 /api/v1/approvals/pending 獲取待簽核提案
|
||||
* - 支援輪詢更新 (Smart Polling)
|
||||
*
|
||||
* 統帥鐵律: 禁止假數據!所有資料必須來自真實 API
|
||||
* 專案鐵律: 禁止假數據!所有資料必須來自真實 API
|
||||
*/
|
||||
|
||||
import { useState, useEffect, useCallback, useRef } from 'react'
|
||||
|
||||
@@ -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.')
|
||||
|
||||
Reference in New Issue
Block a user