|
@@ -14,25 +14,33 @@ export default configure((ctx) => {
|
|
|
// app boot file (/src/boot)
|
|
// app boot file (/src/boot)
|
|
|
// --> boot files are part of "main.js"
|
|
// --> boot files are part of "main.js"
|
|
|
// https://v2.quasar.dev/quasar-cli-vite/boot-files
|
|
// https://v2.quasar.dev/quasar-cli-vite/boot-files
|
|
|
|
|
+
|
|
|
boot: [
|
|
boot: [
|
|
|
"i18n",
|
|
"i18n",
|
|
|
"axios",
|
|
"axios",
|
|
|
"setPermissions",
|
|
"setPermissions",
|
|
|
"defaultPropsComponents",
|
|
"defaultPropsComponents",
|
|
|
|
|
+
|
|
|
// "socket.io",
|
|
// "socket.io",
|
|
|
],
|
|
],
|
|
|
|
|
|
|
|
// https://v2.quasar.dev/quasar-cli-vite/quasar-config-js#css
|
|
// https://v2.quasar.dev/quasar-cli-vite/quasar-config-js#css
|
|
|
|
|
+
|
|
|
css: ["app.scss"],
|
|
css: ["app.scss"],
|
|
|
|
|
|
|
|
// https://github.com/quasarframework/quasar/tree/dev/extras
|
|
// https://github.com/quasarframework/quasar/tree/dev/extras
|
|
|
|
|
+
|
|
|
extras: [
|
|
extras: [
|
|
|
// 'ionicons-v4',
|
|
// 'ionicons-v4',
|
|
|
|
|
+
|
|
|
"mdi-v7",
|
|
"mdi-v7",
|
|
|
|
|
+
|
|
|
// 'fontawesome-v6',
|
|
// 'fontawesome-v6',
|
|
|
// 'eva-icons',
|
|
// 'eva-icons',
|
|
|
// 'themify',
|
|
// 'themify',
|
|
|
|
|
+
|
|
|
"line-awesome",
|
|
"line-awesome",
|
|
|
|
|
+
|
|
|
// 'roboto-font-latin-ext', // this or either 'roboto-font', NEVER both!
|
|
// 'roboto-font-latin-ext', // this or either 'roboto-font', NEVER both!
|
|
|
|
|
|
|
|
"roboto-font", // optional, you are not bound to it
|
|
"roboto-font", // optional, you are not bound to it
|
|
@@ -40,6 +48,7 @@ export default configure((ctx) => {
|
|
|
],
|
|
],
|
|
|
|
|
|
|
|
// Full list of options: https://v2.quasar.dev/quasar-cli-vite/quasar-config-js#build
|
|
// Full list of options: https://v2.quasar.dev/quasar-cli-vite/quasar-config-js#build
|
|
|
|
|
+
|
|
|
build: {
|
|
build: {
|
|
|
target: {
|
|
target: {
|
|
|
browser: ["es2022", "firefox115", "chrome115", "safari14"],
|
|
browser: ["es2022", "firefox115", "chrome115", "safari14"],
|
|
@@ -47,6 +56,7 @@ export default configure((ctx) => {
|
|
|
},
|
|
},
|
|
|
|
|
|
|
|
vueRouterMode: "history", // available values: 'hash', 'history'
|
|
vueRouterMode: "history", // available values: 'hash', 'history'
|
|
|
|
|
+
|
|
|
// vueRouterBase,
|
|
// vueRouterBase,
|
|
|
// vueDevtools,
|
|
// vueDevtools,
|
|
|
// vueOptionsAPI: false,
|
|
// vueOptionsAPI: false,
|
|
@@ -55,19 +65,29 @@ export default configure((ctx) => {
|
|
|
|
|
|
|
|
// publicPath: '/',
|
|
// publicPath: '/',
|
|
|
// analyze: true,
|
|
// analyze: true,
|
|
|
- env: {
|
|
|
|
|
- API_URL: ctx.dev
|
|
|
|
|
|
|
+
|
|
|
|
|
+ env: ((isDev, isProd) => ({
|
|
|
|
|
+ API_URL: isDev
|
|
|
? "http://localhost:8000"
|
|
? "http://localhost:8000"
|
|
|
- : "https://api.test.softpar.inf.br/alugap",
|
|
|
|
|
- PASSWORD: ctx.dev ? "KizzoOwner@123" : "",
|
|
|
|
|
- WEBSOCKET_API: ctx.dev
|
|
|
|
|
|
|
+ : isProd
|
|
|
|
|
+ ? "https://api.kizzo.com.br"
|
|
|
|
|
+ : "https://api.test.softpar.inf.br/alugap",
|
|
|
|
|
+
|
|
|
|
|
+ PASSWORD: isDev ? "KizzoOwner@123" : "",
|
|
|
|
|
+
|
|
|
|
|
+ WEBSOCKET_API: isDev
|
|
|
? "http://localhost:4321/"
|
|
? "http://localhost:4321/"
|
|
|
- : "https://test-ws.softpar.inf.br/",
|
|
|
|
|
- WEBSOCKET_PATH: ctx.dev ? "/socket.io" : "/socket.io",
|
|
|
|
|
- WEBSOCKET_ROOM: ctx.dev ? "LARAVEL" : "LARAVEL",
|
|
|
|
|
|
|
+ : isProd
|
|
|
|
|
+ ? "https://ws.softpar.inf.br/"
|
|
|
|
|
+ : "https://test-ws.softpar.inf.br/",
|
|
|
|
|
+
|
|
|
|
|
+ WEBSOCKET_PATH: isDev ? "/socket.io" : "/socket.io",
|
|
|
|
|
+ WEBSOCKET_ROOM: isDev ? "LARAVEL" : "LARAVEL",
|
|
|
|
|
+
|
|
|
WEBSOCKET_API_KEY:
|
|
WEBSOCKET_API_KEY:
|
|
|
"7wArC/kl0nTbt4zBu0agw.NXLyjA96I6x1XmBcuokwPqfo3/CIxzqYw.PTthh5eqa08Uf4ubFlOqatpShoz1CRRID9pZReEFvBk3il6E9u",
|
|
"7wArC/kl0nTbt4zBu0agw.NXLyjA96I6x1XmBcuokwPqfo3/CIxzqYw.PTthh5eqa08Uf4ubFlOqatpShoz1CRRID9pZReEFvBk3il6E9u",
|
|
|
- },
|
|
|
|
|
|
|
+ }))(ctx.dev, process.env.APP_ENV === "production"),
|
|
|
|
|
+
|
|
|
// rawDefine: {}
|
|
// rawDefine: {}
|
|
|
// ignorePublicFolder: true,
|
|
// ignorePublicFolder: true,
|
|
|
// minify: false,
|
|
// minify: false,
|
|
@@ -86,11 +106,13 @@ export default configure((ctx) => {
|
|
|
|
|
|
|
|
// if you want to use named tokens in your Vue I18n messages, such as 'Hello {name}',
|
|
// if you want to use named tokens in your Vue I18n messages, such as 'Hello {name}',
|
|
|
// you need to set `runtimeOnly: false`
|
|
// you need to set `runtimeOnly: false`
|
|
|
|
|
+
|
|
|
runtimeOnly: false,
|
|
runtimeOnly: false,
|
|
|
|
|
|
|
|
ssr: ctx.modeName === "ssr",
|
|
ssr: ctx.modeName === "ssr",
|
|
|
|
|
|
|
|
// you need to set i18n resource including paths !
|
|
// you need to set i18n resource including paths !
|
|
|
|
|
+
|
|
|
include: [fileURLToPath(new URL("./src/i18n", import.meta.url))],
|
|
include: [fileURLToPath(new URL("./src/i18n", import.meta.url))],
|
|
|
},
|
|
},
|
|
|
],
|
|
],
|
|
@@ -107,12 +129,15 @@ export default configure((ctx) => {
|
|
|
},
|
|
},
|
|
|
|
|
|
|
|
// Full list of options: https://v2.quasar.dev/quasar-cli-vite/quasar-config-js#devServer
|
|
// Full list of options: https://v2.quasar.dev/quasar-cli-vite/quasar-config-js#devServer
|
|
|
|
|
+
|
|
|
devServer: {
|
|
devServer: {
|
|
|
// https: true
|
|
// https: true
|
|
|
|
|
+
|
|
|
open: true, // opens browser window automatically
|
|
open: true, // opens browser window automatically
|
|
|
},
|
|
},
|
|
|
|
|
|
|
|
// https://v2.quasar.dev/quasar-cli-vite/quasar-config-js#framework
|
|
// https://v2.quasar.dev/quasar-cli-vite/quasar-config-js#framework
|
|
|
|
|
+
|
|
|
framework: {
|
|
framework: {
|
|
|
lang: "pt-BR",
|
|
lang: "pt-BR",
|
|
|
config: {
|
|
config: {
|
|
@@ -133,11 +158,13 @@ export default configure((ctx) => {
|
|
|
// directives: [],
|
|
// directives: [],
|
|
|
|
|
|
|
|
// Quasar plugins
|
|
// Quasar plugins
|
|
|
|
|
+
|
|
|
plugins: ["Dialog", "Notify", "Loading", "Cookies", "Dark"],
|
|
plugins: ["Dialog", "Notify", "Loading", "Cookies", "Dark"],
|
|
|
},
|
|
},
|
|
|
|
|
|
|
|
// animations: 'all', // --- includes all animations
|
|
// animations: 'all', // --- includes all animations
|
|
|
// https://v2.quasar.dev/options/animations
|
|
// https://v2.quasar.dev/options/animations
|
|
|
|
|
+
|
|
|
animations: [],
|
|
animations: [],
|
|
|
|
|
|
|
|
// https://v2.quasar.dev/quasar-cli-vite/quasar-config-js#property-sourcefiles
|
|
// https://v2.quasar.dev/quasar-cli-vite/quasar-config-js#property-sourcefiles
|
|
@@ -154,8 +181,10 @@ export default configure((ctx) => {
|
|
|
// },
|
|
// },
|
|
|
|
|
|
|
|
// https://v2.quasar.dev/quasar-cli-vite/developing-ssr/configuring-ssr
|
|
// https://v2.quasar.dev/quasar-cli-vite/developing-ssr/configuring-ssr
|
|
|
|
|
+
|
|
|
ssr: {
|
|
ssr: {
|
|
|
prodPort: 3000, // The default port that the production server should use
|
|
prodPort: 3000, // The default port that the production server should use
|
|
|
|
|
+
|
|
|
// (gets superseded if process.env.PORT is specified at runtime)
|
|
// (gets superseded if process.env.PORT is specified at runtime)
|
|
|
|
|
|
|
|
middlewares: [
|
|
middlewares: [
|
|
@@ -180,8 +209,10 @@ export default configure((ctx) => {
|
|
|
},
|
|
},
|
|
|
|
|
|
|
|
// https://v2.quasar.dev/quasar-cli-vite/developing-pwa/configuring-pwa
|
|
// https://v2.quasar.dev/quasar-cli-vite/developing-pwa/configuring-pwa
|
|
|
|
|
+
|
|
|
pwa: {
|
|
pwa: {
|
|
|
workboxMode: "GenerateSW", // 'GenerateSW' or 'InjectManifest'
|
|
workboxMode: "GenerateSW", // 'GenerateSW' or 'InjectManifest'
|
|
|
|
|
+
|
|
|
// swFilename: 'sw.js',
|
|
// swFilename: 'sw.js',
|
|
|
// manifestFilename: 'manifest.json'
|
|
// manifestFilename: 'manifest.json'
|
|
|
// extendManifestJson (json) {},
|
|
// extendManifestJson (json) {},
|
|
@@ -193,16 +224,19 @@ export default configure((ctx) => {
|
|
|
},
|
|
},
|
|
|
|
|
|
|
|
// Full list of options: https://v2.quasar.dev/quasar-cli-vite/developing-cordova-apps/configuring-cordova
|
|
// Full list of options: https://v2.quasar.dev/quasar-cli-vite/developing-cordova-apps/configuring-cordova
|
|
|
|
|
+
|
|
|
cordova: {
|
|
cordova: {
|
|
|
// noIosLegacyBuildFlag: true, // uncomment only if you know what you are doing
|
|
// noIosLegacyBuildFlag: true, // uncomment only if you know what you are doing
|
|
|
},
|
|
},
|
|
|
|
|
|
|
|
// Full list of options: https://v2.quasar.dev/quasar-cli-vite/developing-capacitor-apps/configuring-capacitor
|
|
// Full list of options: https://v2.quasar.dev/quasar-cli-vite/developing-capacitor-apps/configuring-capacitor
|
|
|
|
|
+
|
|
|
capacitor: {
|
|
capacitor: {
|
|
|
hideSplashscreen: true,
|
|
hideSplashscreen: true,
|
|
|
},
|
|
},
|
|
|
|
|
|
|
|
// Full list of options: https://v2.quasar.dev/quasar-cli-vite/developing-electron-apps/configuring-electron
|
|
// Full list of options: https://v2.quasar.dev/quasar-cli-vite/developing-electron-apps/configuring-electron
|
|
|
|
|
+
|
|
|
electron: {
|
|
electron: {
|
|
|
// extendElectronMainConf (esbuildConf) {},
|
|
// extendElectronMainConf (esbuildConf) {},
|
|
|
// extendElectronPreloadConf (esbuildConf) {},
|
|
// extendElectronPreloadConf (esbuildConf) {},
|
|
@@ -210,9 +244,11 @@ export default configure((ctx) => {
|
|
|
// extendPackageJson (json) {},
|
|
// extendPackageJson (json) {},
|
|
|
|
|
|
|
|
// Electron preload scripts (if any) from /src-electron, WITHOUT file extension
|
|
// Electron preload scripts (if any) from /src-electron, WITHOUT file extension
|
|
|
|
|
+
|
|
|
preloadScripts: ["electron-preload"],
|
|
preloadScripts: ["electron-preload"],
|
|
|
|
|
|
|
|
// specify the debugging port to use for the Electron app when running in development mode
|
|
// specify the debugging port to use for the Electron app when running in development mode
|
|
|
|
|
+
|
|
|
inspectPort: 5858,
|
|
inspectPort: 5858,
|
|
|
|
|
|
|
|
bundler: "packager", // 'packager' or 'builder'
|
|
bundler: "packager", // 'packager' or 'builder'
|
|
@@ -236,6 +272,7 @@ export default configure((ctx) => {
|
|
|
},
|
|
},
|
|
|
|
|
|
|
|
// Full list of options: https://v2.quasar.dev/quasar-cli-vite/developing-browser-extensions/configuring-bex
|
|
// Full list of options: https://v2.quasar.dev/quasar-cli-vite/developing-browser-extensions/configuring-bex
|
|
|
|
|
+
|
|
|
bex: {
|
|
bex: {
|
|
|
// extendBexScriptsConf (esbuildConf) {},
|
|
// extendBexScriptsConf (esbuildConf) {},
|
|
|
// extendBexManifestJson (json) {},
|
|
// extendBexManifestJson (json) {},
|