Skip to content

Commit

Permalink
chore: add aviation cocktail
Browse files Browse the repository at this point in the history
  • Loading branch information
anton-gustafsson committed Dec 8, 2023
1 parent 31c359e commit c9fc383
Show file tree
Hide file tree
Showing 7 changed files with 23 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/components/dialogs/cocktail-dialog/cocktail-dialog.ts
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ export class CocktailDialog {
const bgColorClass = /*tw*/ 'bg-base-200';

this.extendedIngredientGroup.forEach(element => {
const el = document.getElementById('ingredient-group-' + element.ingredient.id);
const el = document.getElementById('ingredient-group-' + element.ingredientId);
if (el != null) {
el.addEventListener('long-press', () => {
this.longClick(element);
Expand Down
14 changes: 14 additions & 0 deletions src/data/cocktail-data.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2605,5 +2605,19 @@ const cocktails: StaticCocktail[] = [
{ amount: '1', ingredientId: '27', unit: Unit.DASH }
],
tags: [Tag.Christmas]
},
{
id: '189',
imageSrc: 'images/aviation.jpg',
isImagePortrait: false,
translation: 'aviation',
category: DrinkCategory.Cocktail,
ingredientGroups: [
{ amount: '45', ingredientId: '6', unit: Unit.ML },
{ amount: '15', ingredientId: '57', unit: Unit.ML },
{ amount: '15', ingredientId: '10', unit: Unit.ML },
{ amount: '1', ingredientId: '161', unit: Unit.TSP }
],
tags: [Tag.IBA, Tag.TheUnforgettables]
}
];
3 changes: 2 additions & 1 deletion src/data/ingredient-data.ts
Original file line number Diff line number Diff line change
Expand Up @@ -229,5 +229,6 @@ const currentIngredients: StaticIngredient[] = [
{ id: '157', translation: 'passion-fruit-syrup', spiritType: SpiritType.None },
{ id: '158', translation: 'sherry', spiritType: SpiritType.None, abv: 17 },
{ id: '159', translation: 'amaro-montenegro', spiritType: SpiritType.None, abv: 23 },
{ id: '160', translation: 'blood-orange', spiritType: SpiritType.None }
{ id: '160', translation: 'blood-orange', spiritType: SpiritType.None },
{ id: '161', translation: 'creme-de-violette', spiritType: SpiritType.None }
];
3 changes: 2 additions & 1 deletion src/locales/en/cocktails.json
Original file line number Diff line number Diff line change
Expand Up @@ -186,5 +186,6 @@
"hot-toddy": "Hot Toddy",
"winter-rita": "Winter Rita",
"the-galah": "The Galah",
"snowday": "Snowday"
"snowday": "Snowday",
"aviation": "Aviation"
}
3 changes: 2 additions & 1 deletion src/locales/en/ingredients.json
Original file line number Diff line number Diff line change
Expand Up @@ -157,5 +157,6 @@
"passion-fruit-syrup": "Passion Fruit Syrup",
"sherry": "Sherry",
"amaro-montenegro": "Amaro Montenegro",
"blood-orange": "Blood Orange"
"blood-orange": "Blood Orange",
"creme-de-violette": "Crème de Violette"
}
3 changes: 2 additions & 1 deletion src/locales/en/instructions.json
Original file line number Diff line number Diff line change
Expand Up @@ -186,5 +186,6 @@
"hot-toddy": "STEP 1 Whisk the whisky and honey together and split between 2 heatproof glasses. Add half of the cinnamon stick to each, then top up with boiling water.\n\nSTEP 2 Add a splash of lemon juice to each, then taste and add more to your preference. Finish each with a slice of lemon, studded with a clove, and serve immediately.",
"winter-rita": "Salt rim.\nCombine all ingredients, shake with ice, and strain over fresh ice.",
"the-galah": "Mix together the alcoholic portions and top with Pineapple and Lime juice.",
"snowday": "Stir all ingredients with ice.\nStrain into a chilled rocks glass over fresh ice.\nExpress orange peel over drink and garnish."
"snowday": "Stir all ingredients with ice.\nStrain into a chilled rocks glass over fresh ice.\nExpress orange peel over drink and garnish.",
"aviation": "Add all ingredients into a cocktail shaker. Shake with cracked ice and strain into a chilled cocktail glass."
}
Binary file added static/images/aviation.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit c9fc383

Please sign in to comment.