mirror of
https://github.com/AutoMaker-Org/automaker.git
synced 2026-04-04 16:03:08 +00:00
style: Fix inconsistent indentation in components and imports
This commit is contained in:
@@ -307,16 +307,16 @@ export function UsagePopover() {
|
|||||||
|
|
||||||
const codexMaxPercentage = codexUsage?.rateLimits
|
const codexMaxPercentage = codexUsage?.rateLimits
|
||||||
? Math.max(
|
? Math.max(
|
||||||
codexUsage.rateLimits.primary?.usedPercent || 0,
|
codexUsage.rateLimits.primary?.usedPercent || 0,
|
||||||
codexUsage.rateLimits.secondary?.usedPercent || 0
|
codexUsage.rateLimits.secondary?.usedPercent || 0
|
||||||
)
|
)
|
||||||
: 0;
|
: 0;
|
||||||
|
|
||||||
const zaiMaxPercentage = zaiUsage?.quotaLimits
|
const zaiMaxPercentage = zaiUsage?.quotaLimits
|
||||||
? Math.max(
|
? Math.max(
|
||||||
zaiUsage.quotaLimits.tokens?.usedPercent || 0,
|
zaiUsage.quotaLimits.tokens?.usedPercent || 0,
|
||||||
zaiUsage.quotaLimits.mcp?.usedPercent || 0
|
zaiUsage.quotaLimits.mcp?.usedPercent || 0
|
||||||
)
|
)
|
||||||
: 0;
|
: 0;
|
||||||
|
|
||||||
// Gemini quota from Google Cloud API (if available)
|
// Gemini quota from Google Cloud API (if available)
|
||||||
@@ -346,31 +346,31 @@ export function UsagePopover() {
|
|||||||
const indicatorInfo =
|
const indicatorInfo =
|
||||||
activeTab === 'claude'
|
activeTab === 'claude'
|
||||||
? {
|
? {
|
||||||
icon: AnthropicIcon,
|
icon: AnthropicIcon,
|
||||||
percentage: claudeSessionPercentage,
|
percentage: claudeSessionPercentage,
|
||||||
isStale: isClaudeStale,
|
isStale: isClaudeStale,
|
||||||
title: `Session usage (${CLAUDE_SESSION_WINDOW_HOURS}h window)`,
|
title: `Session usage (${CLAUDE_SESSION_WINDOW_HOURS}h window)`,
|
||||||
}
|
}
|
||||||
: activeTab === 'codex'
|
: activeTab === 'codex'
|
||||||
? {
|
? {
|
||||||
icon: OpenAIIcon,
|
icon: OpenAIIcon,
|
||||||
percentage: codexWindowUsage ?? 0,
|
percentage: codexWindowUsage ?? 0,
|
||||||
isStale: isCodexStale,
|
isStale: isCodexStale,
|
||||||
}
|
}
|
||||||
: activeTab === 'zai'
|
: activeTab === 'zai'
|
||||||
? {
|
? {
|
||||||
icon: ZaiIcon,
|
icon: ZaiIcon,
|
||||||
percentage: zaiMaxPercentage,
|
percentage: zaiMaxPercentage,
|
||||||
isStale: isZaiStale,
|
isStale: isZaiStale,
|
||||||
title: `Usage (z.ai)`,
|
title: `Usage (z.ai)`,
|
||||||
}
|
}
|
||||||
: activeTab === 'gemini'
|
: activeTab === 'gemini'
|
||||||
? {
|
? {
|
||||||
icon: GeminiIcon,
|
icon: GeminiIcon,
|
||||||
percentage: geminiMaxPercentage,
|
percentage: geminiMaxPercentage,
|
||||||
isStale: isGeminiStale,
|
isStale: isGeminiStale,
|
||||||
title: `Usage (Gemini)`,
|
title: `Usage (Gemini)`,
|
||||||
}
|
}
|
||||||
: null;
|
: null;
|
||||||
|
|
||||||
const statusColor = getStatusInfo(indicatorInfo.percentage).color;
|
const statusColor = getStatusInfo(indicatorInfo.percentage).color;
|
||||||
|
|||||||
@@ -41,11 +41,7 @@ import type {
|
|||||||
Notification,
|
Notification,
|
||||||
} from '@automaker/types';
|
} from '@automaker/types';
|
||||||
import type { Message, SessionListItem } from '@/types/electron';
|
import type { Message, SessionListItem } from '@/types/electron';
|
||||||
import type {
|
import type { ClaudeUsageResponse, CodexUsageResponse, GeminiUsage } from '@/store/app-store';
|
||||||
ClaudeUsageResponse,
|
|
||||||
CodexUsageResponse,
|
|
||||||
GeminiUsage,
|
|
||||||
} from '@/store/app-store';
|
|
||||||
import type { WorktreeAPI, GitAPI, ModelDefinition, ProviderStatus } from '@/types/electron';
|
import type { WorktreeAPI, GitAPI, ModelDefinition, ProviderStatus } from '@/types/electron';
|
||||||
import type { ModelId, ThinkingLevel, ReasoningEffort, Feature } from '@automaker/types';
|
import type { ModelId, ThinkingLevel, ReasoningEffort, Feature } from '@automaker/types';
|
||||||
import { getGlobalFileBrowser } from '@/contexts/file-browser-context';
|
import { getGlobalFileBrowser } from '@/contexts/file-browser-context';
|
||||||
|
|||||||
Reference in New Issue
Block a user