-
Notifications
You must be signed in to change notification settings - Fork 38
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* added translations * added german translation for towerslope * update german translations * replaced questions marks with numbers and added custom icon option * reformat code * added batch numbers to prevent duplicate icons * removed icon option in config; improved visabillity of batchNumbers * moved icons to seperate files; optimization * bug fix * separate empty key from default profile name * a little less code * improved key selection while creating customProfiles Record * separate empty key from default profile name (#1) * separate empty key from default profile name * a little less code --------- Co-authored-by: Peter <graphhopper@gmx.de>
- Loading branch information
1 parent
6fdf096
commit 65a7497
Showing
3 changed files
with
100 additions
and
41 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
import BicycleIcon from './bike.svg' | ||
import CarIcon from './car.svg' | ||
import FootIcon from './foot.svg' | ||
import HikeIcon from './hike.svg' | ||
import MotorcycleIcon from './motorcycle.svg' | ||
import MtbBicycleIcon from './mtb-bicycle.svg' | ||
import RacingbikeIcon from './racingbike.svg' | ||
import ScooterIcon from './scooter.svg' | ||
import SmallTruckIcon from './small_truck.svg' | ||
import TruckIcon from './truck.svg' | ||
import WheelchairIcon from './wheelchair.svg' | ||
import QuestionMarkIcon from './question_mark.svg' | ||
|
||
// ALL AVAILABLE ICONS | ||
// every svg gets mapped to a key, so icons can be easily added | ||
export const icons: Record<string, any> = { | ||
car: CarIcon, | ||
small_truck: SmallTruckIcon, | ||
truck: TruckIcon, | ||
scooter: ScooterIcon, | ||
foot: FootIcon, | ||
hike: HikeIcon, | ||
bike: BicycleIcon, | ||
mtb: MtbBicycleIcon, // Mountainbike | ||
racingbike: RacingbikeIcon, | ||
motorcycle: MotorcycleIcon, | ||
wheelchair: WheelchairIcon, | ||
question_mark: QuestionMarkIcon, | ||
} |