nit: export props has been unnecessary.. forever (#7646)
This commit is contained in:
parent
7a6b48a1a4
commit
b3b640435b
32 changed files with 39 additions and 39 deletions
|
@ -1,5 +1,5 @@
|
|||
---
|
||||
export interface Props {
|
||||
interface Props {
|
||||
title: string;
|
||||
body: string;
|
||||
href: string;
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
---
|
||||
export interface Props {
|
||||
interface Props {
|
||||
title: string;
|
||||
}
|
||||
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
// all pages through the use of the <BaseHead /> component.
|
||||
import '../styles/global.css';
|
||||
|
||||
export interface Props {
|
||||
interface Props {
|
||||
title: string;
|
||||
description: string;
|
||||
image?: string;
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
---
|
||||
export interface Props {
|
||||
interface Props {
|
||||
date: Date;
|
||||
}
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
---
|
||||
// Write your component code in this file!
|
||||
export interface Props {
|
||||
interface Props {
|
||||
prefix?: string;
|
||||
}
|
||||
---
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
---
|
||||
export interface Props {
|
||||
interface Props {
|
||||
title: string;
|
||||
}
|
||||
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
// Full Astro Component Syntax:
|
||||
// https://docs.astro.build/core-concepts/astro-components/
|
||||
|
||||
export interface Props {
|
||||
interface Props {
|
||||
initialCount?: number;
|
||||
}
|
||||
|
||||
|
|
|
@ -1,10 +1,10 @@
|
|||
---
|
||||
import type { IComment } from '../types.js';
|
||||
import For from './For.astro';
|
||||
import Show from './Show.astro';
|
||||
import Toggle from './Toggle.astro';
|
||||
import type { IComment } from '../types.js';
|
||||
|
||||
export interface Props {
|
||||
interface Props {
|
||||
comment: IComment;
|
||||
}
|
||||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
---
|
||||
import Show from './Show.astro';
|
||||
|
||||
export interface Props<T> {
|
||||
interface Props<T> {
|
||||
each: Iterable<T>;
|
||||
}
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
---
|
||||
export interface Props<T> {
|
||||
interface Props<T> {
|
||||
when: T | number | boolean | undefined | null;
|
||||
}
|
||||
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
---
|
||||
import Show from './Show.astro';
|
||||
import type { IStory } from '../types.js';
|
||||
import Show from './Show.astro';
|
||||
|
||||
export interface Props {
|
||||
interface Props {
|
||||
story: IStory;
|
||||
}
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
---
|
||||
export interface Props {
|
||||
interface Props {
|
||||
open?: boolean;
|
||||
}
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
---
|
||||
export interface Props {
|
||||
interface Props {
|
||||
title: string;
|
||||
body: string;
|
||||
href: string;
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
---
|
||||
export interface Props {
|
||||
interface Props {
|
||||
title: string;
|
||||
}
|
||||
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
import type { HTMLAttributes } from 'astro/types';
|
||||
import { iconPaths } from './IconPaths';
|
||||
|
||||
export interface Props {
|
||||
interface Props {
|
||||
icon: keyof typeof iconPaths;
|
||||
color?: string;
|
||||
gradient?: boolean;
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
// Inspired by the `Aside` component from docs.astro.build
|
||||
// https://github.com/withastro/docs/blob/main/src/components/Aside.astro
|
||||
|
||||
export interface Props {
|
||||
interface Props {
|
||||
type?: 'note' | 'tip' | 'caution' | 'danger';
|
||||
title?: string;
|
||||
}
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
---
|
||||
export interface Props {
|
||||
interface Props {
|
||||
title: string;
|
||||
}
|
||||
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
---
|
||||
import CartFlyoutToggle from '../components/CartFlyoutToggle';
|
||||
import CartFlyout from '../components/CartFlyout';
|
||||
import CartFlyoutToggle from '../components/CartFlyoutToggle';
|
||||
|
||||
export interface Props {
|
||||
interface Props {
|
||||
title: string;
|
||||
}
|
||||
|
||||
|
@ -34,7 +34,7 @@ const { title } = Astro.props;
|
|||
:root {
|
||||
--font-family: system-ui, sans-serif;
|
||||
--font-size-base: clamp(1rem, 0.34vw + 0.91rem, 1.19rem);
|
||||
--font-size-lg: clamp(1.2rem, 0.7vw + 1.2rem, 1.5rem);
|
||||
--font-size-lg: clamp(1.2rem, 0.7vw + 1.2rem, 1.5rem);
|
||||
--font-size-xl: clamp(2.0rem, 1.75vw + 1.35rem, 2.75rem);
|
||||
|
||||
--color-text: hsl(12, 5%, 4%);
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
---
|
||||
import { runHighlighterWithAstro } from './dist/highlighter';
|
||||
|
||||
export interface Props {
|
||||
interface Props {
|
||||
class?: string;
|
||||
lang?: string;
|
||||
code: string;
|
||||
|
|
|
@ -3,7 +3,7 @@ import type * as shiki from 'shiki';
|
|||
import { renderToHtml } from 'shiki';
|
||||
import { getHighlighter } from './Shiki.js';
|
||||
|
||||
export interface Props {
|
||||
interface Props {
|
||||
/** The code to highlight. Required. */
|
||||
code: string;
|
||||
/**
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
// Inspired by the `Aside` component from docs.astro.build
|
||||
// https://github.com/withastro/docs/blob/main/src/components/Aside.astro
|
||||
|
||||
export interface Props {
|
||||
interface Props {
|
||||
type?: 'note' | 'tip' | 'caution' | 'danger';
|
||||
title?: string;
|
||||
}
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
---
|
||||
export interface Props extends astroHTML.JSX.AnchorHTMLAttributes {}
|
||||
interface Props extends astroHTML.JSX.AnchorHTMLAttributes {}
|
||||
|
||||
const { href, class: className, ...props } = Astro.props;
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
---
|
||||
export interface Props extends astroHTML.JSX.AnchorHTMLAttributes {}
|
||||
interface Props extends astroHTML.JSX.AnchorHTMLAttributes {}
|
||||
|
||||
const { href, class: className, ...props } = Astro.props;
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
---
|
||||
export interface Props {
|
||||
interface Props {
|
||||
title: string;
|
||||
}
|
||||
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
---
|
||||
import '../imported.css';
|
||||
import Button from '../components/Button.astro';
|
||||
import '../imported.css';
|
||||
|
||||
export interface Props {
|
||||
interface Props {
|
||||
title: string;
|
||||
}
|
||||
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
---
|
||||
import '../imported.css';
|
||||
import Button from '../components/Button.astro';
|
||||
import '../imported.css';
|
||||
|
||||
export interface Props {
|
||||
interface Props {
|
||||
title: string;
|
||||
}
|
||||
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
---
|
||||
import '../imported.css';
|
||||
import Button from '../components/Button.astro';
|
||||
import '../imported.css';
|
||||
|
||||
export interface Props {
|
||||
interface Props {
|
||||
title: string;
|
||||
}
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
---
|
||||
export interface Props {
|
||||
interface Props {
|
||||
title: string;
|
||||
subtitle: string;
|
||||
content?: string;
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
---
|
||||
export interface Props {
|
||||
interface Props {
|
||||
title: string,
|
||||
body: string,
|
||||
href: string,
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
// Inspired by the `Aside` component from docs.astro.build
|
||||
// https://github.com/withastro/docs/blob/main/src/components/Aside.astro
|
||||
|
||||
export interface Props {
|
||||
interface Props {
|
||||
type?: 'note' | 'tip' | 'caution' | 'danger';
|
||||
title?: string;
|
||||
}
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
---
|
||||
import BaseHead from "../components/BaseHead.astro";
|
||||
export interface Props {
|
||||
interface Props {
|
||||
title: string;
|
||||
}
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
---
|
||||
export interface Props {
|
||||
interface Props {
|
||||
content?: string;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue