From 9383a2fb09ffb60cfe63683106945bd688affa59 Mon Sep 17 00:00:00 2001 From: ivarlovlie Date: Wed, 1 Jun 2022 21:13:43 +0200 Subject: feat: Initial commit after clean slate --- src/wwwroot/scripts/configuration.js | 41 ++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 src/wwwroot/scripts/configuration.js (limited to 'src/wwwroot/scripts/configuration.js') diff --git a/src/wwwroot/scripts/configuration.js b/src/wwwroot/scripts/configuration.js new file mode 100644 index 0000000..418152d --- /dev/null +++ b/src/wwwroot/scripts/configuration.js @@ -0,0 +1,41 @@ +export const configuration = { + storageKeys: { + cart: "cart", + productForm: { + imageUrls: "productForm.images", + }, + }, + debug: location.hostname !== "localhost", + analytics: { + pageload: false, + error: true, + }, + cookies: { + culture: "vsh_culture", + }, + paths: { + products: "/assets/images/products/", + documents: "/assets/images/documents/", + swaggerDoc: { + main: "/swagger/v1/swagger.json", + }, + }, + defaultParameters: { + counterControlOptions: { + min: undefined, + max: undefined, + initialCount: undefined, + onChange: undefined, + }, + }, + enums: { + orderStatus: { + IN_PROGRESS: 0, + CANCELLED: 0, + FAILED: 2, + COMPLETED: 3, + AWAITING_INVOICE: 4, + AWAITING_VIPPS: 5, + }, + }, +}; -- cgit v1.3