From 85d49404d3ded442075762397e9f296666f2a78a Mon Sep 17 00:00:00 2001 From: Ben McCann <322311+benmccann@users.noreply.github.com> Date: Mon, 10 Jul 2023 12:33:24 -0700 Subject: [PATCH] site: specify width/height and fix prettier (#8917) --- sites/svelte.dev/package.json | 2 +- sites/svelte.dev/src/lib/db/session.js | 16 +++++++--------- .../src/routes/_components/Hero.svelte | 5 +++-- .../routes/_components/Supporters/index.svelte | 4 +--- .../_components/WhosUsingSvelte/index.svelte | 10 ++++++---- 5 files changed, 18 insertions(+), 19 deletions(-) diff --git a/sites/svelte.dev/package.json b/sites/svelte.dev/package.json index e06026393742..fbd6edce69fd 100644 --- a/sites/svelte.dev/package.json +++ b/sites/svelte.dev/package.json @@ -13,7 +13,7 @@ "start": "node build", "check": "node scripts/update.js && pnpm generate && svelte-kit sync && svelte-check", "check:watch": "svelte-kit sync && svelte-check --watch", - "format": "pnpm run check:format -- --write", + "format": "prettier --check . --ignore-path .gitignore --plugin-search-dir=. --write", "check:format": "prettier --check . --ignore-path .gitignore --plugin-search-dir=." }, "dependencies": { diff --git a/sites/svelte.dev/src/lib/db/session.js b/sites/svelte.dev/src/lib/db/session.js index 5c4f4bc0adc6..49872cbfda87 100644 --- a/sites/svelte.dev/src/lib/db/session.js +++ b/sites/svelte.dev/src/lib/db/session.js @@ -47,16 +47,14 @@ export async function read(sessionid) { if (!session_cache.get(sessionid)) { session_cache.set( sessionid, - await client - .rpc('get_user', { sessionid }) - .then(({ data, error }) => { - if (error) { - session_cache.set(sessionid, null); - throw new Error(error.message); - } + await client.rpc('get_user', { sessionid }).then(({ data, error }) => { + if (error) { + session_cache.set(sessionid, null); + throw new Error(error.message); + } - return data.id && data; - }) + return data.id && data; + }) ); } diff --git a/sites/svelte.dev/src/routes/_components/Hero.svelte b/sites/svelte.dev/src/routes/_components/Hero.svelte index bdff99be85d3..9122196b4b33 100644 --- a/sites/svelte.dev/src/routes/_components/Hero.svelte +++ b/sites/svelte.dev/src/routes/_components/Hero.svelte @@ -11,9 +11,9 @@
- Svelte logotype + Svelte logotype - Cybernetically enhanced
web apps + Cybernetically enhanced
web apps