Skip to content

Commit

Permalink
feat: South Island Line
Browse files Browse the repository at this point in the history
  • Loading branch information
marklai1998 committed Oct 7, 2022
1 parent f877941 commit 67e71e6
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/constants/line.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ export enum Line {
KTL = 'KTL',
DRL = 'DRL',
ISL = 'ISL',
SIL = 'SIL',
}

export const lineConfig = {
Expand Down Expand Up @@ -56,4 +57,9 @@ export const lineConfig = {
nameZh: '港島綫',
color: '#2C5282',
},
[Line.SIL]: {
nameEn: 'South Island Line',
nameZh: '南港島綫',
color: '#AFB42B',
},
}
15 changes: 15 additions & 0 deletions src/constants/stop.ts
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,10 @@ export enum Stop {
SYP = 'SYP', // Sai Ying Pun
HKU = 'HKU', // HKU
KET = 'KET', // Kennedy Town
OCP = 'OCP', // Ocean Park
WCH = 'WCH', // Wong Chuk Hang
LET = 'LET', // Lei Tung
SOH = 'SOH', // South Horizons
}

export const stops = {
Expand Down Expand Up @@ -193,6 +197,10 @@ export const stops = {
[Stop.SYP]: { nameZh: '西營盤', nameEn: 'Sai Ying Pun' },
[Stop.HKU]: { nameZh: '香港大學', nameEn: 'HKU' },
[Stop.KET]: { nameZh: '堅尼地城', nameEn: 'Kennedy Town' },
[Stop.OCP]: { nameZh: '海洋公園', nameEn: 'Ocean Park' },
[Stop.WCH]: { nameZh: '黃竹坑', nameEn: 'Wong Chuk Hang' },
[Stop.LET]: { nameZh: '利東', nameEn: 'Lei Tung' },
[Stop.SOH]: { nameZh: '海怡半島', nameEn: 'South Horizons' },
}

export const linesStops = {
Expand Down Expand Up @@ -330,4 +338,11 @@ export const linesStops = {
[Stop.HKU]: stops[Stop.HKU],
[Stop.KET]: stops[Stop.KET],
},
[Line.SIL]: {
[Stop.ADM]: stops[Stop.ADM],
[Stop.OCP]: stops[Stop.OCP],
[Stop.WCH]: stops[Stop.WCH],
[Stop.LET]: stops[Stop.LET],
[Stop.SOH]: stops[Stop.SOH],
},
}

0 comments on commit 67e71e6

Please sign in to comment.