From 21b80a151984927b266f3d9ffe7db9a7f77dd27a Mon Sep 17 00:00:00 2001 From: Ignatius Bagus Date: Wed, 1 May 2024 22:37:08 +0700 Subject: [PATCH 1/3] meta: init website --- README.md | 4 +++- workspace/website/package.json | 4 ++-- workspace/website/src/app.d.ts | 12 ++++++++++++ workspace/website/src/app.html | 16 ++++++++++++++++ .../website/src/routes/updates.json/+server.ts | 17 +++++++++++++++++ workspace/website/static/favicon.png | Bin 0 -> 1373 bytes workspace/website/static/robots.txt | 3 +++ 7 files changed, 53 insertions(+), 3 deletions(-) create mode 100644 workspace/website/src/app.d.ts create mode 100644 workspace/website/src/app.html create mode 100644 workspace/website/src/routes/updates.json/+server.ts create mode 100644 workspace/website/static/favicon.png create mode 100644 workspace/website/static/robots.txt diff --git a/README.md b/README.md index 5edb425..6d8ddfb 100644 --- a/README.md +++ b/README.md @@ -29,7 +29,9 @@ Clone this repository, setup and run the build script git clone https://github.com/sveltejs/svelte-devtools.git cd svelte-devtools pnpm install -pnpm build + +cd workspace/extension +pnpm dev ``` This will build the codebase and output all the required files in the `build` directory. To load the extension for development, follow these steps: diff --git a/workspace/website/package.json b/workspace/website/package.json index 2fae8f5..763e615 100644 --- a/workspace/website/package.json +++ b/workspace/website/package.json @@ -4,9 +4,9 @@ "scripts": { "dev": "vite dev", "build": "svelte-kit sync && vite build", - "format": "prettier --write .", + "format": "prettier -w .", "check": "pnpm run \"/^check:.*/\"", - "check:style": "prettier --check .", + "check:style": "prettier -c .", "check:svelte": "svelte-kit sync && svelte-check src --tsconfig ./tsconfig.json" }, "devDependencies": { diff --git a/workspace/website/src/app.d.ts b/workspace/website/src/app.d.ts new file mode 100644 index 0000000..0d4265d --- /dev/null +++ b/workspace/website/src/app.d.ts @@ -0,0 +1,12 @@ +declare global { + namespace App { + // interface Error {} + // interface Locals {} + interface PageData { + meta: { + title: string; + description?: string; + }; + } + } +} diff --git a/workspace/website/src/app.html b/workspace/website/src/app.html new file mode 100644 index 0000000..df8cfba --- /dev/null +++ b/workspace/website/src/app.html @@ -0,0 +1,16 @@ + + + + + + + + + + %sveltekit.head% + + + +
%sveltekit.body%
+ + diff --git a/workspace/website/src/routes/updates.json/+server.ts b/workspace/website/src/routes/updates.json/+server.ts new file mode 100644 index 0000000..d30e3d0 --- /dev/null +++ b/workspace/website/src/routes/updates.json/+server.ts @@ -0,0 +1,17 @@ +import { json } from '@sveltejs/kit'; + +const base = 'https://github.com/sveltejs/svelte-devtools/releases/download'; +const updates = ['2.2.0']; + +export async function GET() { + return json({ + addons: { + 'firefox-devtools@svelte.dev': { + updates: updates.map((v) => { + const link = `${base}/v${v}/svelte-devtools.xpi`; + return { version: v, update_link: link }; + }), + }, + }, + }); +} diff --git a/workspace/website/static/favicon.png b/workspace/website/static/favicon.png new file mode 100644 index 0000000000000000000000000000000000000000..21bc302b6882fcb18ab7c6fa1839e3f523199ae9 GIT binary patch literal 1373 zcmb7^|3A|S9LGN!$I{&9OTM!)jG`l*O1ALuZI?FRBA17zg~Bag3Yjk>(}=?;N@^#> zV~`C*RRmA> z;55j`YT0?tQ6%I2b;l|g#>IIJWQkJS=96kw`p-7^Wp`M@F`4JRp=&RzLCvi7 zfelewei(nDrDxl*l2*7W<>lFw#Ym$%!G+|U=R5hORvT6?b{Ffib@dB*iyoynF({g4 zKZs17T&vs&hLIJKFrCPPp372ySoB+1Yp}zP_iSY=%R)4T3#y6RF+L@dBQS5M4^bmJ z`4ju^jt!X(Q&;6rd6aadAQG!^*(q&e85brX6#0XAic~!(W&EB!*|~O4uZS1hdb4{uH2NjE!G-S< zO2}bbXT~(9dF_XG1K;jGrtTa12P>}L!5SXoc>0-1z9uUgKFD+#*6GxWI-1-IZ&;?@ zD^g99O5#uClt}jetf?{uL5q!xFIv}_;_0t=wBk%}ry=`Ke*sC)AmXnNH^!-OG|Sj~ zNrH>Mv<2|t2EWlt9H+d)_^QacFL4TB1Z8d)5BLPYiK{tRKM4+cHjPEi&zUt&8wCh4 zLU)A;%VD{;D21Gqh!Dn+eqGT$!=|}nLj-zVFXr1u&{s-i13N~z+~$sK!>)5-`5%p~ z5;WkXf7QP(E@zxRR-0;j$nqUCq=yu1iVf9Lv!VCb6CqAkVk02nQFtU2!0P~wLGf`y zIKT$>XYSZPIX){fSU#&-j#S88pbfSJ_nbKOHyC;Y(`Hys%%JRh(HO6g=xk!3BP$*UYS>xJh)IF2$Up)6SzJX@Rg6F@4u8!Ywt()m0 zZJAePZ89S6C)|0Ll_}7xw=>N$8ZI-0K!q5)l|Yldh$SuS0en$X&18g$GR(KKzP2hJ zo7;~QFzkJEyH|S#34ELfwvaVr-P^SS%Q1`8J2lum@Ytp3(fE2p#1e~}5sn~I5aQ&X zUe7B)EaA9oY1012*3$I*)b{0zBvbk(x*}kq ztku8OvAWZNiZai&wYVIbVd4?64N5~ZuSsb?n7g_%&2iC^1AD$tWR0v@q88qtUEO_I bedL5nFQ=R0R@YaqEHHrJMf7a;Am{!EfXa*$ literal 0 HcmV?d00001 diff --git a/workspace/website/static/robots.txt b/workspace/website/static/robots.txt new file mode 100644 index 0000000..e9e57dc --- /dev/null +++ b/workspace/website/static/robots.txt @@ -0,0 +1,3 @@ +# https://www.robotstxt.org/robotstxt.html +User-agent: * +Disallow: From f3f50cbcf9153254421fc54b3ac642702dbabc0a Mon Sep 17 00:00:00 2001 From: Ignatius Bagus Date: Wed, 1 May 2024 22:40:36 +0700 Subject: [PATCH 2/3] lint --- workspace/website/src/app.d.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/workspace/website/src/app.d.ts b/workspace/website/src/app.d.ts index 0d4265d..5e20bd2 100644 --- a/workspace/website/src/app.d.ts +++ b/workspace/website/src/app.d.ts @@ -10,3 +10,5 @@ declare global { } } } + +export {}; From f3ce14a2817122ef9bb118afea6ad0d9422d1a06 Mon Sep 17 00:00:00 2001 From: Ignatius Bagus Date: Mon, 28 Oct 2024 12:59:30 +0700 Subject: [PATCH 3/3] purge website --- workspace/website/.gitignore | 2 -- workspace/website/package.json | 16 ---------------- workspace/website/src/app.d.ts | 14 -------------- workspace/website/src/app.html | 16 ---------------- workspace/website/src/routes/+layout.svelte | 5 ----- .../website/src/routes/updates.json/+server.ts | 17 ----------------- workspace/website/static/favicon.png | Bin 1373 -> 0 bytes workspace/website/static/robots.txt | 3 --- workspace/website/svelte.config.js | 13 ------------- workspace/website/tsconfig.json | 7 ------- workspace/website/vite.config.ts | 8 -------- 11 files changed, 101 deletions(-) delete mode 100644 workspace/website/.gitignore delete mode 100644 workspace/website/package.json delete mode 100644 workspace/website/src/app.d.ts delete mode 100644 workspace/website/src/app.html delete mode 100644 workspace/website/src/routes/+layout.svelte delete mode 100644 workspace/website/src/routes/updates.json/+server.ts delete mode 100644 workspace/website/static/favicon.png delete mode 100644 workspace/website/static/robots.txt delete mode 100644 workspace/website/svelte.config.js delete mode 100644 workspace/website/tsconfig.json delete mode 100644 workspace/website/vite.config.ts diff --git a/workspace/website/.gitignore b/workspace/website/.gitignore deleted file mode 100644 index eeecf46..0000000 --- a/workspace/website/.gitignore +++ /dev/null @@ -1,2 +0,0 @@ -.svelte-kit/ -build/ diff --git a/workspace/website/package.json b/workspace/website/package.json deleted file mode 100644 index 25d5c1c..0000000 --- a/workspace/website/package.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "private": true, - "type": "module", - "scripts": { - "dev": "vite dev", - "build": "svelte-kit sync && vite build", - "format": "prettier -w .", - "check": "pnpm run \"/^check:.*/\"", - "check:style": "prettier -c .", - "check:svelte": "svelte-kit sync && svelte-check src --tsconfig ./tsconfig.json" - }, - "devDependencies": { - "@sveltejs/adapter-vercel": "^5.4.4", - "@sveltejs/kit": "^2.5.28" - } -} diff --git a/workspace/website/src/app.d.ts b/workspace/website/src/app.d.ts deleted file mode 100644 index 5e20bd2..0000000 --- a/workspace/website/src/app.d.ts +++ /dev/null @@ -1,14 +0,0 @@ -declare global { - namespace App { - // interface Error {} - // interface Locals {} - interface PageData { - meta: { - title: string; - description?: string; - }; - } - } -} - -export {}; diff --git a/workspace/website/src/app.html b/workspace/website/src/app.html deleted file mode 100644 index df8cfba..0000000 --- a/workspace/website/src/app.html +++ /dev/null @@ -1,16 +0,0 @@ - - - - - - - - - - %sveltekit.head% - - - -
%sveltekit.body%
- - diff --git a/workspace/website/src/routes/+layout.svelte b/workspace/website/src/routes/+layout.svelte deleted file mode 100644 index a54cfdc..0000000 --- a/workspace/website/src/routes/+layout.svelte +++ /dev/null @@ -1,5 +0,0 @@ - - -{@render children()} diff --git a/workspace/website/src/routes/updates.json/+server.ts b/workspace/website/src/routes/updates.json/+server.ts deleted file mode 100644 index d30e3d0..0000000 --- a/workspace/website/src/routes/updates.json/+server.ts +++ /dev/null @@ -1,17 +0,0 @@ -import { json } from '@sveltejs/kit'; - -const base = 'https://github.com/sveltejs/svelte-devtools/releases/download'; -const updates = ['2.2.0']; - -export async function GET() { - return json({ - addons: { - 'firefox-devtools@svelte.dev': { - updates: updates.map((v) => { - const link = `${base}/v${v}/svelte-devtools.xpi`; - return { version: v, update_link: link }; - }), - }, - }, - }); -} diff --git a/workspace/website/static/favicon.png b/workspace/website/static/favicon.png deleted file mode 100644 index 21bc302b6882fcb18ab7c6fa1839e3f523199ae9..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1373 zcmb7^|3A|S9LGN!$I{&9OTM!)jG`l*O1ALuZI?FRBA17zg~Bag3Yjk>(}=?;N@^#> zV~`C*RRmA> z;55j`YT0?tQ6%I2b;l|g#>IIJWQkJS=96kw`p-7^Wp`M@F`4JRp=&RzLCvi7 zfelewei(nDrDxl*l2*7W<>lFw#Ym$%!G+|U=R5hORvT6?b{Ffib@dB*iyoynF({g4 zKZs17T&vs&hLIJKFrCPPp372ySoB+1Yp}zP_iSY=%R)4T3#y6RF+L@dBQS5M4^bmJ z`4ju^jt!X(Q&;6rd6aadAQG!^*(q&e85brX6#0XAic~!(W&EB!*|~O4uZS1hdb4{uH2NjE!G-S< zO2}bbXT~(9dF_XG1K;jGrtTa12P>}L!5SXoc>0-1z9uUgKFD+#*6GxWI-1-IZ&;?@ zD^g99O5#uClt}jetf?{uL5q!xFIv}_;_0t=wBk%}ry=`Ke*sC)AmXnNH^!-OG|Sj~ zNrH>Mv<2|t2EWlt9H+d)_^QacFL4TB1Z8d)5BLPYiK{tRKM4+cHjPEi&zUt&8wCh4 zLU)A;%VD{;D21Gqh!Dn+eqGT$!=|}nLj-zVFXr1u&{s-i13N~z+~$sK!>)5-`5%p~ z5;WkXf7QP(E@zxRR-0;j$nqUCq=yu1iVf9Lv!VCb6CqAkVk02nQFtU2!0P~wLGf`y zIKT$>XYSZPIX){fSU#&-j#S88pbfSJ_nbKOHyC;Y(`Hys%%JRh(HO6g=xk!3BP$*UYS>xJh)IF2$Up)6SzJX@Rg6F@4u8!Ywt()m0 zZJAePZ89S6C)|0Ll_}7xw=>N$8ZI-0K!q5)l|Yldh$SuS0en$X&18g$GR(KKzP2hJ zo7;~QFzkJEyH|S#34ELfwvaVr-P^SS%Q1`8J2lum@Ytp3(fE2p#1e~}5sn~I5aQ&X zUe7B)EaA9oY1012*3$I*)b{0zBvbk(x*}kq ztku8OvAWZNiZai&wYVIbVd4?64N5~ZuSsb?n7g_%&2iC^1AD$tWR0v@q88qtUEO_I bedL5nFQ=R0R@YaqEHHrJMf7a;Am{!EfXa*$ diff --git a/workspace/website/static/robots.txt b/workspace/website/static/robots.txt deleted file mode 100644 index e9e57dc..0000000 --- a/workspace/website/static/robots.txt +++ /dev/null @@ -1,3 +0,0 @@ -# https://www.robotstxt.org/robotstxt.html -User-agent: * -Disallow: diff --git a/workspace/website/svelte.config.js b/workspace/website/svelte.config.js deleted file mode 100644 index 6126173..0000000 --- a/workspace/website/svelte.config.js +++ /dev/null @@ -1,13 +0,0 @@ -import adapter from '@sveltejs/adapter-vercel'; -import { vitePreprocess } from '@sveltejs/vite-plugin-svelte'; - -/** @type {import('@sveltejs/kit').Config} */ -const config = { - preprocess: [vitePreprocess()], - - kit: { - adapter: adapter(), - }, -}; - -export default config; diff --git a/workspace/website/tsconfig.json b/workspace/website/tsconfig.json deleted file mode 100644 index fa7ffa5..0000000 --- a/workspace/website/tsconfig.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "extends": "./.svelte-kit/tsconfig.json", - "compilerOptions": { - "skipLibCheck": true, - "resolveJsonModule": true - } -} diff --git a/workspace/website/vite.config.ts b/workspace/website/vite.config.ts deleted file mode 100644 index 8a1a925..0000000 --- a/workspace/website/vite.config.ts +++ /dev/null @@ -1,8 +0,0 @@ -import { sveltekit } from '@sveltejs/kit/vite'; -import { defineConfig } from 'vite'; - -export default defineConfig(() => { - return { - plugins: [sveltekit()], - }; -});