From a0682b4348171ba576e38b66ae50be37f46070b7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joaqu=C3=ADn=20S=C3=A1nchez=20Jim=C3=A9nez?= Date: Wed, 24 Nov 2021 13:49:01 +0100 Subject: [PATCH 1/6] feat: compact examples --- docs/examples/index.md | 24 +-- docs/examples/react.md | 60 +++--- docs/examples/svelte.md | 62 +++--- docs/examples/vue.md | 47 ++--- .../react-basic-inject-manifest/README.md | 9 - .../react-basic-inject-manifest/index.html | 17 -- .../react-basic-inject-manifest/package.json | 29 --- .../public/favicon.svg | 130 ------------ .../public/pwa-192x192.png | Bin 15230 -> 0 bytes .../public/pwa-512x512.png | Bin 55738 -> 0 bytes .../react-basic-inject-manifest/src/App.css | 18 -- .../react-basic-inject-manifest/src/App.tsx | 26 --- .../src/ReloadPrompt.css | 32 --- .../src/ReloadPrompt.tsx | 51 ----- .../react-basic-inject-manifest/src/index.css | 13 -- .../react-basic-inject-manifest/src/main.tsx | 13 -- .../react-basic-inject-manifest/src/sw.ts | 10 - .../src/vite-env.d.ts | 3 - .../react-basic-inject-manifest/tsconfig.json | 22 -- .../vite.config.ts | 50 ----- examples/react-basic/README.md | 9 - examples/react-basic/index.html | 17 -- examples/react-basic/package.json | 28 --- examples/react-basic/public/favicon.svg | 130 ------------ examples/react-basic/public/pwa-192x192.png | Bin 15230 -> 0 bytes examples/react-basic/public/pwa-512x512.png | Bin 55738 -> 0 bytes examples/react-basic/src/App.css | 18 -- examples/react-basic/src/App.tsx | 26 --- examples/react-basic/src/ReloadPrompt.css | 32 --- examples/react-basic/src/ReloadPrompt.tsx | 51 ----- examples/react-basic/src/index.css | 13 -- examples/react-basic/src/main.tsx | 13 -- examples/react-basic/src/vite-env.d.ts | 3 - examples/react-basic/tsconfig.json | 22 -- examples/react-basic/vite.config.ts | 47 ----- examples/react-router/package.json | 5 + examples/react-router/src/sw.ts | 18 ++ examples/react-router/tsconfig.json | 2 +- examples/react-router/vite.config.ts | 93 +++++---- .../svelte-basic-inject-manifest/README.md | 9 - .../svelte-basic-inject-manifest/index.html | 17 -- .../svelte-basic-inject-manifest/package.json | 42 ---- .../public/favicon.svg | 130 ------------ .../public/pwa-192x192.png | Bin 15230 -> 0 bytes .../public/pwa-512x512.png | Bin 55738 -> 0 bytes .../src/App.svelte | 53 ----- .../src/lib/Counter.svelte | 34 --- .../src/lib/ReloadPrompt.svelte | 84 -------- .../svelte-basic-inject-manifest/src/main.ts | 7 - .../svelte-basic-inject-manifest/src/sw.ts | 10 - .../src/vite-env.d.ts | 3 - .../tsconfig.json | 22 -- .../vite-env.d.ts | 3 - .../vite.config.ts | 50 ----- examples/svelte-basic/README.md | 9 - examples/svelte-basic/index.html | 17 -- examples/svelte-basic/package.json | 41 ---- examples/svelte-basic/public/favicon.svg | 130 ------------ examples/svelte-basic/public/pwa-192x192.png | Bin 15230 -> 0 bytes examples/svelte-basic/public/pwa-512x512.png | Bin 55738 -> 0 bytes examples/svelte-basic/src/App.svelte | 53 ----- examples/svelte-basic/src/lib/Counter.svelte | 34 --- .../svelte-basic/src/lib/ReloadPrompt.svelte | 84 -------- examples/svelte-basic/src/main.ts | 7 - examples/svelte-basic/src/vite-env.d.ts | 3 - examples/svelte-basic/svelte.config.ts | 7 - examples/svelte-basic/tsconfig.json | 21 -- examples/svelte-basic/vite-env.d.ts | 3 - examples/svelte-basic/vite.config.ts | 47 ----- examples/svelte-routify/package.json | 6 + examples/svelte-routify/src/App.svelte | 2 +- .../svelte-routify/src/pages/_fallback.svelte | 2 +- .../svelte-routify/src/pages/_layout.svelte | 7 + .../svelte-routify/src/pages/hi/[name].svelte | 2 +- examples/svelte-routify/src/sw.ts | 18 ++ .../svelte.config.js} | 0 examples/svelte-routify/svelte.config.ts | 7 - examples/svelte-routify/tsconfig.json | 11 +- examples/svelte-routify/vite.config.js | 65 ++++++ examples/svelte-routify/vite.config.ts | 49 ----- examples/vue-basic-inject-manifest/README.md | 9 - examples/vue-basic-inject-manifest/index.html | 17 -- .../vue-basic-inject-manifest/package.json | 27 --- .../public/favicon.svg | 147 ------------- .../public/pwa-192x192.png | Bin 15230 -> 0 bytes .../public/pwa-512x512.png | Bin 55738 -> 0 bytes .../vue-basic-inject-manifest/src/App.vue | 51 ----- .../src/ReloadPrompt.vue | 63 ------ .../vue-basic-inject-manifest/src/index.css | 7 - .../vue-basic-inject-manifest/src/main.ts | 5 - .../src/my-worker.js | 13 -- .../src/shims-vue.d.ts | 5 - examples/vue-basic-inject-manifest/src/sw.ts | 10 - .../src/workerImport.js | 2 - .../vue-basic-inject-manifest/vite.config.ts | 50 ----- examples/vue-basic/README.md | 9 - examples/vue-basic/index.html | 17 -- examples/vue-basic/package.json | 26 --- examples/vue-basic/public/favicon.svg | 130 ------------ examples/vue-basic/public/pwa-192x192.png | Bin 15230 -> 0 bytes examples/vue-basic/public/pwa-512x512.png | Bin 55738 -> 0 bytes examples/vue-basic/src/App.vue | 14 -- examples/vue-basic/src/ReloadPrompt.vue | 63 ------ examples/vue-basic/src/index.css | 7 - examples/vue-basic/src/main.ts | 5 - examples/vue-basic/src/shims-vue.d.ts | 5 - examples/vue-basic/vite.config.ts | 47 ----- examples/vue-router/package.json | 8 +- examples/vue-router/src/ReloadPrompt.vue | 1 + examples/vue-router/src/sw.ts | 18 ++ examples/vue-router/vite.config.ts | 93 +++++---- package.json | 39 ++-- pnpm-lock.yaml | 194 ++---------------- 113 files changed, 370 insertions(+), 2944 deletions(-) delete mode 100644 examples/react-basic-inject-manifest/README.md delete mode 100644 examples/react-basic-inject-manifest/index.html delete mode 100644 examples/react-basic-inject-manifest/package.json delete mode 100644 examples/react-basic-inject-manifest/public/favicon.svg delete mode 100644 examples/react-basic-inject-manifest/public/pwa-192x192.png delete mode 100644 examples/react-basic-inject-manifest/public/pwa-512x512.png delete mode 100644 examples/react-basic-inject-manifest/src/App.css delete mode 100644 examples/react-basic-inject-manifest/src/App.tsx delete mode 100644 examples/react-basic-inject-manifest/src/ReloadPrompt.css delete mode 100644 examples/react-basic-inject-manifest/src/ReloadPrompt.tsx delete mode 100644 examples/react-basic-inject-manifest/src/index.css delete mode 100644 examples/react-basic-inject-manifest/src/main.tsx delete mode 100644 examples/react-basic-inject-manifest/src/sw.ts delete mode 100644 examples/react-basic-inject-manifest/src/vite-env.d.ts delete mode 100644 examples/react-basic-inject-manifest/tsconfig.json delete mode 100644 examples/react-basic-inject-manifest/vite.config.ts delete mode 100644 examples/react-basic/README.md delete mode 100644 examples/react-basic/index.html delete mode 100644 examples/react-basic/package.json delete mode 100644 examples/react-basic/public/favicon.svg delete mode 100644 examples/react-basic/public/pwa-192x192.png delete mode 100644 examples/react-basic/public/pwa-512x512.png delete mode 100644 examples/react-basic/src/App.css delete mode 100644 examples/react-basic/src/App.tsx delete mode 100644 examples/react-basic/src/ReloadPrompt.css delete mode 100644 examples/react-basic/src/ReloadPrompt.tsx delete mode 100644 examples/react-basic/src/index.css delete mode 100644 examples/react-basic/src/main.tsx delete mode 100644 examples/react-basic/src/vite-env.d.ts delete mode 100644 examples/react-basic/tsconfig.json delete mode 100644 examples/react-basic/vite.config.ts create mode 100644 examples/react-router/src/sw.ts delete mode 100644 examples/svelte-basic-inject-manifest/README.md delete mode 100644 examples/svelte-basic-inject-manifest/index.html delete mode 100644 examples/svelte-basic-inject-manifest/package.json delete mode 100644 examples/svelte-basic-inject-manifest/public/favicon.svg delete mode 100644 examples/svelte-basic-inject-manifest/public/pwa-192x192.png delete mode 100644 examples/svelte-basic-inject-manifest/public/pwa-512x512.png delete mode 100644 examples/svelte-basic-inject-manifest/src/App.svelte delete mode 100644 examples/svelte-basic-inject-manifest/src/lib/Counter.svelte delete mode 100644 examples/svelte-basic-inject-manifest/src/lib/ReloadPrompt.svelte delete mode 100644 examples/svelte-basic-inject-manifest/src/main.ts delete mode 100644 examples/svelte-basic-inject-manifest/src/sw.ts delete mode 100644 examples/svelte-basic-inject-manifest/src/vite-env.d.ts delete mode 100644 examples/svelte-basic-inject-manifest/tsconfig.json delete mode 100644 examples/svelte-basic-inject-manifest/vite-env.d.ts delete mode 100644 examples/svelte-basic-inject-manifest/vite.config.ts delete mode 100644 examples/svelte-basic/README.md delete mode 100644 examples/svelte-basic/index.html delete mode 100644 examples/svelte-basic/package.json delete mode 100644 examples/svelte-basic/public/favicon.svg delete mode 100644 examples/svelte-basic/public/pwa-192x192.png delete mode 100644 examples/svelte-basic/public/pwa-512x512.png delete mode 100644 examples/svelte-basic/src/App.svelte delete mode 100644 examples/svelte-basic/src/lib/Counter.svelte delete mode 100644 examples/svelte-basic/src/lib/ReloadPrompt.svelte delete mode 100644 examples/svelte-basic/src/main.ts delete mode 100644 examples/svelte-basic/src/vite-env.d.ts delete mode 100644 examples/svelte-basic/svelte.config.ts delete mode 100644 examples/svelte-basic/tsconfig.json delete mode 100644 examples/svelte-basic/vite-env.d.ts delete mode 100644 examples/svelte-basic/vite.config.ts create mode 100644 examples/svelte-routify/src/sw.ts rename examples/{svelte-basic-inject-manifest/svelte.config.ts => svelte-routify/svelte.config.js} (100%) delete mode 100644 examples/svelte-routify/svelte.config.ts create mode 100644 examples/svelte-routify/vite.config.js delete mode 100644 examples/svelte-routify/vite.config.ts delete mode 100644 examples/vue-basic-inject-manifest/README.md delete mode 100644 examples/vue-basic-inject-manifest/index.html delete mode 100644 examples/vue-basic-inject-manifest/package.json delete mode 100644 examples/vue-basic-inject-manifest/public/favicon.svg delete mode 100644 examples/vue-basic-inject-manifest/public/pwa-192x192.png delete mode 100644 examples/vue-basic-inject-manifest/public/pwa-512x512.png delete mode 100644 examples/vue-basic-inject-manifest/src/App.vue delete mode 100644 examples/vue-basic-inject-manifest/src/ReloadPrompt.vue delete mode 100644 examples/vue-basic-inject-manifest/src/index.css delete mode 100644 examples/vue-basic-inject-manifest/src/main.ts delete mode 100644 examples/vue-basic-inject-manifest/src/my-worker.js delete mode 100644 examples/vue-basic-inject-manifest/src/shims-vue.d.ts delete mode 100644 examples/vue-basic-inject-manifest/src/sw.ts delete mode 100644 examples/vue-basic-inject-manifest/src/workerImport.js delete mode 100644 examples/vue-basic-inject-manifest/vite.config.ts delete mode 100644 examples/vue-basic/README.md delete mode 100644 examples/vue-basic/index.html delete mode 100644 examples/vue-basic/package.json delete mode 100644 examples/vue-basic/public/favicon.svg delete mode 100644 examples/vue-basic/public/pwa-192x192.png delete mode 100644 examples/vue-basic/public/pwa-512x512.png delete mode 100644 examples/vue-basic/src/App.vue delete mode 100644 examples/vue-basic/src/ReloadPrompt.vue delete mode 100644 examples/vue-basic/src/index.css delete mode 100644 examples/vue-basic/src/main.ts delete mode 100644 examples/vue-basic/src/shims-vue.d.ts delete mode 100644 examples/vue-basic/vite.config.ts create mode 100644 examples/vue-router/src/sw.ts diff --git a/docs/examples/index.md b/docs/examples/index.md index e23a2f07..ea7a5146 100644 --- a/docs/examples/index.md +++ b/docs/examples/index.md @@ -94,12 +94,8 @@ We provide the following example projects: