mirror of
https://github.com/withastro/astro.git
synced 2024-12-30 22:03:56 -05:00
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;
|
title: string;
|
||||||
body: string;
|
body: string;
|
||||||
href: string;
|
href: string;
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
---
|
---
|
||||||
export interface Props {
|
interface Props {
|
||||||
title: string;
|
title: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
// all pages through the use of the <BaseHead /> component.
|
// all pages through the use of the <BaseHead /> component.
|
||||||
import '../styles/global.css';
|
import '../styles/global.css';
|
||||||
|
|
||||||
export interface Props {
|
interface Props {
|
||||||
title: string;
|
title: string;
|
||||||
description: string;
|
description: string;
|
||||||
image?: string;
|
image?: string;
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
---
|
---
|
||||||
export interface Props {
|
interface Props {
|
||||||
date: Date;
|
date: Date;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
---
|
---
|
||||||
// Write your component code in this file!
|
// Write your component code in this file!
|
||||||
export interface Props {
|
interface Props {
|
||||||
prefix?: string;
|
prefix?: string;
|
||||||
}
|
}
|
||||||
---
|
---
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
---
|
---
|
||||||
export interface Props {
|
interface Props {
|
||||||
title: string;
|
title: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
// Full Astro Component Syntax:
|
// Full Astro Component Syntax:
|
||||||
// https://docs.astro.build/core-concepts/astro-components/
|
// https://docs.astro.build/core-concepts/astro-components/
|
||||||
|
|
||||||
export interface Props {
|
interface Props {
|
||||||
initialCount?: number;
|
initialCount?: number;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1,10 +1,10 @@
|
||||||
---
|
---
|
||||||
|
import type { IComment } from '../types.js';
|
||||||
import For from './For.astro';
|
import For from './For.astro';
|
||||||
import Show from './Show.astro';
|
import Show from './Show.astro';
|
||||||
import Toggle from './Toggle.astro';
|
import Toggle from './Toggle.astro';
|
||||||
import type { IComment } from '../types.js';
|
|
||||||
|
|
||||||
export interface Props {
|
interface Props {
|
||||||
comment: IComment;
|
comment: IComment;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
---
|
---
|
||||||
import Show from './Show.astro';
|
import Show from './Show.astro';
|
||||||
|
|
||||||
export interface Props<T> {
|
interface Props<T> {
|
||||||
each: Iterable<T>;
|
each: Iterable<T>;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
---
|
---
|
||||||
export interface Props<T> {
|
interface Props<T> {
|
||||||
when: T | number | boolean | undefined | null;
|
when: T | number | boolean | undefined | null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
---
|
---
|
||||||
import Show from './Show.astro';
|
|
||||||
import type { IStory } from '../types.js';
|
import type { IStory } from '../types.js';
|
||||||
|
import Show from './Show.astro';
|
||||||
|
|
||||||
export interface Props {
|
interface Props {
|
||||||
story: IStory;
|
story: IStory;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
---
|
---
|
||||||
export interface Props {
|
interface Props {
|
||||||
open?: boolean;
|
open?: boolean;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
---
|
---
|
||||||
export interface Props {
|
interface Props {
|
||||||
title: string;
|
title: string;
|
||||||
body: string;
|
body: string;
|
||||||
href: string;
|
href: string;
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
---
|
---
|
||||||
export interface Props {
|
interface Props {
|
||||||
title: string;
|
title: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
import type { HTMLAttributes } from 'astro/types';
|
import type { HTMLAttributes } from 'astro/types';
|
||||||
import { iconPaths } from './IconPaths';
|
import { iconPaths } from './IconPaths';
|
||||||
|
|
||||||
export interface Props {
|
interface Props {
|
||||||
icon: keyof typeof iconPaths;
|
icon: keyof typeof iconPaths;
|
||||||
color?: string;
|
color?: string;
|
||||||
gradient?: boolean;
|
gradient?: boolean;
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
// Inspired by the `Aside` component from docs.astro.build
|
// Inspired by the `Aside` component from docs.astro.build
|
||||||
// https://github.com/withastro/docs/blob/main/src/components/Aside.astro
|
// https://github.com/withastro/docs/blob/main/src/components/Aside.astro
|
||||||
|
|
||||||
export interface Props {
|
interface Props {
|
||||||
type?: 'note' | 'tip' | 'caution' | 'danger';
|
type?: 'note' | 'tip' | 'caution' | 'danger';
|
||||||
title?: string;
|
title?: string;
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
---
|
---
|
||||||
export interface Props {
|
interface Props {
|
||||||
title: string;
|
title: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
---
|
---
|
||||||
import CartFlyoutToggle from '../components/CartFlyoutToggle';
|
|
||||||
import CartFlyout from '../components/CartFlyout';
|
import CartFlyout from '../components/CartFlyout';
|
||||||
|
import CartFlyoutToggle from '../components/CartFlyoutToggle';
|
||||||
|
|
||||||
export interface Props {
|
interface Props {
|
||||||
title: string;
|
title: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -34,7 +34,7 @@ const { title } = Astro.props;
|
||||||
:root {
|
:root {
|
||||||
--font-family: system-ui, sans-serif;
|
--font-family: system-ui, sans-serif;
|
||||||
--font-size-base: clamp(1rem, 0.34vw + 0.91rem, 1.19rem);
|
--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);
|
--font-size-xl: clamp(2.0rem, 1.75vw + 1.35rem, 2.75rem);
|
||||||
|
|
||||||
--color-text: hsl(12, 5%, 4%);
|
--color-text: hsl(12, 5%, 4%);
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
---
|
---
|
||||||
import { runHighlighterWithAstro } from './dist/highlighter';
|
import { runHighlighterWithAstro } from './dist/highlighter';
|
||||||
|
|
||||||
export interface Props {
|
interface Props {
|
||||||
class?: string;
|
class?: string;
|
||||||
lang?: string;
|
lang?: string;
|
||||||
code: string;
|
code: string;
|
||||||
|
|
|
@ -3,7 +3,7 @@ import type * as shiki from 'shiki';
|
||||||
import { renderToHtml } from 'shiki';
|
import { renderToHtml } from 'shiki';
|
||||||
import { getHighlighter } from './Shiki.js';
|
import { getHighlighter } from './Shiki.js';
|
||||||
|
|
||||||
export interface Props {
|
interface Props {
|
||||||
/** The code to highlight. Required. */
|
/** The code to highlight. Required. */
|
||||||
code: string;
|
code: string;
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
// Inspired by the `Aside` component from docs.astro.build
|
// Inspired by the `Aside` component from docs.astro.build
|
||||||
// https://github.com/withastro/docs/blob/main/src/components/Aside.astro
|
// https://github.com/withastro/docs/blob/main/src/components/Aside.astro
|
||||||
|
|
||||||
export interface Props {
|
interface Props {
|
||||||
type?: 'note' | 'tip' | 'caution' | 'danger';
|
type?: 'note' | 'tip' | 'caution' | 'danger';
|
||||||
title?: string;
|
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;
|
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;
|
const { href, class: className, ...props } = Astro.props;
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
---
|
---
|
||||||
export interface Props {
|
interface Props {
|
||||||
title: string;
|
title: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
---
|
---
|
||||||
import '../imported.css';
|
|
||||||
import Button from '../components/Button.astro';
|
import Button from '../components/Button.astro';
|
||||||
|
import '../imported.css';
|
||||||
|
|
||||||
export interface Props {
|
interface Props {
|
||||||
title: string;
|
title: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
---
|
---
|
||||||
import '../imported.css';
|
|
||||||
import Button from '../components/Button.astro';
|
import Button from '../components/Button.astro';
|
||||||
|
import '../imported.css';
|
||||||
|
|
||||||
export interface Props {
|
interface Props {
|
||||||
title: string;
|
title: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
---
|
---
|
||||||
import '../imported.css';
|
|
||||||
import Button from '../components/Button.astro';
|
import Button from '../components/Button.astro';
|
||||||
|
import '../imported.css';
|
||||||
|
|
||||||
export interface Props {
|
interface Props {
|
||||||
title: string;
|
title: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
---
|
---
|
||||||
export interface Props {
|
interface Props {
|
||||||
title: string;
|
title: string;
|
||||||
subtitle: string;
|
subtitle: string;
|
||||||
content?: string;
|
content?: string;
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
---
|
---
|
||||||
export interface Props {
|
interface Props {
|
||||||
title: string,
|
title: string,
|
||||||
body: string,
|
body: string,
|
||||||
href: string,
|
href: string,
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
// Inspired by the `Aside` component from docs.astro.build
|
// Inspired by the `Aside` component from docs.astro.build
|
||||||
// https://github.com/withastro/docs/blob/main/src/components/Aside.astro
|
// https://github.com/withastro/docs/blob/main/src/components/Aside.astro
|
||||||
|
|
||||||
export interface Props {
|
interface Props {
|
||||||
type?: 'note' | 'tip' | 'caution' | 'danger';
|
type?: 'note' | 'tip' | 'caution' | 'danger';
|
||||||
title?: string;
|
title?: string;
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
---
|
---
|
||||||
import BaseHead from "../components/BaseHead.astro";
|
import BaseHead from "../components/BaseHead.astro";
|
||||||
export interface Props {
|
interface Props {
|
||||||
title: string;
|
title: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
---
|
---
|
||||||
export interface Props {
|
interface Props {
|
||||||
content?: string;
|
content?: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue