Commit Graph
327 Commits
Author SHA1 Message Date
Marvin Hagemeister 8865d290ce www: switch to precompile jsx (#2469) 2024-05-25 13:31:12 +02:00
Marvin Hagemeister 5dd854341c www: add back trailing slash handling (#2467)
In Fresh 2 trailing slash handling isn't applied automatically anymore
and I forgot to do that when merging the Fresh 2 code base.

While we're at it, I've added a section for that to our migration guide.
2024-05-25 12:11:13 +02:00
Marvin Hagemeister da858d0b34 www: improve error page design (#2463)
<img width="978" alt="Screenshot 2024-05-24 at 23 46 38"
src="https://github.com/denoland/fresh/assets/1062408/3ec2bdc5-e5fb-41f3-827e-7fd791569673">
2024-05-25 08:14:17 +02:00
Octo8080X 476b4c75a7 showcase: add 'Thoth-Doc' (#2455)
Hello, Deno team!

I have created document site using Fresh and would like you to register
with showcase.
[Thoth-Doc](https://thoth-doc.deno.dev/)

Best regards.Hello, Deno team!
2024-05-24 19:53:21 +02:00
Luca Casonato f2162d24bf feat: add render function (#2454) 2024-05-24 18:31:34 +02:00
Marvin Hagemeister 82d027cbcd www: fix fragment links hidden under sticky header (#2457) 2024-05-24 18:01:57 +02:00
Marvin Hagemeister 484d918307 www: port error pages to Fresh 2 (#2456)
Forgot to port the `_500.tsx` and `_400.tsx` error pages to Fresh 2
2024-05-24 17:31:52 +02:00
Luca Casonato c9f0ccdce7 feat: rename helpers to define (#2453) 2024-05-24 11:48:32 +02:00
Marvin Hagemeister 287929e4d2 major: import Fresh 2.0 code (#2449)
🎉
2024-05-24 09:40:08 +02:00
Josh Collinsworth 990357629e Chore: styling and verbiage cleanup (#2451)
- Better responsive styling of header, logo, nav menu and docs sidebar
- Specify UTC on homepage (since we can't localize server-side)
- Minor copy updates
2024-05-23 12:12:47 -05:00
Marvin Hagemeister baac482cf0 chore: remove .DS_Store (#2448) 2024-05-22 21:34:33 +02:00
Josh Collinsworth f26e6c778b Add JSR and Deno.com to showcase (#2447) 2024-05-22 14:30:54 -05:00
Josh Collinsworth 120d867d2d Fix CTA graphic (#2446) 2024-05-22 14:30:45 -05:00
Josh Collinsworth 8ef3e89a8c Change side-by-side sections to sticky (#2445) 2024-05-22 12:08:41 -05:00
Marvin Hagemeister e4981d30ad www: rework docs layout (#2429)
- Re-enable partials
- clean up layout a bit
2024-05-21 17:38:32 +02:00
Marvin Hagemeister 46f6c280ed www: social meta tag bot detection (#2441) 2024-05-21 17:14:05 +02:00
Marvin Hagemeister ec10ad59a4 www: fix home partial changing doc title (#2432)
Fixes https://github.com/denoland/fresh/issues/2431
2024-05-17 20:18:42 +02:00
Marvin Hagemeister 25d4d16a8f www: fully remove component gallery (#2430) 2024-05-17 18:39:32 +02:00
Josh Collinsworth e126196fe5 Update og image (#2428) 2024-05-17 11:19:23 -05:00
Josh CollinsworthandMarvin Hagemeister e8d1a68b58 www: refresh home page (#2418)
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>
2024-05-17 16:08:55 +02:00
Daniel G. Aubert 3b68a5d455 showcase: add dgaubert's showcase (#2422) 2024-05-07 12:38:04 +02:00
epangelias 9c1e5239b6 showcase: Add virtualfreight.software (#2415) 2024-04-29 10:18:05 +02:00
Marvin Hagemeister 0e5962ce37 www: remov no build step from marketing (#2407)
We've been moving away from that for a couple of months now, so
featuring the "no build step" prominently in our marketing feels wrong.
2024-04-18 17:29:27 +02:00
Asher Gomez 425032a6dc chore: minor cleanups (#2393)
These changes occur by just running `deno task ok` on `main`.
2024-04-08 13:08:41 +02:00
Octo8080X 5865c8246f showcase: fix incorrect repository link + screenshot (#2384)
Hello, Deno team!

The settings were not appropriate and have been corrected.

Best regards.
2024-03-25 15:08:04 +01:00
Stephen Melnicki 2c0a1480d8 showcase: update deno paste (#2378)
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!
2024-03-25 13:11:53 +01:00
Octo8080X e60633a062 showcase: add 'Echo-Echo' (#2383)
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.
2024-03-25 13:09:39 +01:00
Roj 8187189037 showcase: Remove non-Fresh sites + sites returning errors (#2374)
These items are no longer Fresh.
2024-03-21 11:48:36 +01:00
Marvin Hagemeister 240252fdb4 Revert "feat: add ctx.redirect() helper (#2358)" (#2372)
Mostly so that it's easier to cut the next patch release for Fresh.

This reverts commit e3508c3054.
2024-03-21 10:27:53 +01:00
Marvin Hagemeister e3508c3054 feat: add ctx.redirect() helper (#2358)
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`.
2024-03-12 17:36:34 +01:00
Marvin Hagemeister a2be1abc6b chore: update Preact to 10.19.6 (#2331) 2024-02-22 10:46:41 +01:00
Marvin Hagemeister 4a175dc680 docs: disable partial nav temporarily (#2330)
We can re-enable once https://github.com/preactjs/preact/pull/4287 is
fixed.

Fixes https://github.com/denoland/fresh/issues/2322
2024-02-22 08:28:15 +01:00
Marvin Hagemeister 46eaef0181 docs: fix potential null errors (#2324) 2024-02-20 01:19:08 +01:00
Reed von Redwitz 82c75f85e9 fix: update dependency recommendations (#2320)
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/`.
2024-02-19 10:33:04 +01:00
Reed von Redwitz 3f28cc8977 chore: upgrade tailwind to 3.4.1 (#2287) 2024-01-29 14:10:28 +01:00
Reed von Redwitz a83765efaa fix: no-window lint error (#2272)
Latest PR runs are failing with linting errors, e.g.
https://github.com/denoland/fresh/actions/runs/7625625084/job/20770308634?pr=2266

Maybe this shouldn't be happening like this right now, but we'll still
need to clean these up eventually.
2024-01-23 21:51:38 +01:00
Reed von Redwitz ca8338e04d chore: bump std to 0.211.0 and loader to 0.8.3 (#2241) 2024-01-11 15:54:41 +01:00
David Luis 8d01051b5b docs: fix carousel not working properly (#2222)
Currently, the [Carousel component](https://fresh.deno.dev/components)
only shows "slide four" without moving to other slides.
This PR will fix that issue.
2024-01-10 10:31:06 +01:00
Marvin Hagemeister f63752062a chore: change assert to with for import attributes (#2231) 2024-01-10 10:25:07 +01:00
Reed von Redwitz 15929d37bd docs: fix navigating to components from docs with small screen (#2198)
closes https://github.com/denoland/fresh/issues/2190

Marvin, I noticed that adding the fix
[here](https://github.com/denoland/fresh/blob/a8a43ff0d4ed7ae9958a09f37ce8dadf219f76e1/www/components/Header.tsx#L41)
did not resolve the issue. I see the docs say `Partials are enabled by
adding a f-client-nav attribute to an HTML element` -- is it expected
that adding `f-client-nav={false}` to a component does not automatically
apply it to html element children?
2024-01-09 11:48:24 +01:00
Adam Zerner 8ffe3d32aa showcase: add rfui.deno.dev (#2205)
Add RFUI (https://rfui.deno.dev/)
2024-01-08 11:03:16 +01:00
Marvin Hagemeister 8c4385043c Revert "refactor: use --env CLI arg" (#2212)
Reverts denoland/fresh#2204

The `--env` flag cannot be used by default because it fails when no
`.env` file is present. Therefore this PR accidentally introduced a
breaking change.
2024-01-04 11:53:15 +01:00
Marvin Hagemeister f95df1d7b7 showcase: fix missing screenshots (#2211) 2024-01-04 11:07:06 +01:00
Asher Gomez 99eb5435bb refactor: use --env CLI arg (#2204)
This change replaces the use of the Standard Library's `dotenv.load()`
with the native `--env` CLI flag.

The benefits include:
* One less dependency
* More obvious consumption of the `.env` file in the CLI output
2023-12-29 10:47:15 +01:00
Casey Ydenberg 579709159d showcase: add Living Pixel (#2165) 2023-12-11 18:14:29 +01:00
Casey YdenbergandMarvin Hagemeister 25afcae943 docs: Merge data fetching pages (#1974) (#2107)
Co-authored-by: Marvin Hagemeister <marvin@deno.com>
2023-12-07 10:50:50 +01:00
Marvin Hagemeister 9af63be308 fix: switch back to URLPattern for correctness (#2151) 2023-12-07 09:40:07 +01:00
Peter John e78c6a90af Update showcase.json (#2132) 2023-12-04 11:39:57 +01:00
迷渡andMarvin Hagemeister 87d1f2356a chore: Use satisfies instead of as (#2136)
Co-authored-by: Marvin Hagemeister <marvin@deno.com>
2023-12-04 11:38:52 +01:00
Reed von Redwitz 35da45bff1 chore: update types in tests, init, update (#2122)
Of particular note is the change to
`tests/fixture_plugin/routes/test.tsx`. Note how I do this:
```diff
-  async GET(_req, ctx: HandlerContext<unknown, { test: string }>) {
+  async GET(_req, ctx: FreshContext<{ test: string }, unknown>) {
```

I find it strange and confusing that the order of the type parameters
has "changed". This makes it impossible to do a simple search and
replace, because people now have to change order as well.

Most of the types have been declared as `<T, S>`, i.e. data before
state:
* `PageProps<T = any, S = Record<string, unknown>>`
* `RouteContext<T = any, S = Record<string, unknown>>`
* `Handler<T = any, State = Record<string, unknown>>`
* `Handlers<T = any, State = Record<string, unknown>> `
* `AsyncRoute<T = any, S = Record<string, unknown>>`
* `PageComponent<T = any, S = Record<string, unknown>> `
* `AsyncLayout<T = any, S = Record<string, unknown>>`

And then `FreshContext` comes around like 
```
export interface FreshContext<
  State = Record<string, unknown>,
  // deno-lint-ignore no-explicit-any
  Data = any,
  NotFoundData = Data,
>
```
and switches it all up.

Not a huge issue, but just something to be aware of that others might
report.
2023-12-02 10:33:59 +01:00