Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
74 changed files
with
2,046 additions
and
435 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
declare module 'db-stations/data.json' { | ||
export type OpenDataStation = { | ||
type: 'station'; | ||
id: string; | ||
ds100: string; | ||
nr: number; | ||
name: string; | ||
weight: number; | ||
location: { | ||
type: 'location'; | ||
latitude: number; | ||
longitude: number; | ||
}; | ||
operator: { | ||
type: 'operator'; | ||
id: string; | ||
name: string; | ||
}; | ||
address: { | ||
city: string; | ||
zipcode: string; | ||
street: string; | ||
}; | ||
}; | ||
|
||
declare const stations: OpenDataStation[]; | ||
export default stations; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
type $Values<O extends object> = O[keyof O]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
namespace NodeJS { | ||
interface Global { | ||
PROD: boolean; | ||
SERVER: boolean; | ||
} | ||
} | ||
|
||
type Features = { | ||
'google-analytics': boolean; | ||
routing: boolean; | ||
}; | ||
|
||
type StationSearchType = | ||
| 'dbNav' | ||
| 'openData' | ||
| 'openDataOffline' | ||
| 'openDB' | ||
| 'hafas' | ||
| 'favOpenDB' | ||
| 'stationsData' | ||
| 'favendo' | ||
| ''; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
declare module 'react-router' { | ||
interface StaticRouterContext { | ||
url?: string; | ||
status?: number; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
import Cookies from 'universal-cookie'; | ||
|
||
declare module 'koa' { | ||
interface Request { | ||
universalCookies: Cookies; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
if (process.env.NODE_ENV !== 'production') { | ||
const config = require('./.babelrc.server'); | ||
|
||
require('@babel/register')({ | ||
extensions: ['.js', '.jsx', '.ts', '.tsx'], | ||
...config, | ||
}); | ||
} | ||
|
||
require('./src/server/index.ts'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.