summaryrefslogtreecommitdiff
path: root/examples/component/index.ts
blob: 0e2e94fb2fd5a76017bf4e90fb342152c1fafea0 (plain) (blame)
1
2
3
4
5
6
// Do not write code directly here, instead use the `src` folder!
// Then, use this file to export everything you want your user to access.

import MyComponent from './src/MyComponent.astro';

export default MyComponent;
tag-annotated-deco' href='/ansg191/astro/tag/?h=@astrojs/tailwind@0.2.3'>@astrojs/tailwind@0.2.3@astrojs/svelte@0.2.1@astrojs/solid-js@0.2.1@astrojs/sitemap@0.2.5@astrojs/react@0.2.1@astrojs/prefetch@0.0.4@astrojs/preact@0.3.2@astrojs/partytown@0.1.7@astrojs/node@0.1.5@astrojs/netlify@0.4.9@astrojs/mdx@0.0.3@astrojs/lit@0.3.1@astrojs/image@0.1.0@astrojs/deno@0.1.9@astrojs/cloudflare@0.2.3Gravatar Fred K. Bot 14-96/+0 Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> 2022-07-08[ci] formatGravatar bholmesdev 1-1/+1 2022-07-08chore: changeset (#3873)Gravatar Ben Holmes 3-1/+10 2022-07-08Add editor integrations to language integrations (#3864)Gravatar Erika 8-6/+131 2022-07-08[ci] formatGravatar tony-sull 7-38/+59 2022-07-08Adds a new `<Picture>` component to the image integration (#3866)Gravatar Tony Sullivan 28-164/+1052 * moving all normalization logic out of the Image component * refactor: only require loaders to provide the image src * Adding a `<Picture />` component * fixing types.ts imports * refactor: moving getImage to it's own file * updating component types to use astroHTML.JSX * Revert "updating component types to use astroHTML.JSX" This reverts commit 6e5f578da8d1d3fd262f3cd9add7549f7580af97. * going back to letting loaders add extra HTML attributes * Always use lazy loading and async decoding * Cleaning up the Picture component * Adding test coverage for <Picture> * updating the README * using JSX types for the Image and Picture elements * chore: adding changeset * Update packages/integrations/image/src/get-image.ts Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com> * allow users to override loading and async on the <img> * renaming config to constants, exporting getPicture() * found the right syntax to import astro-jsx Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com> 2022-07-08[ci] formatGravatar bholmesdev 7-31/+60 2022-07-08[astro add] Support adapters and third party packages (#3854)Gravatar Ben Holmes 20-37/+221 * feat: support adapters and third part integrations by keywords * refactor: add keywords to all official integrations * docs: add adapter ex to astro add help * nit: clarify astro add usage * nit: highlight link * fix: use process.exit(1) on error * chore: changeset * nit: bold integration name * fix: log install instructions for adapters instead * nit: change to logAdapterConfigInstructions * Revert "fix: log install instructions for adapters instead" This reverts commit 1a459f152bc7b7991db289999f7393e5be64ea3e. * feat: add hardcoded adapter export map * refactor: inline adapter config log 2022-07-08Ignore big formatting commit (#3870)Gravatar Marcus Otterström 1-1/+3 2022-07-08[ci] formatGravatar tony-sull 1-3/+3 2022-07-08fix: Always add @astrojs/image to vite.ssr.noExternal (#3869)Gravatar Tony Sullivan 2-0/+8 * fix: always add @astrojs/image to vite.ssr.noExternal * chore: add changeset 2022-07-08Format astro files in examples (#3862)Gravatar Marcus Otterström 73-694/+957 2022-07-08Integration README fixes (#3865)Gravatar Chris Swithinbank 8-8/+17 * Remove stray XML tag in sitemap integration README * Fix link errors * Add changeset 2022-07-08fix(#3843): move @babel/types to dependencies (#3863)Gravatar Nate Moore 2-2/+2 * fix(#3843): move @babel/types to dependencies * chore: update lockfile Co-authored-by: Nate Moore <nate@astro.build> 2022-07-08Fixed broken Markdown link (#3868)Gravatar Isaac McFadyen 1-2/+2 2022-07-08chore: bump Vite minimum version (#3861)Gravatar Nate Moore 2-2/+2 Co-authored-by: Nate Moore <nate@astro.build> 2022-07-08[ci] formatGravatar matthewp 1-1/+1 2022-07-08Better response.arrayBuffer() handling in Node (#3860)Gravatar Matthew Phillips 8-3/+125 * Better response.arrayBuffer() handling in Node * Adds a changeset 2022-07-08[ci] update lockfile (#3858)Gravatar Fred K. Bot 1-411/+437 Co-authored-by: FredKSchott <FredKSchott@users.noreply.github.com> 2022-07-08Fix manual import (#3857)Gravatar Chris Williams 1-1/+1 2022-07-07[ci] formatGravatar bholmesdev 1-3/+3 2022-07-07Docs: add adapter heading for configuration docs (#3842)Gravatar Ben Holmes 2-4/+20 * Docs: add adapter heading for configuration docs * docs: add adapter example, rework doc links * chore: changeset 2022-07-07[ci] formatGravatar natemoo-re 2-3/+3 2022-07-07fix: lint failing on astro and some integrations (#3794)Gravatar Joaquín Sánchez 7-17/+18 * fix: lint failing on astro and some integrations * chore: fix telemetry lint * chore: fix turbo cache (thx nate) * chore: fix runtime server 2022-07-07update solid peer dependenciesGravatar Fred K. Schott 2-1/+6 2022-07-07update lockfile (#3828)Gravatar Fred K. Schott 3-7/+1 2022-07-07Improve JSX definitions (#3801)Gravatar Erika 2-477/+858 2022-07-07Fix slot attribute inside expressions (#3837)Gravatar Nate Moore 8-5/+89 * fix: use slots inside expressions * test: add test for conditional named slots * test: fix incorrect test fixture * chore: update `@astrojs/compiler` * chore: add test coverage for `switch` Co-authored-by: Nate Moore <nate@astro.build> 2022-07-07[ci] formatGravatar FredKSchott 1-2/+1 2022-07-07detect package manager and improve types (#3847)Gravatar Fred K. Schott 7-44/+78 2022-07-07small create-astro wording changes (#3831)Gravatar Fred K. Schott 3-10/+15 2022-07-07Upgrade to pnpm@7.4.1, remove `patch-package` (#3747)Gravatar Nate Moore 6-127/+100 * chore: upgrade to pnpm@7.4.0, remove `patch-package` * chore: update contributing * chore: pnpm@7.4.1 * chore: bump to pnpm@7.5.0 Co-authored-by: Nate Moore <nate@astro.build> 2022-07-07[ci] formatGravatar matthewp 1-1/+1 2022-07-07Allow importing Image component from @astrojs/image (#3848)Gravatar Matthew Phillips 7-6/+20 * Allow importing Image component from @astrojs/image * Adds a changeset * Export the Image type 2022-07-06[ci] release (#3818)astro@1.0.0-beta.64@astrojs/telemetry@0.2.4@astrojs/node@0.1.4Gravatar Fred K. Bot 41-90/+90 Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> 2022-07-07[ci] formatGravatar bholmesdev 1-1/+1 2022-07-06Fix: Infer content type with charset in dev and prod (#3841)Gravatar Ben Holmes 4-3/+23 * fix: add text/plain;charset;utf-8 header in dev * test: ensure content type for body shorthand * chore: changeset * feat: infer content type by pathname * feat: add charset to prod build handler * test: update for charset in prod build test 2022-07-06[ci] formatGravatar bholmesdev 1-2/+2 2022-07-06Fix `client:visible` directive in safari (#3839)Gravatar Ben Holmes 2-2/+20 * fix: client visible on safari * chore: changeset * refactor: wait for children with mutation observer * fix: remove unecessary settimeout * refactor: remove unecessary awaits 2022-07-06[ci] formatGravatar matthewp 1-1/+1 2022-07-06Ensure that maybeRenderHead runs last (#3821)Gravatar Matthew Phillips 5-8/+67 * Ensure that maybeRenderHead runs last * Adds a changeset * Make work with MDX 2022-07-05Fix portfolio example to use lowercase srcset (#3829)Gravatar Matthew Phillips 1-1/+1 2022-07-05[ci] formatGravatar delucis 1-29/+29