Skip to content

Commit

Permalink
refactor(config-types): Add transit operators
Browse files Browse the repository at this point in the history
  • Loading branch information
binh-dam-ibigroup committed Sep 28, 2023
1 parent f6d2fbb commit 1c9f6e3
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions lib/util/config-types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import {
ModeButtonDefinition,
ModeSetting,
ModeSettingValues,
TransitOperator,
VehicleRentalMapOverlaySymbol
} from '@opentripplanner/types'
import { GeocoderConfig as GeocoderConfigOtpUI } from '@opentripplanner/geocoder'
Expand Down Expand Up @@ -271,6 +272,16 @@ export interface ModesConfig {
transitModes: TransitModeConfig[]
}

export interface ModeColorConfig {
color: string
textColor: string
}

export interface TransitOperatorConfig extends TransitOperator {
colorMode: 'gtfs' | 'gtfs-softened' | 'disabled'
modeColors: Record<string, ModeColorConfig>
}

/** The main application configuration object */
export interface AppConfig {
api: ApiConfig
Expand Down Expand Up @@ -305,6 +316,7 @@ export interface AppConfig {
sessionTimeoutSeconds?: number
/** App title shown in the browser title bar. */
title?: string
transitOperators?: TransitOperatorConfig[]

// TODO: add other config items.
}

0 comments on commit 1c9f6e3

Please sign in to comment.