Skip to content

Commit 005f447

Browse files
committed
build: fixed nuxt3 demo
1 parent 6092c68 commit 005f447

File tree

3 files changed

+1003
-397
lines changed

3 files changed

+1003
-397
lines changed

apps/nuxt3/app.vue

Lines changed: 45 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -1,51 +1,55 @@
11
<template>
2-
<div>
3-
<NuxtWelcome />
4-
<Particles
5-
id="tsparticles"
6-
:options="options"
7-
:particles-init="particlesInit"
8-
/>
9-
</div>
2+
<div>
3+
<NuxtWelcome />
4+
<Particles
5+
id="tsparticles"
6+
:options="options"
7+
:particles-init="particlesInit"
8+
/>
9+
</div>
1010
</template>
1111
<script>
12-
import { loadFull } from 'tsparticles'
12+
import { loadFull } from "tsparticles";
13+
1314
export default {
14-
name: 'NuxtTutorial',
15-
data() {
16-
return {
17-
options: {
18-
background: {
19-
color: '#fff',
20-
},
21-
fullScreen: {
22-
enable: true,
23-
zIndex: -1,
24-
},
25-
particles: {
26-
color: {
27-
value: '#000',
28-
},
29-
links: {
30-
color: '#000',
31-
enable: true,
32-
},
33-
move: {
34-
enable: true,
35-
},
36-
},
37-
},
38-
}
39-
},
40-
methods: {
41-
particlesInit: async (engine) => {
42-
await loadFull(engine)
15+
name: "NuxtTutorial",
16+
data() {
17+
return {
18+
options: {
19+
background: {
20+
color: "#fff"
21+
},
22+
fullScreen: {
23+
enable: true,
24+
zIndex: -1
25+
},
26+
particles: {
27+
color: {
28+
value: "#000"
29+
},
30+
links: {
31+
color: "#000",
32+
enable: true
33+
},
34+
move: {
35+
enable: true
36+
},
37+
number: {
38+
value: 100
39+
}
40+
}
41+
}
42+
};
4343
},
44-
},
45-
}
44+
methods: {
45+
particlesInit: async (engine) => {
46+
await loadFull(engine);
47+
}
48+
}
49+
};
4650
</script>
4751
<style>
4852
.bg-white {
49-
background: none !important;
53+
background: none !important;
5054
}
5155
</style>

apps/nuxt3/package.json

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,18 +22,23 @@
2222
"@commitlint/cli": "^17.6.3",
2323
"@commitlint/config-conventional": "^17.6.3",
2424
"@nuxtjs/eslint-config": "^12.0.0",
25-
"@nuxtjs/eslint-module": "^4.0.2",
26-
"eslint": "^8.40.0",
25+
"@nuxtjs/eslint-module": "^4.1.0",
26+
"@vue/reactivity": "^3.3.4",
27+
"@vue/runtime-core": "^3.3.4",
28+
"@vue/runtime-dom": "^3.3.4",
29+
"@vue/shared": "^3.3.4",
30+
"consola": "^3.1.0",
31+
"eslint": "^8.41.0",
2732
"eslint-config-prettier": "^8.8.0",
2833
"eslint-plugin-nuxt": "^4.0.0",
29-
"eslint-plugin-vue": "^9.11.1",
34+
"eslint-plugin-vue": "^9.14.0",
3035
"lint-staged": "^13.2.2",
31-
"nuxt": "^3.4.3",
36+
"nuxt": "^3.5.1",
3237
"prettier": "^2.8.8",
3338
"tsparticles": "^2.9.3",
3439
"typescript": "^5.0.4",
35-
"vue": "^3.2.47",
40+
"vue": "^3.3.4",
3641
"vue3-particles": "^2.9.3",
37-
"webpack": "^5.82.0"
42+
"webpack": "^5.84.0"
3843
}
3944
}

0 commit comments

Comments
 (0)