@tsparticles/template-scaffold 4.1.3 → 4.2.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.
Files changed (162) hide show
  1. package/CHANGELOG.md +10 -0
  2. package/README.md +3 -0
  3. package/package.json +4 -3
  4. package/template/angular/LICENSE +21 -0
  5. package/template/angular-confetti/.browserslistrc +6 -0
  6. package/template/angular-confetti/.editorconfig +9 -0
  7. package/template/angular-confetti/LICENSE +21 -0
  8. package/template/angular-confetti/README.md +10 -0
  9. package/template/angular-confetti/angular.json +53 -0
  10. package/template/angular-confetti/gitignore +17 -0
  11. package/template/angular-confetti/package.json +34 -0
  12. package/template/angular-confetti/src/app/app.component.css +15 -0
  13. package/template/angular-confetti/src/app/app.component.html +4 -0
  14. package/template/angular-confetti/src/app/app.component.ts +27 -0
  15. package/template/angular-confetti/src/app/app.module.ts +12 -0
  16. package/template/angular-confetti/src/index.html +12 -0
  17. package/template/angular-confetti/src/main.ts +6 -0
  18. package/template/angular-confetti/src/polyfills.ts +1 -0
  19. package/template/angular-confetti/src/styles.css +5 -0
  20. package/template/angular-confetti/tsconfig.app.json +9 -0
  21. package/template/angular-confetti/tsconfig.json +29 -0
  22. package/template/angular-confetti/tsconfig.spec.json +8 -0
  23. package/template/angular-fireworks/.browserslistrc +6 -0
  24. package/template/angular-fireworks/.editorconfig +9 -0
  25. package/template/angular-fireworks/LICENSE +21 -0
  26. package/template/angular-fireworks/README.md +10 -0
  27. package/template/angular-fireworks/angular.json +53 -0
  28. package/template/angular-fireworks/gitignore +17 -0
  29. package/template/angular-fireworks/package.json +34 -0
  30. package/template/angular-fireworks/src/app/app.component.css +15 -0
  31. package/template/angular-fireworks/src/app/app.component.html +4 -0
  32. package/template/angular-fireworks/src/app/app.component.ts +29 -0
  33. package/template/angular-fireworks/src/app/app.module.ts +12 -0
  34. package/template/angular-fireworks/src/index.html +12 -0
  35. package/template/angular-fireworks/src/main.ts +6 -0
  36. package/template/angular-fireworks/src/polyfills.ts +1 -0
  37. package/template/angular-fireworks/src/styles.css +5 -0
  38. package/template/angular-fireworks/tsconfig.app.json +9 -0
  39. package/template/angular-fireworks/tsconfig.json +29 -0
  40. package/template/angular-fireworks/tsconfig.spec.json +8 -0
  41. package/template/astro/LICENSE +21 -0
  42. package/template/astro/README.md +10 -0
  43. package/template/astro/gitignore +14 -0
  44. package/template/astro/package.json +21 -0
  45. package/template/astro/src/pages/index.astro +35 -0
  46. package/template/ember/LICENSE +21 -0
  47. package/template/ember/README.md +10 -0
  48. package/template/ember/app/controllers/application.js +35 -0
  49. package/template/ember/app/templates/application.hbs +14 -0
  50. package/template/ember/gitignore +14 -0
  51. package/template/ember/package.json +41 -0
  52. package/template/inferno/LICENSE +21 -0
  53. package/template/inferno/README.md +10 -0
  54. package/template/inferno/gitignore +14 -0
  55. package/template/inferno/index.html +12 -0
  56. package/template/inferno/package.json +23 -0
  57. package/template/inferno/src/App.tsx +37 -0
  58. package/template/inferno/src/main.tsx +4 -0
  59. package/template/inferno/tsconfig.json +17 -0
  60. package/template/inferno/vite.config.ts +11 -0
  61. package/template/jquery/LICENSE +21 -0
  62. package/template/jquery/README.md +10 -0
  63. package/template/jquery/gitignore +14 -0
  64. package/template/jquery/index.html +15 -0
  65. package/template/jquery/package.json +19 -0
  66. package/template/jquery/src/main.ts +31 -0
  67. package/template/jquery/src/style.css +22 -0
  68. package/template/jquery/tsconfig.json +19 -0
  69. package/template/jquery/vite.config.ts +5 -0
  70. package/template/lit/LICENSE +21 -0
  71. package/template/lit/README.md +10 -0
  72. package/template/lit/gitignore +14 -0
  73. package/template/lit/index.html +15 -0
  74. package/template/lit/package.json +19 -0
  75. package/template/lit/src/main.ts +8 -0
  76. package/template/lit/src/my-app.ts +34 -0
  77. package/template/lit/src/style.css +21 -0
  78. package/template/lit/tsconfig.json +20 -0
  79. package/template/lit/vite.config.ts +5 -0
  80. package/template/nextjs/LICENSE +21 -0
  81. package/template/nextjs/README.md +10 -0
  82. package/template/nextjs/gitignore +14 -0
  83. package/template/nextjs/package.json +24 -0
  84. package/template/nextjs/src/app/layout.tsx +16 -0
  85. package/template/nextjs/src/app/page.tsx +30 -0
  86. package/template/nextjs/src/app/providers.tsx +13 -0
  87. package/template/nuxt2/LICENSE +21 -0
  88. package/template/nuxt2/README.md +10 -0
  89. package/template/nuxt2/gitignore +14 -0
  90. package/template/nuxt2/nuxt.config.js +3 -0
  91. package/template/nuxt2/package.json +16 -0
  92. package/template/nuxt2/pages/index.vue +43 -0
  93. package/template/nuxt3/LICENSE +21 -0
  94. package/template/nuxt3/README.md +10 -0
  95. package/template/nuxt3/app.vue +36 -0
  96. package/template/nuxt3/gitignore +14 -0
  97. package/template/nuxt3/nuxt.config.ts +3 -0
  98. package/template/nuxt3/package.json +20 -0
  99. package/template/nuxt4/LICENSE +21 -0
  100. package/template/nuxt4/README.md +10 -0
  101. package/template/nuxt4/app.vue +36 -0
  102. package/template/nuxt4/gitignore +14 -0
  103. package/template/nuxt4/nuxt.config.ts +3 -0
  104. package/template/nuxt4/package.json +20 -0
  105. package/template/preact/LICENSE +21 -0
  106. package/template/preact/README.md +10 -0
  107. package/template/preact/gitignore +14 -0
  108. package/template/preact/index.html +12 -0
  109. package/template/preact/package.json +20 -0
  110. package/template/preact/src/App.tsx +43 -0
  111. package/template/preact/src/main.tsx +5 -0
  112. package/template/preact/src/style.css +21 -0
  113. package/template/preact/tsconfig.json +21 -0
  114. package/template/preact/vite.config.ts +7 -0
  115. package/template/qwik/LICENSE +21 -0
  116. package/template/qwik/README.md +10 -0
  117. package/template/qwik/gitignore +14 -0
  118. package/template/qwik/index.html +12 -0
  119. package/template/qwik/package.json +19 -0
  120. package/template/qwik/src/App.tsx +43 -0
  121. package/template/qwik/src/main.tsx +4 -0
  122. package/template/qwik/src/style.css +21 -0
  123. package/template/qwik/tsconfig.json +20 -0
  124. package/template/qwik/vite.config.ts +7 -0
  125. package/template/react/LICENSE +21 -0
  126. package/template/riot/LICENSE +21 -0
  127. package/template/riot/README.md +10 -0
  128. package/template/riot/gitignore +14 -0
  129. package/template/riot/index.html +12 -0
  130. package/template/riot/package.json +21 -0
  131. package/template/riot/src/app.riot +66 -0
  132. package/template/riot/src/main.ts +5 -0
  133. package/template/riot/src/style.css +21 -0
  134. package/template/riot/tsconfig.json +19 -0
  135. package/template/riot/vite.config.ts +7 -0
  136. package/template/solid/LICENSE +21 -0
  137. package/template/stencil/LICENSE +21 -0
  138. package/template/stencil/README.md +10 -0
  139. package/template/stencil/gitignore +14 -0
  140. package/template/stencil/package.json +19 -0
  141. package/template/stencil/src/components/app-home/app-home.tsx +47 -0
  142. package/template/svelte/LICENSE +21 -0
  143. package/template/vanilla/LICENSE +21 -0
  144. package/template/vue2/LICENSE +21 -0
  145. package/template/vue2/README.md +10 -0
  146. package/template/vue2/gitignore +14 -0
  147. package/template/vue2/index.html +12 -0
  148. package/template/vue2/package.json +21 -0
  149. package/template/vue2/src/App.vue +65 -0
  150. package/template/vue2/src/main.ts +14 -0
  151. package/template/vue2/tsconfig.json +19 -0
  152. package/template/vue2/vite.config.ts +7 -0
  153. package/template/vue3/LICENSE +21 -0
  154. package/template/webcomponents/LICENSE +21 -0
  155. package/template/webcomponents/README.md +10 -0
  156. package/template/webcomponents/gitignore +14 -0
  157. package/template/webcomponents/index.html +15 -0
  158. package/template/webcomponents/package.json +18 -0
  159. package/template/webcomponents/src/main.ts +9 -0
  160. package/template/webcomponents/src/style.css +22 -0
  161. package/template/webcomponents/tsconfig.json +19 -0
  162. package/template/webcomponents/vite.config.ts +5 -0
