| 
									
										
										
										
											2021-07-31 14:00:28 -08:00
										 |  |  | export default { | 
					
						
							|  |  |  |   // Global page headers: https://go.nuxtjs.dev/config-head
 | 
					
						
							| 
									
										
										
										
											2023-09-14 06:40:13 -08:00
										 |  |  |   target: "static", | 
					
						
							| 
									
										
										
										
											2021-07-31 14:00:28 -08:00
										 |  |  |   head: { | 
					
						
							| 
									
										
										
										
											2022-02-24 15:49:58 -09:00
										 |  |  |     title: "Mealie", | 
					
						
							| 
									
										
										
										
											2021-07-31 14:00:28 -08:00
										 |  |  |     meta: [ | 
					
						
							| 
									
										
										
										
											2021-12-04 16:06:24 -09:00
										 |  |  |       { hid: "og:type", property: "og:type", content: "website" }, | 
					
						
							|  |  |  |       { hid: "og:title", property: "og:title", content: "Mealie" }, | 
					
						
							|  |  |  |       { hid: "og:site_name", property: "og:site_name", content: "Mealie" }, | 
					
						
							| 
									
										
										
										
											2022-10-25 22:53:30 -08:00
										 |  |  |       { | 
					
						
							|  |  |  |         hid: "og:description", | 
					
						
							|  |  |  |         property: "og:description", | 
					
						
							|  |  |  |         content: "Mealie is a recipe management app for your kitchen.", | 
					
						
							|  |  |  |       }, | 
					
						
							| 
									
										
										
										
											2021-12-04 16:06:24 -09:00
										 |  |  |       { | 
					
						
							| 
									
										
										
										
											2022-09-10 19:29:21 +02:00
										 |  |  |         hid: "og:image", | 
					
						
							| 
									
										
										
										
											2021-12-04 16:06:24 -09:00
										 |  |  |         property: "og:image", | 
					
						
							|  |  |  |         content: | 
					
						
							| 
									
										
										
										
											2024-01-08 03:45:13 +00:00
										 |  |  |           "https://raw.githubusercontent.com/mealie-recipes/mealie/9571816ac4eed5beacfc0abf6c03eff1427fd0eb/frontend/static/icons/android-chrome-512x512.png", | 
					
						
							| 
									
										
										
										
											2021-12-04 16:06:24 -09:00
										 |  |  |       }, | 
					
						
							| 
									
										
										
										
											2021-08-01 19:24:47 -08:00
										 |  |  |       { charset: "utf-8" }, | 
					
						
							|  |  |  |       { name: "viewport", content: "width=device-width, initial-scale=1" }, | 
					
						
							| 
									
										
										
										
											2021-12-04 16:06:24 -09:00
										 |  |  |       { | 
					
						
							|  |  |  |         hid: "description", | 
					
						
							|  |  |  |         name: "description", | 
					
						
							|  |  |  |         content: "Mealie is a recipe management app for your kitchen.", | 
					
						
							|  |  |  |       }, | 
					
						
							| 
									
										
										
										
											2021-07-31 14:00:28 -08:00
										 |  |  |     ], | 
					
						
							| 
									
										
										
										
											2023-10-07 21:36:47 +02:00
										 |  |  |     link: [ | 
					
						
							|  |  |  |       { hid: "favicon", rel: "icon", type: "image/x-icon", href: "/favicon.ico", "data-n-head": "ssr" }, | 
					
						
							|  |  |  |       { hid: "shortcut icon", rel: "shortcut icon", type: "image/png", href: "/icons/icon-x64.png", "data-n-head": "ssr" }, | 
					
						
							|  |  |  |       { hid: "apple-touch-icon", rel: "apple-touch-icon", type: "image/png", href: "/icons/apple-touch-icon.png", "data-n-head": "ssr" }, | 
					
						
							|  |  |  |       { hid: "mask-icon", rel: "mask-icon", href: "/icons/safari-pinned-tab.svg", "data-n-head": "ssr" } | 
					
						
							|  |  |  |     ], | 
					
						
							| 
									
										
										
										
											2021-08-01 19:24:47 -08:00
										 |  |  |   }, | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2021-08-08 11:17:03 -08:00
										 |  |  |   env: { | 
					
						
							|  |  |  |     GLOBAL_MIDDLEWARE: process.env.GLOBAL_MIDDLEWARE || null, | 
					
						
							|  |  |  |   }, | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2021-08-02 22:15:11 -08:00
										 |  |  |   router: { | 
					
						
							|  |  |  |     base: process.env.SUB_PATH || "", | 
					
						
							|  |  |  |   }, | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2021-08-01 19:24:47 -08:00
										 |  |  |   layoutTransition: { | 
					
						
							|  |  |  |     name: "layout", | 
					
						
							|  |  |  |     mode: "out-in", | 
					
						
							| 
									
										
										
										
											2021-07-31 14:00:28 -08:00
										 |  |  |   }, | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |   // Global CSS: https://go.nuxtjs.dev/config-css
 | 
					
						
							| 
									
										
										
										
											2022-08-08 17:58:10 -08:00
										 |  |  |   css: [{ src: "~/assets/css/main.css" }, { src: "~/assets/css/main.css" }, { src: "~/assets/style-overrides.scss" }], | 
					
						
							| 
									
										
										
										
											2021-07-31 14:00:28 -08:00
										 |  |  | 
 | 
					
						
							|  |  |  |   // Plugins to run before rendering page: https://go.nuxtjs.dev/config-plugins
 | 
					
						
							| 
									
										
										
										
											2021-12-04 16:06:24 -09:00
										 |  |  |   plugins: ["~/plugins/globals.ts", "~/plugins/theme.ts", "~/plugins/toast.client.ts", "~/plugins/dark-mode.client.ts"], | 
					
						
							| 
									
										
										
										
											2021-07-31 14:00:28 -08:00
										 |  |  | 
 | 
					
						
							|  |  |  |   // Auto import components: https://go.nuxtjs.dev/config-components
 | 
					
						
							|  |  |  |   components: true, | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |   // Modules for dev and build (recommended): https://go.nuxtjs.dev/config-modules
 | 
					
						
							|  |  |  |   buildModules: [ | 
					
						
							|  |  |  |     // https://go.nuxtjs.dev/typescript
 | 
					
						
							| 
									
										
										
										
											2022-10-25 22:53:30 -08:00
										 |  |  |     [ | 
					
						
							|  |  |  |       "@nuxt/typescript-build", | 
					
						
							|  |  |  |       // Fix slow builds
 | 
					
						
							|  |  |  |       // https://github.com/nuxt/nuxt.js/issues/8310#issuecomment-734984360
 | 
					
						
							|  |  |  |       { | 
					
						
							|  |  |  |         typeCheck: { | 
					
						
							|  |  |  |           typescript: { | 
					
						
							|  |  |  |             enabled: true, | 
					
						
							|  |  |  |             mode: "write-tsbuildinfo", | 
					
						
							|  |  |  |           }, | 
					
						
							|  |  |  |         }, | 
					
						
							|  |  |  |       }, | 
					
						
							|  |  |  |     ], | 
					
						
							| 
									
										
										
										
											2021-09-09 08:51:29 -08:00
										 |  |  |     // https://go.nuxtjs.dev/vuetify
 | 
					
						
							| 
									
										
										
										
											2021-08-01 19:24:47 -08:00
										 |  |  |     "@nuxtjs/vuetify", | 
					
						
							|  |  |  |     // https://composition-api.nuxtjs.org/getting-started/setup
 | 
					
						
							|  |  |  |     "@nuxtjs/composition-api/module", | 
					
						
							| 
									
										
										
										
											2021-08-08 17:01:45 -08:00
										 |  |  |     // https://vite.nuxtjs.org/getting-started/installation
 | 
					
						
							|  |  |  |     "nuxt-vite", | 
					
						
							| 
									
										
										
										
											2022-02-24 15:49:58 -09:00
										 |  |  |     // https://google-fonts.nuxtjs.org/setup
 | 
					
						
							|  |  |  |     "@nuxtjs/google-fonts", | 
					
						
							| 
									
										
										
										
											2021-07-31 14:00:28 -08:00
										 |  |  |   ], | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |   // Modules: https://go.nuxtjs.dev/config-modules
 | 
					
						
							|  |  |  |   modules: [ | 
					
						
							|  |  |  |     // https://go.nuxtjs.dev/axios
 | 
					
						
							| 
									
										
										
										
											2021-08-01 19:24:47 -08:00
										 |  |  |     "@nuxtjs/axios", | 
					
						
							| 
									
										
										
										
											2021-07-31 14:00:28 -08:00
										 |  |  |     // https://go.nuxtjs.dev/pwa
 | 
					
						
							| 
									
										
										
										
											2023-01-28 16:28:09 -09:00
										 |  |  |     ...(process.env.NODE_ENV === "production" ? ["@nuxtjs/pwa"] : []), | 
					
						
							| 
									
										
										
										
											2021-08-01 19:24:47 -08:00
										 |  |  |     // https://i18n.nuxtjs.org/setup
 | 
					
						
							| 
									
										
										
										
											2021-09-05 22:05:29 -08:00
										 |  |  |     "@nuxtjs/i18n", | 
					
						
							| 
									
										
										
										
											2021-08-01 19:24:47 -08:00
										 |  |  |     // https://auth.nuxtjs.org/guide/setup
 | 
					
						
							|  |  |  |     "@nuxtjs/auth-next", | 
					
						
							|  |  |  |     // https://github.com/nuxt-community/proxy-module
 | 
					
						
							| 
									
										
										
										
											2021-08-08 11:17:03 -08:00
										 |  |  |     [ | 
					
						
							|  |  |  |       "@nuxtjs/proxy", | 
					
						
							|  |  |  |       { | 
					
						
							|  |  |  |         logProvider: () => { | 
					
						
							|  |  |  |           const provider = { | 
					
						
							|  |  |  |             log: console.log, | 
					
						
							|  |  |  |             debug: console.log, | 
					
						
							|  |  |  |             info: console.info, | 
					
						
							|  |  |  |             warn: console.warn, | 
					
						
							|  |  |  |             error: console.error, | 
					
						
							|  |  |  |           }; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |           return provider; | 
					
						
							|  |  |  |         }, | 
					
						
							|  |  |  |         logLevel: "debug", | 
					
						
							|  |  |  |       }, | 
					
						
							|  |  |  |     ], | 
					
						
							| 
									
										
										
										
											2021-07-31 14:00:28 -08:00
										 |  |  |   ], | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2022-02-24 15:49:58 -09:00
										 |  |  |   googleFonts: { | 
					
						
							| 
									
										
										
										
											2022-08-08 17:58:10 -08:00
										 |  |  |     fontsPath: "/assets/fonts", | 
					
						
							|  |  |  |     download: true, | 
					
						
							| 
									
										
										
										
											2022-02-24 15:49:58 -09:00
										 |  |  |     families: { | 
					
						
							|  |  |  |       Roboto: [100, 300, 400, 500, 700, 900], | 
					
						
							|  |  |  |     }, | 
					
						
							|  |  |  |   }, | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2021-08-01 19:24:47 -08:00
										 |  |  |   auth: { | 
					
						
							|  |  |  |     redirect: { | 
					
						
							| 
									
										
										
										
											2021-09-05 22:05:29 -08:00
										 |  |  |       login: "/login", | 
					
						
							|  |  |  |       logout: "/login", | 
					
						
							| 
									
										
										
										
											2021-08-01 19:24:47 -08:00
										 |  |  |       callback: "/login", | 
					
						
							|  |  |  |       home: "/", | 
					
						
							|  |  |  |     }, | 
					
						
							| 
									
										
										
										
											2023-01-03 17:51:33 -08:00
										 |  |  |     cookie: { | 
					
						
							|  |  |  |       prefix: "mealie.auth.", | 
					
						
							|  |  |  |       options: { | 
					
						
							|  |  |  |         expires: 7, | 
					
						
							|  |  |  |         path: "/", | 
					
						
							|  |  |  |       }, | 
					
						
							|  |  |  |     }, | 
					
						
							| 
									
										
										
										
											2021-08-01 19:24:47 -08:00
										 |  |  |     // Options
 | 
					
						
							|  |  |  |     strategies: { | 
					
						
							|  |  |  |       local: { | 
					
						
							| 
									
										
										
										
											2021-08-08 11:17:03 -08:00
										 |  |  |         resetOnError: true, | 
					
						
							| 
									
										
										
										
											2021-08-01 19:24:47 -08:00
										 |  |  |         token: { | 
					
						
							|  |  |  |           property: "access_token", | 
					
						
							|  |  |  |           global: true, | 
					
						
							|  |  |  |           // required: true,
 | 
					
						
							|  |  |  |           // type: 'Bearer'
 | 
					
						
							|  |  |  |         }, | 
					
						
							|  |  |  |         user: { | 
					
						
							|  |  |  |           property: "", | 
					
						
							|  |  |  |           autoFetch: true, | 
					
						
							|  |  |  |         }, | 
					
						
							|  |  |  |         endpoints: { | 
					
						
							|  |  |  |           login: { | 
					
						
							| 
									
										
										
										
											2021-08-08 11:17:03 -08:00
										 |  |  |             url: "api/auth/token", | 
					
						
							| 
									
										
										
										
											2021-08-01 19:24:47 -08:00
										 |  |  |             method: "post", | 
					
						
							|  |  |  |             propertyName: "access_token", | 
					
						
							|  |  |  |           }, | 
					
						
							| 
									
										
										
										
											2021-08-08 11:17:03 -08:00
										 |  |  |           refresh: { url: "api/auth/refresh", method: "post" }, | 
					
						
							|  |  |  |           user: { url: "api/users/self", method: "get" }, | 
					
						
							| 
									
										
										
										
											2021-08-01 19:24:47 -08:00
										 |  |  |         }, | 
					
						
							|  |  |  |       }, | 
					
						
							|  |  |  |     }, | 
					
						
							|  |  |  |   }, | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |   i18n: { | 
					
						
							|  |  |  |     locales: [ | 
					
						
							| 
									
										
										
										
											2021-09-09 08:51:29 -08:00
										 |  |  |       // CODE_GEN_ID: MESSAGE_LOCALES
 | 
					
						
							| 
									
										
										
										
											2023-08-20 16:09:13 -08:00
										 |  |  |       { code: "lv-LV", file: "lv-LV.json" }, | 
					
						
							| 
									
										
										
										
											2021-08-07 11:28:20 -08:00
										 |  |  |       { code: "el-GR", file: "el-GR.json" }, | 
					
						
							|  |  |  |       { code: "it-IT", file: "it-IT.json" }, | 
					
						
							|  |  |  |       { code: "ko-KR", file: "ko-KR.json" }, | 
					
						
							|  |  |  |       { code: "es-ES", file: "es-ES.json" }, | 
					
						
							|  |  |  |       { code: "ja-JP", file: "ja-JP.json" }, | 
					
						
							| 
									
										
										
										
											2022-08-02 10:41:44 -08:00
										 |  |  |       { code: "bg-BG", file: "bg-BG.json" }, | 
					
						
							| 
									
										
										
										
											2021-08-07 11:28:20 -08:00
										 |  |  |       { code: "zh-CN", file: "zh-CN.json" }, | 
					
						
							|  |  |  |       { code: "tr-TR", file: "tr-TR.json" }, | 
					
						
							|  |  |  |       { code: "ar-SA", file: "ar-SA.json" }, | 
					
						
							|  |  |  |       { code: "hu-HU", file: "hu-HU.json" }, | 
					
						
							|  |  |  |       { code: "pt-PT", file: "pt-PT.json" }, | 
					
						
							|  |  |  |       { code: "no-NO", file: "no-NO.json" }, | 
					
						
							|  |  |  |       { code: "sv-SE", file: "sv-SE.json" }, | 
					
						
							|  |  |  |       { code: "ro-RO", file: "ro-RO.json" }, | 
					
						
							| 
									
										
										
										
											2022-08-02 10:41:44 -08:00
										 |  |  |       { code: "sk-SK", file: "sk-SK.json" }, | 
					
						
							| 
									
										
										
										
											2021-08-07 11:28:20 -08:00
										 |  |  |       { code: "uk-UA", file: "uk-UA.json" }, | 
					
						
							| 
									
										
										
										
											2022-08-02 10:41:44 -08:00
										 |  |  |       { code: "lt-LT", file: "lt-LT.json" }, | 
					
						
							|  |  |  |       { code: "fr-CA", file: "fr-CA.json" }, | 
					
						
							| 
									
										
										
										
											2021-08-07 11:28:20 -08:00
										 |  |  |       { code: "pl-PL", file: "pl-PL.json" }, | 
					
						
							| 
									
										
										
										
											2023-08-20 16:09:13 -08:00
										 |  |  |       { code: "hr-HR", file: "hr-HR.json" }, | 
					
						
							| 
									
										
										
										
											2021-08-07 11:28:20 -08:00
										 |  |  |       { code: "da-DK", file: "da-DK.json" }, | 
					
						
							|  |  |  |       { code: "pt-BR", file: "pt-BR.json" }, | 
					
						
							|  |  |  |       { code: "de-DE", file: "de-DE.json" }, | 
					
						
							|  |  |  |       { code: "ca-ES", file: "ca-ES.json" }, | 
					
						
							|  |  |  |       { code: "sr-SP", file: "sr-SP.json" }, | 
					
						
							|  |  |  |       { code: "cs-CZ", file: "cs-CZ.json" }, | 
					
						
							| 
									
										
										
										
											2023-08-20 16:09:13 -08:00
										 |  |  |       { code: "gl-ES", file: "gl-ES.json" }, | 
					
						
							| 
									
										
										
										
											2021-08-07 11:28:20 -08:00
										 |  |  |       { code: "fr-FR", file: "fr-FR.json" }, | 
					
						
							|  |  |  |       { code: "zh-TW", file: "zh-TW.json" }, | 
					
						
							|  |  |  |       { code: "af-ZA", file: "af-ZA.json" }, | 
					
						
							| 
									
										
										
										
											2022-08-02 10:41:44 -08:00
										 |  |  |       { code: "sl-SI", file: "sl-SI.json" }, | 
					
						
							| 
									
										
										
										
											2021-08-07 11:28:20 -08:00
										 |  |  |       { code: "ru-RU", file: "ru-RU.json" }, | 
					
						
							|  |  |  |       { code: "he-IL", file: "he-IL.json" }, | 
					
						
							|  |  |  |       { code: "nl-NL", file: "nl-NL.json" }, | 
					
						
							|  |  |  |       { code: "en-US", file: "en-US.json" }, | 
					
						
							|  |  |  |       { code: "en-GB", file: "en-GB.json" }, | 
					
						
							|  |  |  |       { code: "fi-FI", file: "fi-FI.json" }, | 
					
						
							|  |  |  |       { code: "vi-VN", file: "vi-VN.json" }, | 
					
						
							| 
									
										
										
										
											2021-09-09 08:51:29 -08:00
										 |  |  |       // END: MESSAGE_LOCALES
 | 
					
						
							| 
									
										
										
										
											2021-08-01 19:24:47 -08:00
										 |  |  |     ], | 
					
						
							|  |  |  |     lazy: true, | 
					
						
							| 
									
										
										
										
											2022-03-19 22:27:40 +01:00
										 |  |  |     strategy: "no_prefix", | 
					
						
							| 
									
										
										
										
											2021-08-01 19:24:47 -08:00
										 |  |  |     langDir: "lang/messages", | 
					
						
							| 
									
										
										
										
											2022-03-19 22:27:40 +01:00
										 |  |  |     detectBrowserLanguage: { | 
					
						
							|  |  |  |       useCookie: true, | 
					
						
							|  |  |  |       alwaysRedirect: true, | 
					
						
							|  |  |  |     }, | 
					
						
							| 
									
										
										
										
											2021-08-01 19:24:47 -08:00
										 |  |  |     defaultLocale: "en-US", | 
					
						
							| 
									
										
										
										
											2021-08-07 11:28:20 -08:00
										 |  |  |     vueI18n: { | 
					
						
							|  |  |  |       dateTimeFormats: { | 
					
						
							| 
									
										
										
										
											2021-09-09 08:51:29 -08:00
										 |  |  |         // CODE_GEN_ID: DATE_LOCALES
 | 
					
						
							| 
									
										
										
										
											2021-08-07 11:28:20 -08:00
										 |  |  |         "el-GR": require("./lang/dateTimeFormats/el-GR.json"), | 
					
						
							|  |  |  |         "it-IT": require("./lang/dateTimeFormats/it-IT.json"), | 
					
						
							|  |  |  |         "ko-KR": require("./lang/dateTimeFormats/ko-KR.json"), | 
					
						
							|  |  |  |         "es-ES": require("./lang/dateTimeFormats/es-ES.json"), | 
					
						
							|  |  |  |         "ja-JP": require("./lang/dateTimeFormats/ja-JP.json"), | 
					
						
							| 
									
										
										
										
											2022-08-02 10:41:44 -08:00
										 |  |  |         "bg-BG": require("./lang/dateTimeFormats/bg-BG.json"), | 
					
						
							| 
									
										
										
										
											2021-08-07 11:28:20 -08:00
										 |  |  |         "zh-CN": require("./lang/dateTimeFormats/zh-CN.json"), | 
					
						
							|  |  |  |         "tr-TR": require("./lang/dateTimeFormats/tr-TR.json"), | 
					
						
							|  |  |  |         "ar-SA": require("./lang/dateTimeFormats/ar-SA.json"), | 
					
						
							|  |  |  |         "hu-HU": require("./lang/dateTimeFormats/hu-HU.json"), | 
					
						
							|  |  |  |         "pt-PT": require("./lang/dateTimeFormats/pt-PT.json"), | 
					
						
							|  |  |  |         "no-NO": require("./lang/dateTimeFormats/no-NO.json"), | 
					
						
							|  |  |  |         "sv-SE": require("./lang/dateTimeFormats/sv-SE.json"), | 
					
						
							|  |  |  |         "ro-RO": require("./lang/dateTimeFormats/ro-RO.json"), | 
					
						
							| 
									
										
										
										
											2022-08-02 10:41:44 -08:00
										 |  |  |         "sk-SK": require("./lang/dateTimeFormats/sk-SK.json"), | 
					
						
							| 
									
										
										
										
											2021-08-07 11:28:20 -08:00
										 |  |  |         "uk-UA": require("./lang/dateTimeFormats/uk-UA.json"), | 
					
						
							| 
									
										
										
										
											2022-08-02 10:41:44 -08:00
										 |  |  |         "fr-CA": require("./lang/dateTimeFormats/fr-CA.json"), | 
					
						
							| 
									
										
										
										
											2021-08-07 11:28:20 -08:00
										 |  |  |         "pl-PL": require("./lang/dateTimeFormats/pl-PL.json"), | 
					
						
							|  |  |  |         "da-DK": require("./lang/dateTimeFormats/da-DK.json"), | 
					
						
							|  |  |  |         "pt-BR": require("./lang/dateTimeFormats/pt-BR.json"), | 
					
						
							|  |  |  |         "de-DE": require("./lang/dateTimeFormats/de-DE.json"), | 
					
						
							|  |  |  |         "ca-ES": require("./lang/dateTimeFormats/ca-ES.json"), | 
					
						
							|  |  |  |         "sr-SP": require("./lang/dateTimeFormats/sr-SP.json"), | 
					
						
							|  |  |  |         "cs-CZ": require("./lang/dateTimeFormats/cs-CZ.json"), | 
					
						
							|  |  |  |         "fr-FR": require("./lang/dateTimeFormats/fr-FR.json"), | 
					
						
							|  |  |  |         "zh-TW": require("./lang/dateTimeFormats/zh-TW.json"), | 
					
						
							|  |  |  |         "af-ZA": require("./lang/dateTimeFormats/af-ZA.json"), | 
					
						
							|  |  |  |         "ru-RU": require("./lang/dateTimeFormats/ru-RU.json"), | 
					
						
							|  |  |  |         "he-IL": require("./lang/dateTimeFormats/he-IL.json"), | 
					
						
							|  |  |  |         "nl-NL": require("./lang/dateTimeFormats/nl-NL.json"), | 
					
						
							|  |  |  |         "en-US": require("./lang/dateTimeFormats/en-US.json"), | 
					
						
							|  |  |  |         "en-GB": require("./lang/dateTimeFormats/en-GB.json"), | 
					
						
							|  |  |  |         "fi-FI": require("./lang/dateTimeFormats/fi-FI.json"), | 
					
						
							|  |  |  |         "vi-VN": require("./lang/dateTimeFormats/vi-VN.json"), | 
					
						
							| 
									
										
										
										
											2021-09-09 08:51:29 -08:00
										 |  |  |         // END: DATE_LOCALES
 | 
					
						
							| 
									
										
										
										
											2021-08-07 11:28:20 -08:00
										 |  |  |       }, | 
					
						
							| 
									
										
										
										
											2022-03-19 22:27:40 +01:00
										 |  |  |       fallbackLocale: "en-US", | 
					
						
							| 
									
										
										
										
											2021-08-07 11:28:20 -08:00
										 |  |  |     }, | 
					
						
							| 
									
										
										
										
											2021-08-01 19:24:47 -08:00
										 |  |  |   }, | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2021-07-31 14:00:28 -08:00
										 |  |  |   // Axios module configuration: https://go.nuxtjs.dev/config-axios
 | 
					
						
							| 
									
										
										
										
											2021-08-07 20:21:44 -08:00
										 |  |  |   axios: { | 
					
						
							|  |  |  |     proxy: true, | 
					
						
							| 
									
										
										
										
											2023-01-03 18:36:40 -08:00
										 |  |  |     credentials: true, | 
					
						
							| 
									
										
										
										
											2021-08-07 20:21:44 -08:00
										 |  |  |   }, | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2021-08-08 11:17:03 -08:00
										 |  |  |   publicRuntimeConfig: { | 
					
						
							|  |  |  |     GLOBAL_MIDDLEWARE: process.env.GLOBAL_MIDDLEWARE || null, | 
					
						
							| 
									
										
										
										
											2021-08-09 16:19:23 -08:00
										 |  |  |     SUB_PATH: process.env.SUB_PATH || "", | 
					
						
							| 
									
										
										
										
											2021-08-08 14:10:32 -08:00
										 |  |  |     axios: { | 
					
						
							|  |  |  |       browserBaseURL: process.env.SUB_PATH || "", | 
					
						
							|  |  |  |     }, | 
					
						
							| 
									
										
										
										
											2021-10-04 20:16:37 -08:00
										 |  |  |     // ==============================================
 | 
					
						
							|  |  |  |     // Theme Runtime Config
 | 
					
						
							|  |  |  |     useDark: process.env.THEME_USE_DARK || false, | 
					
						
							| 
									
										
										
										
											2021-10-03 14:07:18 -08:00
										 |  |  |     themes: { | 
					
						
							|  |  |  |       dark: { | 
					
						
							|  |  |  |         primary: process.env.THEME_DARK_PRIMARY || "#E58325", | 
					
						
							|  |  |  |         accent: process.env.THEME_DARK_ACCENT || "#007A99", | 
					
						
							|  |  |  |         secondary: process.env.THEME_DARK_SECONDARY || "#973542", | 
					
						
							|  |  |  |         success: process.env.THEME_DARK_SUCCESS || "#43A047", | 
					
						
							|  |  |  |         info: process.env.THEME_DARK_INFO || "#1976d2", | 
					
						
							|  |  |  |         warning: process.env.THEME_DARK_WARNING || "#FF6D00", | 
					
						
							|  |  |  |         error: process.env.THEME_DARK_ERROR || "#EF5350", | 
					
						
							| 
									
										
										
										
											2023-10-17 11:12:02 -05:00
										 |  |  |         background: "#1E1E1E", | 
					
						
							| 
									
										
										
										
											2021-10-03 14:07:18 -08:00
										 |  |  |       }, | 
					
						
							|  |  |  |       light: { | 
					
						
							| 
									
										
										
										
											2021-11-20 14:30:38 -09:00
										 |  |  |         primary: process.env.THEME_LIGHT_PRIMARY || "#E58325", | 
					
						
							| 
									
										
										
										
											2021-10-03 14:07:18 -08:00
										 |  |  |         accent: process.env.THEME_LIGHT_ACCENT || "#007A99", | 
					
						
							|  |  |  |         secondary: process.env.THEME_DARK_SECONDARY || "#973542", | 
					
						
							|  |  |  |         success: process.env.THEME_DARK_SUCCESS || "#43A047", | 
					
						
							|  |  |  |         info: process.env.THEME_LIGHT_INFO || "#1976d2", | 
					
						
							|  |  |  |         warning: process.env.THEME_LIGHT_WARNING || "#FF6D00", | 
					
						
							|  |  |  |         error: process.env.THEME_LIGHT_ERROR || "#EF5350", | 
					
						
							|  |  |  |       }, | 
					
						
							|  |  |  |     }, | 
					
						
							| 
									
										
										
										
											2021-08-08 11:17:03 -08:00
										 |  |  |   }, | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2021-08-08 14:10:32 -08:00
										 |  |  |   privateRuntimeConfig: {}, | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2021-08-07 20:21:44 -08:00
										 |  |  |   proxy: { | 
					
						
							| 
									
										
										
										
											2021-08-08 11:17:03 -08:00
										 |  |  |     // See Proxy section
 | 
					
						
							| 
									
										
										
										
											2021-08-09 16:19:23 -08:00
										 |  |  |     [`${process.env.SUB_PATH || ""}api`]: { | 
					
						
							| 
									
										
										
										
											2021-08-08 14:10:32 -08:00
										 |  |  |       pathRewrite: { | 
					
						
							| 
									
										
										
										
											2021-08-09 16:19:23 -08:00
										 |  |  |         [`${process.env.SUB_PATH || ""}api`]: "/api", // rewrite path
 | 
					
						
							| 
									
										
										
										
											2021-08-08 14:10:32 -08:00
										 |  |  |       }, | 
					
						
							|  |  |  |       changeOrigin: true, | 
					
						
							|  |  |  |       target: process.env.API_URL || "http://localhost:9000", | 
					
						
							| 
									
										
										
										
											2023-06-25 20:22:21 +02:00
										 |  |  |       xfwd: true, | 
					
						
							| 
									
										
										
										
											2021-08-08 14:10:32 -08:00
										 |  |  |     }, | 
					
						
							|  |  |  |     "/api": { | 
					
						
							| 
									
										
										
										
											2021-08-07 20:21:44 -08:00
										 |  |  |       changeOrigin: true, | 
					
						
							| 
									
										
										
										
											2021-08-08 11:17:03 -08:00
										 |  |  |       target: process.env.API_URL || "http://localhost:9000", | 
					
						
							| 
									
										
										
										
											2023-06-25 20:22:21 +02:00
										 |  |  |       xfwd: true, | 
					
						
							| 
									
										
										
										
											2021-08-07 20:21:44 -08:00
										 |  |  |     }, | 
					
						
							| 
									
										
										
										
											2023-07-23 12:53:45 -05:00
										 |  |  |     "/docs": { | 
					
						
							|  |  |  |       changeOrigin: true, | 
					
						
							|  |  |  |       target: process.env.API_URL || "http://localhost:9000", | 
					
						
							|  |  |  |       xfwd: true, | 
					
						
							|  |  |  |     }, | 
					
						
							|  |  |  |     "/openapi.json": { | 
					
						
							|  |  |  |       changeOrigin: true, | 
					
						
							|  |  |  |       target: process.env.API_URL || "http://localhost:9000", | 
					
						
							|  |  |  |       xfwd: true, | 
					
						
							|  |  |  |     }, | 
					
						
							| 
									
										
										
										
											2021-08-07 20:21:44 -08:00
										 |  |  |   }, | 
					
						
							| 
									
										
										
										
											2021-07-31 14:00:28 -08:00
										 |  |  | 
 | 
					
						
							|  |  |  |   // PWA module configuration: https://go.nuxtjs.dev/pwa
 | 
					
						
							|  |  |  |   pwa: { | 
					
						
							| 
									
										
										
										
											2022-02-24 15:49:58 -09:00
										 |  |  |     meta: { | 
					
						
							|  |  |  |       /* meta options */ | 
					
						
							|  |  |  |       name: "Mealie", | 
					
						
							|  |  |  |       description: "Mealie is a recipe management and meal planning app", | 
					
						
							| 
									
										
										
										
											2023-10-07 21:36:47 +02:00
										 |  |  |       theme_color: process.env.THEME_LIGHT_PRIMARY || "#E58325", | 
					
						
							| 
									
										
										
										
											2022-02-24 15:49:58 -09:00
										 |  |  |       ogSiteName: "Mealie", | 
					
						
							|  |  |  |     }, | 
					
						
							|  |  |  |     manifest: { | 
					
						
							| 
									
										
										
										
											2023-01-06 16:26:25 -08:00
										 |  |  |       start_url: "/", | 
					
						
							| 
									
										
										
										
											2022-08-04 20:42:41 +02:00
										 |  |  |       lang: "en", | 
					
						
							| 
									
										
										
										
											2022-02-24 15:49:58 -09:00
										 |  |  |       name: "Mealie", | 
					
						
							| 
									
										
										
										
											2023-01-06 16:26:25 -08:00
										 |  |  |       short_name: "Mealie", | 
					
						
							| 
									
										
										
										
											2023-10-07 21:36:47 +02:00
										 |  |  |       description: "Mealie is a recipe management and meal planning app", | 
					
						
							|  |  |  |       theme_color: process.env.THEME_LIGHT_PRIMARY || "#E58325", | 
					
						
							| 
									
										
										
										
											2022-02-24 15:49:58 -09:00
										 |  |  |       background_color: "#FFFFFF", | 
					
						
							| 
									
										
										
										
											2023-10-07 21:36:47 +02:00
										 |  |  |       display: "standalone", | 
					
						
							| 
									
										
										
										
											2022-02-24 15:49:58 -09:00
										 |  |  |       share_target: { | 
					
						
							| 
									
										
										
										
											2023-11-05 19:07:02 -06:00
										 |  |  |         action: "/r/create/url", | 
					
						
							| 
									
										
										
										
											2022-02-24 15:49:58 -09:00
										 |  |  |         method: "GET", | 
					
						
							|  |  |  |         params: { | 
					
						
							| 
									
										
										
										
											2023-10-18 03:22:03 +11:00
										 |  |  |           /* title and url are not currently used in Mealie. If there are issues | 
					
						
							|  |  |  |              with sharing, uncommenting those lines might help solve the puzzle. */ | 
					
						
							|  |  |  |           // "title": "title",
 | 
					
						
							|  |  |  |           "text": "recipe_import_url", | 
					
						
							|  |  |  |           // "url": "url",
 | 
					
						
							| 
									
										
										
										
											2022-02-24 15:49:58 -09:00
										 |  |  |         }, | 
					
						
							|  |  |  |       }, | 
					
						
							| 
									
										
										
										
											2023-10-07 21:36:47 +02:00
										 |  |  |       icons: [ | 
					
						
							|  |  |  |         { | 
					
						
							|  |  |  |           src: "/icons/android-chrome-192x192.png", | 
					
						
							|  |  |  |           sizes: "192x192", | 
					
						
							|  |  |  |           type: "image/png", | 
					
						
							|  |  |  |           purpose: "any", | 
					
						
							|  |  |  |         }, | 
					
						
							|  |  |  |         { | 
					
						
							|  |  |  |           src: "/icons/android-chrome-512x512.png", | 
					
						
							|  |  |  |           sizes: "512x512", | 
					
						
							|  |  |  |           type: "image/png", | 
					
						
							|  |  |  |           purpose: "any", | 
					
						
							|  |  |  |         }, | 
					
						
							|  |  |  |         { | 
					
						
							|  |  |  |           src: "/icons/android-chrome-maskable-192x192.png", | 
					
						
							|  |  |  |           sizes: "192x192", | 
					
						
							|  |  |  |           type: "image/png", | 
					
						
							|  |  |  |           purpose: "maskable", | 
					
						
							|  |  |  |         }, | 
					
						
							|  |  |  |         { | 
					
						
							|  |  |  |           src: "/icons/android-chrome-maskable-512x512.png", | 
					
						
							|  |  |  |           sizes: "512x512", | 
					
						
							|  |  |  |           type: "image/png", | 
					
						
							|  |  |  |           purpose: "maskable", | 
					
						
							|  |  |  |         }, | 
					
						
							|  |  |  |       ], | 
					
						
							| 
									
										
										
										
											2022-02-24 15:49:58 -09:00
										 |  |  |     }, | 
					
						
							| 
									
										
										
										
											2023-10-07 21:36:47 +02:00
										 |  |  |     icon: false, // disables the icon module
 | 
					
						
							| 
									
										
										
										
											2021-07-31 14:00:28 -08:00
										 |  |  |   }, | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |   // Vuetify module configuration: https://go.nuxtjs.dev/config-vuetify
 | 
					
						
							|  |  |  |   vuetify: { | 
					
						
							| 
									
										
										
										
											2023-01-29 02:39:51 +01:00
										 |  |  |     optionsPath: "./vuetify.options.js", | 
					
						
							| 
									
										
										
										
											2021-07-31 14:00:28 -08:00
										 |  |  |   }, | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |   // Build Configuration: https://go.nuxtjs.dev/config-build
 | 
					
						
							| 
									
										
										
										
											2021-08-07 20:21:44 -08:00
										 |  |  |   build: { | 
					
						
							| 
									
										
										
										
											2021-08-08 21:15:20 -08:00
										 |  |  |     // https://nuxtjs.org/docs/2.x/configuration-glossary/configuration-build
 | 
					
						
							| 
									
										
										
										
											2022-10-25 22:53:30 -08:00
										 |  |  |     analyze: false, | 
					
						
							| 
									
										
										
										
											2021-08-08 11:17:03 -08:00
										 |  |  |     babel: { | 
					
						
							| 
									
										
										
										
											2021-12-10 19:48:06 -09:00
										 |  |  |       plugins: [ | 
					
						
							|  |  |  |         ["@babel/plugin-proposal-private-property-in-object", { loose: true }], | 
					
						
							| 
									
										
										
										
											2021-12-11 15:54:28 -09:00
										 |  |  |         // ["@nuxtjs/composition-api/dist/babel-plugin"],
 | 
					
						
							| 
									
										
										
										
											2021-12-10 19:48:06 -09:00
										 |  |  |       ], | 
					
						
							| 
									
										
										
										
											2021-08-08 11:17:03 -08:00
										 |  |  |     }, | 
					
						
							| 
									
										
										
										
											2023-08-23 12:31:23 -05:00
										 |  |  |     // audio file support
 | 
					
						
							|  |  |  |     // https://v2.nuxt.com/docs/features/configuration/#extend-webpack-to-load-audio-files
 | 
					
						
							|  |  |  |     extend(config, ctx) { | 
					
						
							|  |  |  |       config.module.rules.push({ | 
					
						
							|  |  |  |         test: /\.(ogg|mp3|wav|mpe?g)$/i, | 
					
						
							|  |  |  |         loader: 'file-loader', | 
					
						
							|  |  |  |         options: { | 
					
						
							|  |  |  |           name: '[path][name].[ext]' | 
					
						
							|  |  |  |         } | 
					
						
							|  |  |  |       }) | 
					
						
							|  |  |  |     }, | 
					
						
							| 
									
										
										
										
											2021-08-08 21:15:20 -08:00
										 |  |  |     transpile: process.env.NODE_ENV !== "production" ? [/@vue[\\/]composition-api/] : null, | 
					
						
							| 
									
										
										
										
											2021-08-07 20:21:44 -08:00
										 |  |  |   }, | 
					
						
							| 
									
										
										
										
											2021-08-01 19:24:47 -08:00
										 |  |  | }; |