Overhauls the Fresh homepage with a new design, new demos, and new
sections highlighting Fresh's capabilities.
---------
Co-authored-by: Marvin Hagemeister <marvin@deno.com>
**Proposed change:**
- Document styling for aria-current attribute separately for Tailwind
and Twind.
**Disclaimer:**
I am new to open-source contributions and are unfamiliar with the
process for submitting a pull request. I have found some more areas of
improvement in the Fresh documentation. Should this PR not be
up-to-standards on how to contribute, please guide me in the right
direction. I have a few more suggestions on issues I found while
developing a new Fresh app.
Any guidance would be helpful, either reach out to me on GitHub, Discord
(bastianplsfix) or X (bastianplsfix).
Best,
Sebastian 🦕
Newer Deno versions have an additional `completed` property in there.
This PR allows Fresh to be used with both old and newer Deno versions
without getting type errors.
After reading the discussion at #2369, this PR introduces a small
addition to the docs which highlights how you can use server components
within islands.
This, coupled with the existing docs, should hopefully give people
enough of an example to understand that islands provide the
interactivity layer, and that server components within them can be
hydrated and made interactive too.
Closes#2369
This adds in the information regarding co-location of islands and
components from [this blog
post](https://deno.com/blog/fresh-1.4#colocated-islands-components-and-more)
into the main documentation.
A lot of the text is pulled directly from the blog post, but I'm happy
to edit it if need be.
Closes#2305
Whilst Deno supports Typescript by default, not everyone necessarily
will want to write every file in Typescript. If using TailwindCSS, at
the moment the files Tailwind searches for classes does not include
`.js` and `.jsx` endings. Whilst you can manually add them via the
`tailwind.config.ts`, it might be nice to have these added in by default
for a better onboarding experience.
Closes#2291
Closes#1217
Adds an example on how to implement the PKCE authentication flow with
Supabase.
I included a link to a repo of mine holding the code to a fully fleshed
out example app as a more comprehensive point of reference, hope that is
ok. In fact, I was thinking of deploying that app on Deno Deploy and add
it to the Showcase section, lmk if that would be a good idea.
---------
Co-authored-by: Asher Gomez <ashersaupingomez@gmail.com>
https://biomejs.dev/linter/rules/use-import-type/
From that page the argument is
>The rule ensures that all imports used only as a type use a type-only
import. It also groups inline type imports into a grouped import type.
Hello fresh team! 👋🦕🍋
I've registered a standalone domain for my showcase application, Deno
Paste, and made a small change to the github repository name.
This pull request updates the `showcase.json` configuration accordingly
and adds some more recent screenshots to boot.
Thanks!
Hello, Deno team!
I have created a service using Fresh and would like you to register with
showcase.
[Echo-Echo](https://echo-echo.deno.dev/)
Best regards.
This PR adds a `ctx.redirect(path, status)` helper that aims to reduce
the verbosity of having to manually create a `Response` obejct for a
mere redirect.
```ts
// Before
new Response(null, {
status: 307,
headers: {
Location: "/foo/bar"
},
})
// After
ctx.redirect("/foo/bar", 307)
```
If the second parameter is not passed, it will default to `302`.
closes#2346
The primary issue was the snippet `headers[key] = value`. This caused
only one `set-cookie` to make it through. Switching to a `Headers`
object allowed me to use `append` when appropriate, allowing for
multiple `set-cookie` entries.
I also cleaned up one of the tests to make use of steps, because I
originally broke it and couldn't immediately tell which part was
failing.
closes https://github.com/denoland/fresh/issues/2326
There was a big misunderstanding on my part -- in particular that a
different server might be listening at the root, so the redirect built
into `context.ts` will never happen. The existing test (as mentioned in
the issue) passes, but only because no one else is listening, and fresh
is able to perform the redirect.
I briefly considered writing a docker container to orchestrate this
properly, but then I didn't want to have docker running in order to run
these tests. (My laptop is old and bad.) So instead the two new tests
very thoroughly assert that scripts included in the html are properly
prefixed with the base path. And yes, they fail if the fix is reverted.
As for the fix itself: I just needed to prepend the asset URL with the
base path.
Some team members of mine were confused by the default output
```
🍋 Fresh ready
Local: http://localhost:8000/
```
when the server is actually running HTTPS. This should now print
```
🍋 Fresh ready
Local: https://localhost:8000/
```
when a key and cert are specified.
closes https://github.com/denoland/fresh/issues/2319
The issue is because `imports.ts` wasn't changed before releasing. I
thought I would go through and bump some other versions as well. This
handles everything except the esbuild stuff and `tests/`.