@@ -0,0 +1,29 @@
1
+ {
2
+ "compileOnSave": false,
3
+ "compilerOptions": {
4
+ "baseUrl": "./",
5
+ "outDir": "./dist/out-tsc",
6
+ "ignoreDeprecations": "6.0",
7
+ "forceConsistentCasingInFileNames": true,
8
+ "strict": true,
9
+ "noImplicitOverride": true,
10
+ "noPropertyAccessFromIndexSignature": true,
11
+ "noImplicitReturns": true,
12
+ "noFallthroughCasesInSwitch": true,
13
+ "sourceMap": true,
14
+ "declaration": false,
15
+ "downlevelIteration": true,
16
+ "experimentalDecorators": true,
17
+ "moduleResolution": "bundler",
18
+ "importHelpers": true,
19
+ "target": "ES2022",
20
+ "module": "ES2022",
21
+ "lib": ["ES2022", "dom"]
22
+ },
23
+ "angularCompilerOptions": {
24
+ "enableI18nLegacyMessageIdFormat": false,
25
+ "strictInjectionParameters": true,
26
+ "strictInputAccessModifiers": true,
27
+ "strictTemplates": true
28
+ }
29
+ }
@@ -0,0 +1,8 @@
1
+ {
2
+ "extends": "./tsconfig.json",
3
+ "compilerOptions": {
4
+ "outDir": "./out-tsc/spec",
5
+ "types": ["jasmine"]
6
+ },
7
+ "include": ["src/**/*.spec.ts", "src/**/*.d.ts"]
8
+ }
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2020 Matteo Bruni
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1,10 @@
1
+ # {{projectName}}
2
+
3
+ A tsParticles Astro project scaffolded with [tsparticles-create](https://github.com/tsparticles/tsparticles).
4
+
5
+ ## Getting started
6
+
7
+ ```bash
8
+ npm install
9
+ npm run dev
10
+ ```
@@ -0,0 +1,14 @@
1
+ # dependencies
2
+ /node_modules
3
+
4
+ # production
5
+ /dist
6
+
7
+ # misc
8
+ .DS_Store
9
+ *.local
10
+
11
+ # debug
12
+ npm-debug.log*
13
+ yarn-debug.log*
14
+ yarn-error.log*
@@ -0,0 +1,21 @@
1
+ {
2
+ "name": "{{projectName}}",
3
+ "private": true,
4
+ "version": "1.0.0",
5
+ "type": "module",
6
+ "scripts": {
7
+ "dev": "astro dev",
8
+ "build": "astro build",
9
+ "preview": "astro preview"
10
+ },
11
+ "dependencies": {
12
+ "@astrojs/check": "^0.9.4",
13
+ "astro": "^5.7.10",
14
+ "@tsparticles/astro": "^4.1.3",
15
+ "@tsparticles/engine": "^4.1.3",
16
+ "@tsparticles/slim": "^4.1.3"
17
+ },
18
+ "devDependencies": {
19
+ "typescript": "^6.0.3"
20
+ }
21
+ }
@@ -0,0 +1,35 @@
1
+ ---
2
+ import { initParticlesEngine } from "@tsparticles/astro";
3
+ import { loadSlim } from "@tsparticles/slim";
4
+
5
+ const id = "tsparticles";
6
+
7
+ // On the server, just defer to the client component.
8
+ // The init script below runs client-side.
9
+ ---
10
+ <html lang="en">
11
+ <head>
12
+ <meta charset="utf-8" />
13
+ <meta name="viewport" content="width=device-width, initial-scale=1" />
14
+ <title>{{projectName}}</title>
15
+ <style>
16
+ body { margin: 0; overflow: hidden; font-family: Inter, system-ui, Avenir, Helvetica, Arial, sans-serif; }
17
+ #app { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); z-index: 10; text-align: center; color: #fff; pointer-events: none; }
18
+ h1 { font-size: 3.2em; text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5); }
19
+ </style>
20
+ </head>
21
+ <body>
22
+ <div id="app">
23
+ <h1>Hello, tsParticles!</h1>
24
+ </div>
25
+ </body>
26
+ </html>
27
+
28
+ <script>
29
+ import { initParticlesEngine } from "@tsparticles/astro";
30
+ import { loadSlim } from "@tsparticles/slim";
31
+
32
+ await initParticlesEngine(async (engine) => {
33
+ await loadSlim(engine);
34
+ });
35
+ </script>
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2020 Matteo Bruni
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1,10 @@
1
+ # {{projectName}}
2
+
3
+ A tsParticles Ember project scaffolded with [tsparticles-create](https://github.com/tsparticles/tsparticles).
4
+
5
+ ## Getting started
6
+
7
+ ```bash
8
+ npm install
9
+ npm run dev
10
+ ```
@@ -0,0 +1,35 @@
1
+ import Controller from "@ember/controller";
2
+ import { action } from "@ember/object";
3
+ import { initParticlesEngine } from "@tsparticles/ember";
4
+ import { loadSlim } from "@tsparticles/slim";
5
+
6
+ export default class ApplicationController extends Controller {
7
+ options = {
8
+ fullScreen: { enable: true, zIndex: -1 },
9
+ background: { color: { value: "#1a1a2e" } },
10
+ fpsLimit: 60,
11
+ particles: {
12
+ number: { value: 80, density: { enable: true } },
13
+ color: { value: ["#6c5ce7", "#a29bfe", "#fd79a8"] },
14
+ shape: { type: "circle" },
15
+ opacity: { value: 0.5, random: true },
16
+ size: { value: { min: 1, max: 4 }, random: true },
17
+ move: {
18
+ enable: true,
19
+ speed: 2,
20
+ direction: "none",
21
+ random: false,
22
+ straight: false,
23
+ outModes: { default: "out" },
24
+ },
25
+ },
26
+ detectRetina: true,
27
+ };
28
+
29
+ @action
30
+ async initParticles() {
31
+ await initParticlesEngine(async (engine) => {
32
+ await loadSlim(engine);
33
+ });
34
+ }
35
+ }
@@ -0,0 +1,14 @@
1
+ <div id="particles-container" {{did-insert this.initParticles}} {{particles options=this.options}}>
2
+ </div>
3
+
4
+ <div id="app">
5
+ <h1>Hello, tsParticles!</h1>
6
+ </div>
7
+
8
+ {{outlet}}
9
+
10
+ <style>
11
+ body { margin: 0; overflow: hidden; font-family: Inter, system-ui, Avenir, Helvetica, Arial, sans-serif; }
12
+ #app { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); z-index: 10; text-align: center; color: #fff; pointer-events: none; }
13
+ h1 { font-size: 3.2em; text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5); }
14
+ </style>
@@ -0,0 +1,14 @@
1
+ # dependencies
2
+ /node_modules
3
+
4
+ # production
5
+ /dist
6
+
7
+ # misc
8
+ .DS_Store
9
+ *.local
10
+
11
+ # debug
12
+ npm-debug.log*
13
+ yarn-debug.log*
14
+ yarn-error.log*
@@ -0,0 +1,41 @@
1
+ {
2
+ "name": "{{projectName}}",
3
+ "private": true,
4
+ "version": "1.0.0",
5
+ "scripts": {
6
+ "dev": "ember serve",
7
+ "build": "ember build",
8
+ "preview": "ember serve"
9
+ },
10
+ "devDependencies": {
11
+ "@ember/optional-features": "^3.0.0",
12
+ "@glimmer/component": "^2.1.1",
13
+ "@glimmer/tracking": "^1.1.2",
14
+ "broccoli-asset-rev": "^3.0.0",
15
+ "ember-auto-import": "^2.13.1",
16
+ "ember-cli": "~6.12.0",
17
+ "ember-cli-babel": "^8.3.1",
18
+ "ember-cli-htmlbars": "^7.0.1",
19
+ "ember-cli-inject-live-reload": "^2.1.0",
20
+ "ember-cli-sri": "^2.1.1",
21
+ "ember-cli-terser": "^4.0.2",
22
+ "ember-load-initializers": "^3.0.1",
23
+ "ember-modifier": "^4.3.0",
24
+ "ember-resolver": "^13.2.0",
25
+ "ember-source": "~6.12.0",
26
+ "loader.js": "^4.7.0",
27
+ "typescript": "^6.0.3",
28
+ "webpack": "^5.106.1"
29
+ },
30
+ "dependencies": {
31
+ "@tsparticles/ember": "^4.1.3",
32
+ "@tsparticles/engine": "^4.1.3",
33
+ "@tsparticles/slim": "^4.1.3"
34
+ },
35
+ "ember": {
36
+ "edition": "octane"
37
+ },
38
+ "ember-addon": {
39
+ "configPath": "tests/dummy/config"
40
+ }
41
+ }
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2020 Matteo Bruni
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1,10 @@
1
+ # {{projectName}}
2
+
3
+ A tsParticles Inferno project scaffolded with [tsparticles-create](https://github.com/tsparticles/tsparticles).
4
+
5
+ ## Getting started
6
+
7
+ ```bash
8
+ npm install
9
+ npm run dev
10
+ ```
@@ -0,0 +1,14 @@
1
+ # dependencies
2
+ /node_modules
3
+
4
+ # production
5
+ /dist
6
+
7
+ # misc
8
+ .DS_Store
9
+ *.local
10
+
11
+ # debug
12
+ npm-debug.log*
13
+ yarn-debug.log*
14
+ yarn-error.log*
@@ -0,0 +1,12 @@
1
+ <!doctype html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset="UTF-8" />
5
+ <meta name="viewport" content="width=device-width, initial-scale=1.0" />
6
+ <title>{{projectName}}</title>
7
+ </head>
8
+ <body>
9
+ <div id="root"></div>
10
+ <script type="module" src="/src/main.tsx"></script>
11
+ </body>
12
+ </html>
@@ -0,0 +1,23 @@
1
+ {
2
+ "name": "{{projectName}}",
3
+ "private": true,
4
+ "version": "1.0.0",
5
+ "type": "module",
6
+ "scripts": {
7
+ "dev": "vite",
8
+ "build": "tsc && vite build",
9
+ "preview": "vite preview"
10
+ },
11
+ "dependencies": {
12
+ "inferno": "^9.1.0",
13
+ "@tsparticles/inferno": "^4.1.3",
14
+ "@tsparticles/engine": "^4.1.3",
15
+ "@tsparticles/slim": "^4.1.3"
16
+ },
17
+ "devDependencies": {
18
+ "typescript": "^6.0.3",
19
+ "vite": "^8.0.14",
20
+ "babel-plugin-inferno": "^6.8.5",
21
+ "vite-plugin-inferno": "^2.0.1"
22
+ }
23
+ }
@@ -0,0 +1,37 @@
1
+ import Particles, { ParticlesProvider } from "@tsparticles/inferno";
2
+ import { loadSlim } from "@tsparticles/slim";
3
+ import type { Engine } from "@tsparticles/engine";
4
+
5
+ export default function App() {
6
+ return (
7
+ <ParticlesProvider init={async (engine: Engine): Promise<void> => { await loadSlim(engine); }}>
8
+ <div id="app">
9
+ <h1>Hello, tsParticles!</h1>
10
+ </div>
11
+ <Particles
12
+ id="tsparticles"
13
+ options={{
14
+ fullScreen: { enable: true, zIndex: -1 },
15
+ background: { color: { value: "#1a1a2e" } },
16
+ fpsLimit: 60,
17
+ particles: {
18
+ number: { value: 80, density: { enable: true } },
19
+ color: { value: ["#6c5ce7", "#a29bfe", "#fd79a8"] },
20
+ shape: { type: "circle" },
21
+ opacity: { value: 0.5, random: true },
22
+ size: { value: { min: 1, max: 4 }, random: true },
23
+ move: {
24
+ enable: true,
25
+ speed: 2,
26
+ direction: "none",
27
+ random: false,
28
+ straight: false,
29
+ outModes: { default: "out" },
30
+ },
31
+ },
32
+ detectRetina: true,
33
+ }}
34
+ />
35
+ </ParticlesProvider>
36
+ );
37
+ }
@@ -0,0 +1,4 @@
1
+ import { render } from "inferno";
2
+ import App from "./App";
3
+
4
+ render(<App />, document.getElementById("root"));
@@ -0,0 +1,17 @@
1
+ {
2
+ "compilerOptions": {
3
+ "target": "ES2020",
4
+ "module": "ESNext",
5
+ "moduleResolution": "bundler",
6
+ "jsx": "preserve",
7
+ "jsxFactory": "createElement",
8
+ "strict": true,
9
+ "esModuleInterop": true,
10
+ "skipLibCheck": true,
11
+ "forceConsistentCasingInFileNames": true,
12
+ "resolveJsonModule": true,
13
+ "isolatedModules": true,
14
+ "noEmit": true
15
+ },
16
+ "include": ["src"]
17
+ }
@@ -0,0 +1,11 @@
1
+ import { defineConfig } from "vite";
2
+ import inferno from "vite-plugin-inferno";
3
+
4
+ export default defineConfig({
5
+ plugins: [inferno()],
6
+ base: "./",
7
+ esbuild: {
8
+ jsxFactory: "createElement",
9
+ jsxFragment: "Fragment",
10
+ },
11
+ });
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2020 Matteo Bruni
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1,10 @@
1
+ # {{projectName}}
2
+
3
+ A tsParticles jQuery project scaffolded with [tsparticles-create](https://github.com/tsparticles/tsparticles).
4
+
5
+ ## Getting started
6
+
7
+ ```bash
8
+ npm install
9
+ npm run dev
10
+ ```
@@ -0,0 +1,14 @@
1
+ # dependencies
2
+ /node_modules
3
+
4
+ # production
5
+ /dist
6
+
7
+ # misc
8
+ .DS_Store
9
+ *.local
10
+
11
+ # debug
12
+ npm-debug.log*
13
+ yarn-debug.log*
14
+ yarn-error.log*
@@ -0,0 +1,15 @@
1
+ <!doctype html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset="UTF-8" />
5
+ <meta name="viewport" content="width=device-width, initial-scale=1.0" />
6
+ <title>{{projectName}}</title>
7
+ </head>
8
+ <body>
9
+ <div id="app">
10
+ <h1>Hello, tsParticles!</h1>
11
+ </div>
12
+ <div id="tsparticles"></div>
13
+ <script type="module" src="/src/main.ts"></script>
14
+ </body>
15
+ </html>
@@ -0,0 +1,19 @@
1
+ {
2
+ "name": "{{projectName}}",
3
+ "private": true,
4
+ "version": "1.0.0",
5
+ "type": "module",
6
+ "scripts": {
7
+ "dev": "vite",
8
+ "build": "tsc && vite build",
9
+ "preview": "vite preview"
10
+ },
11
+ "dependencies": {
12
+ "jquery": "^3.7.1",
13
+ "@tsparticles/jquery": "^4.1.3"
14
+ },
15
+ "devDependencies": {
16
+ "typescript": "^5.7.2",
17
+ "vite": "^6.0.0"
18
+ }
19
+ }
@@ -0,0 +1,31 @@
1
+ import $ from "jquery";
2
+ import "@tsparticles/jquery";
3
+ import { tsParticles } from "@tsparticles/engine";
4
+ import { loadSlim } from "@tsparticles/slim";
5
+ import "./style.css";
6
+
7
+ (async () => {
8
+ await loadSlim(tsParticles);
9
+
10
+ $("#tsparticles").particles().load({
11
+ fullScreen: { enable: true, zIndex: -1 },
12
+ background: { color: { value: "#1a1a2e" } },
13
+ fpsLimit: 60,
14
+ particles: {
15
+ number: { value: 80, density: { enable: true } },
16
+ color: { value: ["#6c5ce7", "#a29bfe", "#fd79a8"] },
17
+ shape: { type: "circle" },
18
+ opacity: { value: 0.5, random: true },
19
+ size: { value: { min: 1, max: 4 }, random: true },
20
+ move: {
21
+ enable: true,
22
+ speed: 2,
23
+ direction: "none",
24
+ random: false,
25
+ straight: false,
26
+ outModes: { default: "out" },
27
+ },
28
+ },
29
+ detectRetina: true,
30
+ });
31
+ })();
@@ -0,0 +1,22 @@
1
+ body {
2
+ margin: 0;
3
+ overflow: hidden;
4
+ }
5
+
6
+ #app {
7
+ position: absolute;
8
+ top: 50%;
9
+ left: 50%;
10
+ transform: translate(-50%, -50%);
11
+ z-index: 10;
12
+ text-align: center;
13
+ color: #fff;
14
+ font-family: Inter, system-ui, Avenir, Helvetica, Arial, sans-serif;
15
+ pointer-events: none;
16
+ }
17
+
18
+ h1 {
19
+ font-size: 3.2em;
20
+ line-height: 1.1;
21
+ text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
22
+ }
@@ -0,0 +1,19 @@
1
+ {
2
+ "compilerOptions": {
3
+ "target": "ES2020",
4
+ "useDefineForClassFields": true,
5
+ "module": "ESNext",
6
+ "lib": ["ES2020", "DOM", "DOM.Iterable"],
7
+ "skipLibCheck": true,
8
+ "moduleResolution": "bundler",
9
+ "allowImportingTsExtensions": true,
10
+ "resolveJsonModule": true,
11
+ "isolatedModules": true,
12
+ "noEmit": true,
13
+ "strict": true,
14
+ "noUnusedLocals": true,
15
+ "noUnusedParameters": true,
16
+ "noFallthroughCasesInSwitch": true
17
+ },
18
+ "include": ["src"]
19
+ }
@@ -0,0 +1,5 @@
1
+ import { defineConfig } from "vite";
2
+
3
+ export default defineConfig({
4
+ base: "./",
5
+ });
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2020 Matteo Bruni
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1,10 @@
1
+ # {{projectName}}
2
+
3
+ A tsParticles Lit project scaffolded with [tsparticles-create](https://github.com/tsparticles/tsparticles).
4
+
5
+ ## Getting started
6
+
7
+ ```bash
8
+ npm install
9
+ npm run dev
10
+ ```