Commit Graph
61 Commits
Author SHA1 Message Date
Luca Casonato aa19b393e7 feat: export compat types from /compat export (#2478) 2024-06-03 14:32:38 +00:00
Luca Casonato f2162d24bf feat: add render function (#2454) 2024-05-24 18:31:34 +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 e4981d30ad www: rework docs layout (#2429)
- Re-enable partials
- clean up layout a bit
2024-05-21 17:38:32 +02:00
Josh Collinsworth e126196fe5 Update og image (#2428) 2024-05-17 11:19:23 -05: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 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
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 de55d80dee docs: improve design (#2097) 2023-11-29 22:50:51 +01:00
Marvin Hagemeister dd76addb9f docs: minor code cleanup (#2084) 2023-11-28 18:37:57 +01:00
Marvin Hagemeister bb035ae8da docs: port over to TailwindCSS (#2058) 2023-11-22 11:12:21 +01:00
Marvin Hagemeister f86a525418 docs: inline gfm-css (#1939) 2023-10-15 08:43:15 +02:00
Birk SkyumandMarvin Hagemeister eb41b65d4c docs: Enhanced CSR Layout (#1908)
Co-authored-by: Marvin Hagemeister <marvin@deno.com>
2023-10-12 12:23:37 +00:00
Marvin Hagemeister 1d12853889 fix: docs header nav not working (#1904) 2023-10-11 07:53:30 +02:00
Marvin Hagemeister 534a0d87b3 docs: improve sidebar active style (#1888) 2023-10-07 21:05:54 +02:00
Marvin Hagemeister 776a721332 docs: switch to partial navigation (#1865) 2023-10-05 12:33:27 +02:00
Marvin Hagemeister 5ba9262f00 fix: docs nav not working (#1854) 2023-10-04 15:43:58 +02:00
Marvin Hagemeister be1c15f8f3 fix: throw error when no partials found (#1853) 2023-10-04 15:38:43 +02:00
Marvin Hagemeister 9fdb0d5b01 docs: use builtin active link detection (#1850) 2023-10-04 14:34:42 +02:00
Marvin Hagemeister ced9171690 docs: improve code blocks mobile layout (#1846) 2023-10-04 12:07:31 +02:00
Marvin Hagemeister 6a599dbed5 www: new fenced code block design (#1629) 2023-08-13 10:52:41 +02:00
Roj 95d352d1dd www: use smart quotes (#1502) 2023-07-22 13:03:03 +02:00
Roj d1e78095be www: consistently spell Fresh (#1504) 2023-07-22 13:02:31 +02:00
Marvin Hagemeister f061667822 www: update docs design (#1423) 2023-07-10 11:07:49 +02:00
Marvin Hagemeister bf3e82c093 www: add versioning to docs (#1400) 2023-07-04 12:33:47 +02:00
ayame113 45ba10e9ee chore(www): use View Transitions API (#1399) 2023-07-03 12:11:25 +02:00
Marvin Hagemeister 16be99e69b fix: change MultiHandler back to Handlers (#1396) 2023-07-03 09:57:46 +02:00
Aushwin 851f8d60aa refactor: changed Handlers type to MultiHandler (#1360) 2023-06-28 12:52:48 +00:00
ayame113 a724f6c591 www: fix accessibility issues (#1243)
Address accessibility issues pointed out by Lighthouse.
2023-06-03 22:19:40 +02:00
Luca CasonatoandAsher Gomez 87b087e358 fix: __FRSH_BUILD_ID is not defined (#1207)
This could happen if the runtime/utils.ts coe was loaded
prior to server/constants.ts, because they had some shared state on
`globalThis`.

I have mitigated this by not relying on global state anymore.

Fixes #1191

---------

Co-authored-by: Asher Gomez <ashersaupingomez@gmail.com>
2023-05-30 10:46:44 +10:00
ryu 4a7ecb6168 chore: update tabler_icons_tsx version (#1159) 2023-05-12 01:12:18 +09:00
Luca Casonato c291db8ac4 www: add search button island (#949) 2022-12-23 04:19:50 +09:00
hashrock a0e3b91196 fix(www): Add a global nav (#895) 2022-12-02 01:04:37 +09:00
Kazuma Ohashi 7e04c69be2 fix: typo (#397) 2022-11-09 18:38:58 +09:00
hashrock fea7a27029 add Fresh Components (#872) 2022-11-07 22:24:32 +09:00
hashrockandLuca Casonato 8e9658cae5 www: add showcase page (#699)
Co-authored-by: Luca Casonato <hello@lcas.dev>
2022-09-06 15:28:20 +02:00
Luca Casonato b12867a582 feat: support JSX automatic mode (#610)
This commit adds support for JSX automatic mode instead of the default
mode that requires the presence of the JSX pragma in each file.

This commit also adds the config file to the `fresh.gen.ts` manifest,
which is used to determine if the client emit should use automatic mode.

The minimum Deno version has also been bumped to 1.25.0.
2022-08-26 11:03:00 +02:00
Benny Yen d798db2a5f www: use frontmatter parser from std (#621) 2022-08-23 13:26:44 +00:00
Michael Pfisterandhashrock 3431555f95 Add 404 and 500 page #446 (#624)
* Add 404 and 500 page

Co-authored-by: hashrock <hashrock@users.noreply.github.com>
2022-08-16 23:52:06 +09:00
Luca Casonato 660e0f5fef feat: twind plugin (#513)
This adds a first-party twind plugin to use twind for styling.
2022-08-09 21:41:11 +02:00
Luca Casonato b39608890e chore: run deno fmt with new deno version (#562) 2022-07-30 14:59:35 +00:00
Luca Casonato 27b67b47e1 docs: remove pre-1.0 warning (#293) 2022-06-28 15:38:30 +02:00
Luca Casonato 34fc5514f9 chore: update twind import map defaults in init.ts (#291) 2022-06-27 14:35:34 +02:00
Yusuke Tanaka 56f612c8f3 www: fix footer to the bottom when content is short (#271) 2022-06-22 14:40:29 +02:00
Luca Casonato da340daeb2 BREAKING: move a bunch of types into server/ (#263)
Moved some server only types like `RouteConfig` into server/. They were
previously in runtime/.
2022-06-21 15:21:07 +02:00
Luca Casonato cbbf616a74 chore: version preact explicitly in import map (#258)
This allows users to control the `preact` version independently of fresh
itself.
2022-06-20 12:37:24 +02:00
Ward Cunningham 3e001fe242 www: use unicode arrows for navigation buttons in docs (#250)
Prefer unicode arrows to those made of ascii art.
2022-06-20 11:53:41 +02:00