orderiom-api-package 0.4.29 → 0.4.31
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
package/src/common.js
CHANGED
|
@@ -2,11 +2,13 @@ import axios from "axios";
|
|
|
2
2
|
|
|
3
3
|
export const weekdays = ["sunday", "monday", "tuesday", "wednesday", "thursday", "friday", "saturday"];
|
|
4
4
|
|
|
5
|
-
export const restaurantIdEnv = () =>
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
5
|
+
export const restaurantIdEnv = () => {
|
|
6
|
+
return process.env.VUE_APP_RESTAURANT_ID
|
|
7
|
+
? parseInt(process.env.VUE_APP_RESTAURANT_ID)
|
|
8
|
+
: window.dynamicData && window.dynamicData.VUE_APP_RESTAURANT_ID
|
|
9
|
+
? parseInt(window.dynamicData.VUE_APP_RESTAURANT_ID)
|
|
10
|
+
: null;
|
|
11
|
+
}
|
|
10
12
|
|
|
11
13
|
export function commonErrorCallback(unknownErrorMessage = 'Something went wrong'){
|
|
12
14
|
return error => {
|
package/src/messages/de-api.json
CHANGED
|
@@ -132,7 +132,7 @@
|
|
|
132
132
|
"Choose Your Address": "Wählen Sie Ihre Adresse",
|
|
133
133
|
"Password doesn't match": "Passwort nicht übereinstimmen",
|
|
134
134
|
"Please fill out this field": "Bitte füllen Sie dieses Feld aus",
|
|
135
|
-
"resources_have_been_reached": "Leider
|
|
135
|
+
"resources_have_been_reached": "Leider haben wir die maximale Anzahl an Bestellungen bis {time} Uhr erreicht.",
|
|
136
136
|
"request_submitted": "Ihre Anfrage wurde übermittelt!",
|
|
137
137
|
"restaurant_past_time": "Das Restaurant ist nicht zur gewünschten Zeit geöffnet.",
|
|
138
138
|
"we have updates! please refresh.": "wir haben Updates! bitte aktualisieren.",
|
package/src/messages/en-api.json
CHANGED
|
@@ -132,7 +132,7 @@
|
|
|
132
132
|
"Choose Your Address": "Choose Your Address",
|
|
133
133
|
"Password doesn't match": "Password doesn't match",
|
|
134
134
|
"Please fill out this field": "Please fill out this field",
|
|
135
|
-
"resources_have_been_reached": "Unfortunately, we have reached the maximum number of orders
|
|
135
|
+
"resources_have_been_reached": "Unfortunately, we have reached the maximum number of orders until {time}.",
|
|
136
136
|
"request_submitted": "your request has been submitted!",
|
|
137
137
|
"restaurant_past_time": "Restaurant is not open at your desired Time.",
|
|
138
138
|
"we have updates! please refresh.": "we have updates! please refresh.",
|
package/src/messages/fr-api.json
CHANGED
|
@@ -132,7 +132,7 @@
|
|
|
132
132
|
"Choose Your Address": "Choisissez votre adresse",
|
|
133
133
|
"Password doesn't match": "Le mot de passe ne correspond pas",
|
|
134
134
|
"Please fill out this field": "Veuillez remplir ce champ",
|
|
135
|
-
"resources_have_been_reached": "Malheureusement, nous avons atteint le nombre maximum de commandes
|
|
135
|
+
"resources_have_been_reached": "Malheureusement, nous avons atteint le nombre maximum de commandes jusqu'à {time}.",
|
|
136
136
|
"request_submitted": "votre demande a été soumise!",
|
|
137
137
|
"restaurant_past_time": "Le restaurant n'est pas ouvert à l'heure souhaitée.",
|
|
138
138
|
"we have updates! please refresh.": "nous avons des mises à jour! veuillez rafraîchir.",
|