quasar.config.js.temporary.compiled.1780666187782.mjs 8.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259
  1. /* eslint-disable */
  2. /**
  3. * THIS FILE IS GENERATED AUTOMATICALLY.
  4. * 1. DO NOT edit this file directly as it won't do anything.
  5. * 2. EDIT the original quasar.config file INSTEAD.
  6. * 3. DO NOT git commit this file. It should be ignored.
  7. *
  8. * This file is still here because there was an error in
  9. * the original quasar.config file and this allows you to
  10. * investigate the Node.js stack error.
  11. *
  12. * After you fix the original file, this file will be
  13. * deleted automatically.
  14. **/
  15. // quasar.config.js
  16. import { defineConfig } from "@quasar/app-vite/wrappers";
  17. import { existsSync, readFileSync } from "node:fs";
  18. import { fileURLToPath } from "node:url";
  19. import { resolve } from "node:path";
  20. var __quasar_inject_import_meta_url__ = "file:///home/softpar/projetos/spas/sfp_front_vue_diarista_prestador/quasar.config.js";
  21. var envFiles = {
  22. dev: ".env.app.dev",
  23. staging: ".env.app.staging",
  24. prod: ".env.app.prod"
  25. };
  26. var loadAppEnv = (ctx) => {
  27. const appEnv = process.env.APP_ENV || (ctx.dev ? "dev" : "prod");
  28. const envFile = envFiles[appEnv];
  29. if (!envFile) {
  30. throw new Error(`APP_ENV invalido: "${appEnv}". Use dev, staging ou prod.`);
  31. }
  32. const fileEnv = parseEnvFile(resolve(process.cwd(), envFile));
  33. return {
  34. APP_ENV: appEnv,
  35. API_URL: fileEnv.API_URL,
  36. PASSWORD: fileEnv.PASSWORD,
  37. WEBSOCKET_API: fileEnv.WEBSOCKET_API,
  38. WEBSOCKET_PATH: fileEnv.WEBSOCKET_PATH,
  39. WEBSOCKET_ROOM: fileEnv.WEBSOCKET_ROOM,
  40. WEBSOCKET_API_KEY: fileEnv.WEBSOCKET_API_KEY
  41. };
  42. };
  43. var parseEnvFile = (filePath) => {
  44. if (!existsSync(filePath)) {
  45. return {};
  46. }
  47. return readFileSync(filePath, "utf8").split(/\r?\n/).reduce((env, line) => {
  48. const trimmedLine = line.trim();
  49. if (!trimmedLine || trimmedLine.startsWith("#")) {
  50. return env;
  51. }
  52. const separatorIndex = trimmedLine.indexOf("=");
  53. if (separatorIndex === -1) {
  54. return env;
  55. }
  56. const key = trimmedLine.slice(0, separatorIndex).trim();
  57. const value = trimmedLine.slice(separatorIndex + 1).trim();
  58. env[key] = value.replace(/^["']|["']$/g, "");
  59. return env;
  60. }, {});
  61. };
  62. var quasar_config_default = defineConfig((ctx) => {
  63. const appEnv = loadAppEnv(ctx);
  64. return {
  65. bin: {
  66. linuxAndroidStudio: "/snap/bin/android-studio"
  67. },
  68. // https://v2.quasar.dev/quasar-cli-vite/prefetch-feature
  69. // preFetch: true,
  70. // app boot file (/src/boot)
  71. // --> boot files are part of "main.js"
  72. // https://v2.quasar.dev/quasar-cli-vite/boot-files
  73. boot: [
  74. "axios",
  75. "i18n",
  76. "defaultPropsComponents",
  77. "push-notifications"
  78. // "socket.io",
  79. ],
  80. // https://v2.quasar.dev/quasar-cli-vite/quasar-config-js#css
  81. css: ["app.scss"],
  82. // https://github.com/quasarframework/quasar/tree/dev/extras
  83. extras: [
  84. // 'ionicons-v4',
  85. "mdi-v7",
  86. // 'fontawesome-v6',
  87. // 'eva-icons',
  88. // 'themify',
  89. // "line-awesome",
  90. // 'roboto-font-latin-ext', // this or either 'roboto-font', NEVER both!
  91. "roboto-font",
  92. // optional, you are not bound to it
  93. "material-icons"
  94. // optional, you are not bound to it
  95. ],
  96. // Full list of options: https://v2.quasar.dev/quasar-cli-vite/quasar-config-js#build
  97. build: {
  98. target: {
  99. browser: ["es2022", "firefox115", "chrome115", "safari14"],
  100. node: "node22"
  101. },
  102. vueRouterMode: "history",
  103. // available values: 'hash', 'history'
  104. // vueRouterBase,
  105. // vueDevtools,
  106. // vueOptionsAPI: false,
  107. // rebuildCache: true, // rebuilds Vite/linter/etc cache on startup
  108. // publicPath: '/',
  109. // analyze: true,
  110. env: appEnv,
  111. // rawDefine: {}
  112. // ignorePublicFolder: true,
  113. // minify: false,
  114. // polyfillModulePreload: true,
  115. // distDir
  116. // extendViteConf (viteConf) {},
  117. // viteVuePluginOptions: {},
  118. vitePlugins: [
  119. [
  120. "@intlify/unplugin-vue-i18n/vite",
  121. {
  122. include: [fileURLToPath(new URL("./src/i18n", __quasar_inject_import_meta_url__))],
  123. ssr: ctx.modeName === "ssr"
  124. }
  125. ],
  126. [
  127. "vite-plugin-checker",
  128. {
  129. eslint: {
  130. lintCommand: 'eslint -c ./eslint.config.js "./src*/**/*.{js,mjs,cjs,vue}"',
  131. useFlatConfig: true
  132. }
  133. },
  134. { server: false }
  135. ]
  136. ]
  137. },
  138. // Full list of options: https://v2.quasar.dev/quasar-cli-vite/quasar-config-js#devServer
  139. devServer: {
  140. // https: true
  141. open: false
  142. // opens browser window automatically
  143. },
  144. // https://v2.quasar.dev/quasar-cli-vite/quasar-config-js#framework
  145. framework: {
  146. lang: "pt-BR",
  147. config: {
  148. dark: "auto",
  149. notify: {
  150. position: "top-right"
  151. }
  152. },
  153. // iconSet: 'material-icons', // Quasar icon set
  154. // lang: 'en-US', // Quasar language pack
  155. // For special cases outside of where the auto-import strategy can have an impact
  156. // (like functional components as one of the examples),
  157. // you can manually specify Quasar components/directives to be available everywhere:
  158. //
  159. // components: [],
  160. // directives: [],
  161. // Quasar plugins
  162. plugins: ["Dialog", "Notify", "Loading", "Cookies", "Dark"]
  163. },
  164. // animations: 'all', // --- includes all animations
  165. // https://v2.quasar.dev/options/animations
  166. animations: [],
  167. // https://v2.quasar.dev/quasar-cli-vite/quasar-config-js#property-sourcefiles
  168. // sourceFiles: {
  169. // rootComponent: 'src/App.vue',
  170. // router: 'src/router/index',
  171. // store: 'src/store/index',
  172. // pwaRegisterServiceWorker: 'src-pwa/register-service-worker',
  173. // pwaServiceWorker: 'src-pwa/custom-service-worker',
  174. // pwaManifestFile: 'src-pwa/manifest.json',
  175. // electronMain: 'src-electron/electron-main',
  176. // electronPreload: 'src-electron/electron-preload'
  177. // bexManifestFile: 'src-bex/manifest.json
  178. // },
  179. // https://v2.quasar.dev/quasar-cli-vite/developing-ssr/configuring-ssr
  180. ssr: {
  181. prodPort: 3e3,
  182. // The default port that the production server should use
  183. // (gets superseded if process.env.PORT is specified at runtime)
  184. middlewares: [
  185. "render"
  186. // keep this as last one
  187. ],
  188. // extendPackageJson (json) {},
  189. // extendSSRWebserverConf (esbuildConf) {},
  190. // manualStoreSerialization: true,
  191. // manualStoreSsrContextInjection: true,
  192. // manualStoreHydration: true,
  193. // manualPostHydrationTrigger: true,
  194. pwa: false
  195. // pwaOfflineHtmlFilename: 'offline.html', // do NOT use index.html as name!
  196. // will mess up SSR
  197. // pwaExtendGenerateSWOptions (cfg) {},
  198. // pwaExtendInjectManifestOptions (cfg) {}
  199. },
  200. // https://v2.quasar.dev/quasar-cli-vite/developing-pwa/configuring-pwa
  201. pwa: {
  202. workboxMode: "GenerateSW"
  203. // 'GenerateSW' or 'InjectManifest'
  204. // swFilename: 'sw.js',
  205. // manifestFilename: 'manifest.json'
  206. // extendManifestJson (json) {},
  207. // useCredentialsForManifestTag: true,
  208. // injectPwaMetaTags: false,
  209. // extendPWACustomSWConf (esbuildConf) {},
  210. // extendGenerateSWOptions (cfg) {},
  211. // extendInjectManifestOptions (cfg) {}
  212. },
  213. // Full list of options: https://v2.quasar.dev/quasar-cli-vite/developing-cordova-apps/configuring-cordova
  214. cordova: {
  215. // noIosLegacyBuildFlag: true, // uncomment only if you know what you are doing
  216. },
  217. // Full list of options: https://v2.quasar.dev/quasar-cli-vite/developing-capacitor-apps/configuring-capacitor
  218. capacitor: {
  219. hideSplashscreen: true
  220. },
  221. // Full list of options: https://v2.quasar.dev/quasar-cli-vite/developing-electron-apps/configuring-electron
  222. electron: {
  223. // extendElectronMainConf (esbuildConf) {},
  224. // extendElectronPreloadConf (esbuildConf) {},
  225. // extendPackageJson (json) {},
  226. // Electron preload scripts (if any) from /src-electron, WITHOUT file extension
  227. preloadScripts: ["electron-preload"],
  228. // specify the debugging port to use for the Electron app when running in development mode
  229. inspectPort: 5858,
  230. bundler: "packager",
  231. // 'packager' or 'builder'
  232. packager: {
  233. // https://github.com/electron-userland/electron-packager/blob/master/docs/api.md#options
  234. // OS X / Mac App Store
  235. // appBundleId: '',
  236. // appCategoryType: '',
  237. // osxSign: '',
  238. // protocol: 'myapp://path',
  239. // Windows only
  240. // win32metadata: { ... }
  241. },
  242. builder: {
  243. // https://www.electron.build/configuration/configuration
  244. appId: "quasar-skeleton"
  245. }
  246. },
  247. // Full list of options: https://v2.quasar.dev/quasar-cli-vite/developing-browser-extensions/configuring-bex
  248. bex: {
  249. // extendBexScriptsConf (esbuildConf) {},
  250. // extendBexManifestJson (json) {},
  251. contentScripts: ["my-content-script"]
  252. }
  253. };
  254. });
  255. export {
  256. quasar_config_default as default
  257. };