MCPcopy Create free account

hub / github.com/NekroAI/one-tracker / functions

Functions124 in github.com/NekroAI/one-tracker

↓ 6 callersFunctiongenerateProviderColor
(url: string)
common/utils/colorGenerator.ts:64
↓ 6 callersMethodparse
* 解析原始数据为标准格式 * @param rawData API返回的原始数据 * @param rateBaseline 供应商基础价格基准,默认0.002
common/providers/interfaces.ts:28
↓ 4 callersFunctiongetDisplayGroupName
(providerName: string, groupName: string)
frontend/src/components/pricing/ModelComparisonCard.tsx:114
↓ 4 callersFunctionzodOpenAPIResponse
(res: any)
src/validators/config.schema.ts:8
↓ 3 callersFunctionhue2rgb
(p: number, q: number, t: number)
common/utils/colorGenerator.ts:27
↓ 3 callersMethodregisterParser
(type: string, parserClass: new (name: string, url: string, ratio: number) => BaseParser)
common/providers/factory.ts:20
↓ 3 callersFunctionuseAuth
()
frontend/src/hooks/useAuth.ts:93
↓ 2 callersMethodfetchMultipleSources
* 批量获取多个源站的数据
common/services/pricingDataService.ts:43
↓ 2 callersFunctiongenerateAnonymousName
* 基于原始名称生成一致的匿名名称 * @param originalName 原始名称 * @param nameList 匿名名称列表 * @returns 匿名名称
common/utils/anonymization.ts:64
↓ 2 callersFunctiongenerateHtmlTemplate
(options: { path: string; content: string; cssFiles?: string[]; jsFiles?: string[]; })
src/utils/htmlTemplate.ts:13
↓ 2 callersFunctiongeneratePageUrl
(path: string)
src/config/seo.ts:122
↓ 2 callersFunctiongenerateUserApiKey
()
src/utils/encryption.ts:7
↓ 2 callersFunctiongetAnonymousGroupName
(originalName: string)
common/utils/anonymization.ts:87
↓ 2 callersFunctiongetAnonymousProviderName
(originalName: string)
common/utils/anonymization.ts:78
↓ 2 callersFunctiongetDisplayProviderName
(providerName: string)
frontend/src/components/pricing/ModelComparisonCard.tsx:106
↓ 2 callersMethodgetSupportedTypes
* 获取支持的类型列表
common/providers/interfaces.ts:71
↓ 2 callersFunctionhandleFilterInputBlur
(providerId: string)
frontend/src/components/pricing/ProviderConfigPanel.tsx:222
↓ 2 callersMethodisSupported
* 检查是否支持指定类型
common/providers/interfaces.ts:76
↓ 1 callersMethodcalculateCrossSitePrices
* 批量计算跨站价格对比 * @param data 标准化价格记录数组 * @param enabledGroups 启用的分组状态 * @returns 计算后的价格数组
common/services/pricingCalculator.ts:159
↓ 1 callersMethodcalculateDynamicPrice
* 动态计算指定分组的模型价格 * @param model 标准化模型 * @param source 数据源信息 * @param groupRate 分组倍率 * @returns 计算后的价格信息(不包含分组状态)
common/services/pricingCalculator.ts:128
↓ 1 callersMethodcalculateModelPrice
* 计算单个模型的价格 * @param model 模型信息 * @param group 分组信息 * @param source 源站信息 * @returns 计算后的价格信息
common/services/pricingCalculator.ts:67
↓ 1 callersMethodcanParse
(data: unknown)
common/providers/oneapi/parser.ts:27
↓ 1 callersMethodcanParse
(data: unknown)
common/providers/onehub/parser.ts:41
↓ 1 callersMethodcanParse
(data: unknown)
common/providers/newapi/parser.ts:26
↓ 1 callersMethodcreateParser
* 创建解析器实例
common/providers/interfaces.ts:66
↓ 1 callersMethodfetchAndParse
* 从源站获取数据并转换为标准格式
common/services/pricingDataService.ts:32
↓ 1 callersFunctiongenerateDevelopmentHtml
()
scripts/generateHtml.ts:12
↓ 1 callersFunctiongeneratePageDescription
(path: string)
src/config/seo.ts:105
↓ 1 callersFunctiongeneratePageKeywords
(path: string)
src/config/seo.ts:113
↓ 1 callersFunctiongeneratePageTitle
(path: string)
src/config/seo.ts:97
↓ 1 callersFunctiongenerateRobotsTxt
()
src/utils/htmlTemplate.ts:103
↓ 1 callersFunctiongenerateSitemapXml
()
src/utils/htmlTemplate.ts:132
↓ 1 callersMethodgetApiPath
()
common/providers/interfaces.ts:55
↓ 1 callersMethodgetApiPath
()
common/providers/oneapi/parser.ts:18
↓ 1 callersMethodgetApiPath
()
common/providers/onehub/parser.ts:19
↓ 1 callersMethodgetApiPath
()
common/providers/newapi/parser.ts:17
↓ 1 callersMethodgetExtraDataApiPath
()
common/providers/onehub/parser.ts:23
↓ 1 callersFunctiongetFilterInput
(providerId: string)
frontend/src/components/pricing/ProviderConfigPanel.tsx:206
↓ 1 callersMethodgetFullUrl
()
common/providers/oneapi/parser.ts:22
↓ 1 callersMethodgetFullUrl
()
common/providers/onehub/parser.ts:31
↓ 1 callersMethodgetFullUrl
()
common/providers/newapi/parser.ts:21
↓ 1 callersMethodgetGroupMapApiPath
()
common/providers/onehub/parser.ts:27
↓ 1 callersFunctiongetModelInfo
(modelName: string)
common/utils/modelVendor.ts:50
↓ 1 callersFunctiongetProviderColor
(providerName: string)
frontend/src/components/pricing/ModelComparisonCard.tsx:95
↓ 1 callersMethodgetSupportedTypes
* 获取支持的源站类型
common/services/pricingDataService.ts:84
↓ 1 callersFunctionhandleAuthCallback
()
frontend/src/pages/AuthCallbackPage.tsx:19
↓ 1 callersFunctionhandleClose
()
frontend/src/components/pricing/ProviderConfigPanel.tsx:76
↓ 1 callersFunctionhandleFilterInputChange
(providerId: string, value: string)
frontend/src/components/pricing/ProviderConfigPanel.tsx:217
↓ 1 callersFunctionhandleMenuClose
()
frontend/src/App.tsx:39
↓ 1 callersFunctionhashString
* 简单哈希函数,将字符串转换为数字
common/utils/colorGenerator.ts:9
↓ 1 callersFunctionhslToRgb
* HSL转RGB
common/utils/colorGenerator.ts:22
↓ 1 callersFunctioninferModelVendor
(modelName: string)
common/utils/modelVendor.ts:11
↓ 1 callersMethodinitializeGroupStates
* 初始化分组状态 * @param data 标准化价格记录数组 * @returns 分组状态数组
common/services/pricingCalculator.ts:242
↓ 1 callersMethodisSupported
* 检查是否支持指定类型
common/services/pricingDataService.ts:91
↓ 1 callersFunctionlogout
()
frontend/src/hooks/useAuth.ts:178
↓ 1 callersFunctionparseFilters
(input: string)
frontend/src/components/pricing/ProviderConfigPanel.tsx:197
↓ 1 callersFunctionrender
(path: string)
frontend/src/entry-server.tsx:14
↓ 1 callersFunctionrenderGroupInfo
(provider: ModelComparison["providers"][0])
frontend/src/components/pricing/ModelComparisonCard.tsx:342
↓ 1 callersFunctionrenderPriceInfo
(provider: ModelComparison["providers"][0], modelType: "tokens" | "times")
frontend/src/components/pricing/ModelComparisonCard.tsx:147
↓ 1 callersFunctiontestParsers
()
common/test/testArchitecture.ts:6
↓ 1 callersFunctiontoggleAdvanced
(providerId: string)
frontend/src/components/pricing/ProviderConfigPanel.tsx:189
↓ 1 callersFunctiontoggleProviderExpansion
(providerName: string)
frontend/src/components/pricing/GroupManager.tsx:68
↓ 1 callersFunctiontoggleProviderExpansion
(providerName: string)
frontend/src/components/pricing/ProviderOverview.tsx:106
↓ 1 callersFunctionuseAppTheme
()
frontend/src/context/ThemeContextProvider.tsx:16
↓ 1 callersFunctionuseGroupSelection
()
frontend/src/hooks/useGroupSelection.ts:15
↓ 1 callersFunctionuseModelFiltering
( modelComparisons: ModelComparison[], viewOptions: ViewOptions, favoriteModels: FavoriteModels, hidde
frontend/src/hooks/useModelFiltering.ts:6
↓ 1 callersFunctionuseModelPreferences
()
frontend/src/hooks/useModelPreferences.ts:13
↓ 1 callersFunctionuseProviderSelection
()
frontend/src/hooks/useProviderSelection.ts:13
↓ 1 callersFunctionvalidateConfig
(config: PricingSourceConfig)
frontend/src/pages/PricingComparePage.tsx:102
↓ 1 callersFunctionzodOpenAPIRequest
(req: any)
src/validators/config.schema.ts:7
FunctionApp
()
frontend/src/App.tsx:29
FunctionAppRoutes
()
frontend/src/routes.tsx:19
FunctionAppThemeProvider
({ children }: { children: ReactNode })
frontend/src/context/ThemeContextProvider.tsx:20
FunctionAuthCallbackPage
()
frontend/src/pages/AuthCallbackPage.tsx:11
FunctionCloudflareLogo
(props: SVGProps<SVGSVGElement>)
frontend/src/assets/logos/index.tsx:57
FunctionColorPicker
({ value, onChange })
frontend/src/components/pricing/ProviderConfigPanel.tsx:69
FunctionDashboardPage
()
frontend/src/pages/DashboardPage.tsx:35
FunctionDrizzleLogo
(props: SVGProps<SVGSVGElement>)
frontend/src/assets/logos/index.tsx:24
FunctionFooter
()
frontend/src/components/Footer.tsx:3
FunctionHomePage
()
frontend/src/pages/HomePage.tsx:25
FunctionHonoLogo
(props: SVGProps<SVGSVGElement>)
frontend/src/assets/logos/index.tsx:114
FunctionMuiLogo
(props: SVGProps<SVGSVGElement>)
frontend/src/assets/logos/index.tsx:82
FunctionNekroEdgeLogo
(props: SVGProps<SVGSVGElement>)
frontend/src/assets/logos/index.tsx:3
FunctionPricingComparePage
()
frontend/src/pages/PricingComparePage.tsx:39
FunctionProviderOverview
({ providers, modelComparisons, enabledGroups, viewOptions, isAnonymousMode, onToggleGroup, onUp
frontend/src/components/pricing/ProviderOverview.tsx:92
FunctionReactLogo
(props: SVGProps<SVGSVGElement>)
frontend/src/assets/logos/index.tsx:71
FunctionToggleThemeButton
()
frontend/src/components/ToggleThemeButton.tsx:6
FunctionTypeScriptLogo
(props: SVGProps<SVGSVGElement>)
frontend/src/assets/logos/index.tsx:104
FunctionUnifiedFilterPanel
({ searchQuery, onSearchChange, filteredCount, totalCount, onClearSearch, onBatchFavorite, onBat
frontend/src/components/pricing/UnifiedFilterPanel.tsx:72
FunctionViteLogo
(props: SVGProps<SVGSVGElement>)
frontend/src/assets/logos/index.tsx:91
FunctionZodLogo
(props: SVGProps<SVGSVGElement>)
frontend/src/assets/logos/index.tsx:130
MethodcanParse
* 验证数据是否可被此解析器处理
common/providers/interfaces.ts:21
MethodcanParse
(data: unknown)
common/providers/interfaces.ts:56
Methodconstructor
()
common/providers/factory.ts:13
Methodconstructor
( private sourceName: string, private baseUrl: string, private rechargeRatio: number = 1, )
common/providers/oneapi/parser.ts:12
Methodconstructor
( private sourceName: string, private baseUrl: string, private rechargeRatio: number = 1, )
common/providers/onehub/parser.ts:13
Methodconstructor
( private sourceName: string, private baseUrl: string, private rechargeRatio: number = 1, )
common/providers/newapi/parser.ts:11
Methodconstructor
(apiBaseUrl: string = "/api/pricing")
common/services/pricingDataService.ts:24
MethodcreateParser
(type: string, sourceName: string, sourceUrl: string, rechargeRatio: number = 1)
common/providers/factory.ts:24
FunctiondecryptApiKey
(encryptedApiKey: string, encryptionKey: string)
src/utils/encryption.ts:44
next →1–100 of 124, ranked by callers