7 |
About this app
8 |
9 |
10 | This is a SvelteKit app. You can make your own by typing the
11 | following into your command line and following the prompts:
12 |
13 |
14 |
npm create svelte@latest
15 |
16 |
17 | The page you're looking at is purely static HTML, with no client-side interactivity needed.
18 | Because of that, we don't need to load any JavaScript. Try viewing the page's source, or opening
19 | the devtools network panel and reloading.
20 |
21 |
22 |
--------------------------------------------------------------------------------
/apps/svelte-kit/src/routes/about/+page.ts:
--------------------------------------------------------------------------------
1 | import { dev } from '$app/environment';
2 |
3 | // we don't need any JS on this page, though we'll load
4 | // it in dev so that we get hot module replacement
5 | export const csr = dev;
6 |
7 | // since there's no dynamic data here, we can prerender
8 | // it so that it gets served as a static asset in production
9 | export const prerender = true;
10 |
--------------------------------------------------------------------------------
/apps/svelte-kit/src/routes/styles.css:
--------------------------------------------------------------------------------
1 | @import '@fontsource/fira-mono';
2 |
3 | :root {
4 | --font-body: Arial, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu,
5 | Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
6 | --font-mono: 'Fira Mono', monospace;
7 | --color-bg-0: rgb(202, 216, 228);
8 | --color-bg-1: hsl(209, 36%, 86%);
9 | --color-bg-2: hsl(224, 44%, 95%);
10 | --color-theme-1: #ff3e00;
11 | --color-theme-2: #4075a6;
12 | --color-text: rgba(0, 0, 0, 0.7);
13 | --column-width: 42rem;
14 | --column-margin-top: 4rem;
15 | font-family: var(--font-body);
16 | color: var(--color-text);
17 | }
18 |
19 | body {
20 | min-height: 100vh;
21 | margin: 0;
22 | background-attachment: fixed;
23 | background-color: var(--color-bg-1);
24 | background-size: 100vw 100vh;
25 | background-image: radial-gradient(
26 | 50% 50% at 50% 50%,
27 | rgba(255, 255, 255, 0.75) 0%,
28 | rgba(255, 255, 255, 0) 100%
29 | ),
30 | linear-gradient(180deg, var(--color-bg-0) 0%, var(--color-bg-1) 15%, var(--color-bg-2) 50%);
31 | }
32 |
33 | h1,
34 | h2,
35 | p {
36 | font-weight: 400;
37 | }
38 |
39 | p {
40 | line-height: 1.5;
41 | }
42 |
43 | a {
44 | color: var(--color-theme-1);
45 | text-decoration: none;
46 | }
47 |
48 | a:hover {
49 | text-decoration: underline;
50 | }
51 |
52 | h1 {
53 | font-size: 2rem;
54 | text-align: center;
55 | }
56 |
57 | h2 {
58 | font-size: 1rem;
59 | }
60 |
61 | pre {
62 | font-size: 16px;
63 | font-family: var(--font-mono);
64 | background-color: rgba(255, 255, 255, 0.45);
65 | border-radius: 3px;
66 | box-shadow: 2px 2px 6px rgb(255 255 255 / 25%);
67 | padding: 0.5em;
68 | overflow-x: auto;
69 | color: var(--color-text);
70 | }
71 |
72 | .text-column {
73 | display: flex;
74 | max-width: 48rem;
75 | flex: 0.6;
76 | flex-direction: column;
77 | justify-content: center;
78 | margin: 0 auto;
79 | }
80 |
81 | input,
82 | button {
83 | font-size: inherit;
84 | font-family: inherit;
85 | }
86 |
87 | button:focus:not(:focus-visible) {
88 | outline: none;
89 | }
90 |
91 | @media (min-width: 720px) {
92 | h1 {
93 | font-size: 2.4rem;
94 | }
95 | }
96 |
97 | .visually-hidden {
98 | border: 0;
99 | clip: rect(0 0 0 0);
100 | height: auto;
101 | margin: 0;
102 | overflow: hidden;
103 | padding: 0;
104 | position: absolute;
105 | width: 1px;
106 | white-space: nowrap;
107 | }
108 |
--------------------------------------------------------------------------------
/apps/svelte-kit/static/favicon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tsparticles/svelte/07d9af87e38053c62d858f9911af0c21f49d12a9/apps/svelte-kit/static/favicon.png
--------------------------------------------------------------------------------
/apps/svelte-kit/static/robots.txt:
--------------------------------------------------------------------------------
1 | # https://www.robotstxt.org/robotstxt.html
2 | User-agent: *
3 | Disallow:
4 |
--------------------------------------------------------------------------------
/apps/svelte-kit/svelte.config.js:
--------------------------------------------------------------------------------
1 | import adapter from "@sveltejs/adapter-auto";
2 | import { vitePreprocess } from "@sveltejs/vite-plugin-svelte";
3 | import preprocess from "svelte-preprocess";
4 |
5 | /** @type {import("@sveltejs/kit").Config} */
6 | const config = {
7 | // Consult https://kit.svelte.dev/docs/integrations#preprocessors
8 | // for more information about preprocessors
9 | preprocess: [preprocess(), vitePreprocess()],
10 |
11 | kit: {
12 | // adapter-auto only supports some environments, see https://kit.svelte.dev/docs/adapter-auto for a list.
13 | // If your environment is not supported or you settled on a specific environment, switch out the adapter.
14 | // See https://kit.svelte.dev/docs/adapters for more information about adapters.
15 | adapter: adapter()
16 | }
17 | };
18 |
19 | export default config;
20 |
--------------------------------------------------------------------------------
/apps/svelte-kit/tsconfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "extends": "./.svelte-kit/tsconfig.json",
3 | "compilerOptions": {
4 | "allowJs": true,
5 | "checkJs": true,
6 | "esModuleInterop": true,
7 | "forceConsistentCasingInFileNames": true,
8 | "resolveJsonModule": true,
9 | "skipLibCheck": true,
10 | "sourceMap": true,
11 | "strict": true
12 | }
13 | // Path aliases are handled by https://kit.svelte.dev/docs/configuration#alias
14 | //
15 | // If you want to overwrite includes/excludes, make sure to copy over the relevant includes/excludes
16 | // from the referenced tsconfig.json - TypeScript does not merge them in
17 | }
18 |
--------------------------------------------------------------------------------
/apps/svelte-kit/vite.config.ts:
--------------------------------------------------------------------------------
1 | import { sveltekit } from '@sveltejs/kit/vite';
2 | import { defineConfig } from 'vite';
3 |
4 | export default defineConfig({
5 | plugins: [sveltekit()],
6 | ssr: {
7 | noExternal: ['tsparticles', '@tsparticles/engine', '@tsparticles/svelte']
8 | }
9 | });
10 |
--------------------------------------------------------------------------------
/apps/svelte/.gitignore:
--------------------------------------------------------------------------------
1 | /node_modules/
2 | /public/build/
3 |
4 | .DS_Store
5 |
--------------------------------------------------------------------------------
/apps/svelte/CHANGELOG.md:
--------------------------------------------------------------------------------
1 | # Change Log
2 |
3 | All notable changes to this project will be documented in this file.
4 | See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5 |
6 | ## [3.1.1](https://github.com/tsparticles/svelte/compare/v3.1.0...v3.1.1) (2024-05-26)
7 |
8 | **Note:** Version bump only for package svelte-demo
9 |
10 |
11 |
12 |
13 |
14 | # [3.1.0](https://github.com/tsparticles/svelte/compare/v3.0.0...v3.1.0) (2024-05-26)
15 |
16 | **Note:** Version bump only for package svelte-demo
17 |
18 |
19 |
20 |
21 |
22 | # [3.0.0](https://github.com/tsparticles/svelte/compare/v2.12.0...v3.0.0) (2023-12-24)
23 |
24 |
25 | ### Features
26 |
27 | * migrated to v3, used new init structure ([bee139b](https://github.com/tsparticles/svelte/commit/bee139bd3466725681212a5d662060cd2f1b3dc2))
28 | * updated to v3, needs new initialization function to replace particlesInit ([404d847](https://github.com/tsparticles/svelte/commit/404d847673d7d6d830b8ecf9433e4bd468a475fd))
29 |
30 |
31 |
32 |
33 |
34 | # [2.12.0](https://github.com/tsparticles/svelte/compare/v2.11.0...v2.12.0) (2023-08-04)
35 |
36 | **Note:** Version bump only for package svelte-demo
37 |
38 |
39 |
40 |
41 |
42 | # [2.11.0](https://github.com/tsparticles/svelte/compare/v2.10.1...v2.11.0) (2023-07-15)
43 |
44 | **Note:** Version bump only for package svelte-demo
45 |
46 |
47 |
48 |
49 |
50 | ## [2.10.1](https://github.com/tsparticles/svelte/compare/v2.10.0...v2.10.1) (2023-06-08)
51 |
52 | **Note:** Version bump only for package svelte-demo
53 |
54 |
55 |
56 |
57 |
58 | # 2.10.0 (2023-06-08)
59 |
60 | **Note:** Version bump only for package svelte-demo
61 |
62 |
63 |
64 |
65 |
66 | ## [2.9.3](https://github.com/matteobruni/tsparticles/compare/svelte-demo@2.9.2...svelte-demo@2.9.3) (2023-02-12)
67 |
68 | **Note:** Version bump only for package svelte-demo
69 |
70 | ## [2.9.2](https://github.com/matteobruni/tsparticles/compare/svelte-demo@2.9.1...svelte-demo@2.9.2) (2023-02-12)
71 |
72 | **Note:** Version bump only for package svelte-demo
73 |
74 | ## [2.9.1](https://github.com/matteobruni/tsparticles/compare/svelte-demo@2.9.0...svelte-demo@2.9.1) (2023-02-11)
75 |
76 | **Note:** Version bump only for package svelte-demo
77 |
78 | # [2.9.0](https://github.com/matteobruni/tsparticles/compare/svelte-demo@2.8.0...svelte-demo@2.9.0) (2023-02-10)
79 |
80 | **Note:** Version bump only for package svelte-demo
81 |
82 | # [2.8.0](https://github.com/matteobruni/tsparticles/compare/svelte-demo@2.7.1...svelte-demo@2.8.0) (2023-01-18)
83 |
84 | **Note:** Version bump only for package svelte-demo
85 |
86 | ## [2.7.1](https://github.com/matteobruni/tsparticles/compare/svelte-demo@2.7.0...svelte-demo@2.7.1) (2022-12-25)
87 |
88 | **Note:** Version bump only for package svelte-demo
89 |
90 | # [2.7.0](https://github.com/matteobruni/tsparticles/compare/svelte-demo@2.6.0...svelte-demo@2.7.0) (2022-12-23)
91 |
92 | **Note:** Version bump only for package svelte-demo
93 |
94 | # [2.6.0](https://github.com/matteobruni/tsparticles/compare/svelte-demo@2.5.3...svelte-demo@2.6.0) (2022-12-06)
95 |
96 | **Note:** Version bump only for package svelte-demo
97 |
98 | ## [2.5.3](https://github.com/matteobruni/tsparticles/compare/svelte-demo@2.5.2...svelte-demo@2.5.3) (2022-11-07)
99 |
100 | **Note:** Version bump only for package svelte-demo
101 |
102 | ## [2.5.2](https://github.com/matteobruni/tsparticles/compare/svelte-demo@2.5.1...svelte-demo@2.5.2) (2022-11-07)
103 |
104 | **Note:** Version bump only for package svelte-demo
105 |
106 | ## [2.5.1](https://github.com/matteobruni/tsparticles/compare/svelte-demo@2.5.0...svelte-demo@2.5.1) (2022-11-03)
107 |
108 | **Note:** Version bump only for package svelte-demo
109 |
110 | # [2.5.0](https://github.com/matteobruni/tsparticles/compare/svelte-demo@2.4.0...svelte-demo@2.5.0) (2022-11-02)
111 |
112 | **Note:** Version bump only for package svelte-demo
113 |
114 | # [2.4.0](https://github.com/matteobruni/tsparticles/compare/svelte-demo@2.3.4...svelte-demo@2.4.0) (2022-10-30)
115 |
116 | **Note:** Version bump only for package svelte-demo
117 |
118 | ## [2.3.4](https://github.com/matteobruni/tsparticles/compare/svelte-demo@2.3.3...svelte-demo@2.3.4) (2022-09-30)
119 |
120 | **Note:** Version bump only for package svelte-demo
121 |
122 | ## [2.3.3](https://github.com/matteobruni/tsparticles/compare/svelte-demo@2.3.2...svelte-demo@2.3.3) (2022-09-30)
123 |
124 | **Note:** Version bump only for package svelte-demo
125 |
126 | ## [2.3.2](https://github.com/matteobruni/tsparticles/compare/svelte-demo@2.3.1...svelte-demo@2.3.2) (2022-09-21)
127 |
128 | **Note:** Version bump only for package svelte-demo
129 |
130 | ## [2.3.1](https://github.com/matteobruni/tsparticles/compare/svelte-demo@2.3.0...svelte-demo@2.3.1) (2022-09-13)
131 |
132 | **Note:** Version bump only for package svelte-demo
133 |
134 | # [2.3.0](https://github.com/matteobruni/tsparticles/compare/svelte-demo@2.2.4...svelte-demo@2.3.0) (2022-09-11)
135 |
136 | **Note:** Version bump only for package svelte-demo
137 |
138 | ## [2.2.4](https://github.com/matteobruni/tsparticles/compare/svelte-demo@2.2.2...svelte-demo@2.2.4) (2022-08-26)
139 |
140 | **Note:** Version bump only for package svelte-demo
141 |
142 | ## [2.2.3](https://github.com/matteobruni/tsparticles/compare/svelte-demo@2.2.2...svelte-demo@2.2.3) (2022-08-21)
143 |
144 | **Note:** Version bump only for package svelte-demo
145 |
146 | ## [2.2.2](https://github.com/matteobruni/tsparticles/compare/svelte-demo@2.2.1...svelte-demo@2.2.2) (2022-08-16)
147 |
148 | **Note:** Version bump only for package svelte-demo
149 |
150 | ## [2.2.1](https://github.com/matteobruni/tsparticles/compare/svelte-demo@2.2.0...svelte-demo@2.2.1) (2022-08-12)
151 |
152 | **Note:** Version bump only for package svelte-demo
153 |
154 | # [2.2.0](https://github.com/matteobruni/tsparticles/compare/svelte-demo@2.1.4...svelte-demo@2.2.0) (2022-08-11)
155 |
156 | **Note:** Version bump only for package svelte-demo
157 |
158 | ## [2.1.4](https://github.com/matteobruni/tsparticles/compare/svelte-demo@2.1.3...svelte-demo@2.1.4) (2022-07-28)
159 |
160 | **Note:** Version bump only for package svelte-demo
161 |
162 | ## [2.1.3](https://github.com/matteobruni/tsparticles/compare/svelte-demo@2.1.2...svelte-demo@2.1.3) (2022-07-01)
163 |
164 | **Note:** Version bump only for package svelte-demo
165 |
166 | ## [2.1.2](https://github.com/matteobruni/tsparticles/compare/svelte-demo@2.1.1...svelte-demo@2.1.2) (2022-07-01)
167 |
168 | **Note:** Version bump only for package svelte-demo
169 |
170 | ## [2.1.1](https://github.com/matteobruni/tsparticles/compare/svelte-demo@2.1.0...svelte-demo@2.1.1) (2022-07-01)
171 |
172 | **Note:** Version bump only for package svelte-demo
173 |
174 | # [2.1.0](https://github.com/matteobruni/tsparticles/compare/svelte-demo@2.0.6...svelte-demo@2.1.0) (2022-06-18)
175 |
176 | **Note:** Version bump only for package svelte-demo
177 |
178 | ## [2.0.6](https://github.com/matteobruni/tsparticles/compare/svelte-demo@2.0.5...svelte-demo@2.0.6) (2022-04-16)
179 |
180 | **Note:** Version bump only for package svelte-demo
181 |
182 | ## [2.0.5](https://github.com/matteobruni/tsparticles/compare/svelte-demo@2.0.4...svelte-demo@2.0.5) (2022-04-14)
183 |
184 | **Note:** Version bump only for package svelte-demo
185 |
186 | ## [2.0.4](https://github.com/matteobruni/tsparticles/compare/svelte-demo@1.26.1...svelte-demo@2.0.4) (2022-04-06)
187 |
188 | ### Bug Fixes
189 |
190 | - **deps:** update dependency sirv-cli to v2 ([176dc1d](https://github.com/matteobruni/tsparticles/commit/176dc1dc15c080032ad2f2addc59be6efce6248d))
191 |
192 | ### Features
193 |
194 | - async presets ([86f3038](https://github.com/matteobruni/tsparticles/commit/86f3038bfc336744e88bb3d6ab7dfd4a36ada4e6))
195 |
196 | ## [2.0.3](https://github.com/matteobruni/tsparticles/compare/svelte-demo@1.25.1...svelte-demo@2.0.3) (2022-03-11)
197 |
198 | ## [1.26.1](https://github.com/matteobruni/tsparticles/compare/svelte-demo@1.26.0...svelte-demo@1.26.1) (2022-04-06)
199 |
200 | **Note:** Version bump only for package svelte-demo
201 |
202 | # [1.26.0](https://github.com/matteobruni/tsparticles/compare/svelte-demo@1.25.4...svelte-demo@1.26.0) (2022-04-04)
203 |
204 | ### Bug Fixes
205 |
206 | - **deps:** update dependency sirv-cli to v2 ([176dc1d](https://github.com/matteobruni/tsparticles/commit/176dc1dc15c080032ad2f2addc59be6efce6248d))
207 |
208 | ### Features
209 |
210 | - async presets ([86f3038](https://github.com/matteobruni/tsparticles/commit/86f3038bfc336744e88bb3d6ab7dfd4a36ada4e6))
211 |
212 | ## [2.0.2](https://github.com/matteobruni/tsparticles/compare/svelte-demo@1.24.4...svelte-demo@2.0.2) (2022-02-21)
213 |
214 | - upgrade sirv-cli from 2.0.1 to 2.0.2 ([70f74fe](https://github.com/matteobruni/tsparticles/commit/70f74fed6693561fac9f259b3de6ea16a9c2fa32))
215 |
216 | ## [1.25.4](https://github.com/matteobruni/tsparticles/compare/svelte-demo@1.25.3...svelte-demo@1.25.4) (2022-03-20)
217 |
218 | **Note:** Version bump only for package svelte-demo
219 |
220 | ## [1.25.3](https://github.com/matteobruni/tsparticles/compare/svelte-demo@1.25.2...svelte-demo@1.25.3) (2022-03-18)
221 |
222 | **Note:** Version bump only for package svelte-demo
223 |
224 | ## [1.25.2](https://github.com/matteobruni/tsparticles/compare/svelte-demo@1.25.1...svelte-demo@1.25.2) (2022-03-14)
225 |
226 | **Note:** Version bump only for package svelte-demo
227 |
228 | ## [1.25.1](https://github.com/matteobruni/tsparticles/compare/svelte-demo@1.25.0...svelte-demo@1.25.1) (2022-03-09)
229 |
230 | **Note:** Version bump only for package svelte-demo
231 |
232 | # [1.25.0](https://github.com/matteobruni/tsparticles/compare/svelte-demo@1.24.6...svelte-demo@1.25.0) (2022-03-08)
233 |
234 | **Note:** Version bump only for package svelte-demo
235 |
236 | ## [1.24.6](https://github.com/matteobruni/tsparticles/compare/svelte-demo@1.24.5...svelte-demo@1.24.6) (2022-03-03)
237 |
238 | **Note:** Version bump only for package svelte-demo
239 |
240 | ## [1.24.5](https://github.com/matteobruni/tsparticles/compare/svelte-demo@1.24.4...svelte-demo@1.24.5) (2022-02-24)
241 |
242 | ### Bug Fixes
243 |
244 | - **deps:** update dependency sirv-cli to v2 ([176dc1d](https://github.com/matteobruni/tsparticles/commit/176dc1dc15c080032ad2f2addc59be6efce6248d))
245 |
246 | ### Features
247 |
248 | - async presets ([86f3038](https://github.com/matteobruni/tsparticles/commit/86f3038bfc336744e88bb3d6ab7dfd4a36ada4e6))
249 |
250 | ## [2.0.1](https://github.com/matteobruni/tsparticles/compare/svelte-demo@2.0.0...svelte-demo@2.0.1) (2022-02-15)
251 |
252 | - fixed emitters issues ([c9d9a51](https://github.com/matteobruni/tsparticles/commit/c9d9a51e41fdc77a9bf544a09d979d8c2f6b10d5))
253 |
254 | ## [1.24.4](https://github.com/matteobruni/tsparticles/compare/svelte-demo@1.24.3...svelte-demo@1.24.4) (2022-02-20)
255 |
256 | **Note:** Version bump only for package svelte-demo
257 |
258 | ## [1.24.3](https://github.com/matteobruni/tsparticles/compare/svelte-demo@1.24.2...svelte-demo@1.24.3) (2022-02-19)
259 |
260 | **Note:** Version bump only for package svelte-demo
261 |
262 | ## [1.24.2](https://github.com/matteobruni/tsparticles/compare/svelte-demo@1.24.1...svelte-demo@1.24.2) (2022-02-16)
263 |
264 | **Note:** Version bump only for package svelte-demo
265 |
266 | # [2.0.0](https://github.com/matteobruni/tsparticles/compare/svelte-demo@1.24.1...svelte-demo@2.0.0) (2022-02-15)
267 |
268 | ### Bug Fixes
269 |
270 | - **deps:** update dependency sirv-cli to v2 ([176dc1d](https://github.com/matteobruni/tsparticles/commit/176dc1dc15c080032ad2f2addc59be6efce6248d))
271 |
272 | ### Features
273 |
274 | - async presets ([86f3038](https://github.com/matteobruni/tsparticles/commit/86f3038bfc336744e88bb3d6ab7dfd4a36ada4e6))
275 |
276 | # [2.0.0-beta.5](https://github.com/matteobruni/tsparticles/compare/svelte-demo@1.22.2...svelte-demo@2.0.0-beta.5) (2022-01-30)
277 |
278 | ### Bug Fixes
279 |
280 | - **deps:** update dependency sirv-cli to v2 ([176dc1d](https://github.com/matteobruni/tsparticles/commit/176dc1dc15c080032ad2f2addc59be6efce6248d))
281 |
282 | ### Features
283 |
284 | - async presets ([86f3038](https://github.com/matteobruni/tsparticles/commit/86f3038bfc336744e88bb3d6ab7dfd4a36ada4e6))
285 |
286 | # [2.0.0-beta.4](https://github.com/matteobruni/tsparticles/compare/svelte-demo@2.0.0-beta.3...svelte-demo@2.0.0-beta.4) (2021-12-07)
287 |
288 | ### Features
289 |
290 | - async presets ([86f3038](https://github.com/matteobruni/tsparticles/commit/86f3038bfc336744e88bb3d6ab7dfd4a36ada4e6))
291 |
292 | # [2.0.0-beta.3](https://github.com/matteobruni/tsparticles/compare/svelte-demo@1.20.5...svelte-demo@2.0.0-beta.3) (2021-12-04)
293 |
294 | # [1.21.0](https://github.com/matteobruni/tsparticles/compare/svelte-demo@1.20.6...svelte-demo@1.21.0) (2021-12-29)
295 |
296 | **Note:** Version bump only for package svelte-demo
297 |
298 | ## [1.20.6](https://github.com/matteobruni/tsparticles/compare/svelte-demo@1.20.5...svelte-demo@1.20.6) (2021-12-24)
299 |
300 | ## [1.24.1](https://github.com/matteobruni/tsparticles/compare/svelte-demo@1.24.0...svelte-demo@1.24.1) (2022-02-14)
301 |
302 | **Note:** Version bump only for package svelte-demo
303 |
304 | # [2.0.0-beta.2](https://github.com/matteobruni/tsparticles/compare/svelte-demo@1.18.4...svelte-demo@2.0.0-beta.2) (2021-10-06)
305 |
306 | ## [1.20.5](https://github.com/matteobruni/tsparticles/compare/svelte-demo@1.20.4...svelte-demo@1.20.5) (2021-11-28)
307 |
308 | # [1.24.0](https://github.com/matteobruni/tsparticles/compare/svelte-demo@1.23.2...svelte-demo@1.24.0) (2022-02-10)
309 |
310 | **Note:** Version bump only for package svelte-demo
311 |
312 | ## [1.20.4](https://github.com/matteobruni/tsparticles/compare/svelte-demo@1.20.3...svelte-demo@1.20.4) (2021-11-17)
313 |
314 | **Note:** Version bump only for package svelte-demo
315 |
316 | ## [1.20.3](https://github.com/matteobruni/tsparticles/compare/svelte-demo@1.20.2...svelte-demo@1.20.3) (2021-11-05)
317 |
318 | **Note:** Version bump only for package svelte-demo
319 |
320 | ## [1.20.2](https://github.com/matteobruni/tsparticles/compare/svelte-demo@1.20.1...svelte-demo@1.20.2) (2021-10-31)
321 |
322 | **Note:** Version bump only for package svelte-demo
323 |
324 | ## [1.20.1](https://github.com/matteobruni/tsparticles/compare/svelte-demo@1.20.0...svelte-demo@1.20.1) (2021-10-30)
325 |
326 | **Note:** Version bump only for package svelte-demo
327 |
328 | # [1.20.0](https://github.com/matteobruni/tsparticles/compare/svelte-demo@1.19.0...svelte-demo@1.20.0) (2021-10-28)
329 |
330 | **Note:** Version bump only for package svelte-demo
331 |
332 | # [1.19.0](https://github.com/matteobruni/tsparticles/compare/svelte-demo@1.18.4...svelte-demo@1.19.0) (2021-10-14)
333 |
334 | **Note:** Version bump only for package svelte-demo
335 |
336 | # [2.0.0-beta.1](https://github.com/matteobruni/tsparticles/compare/svelte-demo@2.0.0-beta.0...svelte-demo@2.0.0-beta.1) (2021-10-06)
337 |
338 | **Note:** Version bump only for package svelte-demo
339 |
340 | # [2.0.0-beta.0](https://github.com/matteobruni/tsparticles/compare/svelte-demo@1.18.3...svelte-demo@2.0.0-beta.0) (2021-10-06)
341 |
342 | ## [1.18.4](https://github.com/matteobruni/tsparticles/compare/svelte-demo@1.18.3...svelte-demo@1.18.4) (2021-10-06)
343 |
344 | **Note:** Version bump only for package svelte-demo
345 |
346 | ## [1.18.3](https://github.com/matteobruni/tsparticles/compare/svelte-demo@1.18.2...svelte-demo@1.18.3) (2021-10-03)
347 |
348 | **Note:** Version bump only for package svelte-demo
349 |
350 | ## [1.18.2](https://github.com/matteobruni/tsparticles/compare/svelte-demo@1.18.1...svelte-demo@1.18.2) (2021-09-27)
351 |
352 | **Note:** Version bump only for package svelte-demo
353 |
354 | ## [1.18.1](https://github.com/matteobruni/tsparticles/compare/svelte-demo@1.18.0...svelte-demo@1.18.1) (2021-09-20)
355 |
356 | **Note:** Version bump only for package svelte-demo
357 |
358 | # [1.18.0](https://github.com/matteobruni/tsparticles/compare/svelte-demo@1.17.1...svelte-demo@1.18.0) (2021-09-18)
359 |
360 | **Note:** Version bump only for package svelte-demo
361 |
362 | ## [1.17.1](https://github.com/matteobruni/tsparticles/compare/svelte-demo@1.17.0...svelte-demo@1.17.1) (2021-09-15)
363 |
364 | **Note:** Version bump only for package svelte-demo
365 |
366 | # [1.17.0](https://github.com/matteobruni/tsparticles/compare/svelte-demo@1.16.3...svelte-demo@1.17.0) (2021-08-23)
367 |
368 | ### Bug Fixes
369 |
370 | - **deps:** pin dependencies ([23be870](https://github.com/matteobruni/tsparticles/commit/23be8708d698e1e37a18f2ed292cbccffb0f1e47))
371 | - **deps:** update all ([d9f0ff2](https://github.com/matteobruni/tsparticles/commit/d9f0ff2f8c4ac269aaad5077492746e3da8fb422))
372 |
373 | ## [1.16.3](https://github.com/matteobruni/tsparticles/compare/svelte-demo@1.16.2...svelte-demo@1.16.3) (2021-08-10)
374 |
375 | ## [1.23.2](https://github.com/matteobruni/tsparticles/compare/svelte-demo@1.23.1...svelte-demo@1.23.2) (2022-02-07)
376 |
377 | ### Bug Fixes
378 |
379 | - fixed issues with svelte 3.41.0 ([113c1c9](https://github.com/matteobruni/tsparticles/commit/113c1c9675eb365dedbedbc8ea39a8116ef66da8))
380 |
381 | ## [1.16.2](https://github.com/matteobruni/tsparticles/compare/svelte-demo@1.16.1...svelte-demo@1.16.2) (2021-07-31)
382 |
383 | ### Bug Fixes
384 |
385 | - fixed svelte component, reverted to an older svelte version for now, closes [#1924](https://github.com/matteobruni/tsparticles/issues/1924) ([80a88be](https://github.com/matteobruni/tsparticles/commit/80a88beaeb8a11b83c3f602234da0ec2cfadc10e))
386 |
387 | ## [1.16.1](https://github.com/matteobruni/tsparticles/compare/svelte-demo@1.16.0...svelte-demo@1.16.1) (2021-07-29)
388 |
389 | **Note:** Version bump only for package svelte-demo
390 |
391 | # [1.16.0](https://github.com/matteobruni/tsparticles/compare/svelte-demo@1.15.0...svelte-demo@1.16.0) (2021-07-29)
392 |
393 | **Note:** Version bump only for package svelte-demo
394 |
395 | ## [1.1.1](https://github.com/matteobruni/tsparticles/compare/svelte-demo@1.1.0...svelte-demo@1.1.1) (2020-10-06)
396 |
397 | **Note:** Version bump only for package svelte-demo
398 |
399 | # [1.1.0](https://github.com/matteobruni/tsparticles/compare/svelte-demo@1.1.0-beta.5...svelte-demo@1.1.0) (2020-10-05)
400 |
401 | **Note:** Version bump only for package svelte-demo
402 |
403 | # [1.1.0-beta.5](https://github.com/matteobruni/tsparticles/compare/svelte-demo@1.1.0-beta.4...svelte-demo@1.1.0-beta.5) (2020-10-04)
404 |
405 | **Note:** Version bump only for package svelte-demo
406 |
407 | # [1.1.0-beta.4](https://github.com/matteobruni/tsparticles/compare/svelte-demo@1.1.0-beta.3...svelte-demo@1.1.0-beta.4) (2020-10-04)
408 |
409 | **Note:** Version bump only for package svelte-demo
410 |
411 | # [1.1.0-beta.3](https://github.com/matteobruni/tsparticles/compare/svelte-demo@1.1.0-beta.2...svelte-demo@1.1.0-beta.3) (2020-10-03)
412 |
413 | **Note:** Version bump only for package svelte-demo
414 |
415 | # [1.1.0-beta.2](https://github.com/matteobruni/tsparticles/compare/svelte-demo@1.1.0-beta.1...svelte-demo@1.1.0-beta.2) (2020-10-03)
416 |
417 | **Note:** Version bump only for package svelte-demo
418 |
419 | # [1.1.0-beta.1](https://github.com/matteobruni/tsparticles/compare/svelte-demo@1.1.0-beta.0...svelte-demo@1.1.0-beta.1) (2020-10-03)
420 |
421 | **Note:** Version bump only for package svelte-demo
422 |
423 | # [1.1.0-beta.0](https://github.com/matteobruni/tsparticles/compare/svelte-demo@1.0.13...svelte-demo@1.1.0-beta.0) (2020-10-02)
424 |
425 | **Note:** Version bump only for package svelte-demo
426 |
427 | # [1.1.0-alpha.14](https://github.com/matteobruni/tsparticles/compare/svelte-demo@1.0.10...svelte-demo@1.1.0-alpha.14) (2020-08-22)
428 |
429 | **Note:** Version bump only for package svelte-demo
430 |
431 | # [1.1.0-alpha.13](https://github.com/matteobruni/tsparticles/compare/svelte-demo@1.1.0-alpha.12...svelte-demo@1.1.0-alpha.13) (2020-08-17)
432 |
433 | **Note:** Version bump only for package svelte-demo
434 |
435 | # [1.1.0-alpha.12](https://github.com/matteobruni/tsparticles/compare/svelte-demo@1.0.8...svelte-demo@1.1.0-alpha.12) (2020-08-16)
436 |
437 | **Note:** Version bump only for package svelte-demo
438 |
439 | # [1.1.0-alpha.11](https://github.com/matteobruni/tsparticles/compare/svelte-demo@1.1.0-alpha.10...svelte-demo@1.1.0-alpha.11) (2020-08-13)
440 |
441 | **Note:** Version bump only for package svelte-demo
442 |
443 | # [1.1.0-alpha.10](https://github.com/matteobruni/tsparticles/compare/svelte-demo@1.1.0-alpha.9...svelte-demo@1.1.0-alpha.10) (2020-08-13)
444 |
445 | **Note:** Version bump only for package svelte-demo
446 |
447 | # [1.1.0-alpha.9](https://github.com/matteobruni/tsparticles/compare/svelte-demo@1.1.0-alpha.8...svelte-demo@1.1.0-alpha.9) (2020-08-13)
448 |
449 | **Note:** Version bump only for package svelte-demo
450 |
451 | # [1.1.0-alpha.8](https://github.com/matteobruni/tsparticles/compare/svelte-demo@1.1.0-alpha.7...svelte-demo@1.1.0-alpha.8) (2020-08-13)
452 |
453 | **Note:** Version bump only for package svelte-demo
454 |
455 | # [1.1.0-alpha.7](https://github.com/matteobruni/tsparticles/compare/svelte-demo@1.1.0-alpha.6...svelte-demo@1.1.0-alpha.7) (2020-08-12)
456 |
457 | **Note:** Version bump only for package svelte-demo
458 |
459 | - removed all browser flags in package.json, a lot of issues with it. closes [#3094](https://github.com/matteobruni/tsparticles/issues/3094) ([1415875](https://github.com/matteobruni/tsparticles/commit/14158755ec80ace4e0c520cef407b2d7f4078568))
460 |
461 | # [1.1.0-alpha.6](https://github.com/matteobruni/tsparticles/compare/svelte-demo@1.1.0-alpha.5...svelte-demo@1.1.0-alpha.6) (2020-08-11)
462 |
463 | ## [1.23.1](https://github.com/matteobruni/tsparticles/compare/svelte-demo@1.23.0...svelte-demo@1.23.1) (2022-02-06)
464 |
465 | **Note:** Version bump only for package svelte-demo
466 |
467 | # [1.1.0-alpha.5](https://github.com/matteobruni/tsparticles/compare/svelte-demo@1.1.0-alpha.4...svelte-demo@1.1.0-alpha.5) (2020-08-11)
468 |
469 | # [1.23.0](https://github.com/matteobruni/tsparticles/compare/svelte-demo@1.22.3...svelte-demo@1.23.0) (2022-02-04)
470 |
471 | **Note:** Version bump only for package svelte-demo
472 |
473 | # [1.1.0-alpha.4](https://github.com/matteobruni/tsparticles/compare/svelte-demo@1.1.0-alpha.3...svelte-demo@1.1.0-alpha.4) (2020-08-11)
474 |
475 | ## [1.22.3](https://github.com/matteobruni/tsparticles/compare/svelte-demo@1.22.2...svelte-demo@1.22.3) (2022-02-02)
476 |
477 | **Note:** Version bump only for package svelte-demo
478 |
479 | # [1.1.0-alpha.3](https://github.com/matteobruni/tsparticles/compare/svelte-demo@1.1.0-alpha.2...svelte-demo@1.1.0-alpha.3) (2020-08-10)
480 |
481 | ## [1.22.2](https://github.com/matteobruni/tsparticles/compare/svelte-demo@1.22.1...svelte-demo@1.22.2) (2022-01-29)
482 |
483 | **Note:** Version bump only for package svelte-demo
484 |
485 | # [1.1.0-alpha.2](https://github.com/matteobruni/tsparticles/compare/svelte-demo@1.1.0-alpha.1...svelte-demo@1.1.0-alpha.2) (2020-08-09)
486 |
487 | ## [1.22.1](https://github.com/matteobruni/tsparticles/compare/svelte-demo@1.22.0...svelte-demo@1.22.1) (2022-01-26)
488 |
489 | **Note:** Version bump only for package svelte-demo
490 |
491 | # [1.1.0-alpha.1](https://github.com/matteobruni/tsparticles/compare/svelte-demo@1.0.7...svelte-demo@1.1.0-alpha.1) (2020-08-08)
492 |
493 | # [1.22.0](https://github.com/matteobruni/tsparticles/compare/svelte-demo@1.21.0...svelte-demo@1.22.0) (2022-01-08)
494 |
495 | **Note:** Version bump only for package svelte-demo
496 |
--------------------------------------------------------------------------------
/apps/svelte/README.md:
--------------------------------------------------------------------------------
1 | *Psst — looking for a more complete solution? Check out [SvelteKit](https://kit.svelte.dev), the official framework for building web applications of all sizes, with a beautiful development experience and flexible filesystem-based routing.*
2 |
3 | *Looking for a shareable component template instead? You can [use SvelteKit for that as well](https://kit.svelte.dev/docs#packaging) or the older [sveltejs/component-template](https://github.com/sveltejs/component-template)*
4 |
5 | ---
6 |
7 | # svelte app
8 |
9 | This is a project template for [Svelte](https://svelte.dev) apps. It lives at https://github.com/sveltejs/template.
10 |
11 | To create a new project based on this template using [degit](https://github.com/Rich-Harris/degit):
12 |
13 | ```shell
14 | npx degit sveltejs/template svelte-app
15 | cd svelte-app
16 | ```
17 |
18 | *Note that you will need to have [Node.js](https://nodejs.org) installed.*
19 |
20 |
21 | ## Get started
22 |
23 | Install the dependencies...
24 |
25 | ```shell
26 | cd svelte-app
27 | npm install
28 | ```
29 |
30 | ...then start [Rollup](https://rollupjs.org):
31 |
32 | ```shell
33 | npm run dev
34 | ```
35 |
36 | Navigate to [localhost:8080](http://localhost:8080). You should see your app running. Edit a component file in `src`, save it, and reload the page to see your changes.
37 |
38 | By default, the server will only respond to requests from localhost. To allow connections from other computers, edit the `sirv` commands in package.json to include the option `--host 0.0.0.0`.
39 |
40 | If you're using [Visual Studio Code](https://code.visualstudio.com/) we recommend installing the official extension [Svelte for VS Code](https://marketplace.visualstudio.com/items?itemName=svelte.svelte-vscode). If you are using other editors you may need to install a plugin in order to get syntax highlighting and intellisense.
41 |
42 | ## Building and running in production mode
43 |
44 | To create an optimised version of the app:
45 |
46 | ```shell
47 | npm run build
48 | ```
49 |
50 | You can run the newly built app with `npm run start`. This uses [sirv](https://github.com/lukeed/sirv), which is included in your package.json's `dependencies` so that the app will work when you deploy to platforms like [Heroku](https://heroku.com).
51 |
52 |
53 | ## Single-page app mode
54 |
55 | By default, sirv will only respond to requests that match files in `public`. This is to maximise compatibility with static fileservers, allowing you to deploy your app anywhere.
56 |
57 | If you're building a single-page app (SPA) with multiple routes, sirv needs to be able to respond to requests for *any* path. You can make it so by editing the `"start"` command in package.json:
58 |
59 | ```js
60 | "start": "sirv public --single"
61 | ```
62 |
63 | ## Using TypeScript
64 |
65 | This template comes with a script to set up a TypeScript development environment, you can run it immediately after cloning the template with:
66 |
67 | ```shell
68 | node scripts/setupTypeScript.js
69 | ```
70 |
71 | Or remove the script via:
72 |
73 | ```shell
74 | rm scripts/setupTypeScript.js
75 | ```
76 |
77 | If you want to use `baseUrl` or `path` aliases within your `tsconfig`, you need to set up `@rollup/plugin-alias` to tell Rollup to resolve the aliases. For more info, see [this StackOverflow question](https://stackoverflow.com/questions/63427935/setup-tsconfig-path-in-svelte).
78 |
79 | ## Deploying to the web
80 |
81 | ### With [Vercel](https://vercel.com)
82 |
83 | Install `vercel` if you haven't already:
84 |
85 | ```shell
86 | npm install -g vercel
87 | ```
88 |
89 | Then, from within your project folder:
90 |
91 | ```shell
92 | cd public
93 | vercel deploy --name my-project
94 | ```
95 |
96 | ### With [surge](https://surge.sh/)
97 |
98 | Install `surge` if you haven't already:
99 |
100 | ```shell
101 | npm install -g surge
102 | ```
103 |
104 | Then, from within your project folder:
105 |
106 | ```shell
107 | npm run build
108 | surge public my-project.surge.sh
109 | ```
110 |
--------------------------------------------------------------------------------
/apps/svelte/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "svelte-demo",
3 | "version": "3.1.1",
4 | "private": true,
5 | "scripts": {
6 | "build": "rollup -c",
7 | "build:ci": "rollup -c",
8 | "dev": "rollup -c -w",
9 | "start": "sirv public --host",
10 | "check": "svelte-check --tsconfig ./tsconfig.json"
11 | },
12 | "devDependencies": {
13 | "@rollup/plugin-commonjs": "^25.0.8",
14 | "@rollup/plugin-json": "^6.1.0",
15 | "@rollup/plugin-node-resolve": "^15.2.3",
16 | "@rollup/plugin-terser": "^0.4.4",
17 | "@rollup/plugin-typescript": "^11.1.6",
18 | "@tsconfig/svelte": "^5.0.4",
19 | "rollup": "^4.18.0",
20 | "rollup-plugin-css-only": "^4.5.2",
21 | "rollup-plugin-livereload": "^2.0.5",
22 | "rollup-plugin-svelte": "^7.2.0",
23 | "svelte": "^4.2.17",
24 | "svelte-check": "^3.7.1",
25 | "svelte-preprocess": "^5.1.4",
26 | "tslib": "^2.6.2",
27 | "typescript": "~5.4.5"
28 | },
29 | "dependencies": {
30 | "@tsparticles/configs": "^3.4.0",
31 | "@tsparticles/engine": "^3.4.0",
32 | "@tsparticles/svelte": "workspace:^",
33 | "sirv-cli": "^2.0.2",
34 | "tsparticles": "^3.4.0"
35 | }
36 | }
37 |
--------------------------------------------------------------------------------
/apps/svelte/public/favicon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tsparticles/svelte/07d9af87e38053c62d858f9911af0c21f49d12a9/apps/svelte/public/favicon.png
--------------------------------------------------------------------------------
/apps/svelte/public/global.css:
--------------------------------------------------------------------------------
1 | html, body {
2 | position: relative;
3 | width: 100%;
4 | height: 100%;
5 | }
6 |
7 | body {
8 | color: #333;
9 | margin: 0;
10 | padding: 8px;
11 | box-sizing: border-box;
12 | font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
13 | }
14 |
15 | a {
16 | color: rgb(0,100,200);
17 | text-decoration: none;
18 | }
19 |
20 | a:hover {
21 | text-decoration: underline;
22 | }
23 |
24 | a:visited {
25 | color: rgb(0,80,160);
26 | }
27 |
28 | label {
29 | display: block;
30 | }
31 |
32 | input, button, select, textarea {
33 | font-family: inherit;
34 | font-size: inherit;
35 | -webkit-padding: 0.4em 0;
36 | padding: 0.4em;
37 | margin: 0 0 0.5em 0;
38 | box-sizing: border-box;
39 | border: 1px solid #ccc;
40 | border-radius: 2px;
41 | }
42 |
43 | input:disabled {
44 | color: #ccc;
45 | }
46 |
47 | button {
48 | color: #333;
49 | background-color: #f4f4f4;
50 | outline: none;
51 | }
52 |
53 | button:disabled {
54 | color: #999;
55 | }
56 |
57 | button:not(:disabled):active {
58 | background-color: #ddd;
59 | }
60 |
61 | button:focus {
62 | border-color: #666;
63 | }
64 |
--------------------------------------------------------------------------------
/apps/svelte/public/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |