Skip to content

Commit 7a82677

Browse files
committed
upgrade quasar, add shim for process
1 parent d3afb82 commit 7a82677

File tree

6 files changed

+893
-3429
lines changed

6 files changed

+893
-3429
lines changed

package.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,16 @@
1212
"dependencies": {
1313
"@quasar/extras": "^1.10.4",
1414
"axios": "^0.21.1",
15+
"buffer": "^6.0.3",
1516
"core-js": "^3.6.5",
1617
"overmind": "^27.0.0",
1718
"overmind-vue": "^27.0.0",
18-
"quasar": "^2.0.0-beta.12",
19+
"process": "^0.11.10",
20+
"quasar": "^2.0.0-beta.13",
1921
"vue-i18n": "^9.0.0-beta.0"
2022
},
2123
"devDependencies": {
22-
"@quasar/app": "^3.0.0-beta.15",
24+
"@quasar/app": "^3.0.0-beta.17",
2325
"@types/node": "^14.14.37",
2426
"@typescript-eslint/eslint-plugin": "^4.21.0",
2527
"@typescript-eslint/parser": "^4.21.0",

src/boot/overmind.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import '../shims';
12
import { boot } from 'quasar/wrappers';
23
import { config } from '../overmind';
34
import { createOvermind } from 'overmind';

src/pages/Index.vue

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<template>
22
<q-page class="row items-center justify-evenly">
3-
<HelloWorld/>
3+
<HelloWorld />
44
</q-page>
55
</template>
66

@@ -9,10 +9,8 @@ import HelloWorld from 'components/HelloWorld.vue';
99
1010
import { defineComponent } from 'vue';
1111
12-
1312
export default defineComponent({
1413
name: 'PageIndex',
1514
components: { HelloWorld },
16-
1715
});
1816
</script>

src/shims-vue.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@ declare module '*.vue' {
33
import { ComponentOptions } from 'vue'
44
const component: ComponentOptions
55
export default component
6-
}
6+
}

src/shims.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
import * as process from 'process';
2+
3+
import { Buffer } from 'buffer';
4+
5+
Object.assign(self, {
6+
process,
7+
global: self,
8+
Buffer,
9+
});

0 commit comments

Comments
 (0)