From dcdeca56acb6c03d4868ece51ef4611e7598e270 Mon Sep 17 00:00:00 2001 From: Princesseuh Date: Tue, 8 Nov 2022 18:39:22 +0000 Subject: [PATCH] [ci] format --- examples/blog/src/layouts/BlogPost.astro | 12 ++- examples/blog/src/pages/blog.astro | 26 ++--- .../src/components/Footer/AvatarList.astro | 44 ++++---- examples/docs/src/components/HeadCommon.astro | 4 +- .../components/LeftSidebar/LeftSidebar.astro | 40 +++---- .../components/RightSidebar/MoreMenu.astro | 100 +++++++++--------- examples/framework-lit/src/pages/index.astro | 10 +- .../hackernews/src/components/Comment.astro | 2 +- examples/hackernews/src/components/For.astro | 16 +-- examples/hackernews/src/components/Nav.astro | 12 ++- .../hackernews/src/pages/users/[id].astro | 2 +- .../src/components/PortfolioPreview.astro | 12 ++- .../ssr/src/components/ProductListing.astro | 28 ++--- .../src/components/TextDecorationSkip.astro | 14 +-- examples/ssr/src/pages/cart.astro | 14 +-- .../src/pages/index.astro | 4 +- packages/astro/CHANGELOG.md | 14 +-- 17 files changed, 187 insertions(+), 167 deletions(-) diff --git a/examples/blog/src/layouts/BlogPost.astro b/examples/blog/src/layouts/BlogPost.astro index 67f297444..4baf8e972 100644 --- a/examples/blog/src/layouts/BlogPost.astro +++ b/examples/blog/src/layouts/BlogPost.astro @@ -40,11 +40,13 @@ const { {heroImage && }

{title}

{pubDate && } - {updatedDate && ( -
- Last updated on -
- )} + { + updatedDate && ( +
+ Last updated on +
+ ) + }
diff --git a/examples/blog/src/pages/blog.astro b/examples/blog/src/pages/blog.astro index c50cc0528..cedf505b0 100644 --- a/examples/blog/src/pages/blog.astro +++ b/examples/blog/src/pages/blog.astro @@ -37,18 +37,20 @@ const posts = (await Astro.glob('./blog/*.{md,mdx}')).sort(
    - {posts.map((post) => ( -
  • - - {post.frontmatter.title} -
  • - ))} + { + posts.map((post) => ( +
  • + + {post.frontmatter.title} +
  • + )) + }
diff --git a/examples/docs/src/components/Footer/AvatarList.astro b/examples/docs/src/components/Footer/AvatarList.astro index 5926936d6..b75589f5a 100644 --- a/examples/docs/src/components/Footer/AvatarList.astro +++ b/examples/docs/src/components/Footer/AvatarList.astro @@ -72,27 +72,31 @@ const additionalContributors = unique.length - recentContributors.length; // lis
    - {recentContributors.map((item) => ( -
  • - - {`Contributor - -
  • - ))} + { + recentContributors.map((item) => ( +
  • + + {`Contributor + +
  • + )) + }
- {additionalContributors > 0 && ( - - {`and ${additionalContributors} additional contributor${ - additionalContributors > 1 ? 's' : '' - }.`} - - )} + { + additionalContributors > 0 && ( + + {`and ${additionalContributors} additional contributor${ + additionalContributors > 1 ? 's' : '' + }.`} + + ) + } {unique.length === 0 && Contributors}
diff --git a/examples/docs/src/components/HeadCommon.astro b/examples/docs/src/components/HeadCommon.astro index 3551e5489..d77e4a90c 100644 --- a/examples/docs/src/components/HeadCommon.astro +++ b/examples/docs/src/components/HeadCommon.astro @@ -21,9 +21,7 @@ import '../styles/index.css'; /> - + + diff --git a/packages/astro/CHANGELOG.md b/packages/astro/CHANGELOG.md index 1885c650b..3fe64f0e4 100644 --- a/packages/astro/CHANGELOG.md +++ b/packages/astro/CHANGELOG.md @@ -501,7 +501,7 @@ This expands the abilities of `set:html` to ultimate service this use-case: ```astro -
+
``` This means you can take a legacy app that has been statically generated to HTML and directly consume that HTML within your templates. As is always the case with `set:html`, this should only be used on trusted content. @@ -514,8 +514,7 @@ set:html={new Response('Hello world', { headers: { 'content-type': 'text/html' }, })} - > -
+ /> ``` - `ReadableStream`s: ```astro @@ -526,8 +525,7 @@ controller.close(); }, })} - > - + /> ``` - `AsyncIterable`s: ```astro @@ -537,8 +535,7 @@ yield `
  • ${num}
  • `; } })()} - > - + /> ``` - `Iterable`s (non-async): ```astro @@ -548,8 +545,7 @@ yield `
  • ${num}
  • `; } })()} - > - + /> ``` ### Patch Changes