Skip to content

Commit 894e336

Browse files
committed
build: updated browserlist config and astro version
1 parent 2cf795e commit 894e336

319 files changed

Lines changed: 1649 additions & 2146 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

bundles/all/.browserslistrc

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1 @@
1-
since 2021
2-
not dead
1+
extends @tsparticles/browserslist-config

bundles/basic/.browserslistrc

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1 @@
1-
since 2021
2-
not dead
1+
extends @tsparticles/browserslist-config

bundles/confetti/.browserslistrc

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1 @@
1-
since 2021
2-
not dead
1+
extends @tsparticles/browserslist-config

bundles/fireworks/.browserslistrc

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1 @@
1-
since 2021
2-
not dead
1+
extends @tsparticles/browserslist-config

bundles/full/.browserslistrc

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1 @@
1-
since 2021
2-
not dead
1+
extends @tsparticles/browserslist-config

bundles/pjs/.browserslistrc

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1 @@
1-
since 2021
2-
not dead
1+
extends @tsparticles/browserslist-config

bundles/slim/.browserslistrc

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1 @@
1-
since 2021
2-
not dead
1+
extends @tsparticles/browserslist-config

demo/astro/package.json

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,13 @@
1212
"astro": "astro"
1313
},
1414
"dependencies": {
15-
"astro": "^2.6.4",
1615
"@tsparticles/astro": "workspace:^",
17-
"tsparticles": "workspace:^",
18-
"@tsparticles/engine": "workspace:^"
16+
"@tsparticles/engine": "workspace:^",
17+
"astro": "^6.1.6",
18+
"tsparticles": "workspace:^"
19+
},
20+
"devDependencies": {
21+
"@astrojs/check": "^0.9.8",
22+
"typescript": "^5.9.3"
1923
}
2024
}

demo/astro/src/pages/index.astro

Lines changed: 13 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,20 @@
11
---
2-
import Particles from "@tsparticles/astro";
2+
import Particles, { initParticlesEngine } from "@tsparticles/astro";
3+
import type { ISourceOptions } from "@tsparticles/engine";
4+
import { loadFull } from "tsparticles";
5+
36
import Layout from "../layouts/Layout.astro";
47
import Card from "../components/Card.astro";
5-
import type { ISourceOptions } from "@tsparticles/engine";
68
7-
const options = {
9+
await initParticlesEngine(async (engine) => {
10+
await loadFull(engine);
11+
});
12+
13+
const options: ISourceOptions = {
814
background: {
9-
color: "#fff"
15+
color: {
16+
value: "#fff"
17+
}
1018
},
1119
fullScreen: {
1220
zIndex: -1
@@ -29,18 +37,9 @@ const options = {
2937
};
3038
---
3139

32-
<script>
33-
import { type Engine, tsParticles } from "@tsparticles/engine";
34-
import { loadFull } from "tsparticles";
35-
36-
window.particlesInit = async (engine: Engine) => {
37-
await loadFull(engine);
38-
};
39-
</script>
40-
4140
<Layout title="Welcome to Astro.">
4241
<main>
43-
<Particles id="tsparticles" options={options} init="particlesInit" />
42+
<Particles id="tsparticles" options={options} />
4443
<h1>Welcome to <span class="text-gradient">Astro</span></h1>
4544
<p class="instructions">
4645
To get started, open the directory <code>src/pages</code> in your project.<br />

effects/bubble/.browserslistrc

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1 @@
1-
since 2021
2-
not dead
1+
extends @tsparticles/browserslist-config

0 commit comments

Comments
 (0)