@bildvitta/quasar-app-extension-asteroid 3.20.0-beta.21 → 3.20.0-beta.21-alpha.0
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 +2 -2
- package/src/helpers/laravel-echo.js +1 -0
- package/src/index.js +26 -55
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bildvitta/quasar-app-extension-asteroid",
|
|
3
3
|
"description": "Asteroid",
|
|
4
|
-
"version": "3.20.0-beta.21",
|
|
4
|
+
"version": "3.20.0-beta.21-alpha.0",
|
|
5
5
|
"author": "Bild & Vitta <systemteam@bild.com.br>",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"main": "src/index.js",
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
},
|
|
36
36
|
"dependencies": {
|
|
37
37
|
"@bildvitta/quasar-app-extension-asteroid": "file:",
|
|
38
|
-
"@bildvitta/quasar-ui-asteroid": "3.20.0-beta.21",
|
|
38
|
+
"@bildvitta/quasar-ui-asteroid": "3.20.0-beta.21-alpha.0",
|
|
39
39
|
"@bildvitta/store-adapter": "^1.0.0",
|
|
40
40
|
"execa": "^7.1.1",
|
|
41
41
|
"fontfaceobserver": "^2.3.0",
|
|
@@ -24,6 +24,7 @@ export function setLaravelEcho (accessToken) {
|
|
|
24
24
|
encrypted: true,
|
|
25
25
|
cluster: isLocal ? 'mt1' : 'eu',
|
|
26
26
|
authEndpoint: `${process.env.SERVER_BASE_URL}/broadcasting/auth`,
|
|
27
|
+
enabledTransports: ['ws', 'wss'],
|
|
27
28
|
auth: {
|
|
28
29
|
headers: {
|
|
29
30
|
Authorization: accessToken
|
package/src/index.js
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import asteroidConfigHandler from './helpers/asteroid-config-handler.js'
|
|
2
2
|
|
|
3
3
|
import ComponentsVite from 'unplugin-vue-components/vite'
|
|
4
|
-
import ComponentsWebpack from 'unplugin-vue-components/webpack'
|
|
5
4
|
import { pathToFileURL } from 'url'
|
|
6
5
|
|
|
7
6
|
const sourcePath = '~@bildvitta/quasar-app-extension-asteroid/src/'
|
|
@@ -28,19 +27,6 @@ function extendQuasar (quasar, api, asteroidConfigFile) {
|
|
|
28
27
|
quasar.boot.push(...resolve('boot/notifications'))
|
|
29
28
|
}
|
|
30
29
|
|
|
31
|
-
// Transpilação de arquivos!
|
|
32
|
-
if (api.hasWebpack) {
|
|
33
|
-
const transpileTarget = (
|
|
34
|
-
quasar.build.webpackTranspileDependencies || // q/app-webpack >= v4
|
|
35
|
-
quasar.build.transpileDependencies // q/app-webpack v3
|
|
36
|
-
)
|
|
37
|
-
|
|
38
|
-
transpileTarget.push(
|
|
39
|
-
/quasar-app-extension-asteroid[\\/]src/,
|
|
40
|
-
/@bildvitta[\\/]quasar-ui-asteroid[\\/]src/
|
|
41
|
-
)
|
|
42
|
-
}
|
|
43
|
-
|
|
44
30
|
// Adiciona todas classes do asteroid
|
|
45
31
|
quasar.css.push(...resolve('index.scss'))
|
|
46
32
|
|
|
@@ -74,7 +60,7 @@ function extendQuasar (quasar, api, asteroidConfigFile) {
|
|
|
74
60
|
|
|
75
61
|
export default async function (api) {
|
|
76
62
|
api.compatibleWith('quasar', '^2.0.0')
|
|
77
|
-
api.compatibleWith('date-fns', '^
|
|
63
|
+
api.compatibleWith('date-fns', '^4.1.0')
|
|
78
64
|
|
|
79
65
|
const asteroid = 'node_modules/@bildvitta/quasar-ui-asteroid/src/asteroid.js'
|
|
80
66
|
const asteroidComponents = 'node_modules/@bildvitta/quasar-ui-asteroid/src/components'
|
|
@@ -91,10 +77,11 @@ export default async function (api) {
|
|
|
91
77
|
const { default: asteroidConfigFile } = await import(pathToFileURL(asteroidConfigPath).href)
|
|
92
78
|
|
|
93
79
|
const unpluginVueComponentsConfig = {
|
|
94
|
-
dirs: [api.resolve.app(asteroidComponents)],
|
|
80
|
+
dirs: [api.resolve.app(asteroidComponents)],
|
|
95
81
|
extensions: ['vue'],
|
|
96
82
|
deep: true,
|
|
97
|
-
dts: false
|
|
83
|
+
dts: false,
|
|
84
|
+
include: [/\.vue$/, /\.vue\?vue/]
|
|
98
85
|
}
|
|
99
86
|
|
|
100
87
|
const alias = {
|
|
@@ -105,44 +92,28 @@ export default async function (api) {
|
|
|
105
92
|
quasar: api.resolve.app(quasar)
|
|
106
93
|
}
|
|
107
94
|
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
viteConf.plugins.push(ComponentsVite(unpluginVueComponentsConfig))
|
|
131
|
-
})
|
|
132
|
-
|
|
133
|
-
api.extendQuasarConf(quasar => extendQuasar(quasar, api, asteroidConfigFile))
|
|
134
|
-
|
|
135
|
-
return
|
|
136
|
-
}
|
|
137
|
-
|
|
138
|
-
api.compatibleWith('@quasar/app', '^3.10.0 || ^4.0.0')
|
|
139
|
-
|
|
140
|
-
api.extendWebpack(webpack => {
|
|
141
|
-
Object.assign(webpack.resolve.alias, alias)
|
|
142
|
-
|
|
143
|
-
// Adiciona o plugin de componentes
|
|
144
|
-
webpack.plugins = webpack.plugins || []
|
|
145
|
-
webpack.plugins.push(ComponentsWebpack(unpluginVueComponentsConfig))
|
|
95
|
+
api.compatibleWith('@quasar/app-vite', '^2.0.0')
|
|
96
|
+
|
|
97
|
+
api.extendViteConf(viteConf => {
|
|
98
|
+
Object.assign(viteConf.resolve.alias, alias)
|
|
99
|
+
|
|
100
|
+
// optimizeDeps (necessário para funcionamento do QasMap)
|
|
101
|
+
viteConf.optimizeDeps = viteConf.optimizeDeps || {}
|
|
102
|
+
viteConf.optimizeDeps.include = viteConf.optimizeDeps.include || []
|
|
103
|
+
viteConf.optimizeDeps.include.push(...[
|
|
104
|
+
'@fawmi/vue-google-maps',
|
|
105
|
+
'fast-deep-equal',
|
|
106
|
+
'humps',
|
|
107
|
+
'debug',
|
|
108
|
+
'pica',
|
|
109
|
+
'hammerjs',
|
|
110
|
+
'lodash-es',
|
|
111
|
+
'date-fns',
|
|
112
|
+
'date-fns/locale'
|
|
113
|
+
])
|
|
114
|
+
|
|
115
|
+
viteConf.plugins = viteConf.plugins || []
|
|
116
|
+
viteConf.plugins.push(ComponentsVite(unpluginVueComponentsConfig))
|
|
146
117
|
})
|
|
147
118
|
|
|
148
119
|
api.extendQuasarConf(quasar => extendQuasar(quasar, api, asteroidConfigFile))
|