From 3834c124c9783b4d0d493d4b51b246e018c633a0 Mon Sep 17 00:00:00 2001 From: Mark Peck Date: Thu, 28 Dec 2023 21:10:08 +0000 Subject: [PATCH] [ci] format --- examples/starlog/README.md | 1 + examples/starlog/astro.config.mjs | 2 +- examples/starlog/package.json | 2 +- .../starlog/src/components/BaseHead.astro | 18 +- examples/starlog/src/components/Footer.astro | 12 +- .../src/components/FormattedDate.astro | 8 +- examples/starlog/src/components/Header.astro | 58 ++- examples/starlog/src/components/SEO.astro | 90 ++-- examples/starlog/src/consts.ts | 1 - examples/starlog/src/content/config.ts | 30 +- examples/starlog/src/content/releases/1_0.md | 16 +- examples/starlog/src/content/releases/1_4.md | 16 +- examples/starlog/src/content/releases/1_8.md | 16 +- examples/starlog/src/content/releases/2_0.md | 25 +- .../starlog/src/layouts/IndexLayout.astro | 28 +- examples/starlog/src/layouts/PostLayout.astro | 19 +- examples/starlog/src/pages/index.astro | 33 +- .../starlog/src/pages/releases/[slug].astro | 18 +- examples/starlog/src/styles/colors.scss | 109 +++-- examples/starlog/src/styles/layout.scss | 413 ++++++++++-------- examples/starlog/src/styles/type.scss | 81 ++-- examples/starlog/tsconfig.json | 2 +- 22 files changed, 551 insertions(+), 447 deletions(-) diff --git a/examples/starlog/README.md b/examples/starlog/README.md index 0ccf2dcefe..da5cb142c0 100644 --- a/examples/starlog/README.md +++ b/examples/starlog/README.md @@ -1,4 +1,5 @@ # Starlog + ## Release notes theme for Astro ![starlog-gh](https://github.com/doodlemarks/starlog/assets/2244813/9c5c2e46-665a-437e-a971-053db4dbff63) diff --git a/examples/starlog/astro.config.mjs b/examples/starlog/astro.config.mjs index eed4cdda8d..b093ec0e02 100644 --- a/examples/starlog/astro.config.mjs +++ b/examples/starlog/astro.config.mjs @@ -2,5 +2,5 @@ import { defineConfig } from 'astro/config'; // https://astro.build/config export default defineConfig({ - site: "https://example.com", + site: 'https://example.com', }); diff --git a/examples/starlog/package.json b/examples/starlog/package.json index a602acfdaf..8975eaa5cd 100644 --- a/examples/starlog/package.json +++ b/examples/starlog/package.json @@ -14,4 +14,4 @@ "sass": "^1.69.5", "sharp": "^0.32.5" } -} \ No newline at end of file +} diff --git a/examples/starlog/src/components/BaseHead.astro b/examples/starlog/src/components/BaseHead.astro index 40c0baefc9..e32945c1c8 100644 --- a/examples/starlog/src/components/BaseHead.astro +++ b/examples/starlog/src/components/BaseHead.astro @@ -3,19 +3,17 @@ import { ViewTransitions } from 'astro:transitions'; import SEO, { type Props as SEOProps } from './SEO.astro'; import { SiteTitle, SiteDescription } from '../consts'; -export type Props = Partial -const { - title = SiteTitle, - name = SiteTitle, - description = SiteDescription, - ...seo -} = Astro.props +export type Props = Partial; +const { title = SiteTitle, name = SiteTitle, description = SiteDescription, ...seo } = Astro.props; --- - - - + + + diff --git a/examples/starlog/src/components/Footer.astro b/examples/starlog/src/components/Footer.astro index 6c93cd8eda..276550d4ae 100644 --- a/examples/starlog/src/components/Footer.astro +++ b/examples/starlog/src/components/Footer.astro @@ -3,10 +3,10 @@ import '../styles/global.scss'; --- diff --git a/examples/starlog/src/components/FormattedDate.astro b/examples/starlog/src/components/FormattedDate.astro index 3cc0d768fc..377286d9f4 100644 --- a/examples/starlog/src/components/FormattedDate.astro +++ b/examples/starlog/src/components/FormattedDate.astro @@ -3,7 +3,7 @@ import type { HTMLAttributes } from 'astro/types'; type Props = HTMLAttributes<'time'> & { date: Date; -} +}; const { date, ...attrs } = Astro.props; --- @@ -19,7 +19,7 @@ const { date, ...attrs } = Astro.props; diff --git a/examples/starlog/src/components/Header.astro b/examples/starlog/src/components/Header.astro index 90caab23ee..bbdaf1e70c 100644 --- a/examples/starlog/src/components/Header.astro +++ b/examples/starlog/src/components/Header.astro @@ -4,21 +4,51 @@ import { SiteTitle } from '../consts'; ---
- +
diff --git a/examples/starlog/src/components/SEO.astro b/examples/starlog/src/components/SEO.astro index 7533f85280..1e2ddcca27 100644 --- a/examples/starlog/src/components/SEO.astro +++ b/examples/starlog/src/components/SEO.astro @@ -1,66 +1,66 @@ --- -import type { ImageMetadata } from 'astro' +import type { ImageMetadata } from 'astro'; type Image = { - src: string | ImageMetadata, - alt: string -} + src: string | ImageMetadata; + alt: string; +}; type SEOMetadata = { - name: string - title: string - description: string - image?: Image | undefined - canonicalURL?: URL | string | undefined - locale?: string -} + name: string; + title: string; + description: string; + image?: Image | undefined; + canonicalURL?: URL | string | undefined; + locale?: string; +}; type OpenGraph = Partial & { - type?: string -} + type?: string; +}; type Twitter = Partial & { - handle?: string - card?: 'summary' | 'summary_large_image' -} + handle?: string; + card?: 'summary' | 'summary_large_image'; +}; export type Props = SEOMetadata & { - og?: OpenGraph - twitter?: Twitter -} + og?: OpenGraph; + twitter?: Twitter; +}; const { - name, - title, - description, - image, - locale = 'en', - canonicalURL = new URL(Astro.url.pathname, Astro.site), -} = Astro.props + name, + title, + description, + image, + locale = 'en', + canonicalURL = new URL(Astro.url.pathname, Astro.site), +} = Astro.props; const og = { - name, - title, - description, - canonicalURL, - image, - locale, - type: "website", - ...Astro.props.og ?? {}, -} satisfies OpenGraph + name, + title, + description, + canonicalURL, + image, + locale, + type: 'website', + ...(Astro.props.og ?? {}), +} satisfies OpenGraph; const twitter = { - name, - title, - description, - canonicalURL, - image, - locale, - card: "summary_large_image", - ...Astro.props.twitter, -} + name, + title, + description, + canonicalURL, + image, + locale, + card: 'summary_large_image', + ...Astro.props.twitter, +}; function normalizeImageUrl(image: string | ImageMetadata) { - return typeof image === 'string' ? image : image.src + return typeof image === 'string' ? image : image.src; } --- diff --git a/examples/starlog/src/consts.ts b/examples/starlog/src/consts.ts index 4541a150d6..3e91752e17 100644 --- a/examples/starlog/src/consts.ts +++ b/examples/starlog/src/consts.ts @@ -3,4 +3,3 @@ export const SiteTitle = 'Starlog'; export const SiteDescription = 'Welcome to my website!'; - diff --git a/examples/starlog/src/content/config.ts b/examples/starlog/src/content/config.ts index ae9e67cdca..5cc4c697f7 100644 --- a/examples/starlog/src/content/config.ts +++ b/examples/starlog/src/content/config.ts @@ -1,19 +1,19 @@ -import { defineCollection, z } from "astro:content" +import { defineCollection, z } from 'astro:content'; const releases = defineCollection({ - // Type-check frontmatter using a schema - schema: ({ image }) => z.object({ - title: z.string(), - description: z.string(), - versionNumber: z.string(), - image: z.object({ - src: image(), - alt: z.string() - }), - // Transform string to Date object - date: z.date({ coerce: true }), - }) -}) + // Type-check frontmatter using a schema + schema: ({ image }) => + z.object({ + title: z.string(), + description: z.string(), + versionNumber: z.string(), + image: z.object({ + src: image(), + alt: z.string(), + }), + // Transform string to Date object + date: z.date({ coerce: true }), + }), +}); export const collections = { releases }; - diff --git a/examples/starlog/src/content/releases/1_0.md b/examples/starlog/src/content/releases/1_0.md index 4d977f19c7..a5eeff4372 100644 --- a/examples/starlog/src/content/releases/1_0.md +++ b/examples/starlog/src/content/releases/1_0.md @@ -4,8 +4,8 @@ date: '2022-03-21' versionNumber: '1.0' description: 'This is the first post of my new Astro blog.' image: - src: '../../assets/starlog-placeholder-1.jpg' - alt: 'The full Astro logo.' + src: '../../assets/starlog-placeholder-1.jpg' + alt: 'The full Astro logo.' --- ## A New World with 1.0 @@ -16,14 +16,14 @@ Hey there, Nebulous users! We're back with some exciting updates that will turbo ### 🍿 New Features & Enhancements -* __NebulaProtect Supercharged:__ Enjoy beefed-up security and real-time monitoring to keep your digital fortress unbreachable. -* __NebulaConnect for Teams:__ Collaboration is a breeze with integrated project management tools. -* __Speed Boost Galore:__ We've fine-tuned Nebulous for ultimate speed and responsiveness. +- **NebulaProtect Supercharged:** Enjoy beefed-up security and real-time monitoring to keep your digital fortress unbreachable. +- **NebulaConnect for Teams:** Collaboration is a breeze with integrated project management tools. +- **Speed Boost Galore:** We've fine-tuned Nebulous for ultimate speed and responsiveness. ### 🐞 Bug Fixes -* Kicked pesky crashes out the door for NebulaSync. -* Fixed rare data hiccups during file transfers. -* Nebulous is now even friendly with older devices. +- Kicked pesky crashes out the door for NebulaSync. +- Fixed rare data hiccups during file transfers. +- Nebulous is now even friendly with older devices. Thank you for making Nebulous your tech partner. We thrive on your feedback, so if you have ideas or run into bumps, don't hesitate to drop a line to our support wizards. Together, we're taking Nebulous to the next level! diff --git a/examples/starlog/src/content/releases/1_4.md b/examples/starlog/src/content/releases/1_4.md index aca421d785..aacab8a847 100644 --- a/examples/starlog/src/content/releases/1_4.md +++ b/examples/starlog/src/content/releases/1_4.md @@ -4,8 +4,8 @@ date: '2022-04-16' versionNumber: '1.4' description: 'This is the first post of my new Astro blog.' image: - src: '../../assets/starlog-placeholder-14.jpg' - alt: 'The full Astro logo.' + src: '../../assets/starlog-placeholder-14.jpg' + alt: 'The full Astro logo.' --- ## Go further with 1.4 @@ -16,14 +16,14 @@ Hello, Nebulous enthusiasts! It's that time again—time for us to unveil the la ### 🍿 New Features & Enhancements -* __NebulaSync Quantum:__ Prepare for a mind-blowing file syncing experience. It's faster, smarter, and more intuitive than ever before. -* __NebulaAI Odyssey:__ Welcome to the era of NebulaAI Odyssey—a journey into the boundless possibilities of artificial intelligence. From image manipulation to language translation, Odyssey empowers you like never before. +- **NebulaSync Quantum:** Prepare for a mind-blowing file syncing experience. It's faster, smarter, and more intuitive than ever before. +- **NebulaAI Odyssey:** Welcome to the era of NebulaAI Odyssey—a journey into the boundless possibilities of artificial intelligence. From image manipulation to language translation, Odyssey empowers you like never before. ### 🐞 Bug Fixes -* Squashed even more bugs, making NebulaSync and other features more reliable than ever. -* Streamlined data transfer processes for flawless file exchanges. -* Extended support for older devices to ensure everyone enjoys Nebulous. -* Elevating error handling to the next level, ensuring a hiccup-free experience. +- Squashed even more bugs, making NebulaSync and other features more reliable than ever. +- Streamlined data transfer processes for flawless file exchanges. +- Extended support for older devices to ensure everyone enjoys Nebulous. +- Elevating error handling to the next level, ensuring a hiccup-free experience. Thank you for being a part of the Nebulous journey. Your feedback fuels our innovation, so don't hesitate to share your thoughts or report any hiccups with our dedicated support team. Together, we're shaping the future of tech with Nebulous! diff --git a/examples/starlog/src/content/releases/1_8.md b/examples/starlog/src/content/releases/1_8.md index b1fdd93d6f..d300f964c4 100644 --- a/examples/starlog/src/content/releases/1_8.md +++ b/examples/starlog/src/content/releases/1_8.md @@ -4,8 +4,8 @@ date: '2022-06-01' versionNumber: '1.8' description: 'This is the first post of my new Astro blog.' image: - src: '../../assets/starlog-placeholder-18.jpg' - alt: 'The full Astro logo.' + src: '../../assets/starlog-placeholder-18.jpg' + alt: 'The full Astro logo.' --- ## Faster, Stronger, Betterer @@ -16,14 +16,14 @@ Hey there, Nebulous users! We're back with some exciting updates that will turbo ### New Features & Enhancements -* __NebulaProtect Supercharged:__ Enjoy beefed-up security and real-time monitoring to keep your digital fortress unbreachable. -* __NebulaConnect for Teams:__ Collaboration is a breeze with integrated project management tools. -* __Speed Boost Galore:__ We've fine-tuned Nebulous for ultimate speed and responsiveness. +- **NebulaProtect Supercharged:** Enjoy beefed-up security and real-time monitoring to keep your digital fortress unbreachable. +- **NebulaConnect for Teams:** Collaboration is a breeze with integrated project management tools. +- **Speed Boost Galore:** We've fine-tuned Nebulous for ultimate speed and responsiveness. ### 🐞 Bug Fixes -* Kicked pesky crashes out the door for NebulaSync. -* Fixed rare data hiccups during file transfers. -* Nebulous is now even friendly with older devices. +- Kicked pesky crashes out the door for NebulaSync. +- Fixed rare data hiccups during file transfers. +- Nebulous is now even friendly with older devices. Thank you for making Nebulous your tech partner. We thrive on your feedback, so if you have ideas or run into bumps, don't hesitate to drop a line to our support wizards. Together, we're taking Nebulous to the next level! diff --git a/examples/starlog/src/content/releases/2_0.md b/examples/starlog/src/content/releases/2_0.md index 5316e5a755..6a01d76fc8 100644 --- a/examples/starlog/src/content/releases/2_0.md +++ b/examples/starlog/src/content/releases/2_0.md @@ -4,8 +4,8 @@ date: '2022-07-01' versionNumber: '2.0' description: 'This is the first post of my new Astro blog.' image: - src: '../../assets/starlog-placeholder-2.jpg' - alt: 'The full Astro logo.' + src: '../../assets/starlog-placeholder-2.jpg' + alt: 'The full Astro logo.' --- ## Introducing Nebulous 2.0! @@ -16,22 +16,23 @@ Greetings, Nebulous users! We're excited to bring you the latest updates in our ### 🍿 New Features & Enhancements -* __NebulaSync v2.0:__ We're thrilled to introduce NebulaSync 2.0, our revamped file synchronization tool. It now offers blazing-fast sync speeds, improved reliability, and enhanced cross-device compatibility. -* __Enhanced NebulaProtect:__ NebulaProtect, our comprehensive security suite, has received a major update. Enjoy advanced threat detection, and real-time monitoring. -* __NebulaConnect for Teams:__ Collaborate effortlessly with NebulaConnect for Teams. This powerful feature allows seamless integration with your favorite project management tools, enabling you to manage tasks, share documents, and track progress in real-time. +- **NebulaSync v2.0:** We're thrilled to introduce NebulaSync 2.0, our revamped file synchronization tool. It now offers blazing-fast sync speeds, improved reliability, and enhanced cross-device compatibility. +- **Enhanced NebulaProtect:** NebulaProtect, our comprehensive security suite, has received a major update. Enjoy advanced threat detection, and real-time monitoring. +- **NebulaConnect for Teams:** Collaborate effortlessly with NebulaConnect for Teams. This powerful feature allows seamless integration with your favorite project management tools, enabling you to manage tasks, share documents, and track progress in real-time. ### 🐞 Bug Fixes -* Resolved occasional crashing issues when using NebulaSync. -* Fixed a bug causing data corruption in rare cases during file transfers. -* Improved compatibility with older devices to ensure a seamless experience for all users. -* Enhanced error handling and reporting for a smoother user experience. +- Resolved occasional crashing issues when using NebulaSync. +- Fixed a bug causing data corruption in rare cases during file transfers. +- Improved compatibility with older devices to ensure a seamless experience for all users. +- Enhanced error handling and reporting for a smoother user experience. ### 👀 Coming Soon We can't spill all the beans just yet, but we're thrilled to give you a sneak peek of what's coming in the next Nebulous release: -* __NebulaWallet:__ A secure and user-friendly cryptocurrency wallet integrated directly into Nebulous for seamless digital asset management. -* __NebulaConnect Mobile:__ Take your collaboration to the next level with our upcoming mobile app, enabling you to work on the go. -* __NebulaLabs:__ Our developer tools and API enhancements, providing you with even more customization options and possibilities. + +- **NebulaWallet:** A secure and user-friendly cryptocurrency wallet integrated directly into Nebulous for seamless digital asset management. +- **NebulaConnect Mobile:** Take your collaboration to the next level with our upcoming mobile app, enabling you to work on the go. +- **NebulaLabs:** Our developer tools and API enhancements, providing you with even more customization options and possibilities. If you have any suggestions or encounter any issues, don't hesitate to reach out to our support team. Together, we'll continue to make Nebulous the ultimate tech solution for you. diff --git a/examples/starlog/src/layouts/IndexLayout.astro b/examples/starlog/src/layouts/IndexLayout.astro index faa083b96f..3f0bd0c963 100644 --- a/examples/starlog/src/layouts/IndexLayout.astro +++ b/examples/starlog/src/layouts/IndexLayout.astro @@ -1,23 +1,23 @@ --- -import BaseHead, { type Props as HeadProps } from "../components/BaseHead.astro"; -import Header from "../components/Header.astro"; -import Footer from "../components/Footer.astro"; +import BaseHead, { type Props as HeadProps } from '../components/BaseHead.astro'; +import Header from '../components/Header.astro'; +import Footer from '../components/Footer.astro'; -type Props = HeadProps +type Props = HeadProps; -const { ...head } = Astro.props +const { ...head } = Astro.props; --- - + - - -
-
- -