MCPcopy Create free account

hub / github.com/BetterBahn/betterbahn / functions

Functions64 in github.com/BetterBahn/betterbahn

↓ 12 callersFunctionformatTime
(dateTime?: Date)
utils/formatUtils.ts:6
↓ 9 callersFunctiongetJourneyLegsWithTransfers
(journey: VendoJourney)
utils/journeyUtils.ts:26
↓ 6 callersFunctiongetStationName
(stop?: VendoOriginOrDestination)
utils/journeyUtils.ts:17
↓ 4 callersFunctionformatPriceDE
(price: number)
utils/priceUtils.ts:1
↓ 4 callersFunctionisLegCoveredByDeutschlandTicket
( leg: VendoLeg, hasDeutschlandTicket: boolean )
utils/deutschlandTicketUtils.ts:136
↓ 4 callersFunctionlegIsFlixTrain
(leg: VendoLeg)
utils/deutschlandTicketUtils.ts:129
↓ 4 callersFunctionuseLocalStorage
(key: string, initialValue: T)
components/SearchForm/useLocalStorage.ts:3
↓ 3 callersFunctionformatDuration
(journey: VendoJourney)
utils/formatUtils.ts:24
↓ 3 callersFunctionuseUrlParams
()
components/discount/useUrlParams.ts:3
↓ 2 callersFunctionaddStationId
(station: Station, type: string, parts: string[])
utils/createUrl.ts:178
↓ 2 callersFunctionfetchAndValidateJson
({ url, method, schema, body, headers, }: { url: string; method?: Method; schema: T; body?: Method ex
utils/fetchAndValidateJson.ts:3
↓ 2 callersFunctionfetchJourney
(params: { from: string; to: string; targetDeparture: Date; })
app/api/analyzeJourney.ts:67
↓ 2 callersFunctiongetChangesCount
(journey: VendoJourney)
utils/formatUtils.ts:37
↓ 2 callersMethodjourneys
( from: string, to: string, options: SearchJourneysOptions )
utils/db-vendo-client-types.d.ts:3
↓ 2 callersFunctionuseUrlParams
()
app/discount/useUrlParams.ts:3
↓ 1 callersFunctioncalculateSplitOptionPricing
({ splitOption, hasDeutschlandTicket, originalJourney, }: { splitOption: SplitAnalysis; hasDeutschlandTic
components/SplitOptions/calculateSplitOptionPricing.ts:10
↓ 1 callersFunctioncalculateTransferTimeInMinutes
(leg: VendoLeg)
utils/journeyUtils.ts:20
↓ 1 callersFunctioncreateBcParameter
* Creates a urlParameter that encodes the available Bahncard * @param {number} travelClass - Travel class (1 or 2) * @param {string | null} bahnCard
utils/createUrl.ts:57
↓ 1 callersFunctioncreateSegmentSearchUrl
( segment: VendoJourney, travelClass: number = 2, hasDeutschlandTicket: boolean, bahnCard: string | null )
utils/createUrl.ts:76
↓ 1 callersFunctioncreateStationId
* Creates a station ID string in DB format * @param {Object} station - Station object with name, id, and coordinates * @returns {string} Encoded sta
utils/createUrl.ts:35
↓ 1 callersFunctionextractSplitPoints
(journey: VendoJourney)
app/api/getJourney/extractSplitPoints.ts:5
↓ 1 callersFunctionformatDate
* Formats a date for DB URL parameters * @returns {string} Formatted date string
utils/createUrl.ts:19
↓ 1 callersFunctionformatPriceWithTwoDecimals
(price?: VendoPrice | number)
utils/formatUtils.ts:45
↓ 1 callersFunctiongetLineInfoFromLeg
(leg: VendoLeg)
utils/journeyUtils.ts:7
↓ 1 callersFunctiongetOptionsToShow
({ splitOptions, hasDeutschlandTicket, originalJourney, }: { splitOptions: SplitAnalysis[]; hasDeutschlan
components/SplitOptions/getOptionsToShow.ts:6
↓ 1 callersFunctiongetTransferStations
(nonWalkingLegs: VendoLeg[])
components/JourneyCard/getTransferStations.ts:3
↓ 1 callersFunctioninitialize
()
components/SearchForm/useLocalStorage.ts:6
↓ 1 callersFunctionisICRouteCoveredByDeutschlandTicket
(leg: VendoLeg)
utils/deutschlandTicketUtils.ts:97
↓ 1 callersFunctionparseHinfahrtReconWithAPI
( vbidResponse: VbidSchema, cookies: string[] )
utils/parseHinfahrtRecon.ts:109
↓ 1 callersFunctionrenderSelectedJourney
()
components/discount/OriginalJourneyCard.tsx:41
↓ 1 callersFunctionrenderTextWithLinks
(text: string)
components/discount/ErrorDisplay.tsx:6
↓ 1 callersFunctionshouldUseStationId
* Validates if a station ID should be used based on the station name * @param {string} stationId - The station ID * @param {string} stationName - Th
utils/createUrl.ts:163
FunctionComparisonView
({ journey, setProgress, setAnalysisError, }: Props)
app/discount/Analysis.tsx:16
FunctionDiscount
()
app/discount/page.tsx:6
FunctionDiscountContent
()
app/discount/DiscountContent.tsx:10
FunctionErrorDisplay
({ error }: ErrorDisplayProps)
components/discount/ErrorDisplay.tsx:28
FunctionHelpSection
()
components/SearchForm/HelpSection.tsx:1
FunctionHero
()
components/Layout/Hero.tsx:4
FunctionHome
()
app/page.tsx:6
FunctionJourney
({ journey, onClick, isSelected }: Props)
components/Journey.tsx:10
FunctionJourneyCard
({ journey, isSelected = false, onClick, }: { journey: VendoJourney; isSelected?: boolean; onClick: () =
components/JourneyCard/JourneyCard.tsx:11
FunctionJourneyDuration
({ journey }: { journey: VendoJourney })
components/JourneyCard/JourneyDuration.tsx:4
FunctionJourneyIcon
()
components/discount/JourneyIcon.tsx:1
FunctionJourneyInfoRow
({ children }: JourneyInfoRowProps)
components/discount/JourneyInfoRow.tsx:7
FunctionLegDetails
({ leg, legIndex, }: { leg: VendoLeg; legIndex: number; })
components/JourneyCard/LegDetails.tsx:6
FunctionLegDuration
({ leg }: { leg: VendoLeg })
components/JourneyCard/LegDuration.tsx:3
FunctionNavbar
()
components/Layout/Navbar.tsx:5
FunctionOriginalJourneyCard
({ selectedJourney }: Props)
components/discount/OriginalJourneyCard.tsx:17
FunctionRootLayout
({ children }: { children: ReactNode })
app/layout.tsx:22
FunctionSearchForm
()
components/SearchForm/SearchForm.tsx:8
FunctionSegment
({ segment, index, segmentsWithoutPricing, hasDeutschlandTicket, bahnCard, travelClass }: { segment: Ve
components/SplitOptions/Segment.tsx:15
FunctionSplitOptions
({ splitOptions, originalJourney, loadingSplits, }: { splitOptions: SplitAnalysis[]; originalJourney: Ven
components/SplitOptions/SplitOptions.tsx:14
FunctionSplitOptionsCardContent
({ splitOptions, selectedJourney, loading, }: Props)
components/discount/SplitOptionsCard.tsx:11
FunctionStatusBox
({ progress: { checked, currentStation, total }, }: { progress: Progress; })
components/discount/StatusBox.tsx:7
FunctionTRPCReactProvider
( props: Readonly<{ children: React.ReactNode; }> )
utils/TRPCProvider.tsx:48
FunctionTrainIdentifier
({ leg }: { leg: VendoLeg })
components/JourneyCard/journey-card-utils.tsx:3
FunctionURLInput
({ setUrl, url, }: { url: string; setUrl: Dispatch<string>; })
components/SearchForm/URLInput.tsx:4
Function_parseHinfahrtRecon
(hinfahrtRecon: string)
utils/parseHinfahrtRecon.ts:6
FunctionerrorFormatter
(opts)
utils/trpc-init.ts:7
FunctionhandleUrlParsingAndNavigation
()
components/SearchForm/SearchForm.tsx:27
Functionhandler
(req: Request)
app/api/[trpc]/route.ts:10
FunctiononData
(data)
app/discount/Analysis.tsx:28
FunctiononError
(opts)
app/api/[trpc]/route.ts:15
FunctionsetValueExternal
(newValue: T)
components/SearchForm/useLocalStorage.ts:25