From 68baf8467392fe6107ed311109c344068cee4ee6 Mon Sep 17 00:00:00 2001 From: jlucaspains Date: Fri, 18 Aug 2023 17:02:34 -0600 Subject: [PATCH] Fixed translations and warnings --- public/locales/en/translation.json | 2 +- public/locales/pt/translation.json | 2 +- src/helpers/multiplierHelpers.ts | 4 ++-- src/pages/recipe/[id]/index.vue | 1 - 4 files changed, 4 insertions(+), 5 deletions(-) diff --git a/public/locales/en/translation.json b/public/locales/en/translation.json index ee95695c..365de21b 100644 --- a/public/locales/en/translation.json +++ b/public/locales/en/translation.json @@ -21,7 +21,7 @@ "addManually": "Add manually", "importFromWebsite": "Import from website", "importFromBackup": "Import from backup file", - "importFromOnlineShare": "Import from online share (preview)", + "importFromOnlineShare": "Import from code (preview)", "importFromScan": "Import from image", "sortByTitle": "Sort by Title", "sortByRating": "Sort by Rating", diff --git a/public/locales/pt/translation.json b/public/locales/pt/translation.json index 52f68487..5e6ada6d 100644 --- a/public/locales/pt/translation.json +++ b/public/locales/pt/translation.json @@ -22,7 +22,7 @@ "importFromWebsite": "Importar de website", "importFromBackup": "Importar de backup", "importFromScan": "Importar de imagem", - "importFromOnlineShare": "Importar de compartilhamento (preview)", + "importFromOnlineShare": "Importar de código (preview)", "sortByTitle": "Classificar por título", "sortByRating": "Classificar por nota", "sortByRecipeDate": "Classificar por data", diff --git a/src/helpers/multiplierHelpers.ts b/src/helpers/multiplierHelpers.ts index 48b79922..a087e4de 100644 --- a/src/helpers/multiplierHelpers.ts +++ b/src/helpers/multiplierHelpers.ts @@ -127,7 +127,7 @@ export function prepareStepDisplay(input: string, currentTime: Date, locale: str } function round(value: number, decimalPlaces = 0) { - var p = Math.pow(10, decimalPlaces); - var n = (value * p) * (1 + Number.EPSILON); + const p = Math.pow(10, decimalPlaces); + const n = (value * p) * (1 + Number.EPSILON); return Math.round(n) / p; } \ No newline at end of file diff --git a/src/pages/recipe/[id]/index.vue b/src/pages/recipe/[id]/index.vue index 73688a4f..883422ad 100644 --- a/src/pages/recipe/[id]/index.vue +++ b/src/pages/recipe/[id]/index.vue @@ -725,7 +725,6 @@ function showIngredientDetails(item: IngredientDisplay) { }, } ]"> -
{{ shareCode }}