Commit Graph
984 Commits
Author SHA1 Message Date
Ian James a8a43ff0d4 docs: fix typo in active links introduction (#2192)
Fixes an "<a>" in the active link markdown from being interpreted as an
actual link, rather than part of the text.

Before:


![](https://github.com/denoland/fresh/assets/1732331/fa5665f8-deed-439f-b6de-4589b494edd7)

Before with rogue anchor element in hover state:


![](https://github.com/denoland/fresh/assets/1732331/e6b286d6-e76a-4def-8446-ec0f8752967a)


After:

![](https://github.com/denoland/fresh/assets/1732331/1f441b30-871e-4076-837e-1cf5e64a82b0)
2023-12-22 12:54:16 +00:00
Nicolò Ribaudo df35a063fd fix: .vscode/tailwind.json generation (#2185)
Fixes #2184

Is there any reason for this not being `JSON.stringify({ ... that object
... })` and avoid a lat of escaping?
2023-12-19 21:45:05 +00:00
iain maitland 7af80da802 docs: add missing import (#2183)
fix undefined var error.
2023-12-18 21:45:31 +01:00
iain maitland 8d321b6049 docs: fix typo in upload example (#2182) 2023-12-18 18:12:10 +01:00
Marvin Hagemeister 74481007f3 docs: Move aot step in tailwind guide to start (#2176) 2023-12-15 16:42:42 +01:00
dependabot[bot] 12760973e0 chore(deps): bump google-github-actions/setup-gcloud from 1 to 2 (#2170)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-12-11 22:41:20 +01:00
Casey Ydenberg 579709159d showcase: add Living Pixel (#2165) 2023-12-11 18:14:29 +01:00
Arno KleinandMarvin Hagemeister 78061e9198 docs: fix link to data-fetching (#2162)
Just a fixed link

---------

Co-authored-by: Marvin Hagemeister <marvin@deno.com>
2023-12-11 08:48:39 +00:00
Marvin Hagemeister 56df310263 chore: release 1.6.1 (#2158) 2023-12-07 12:50:40 +01:00
Marvin Hagemeister 498aa8c463 fix: don't fallthrough static files in dev (#2156) 2023-12-07 12:23:23 +01:00
Marvin Hagemeister 90b0642bdd fix: init app use same width numbers (#2155) 2023-12-07 11:30:14 +01:00
Marvin Hagemeister 3410470d5e fix: ensure previous ws connection is closed in dev (#2154) 2023-12-07 11:17:23 +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 2caf798016 fix: tailwind bg-clip-text not working (#2152) 2023-12-07 09:54:32 +01:00
Marvin Hagemeister 9af63be308 fix: switch back to URLPattern for correctness (#2151) 2023-12-07 09:40:07 +01:00
Marvin Hagemeister 8bf9f2df58 fix: revert marking ctx.data as deprecated (#2148) 2023-12-06 13:43:13 +01:00
Marvin Hagemeister c72f534369 fix: route param fallback not empty string (#2146) 2023-12-06 09:33:36 +01:00
Marvin Hagemeister c05a6b1496 fix: tailwind build not creating subfolders (#2145) 2023-12-06 08:57:31 +01:00
Reed von Redwitz 7465dbd978 feat(init): task to generate manifest file (#1422) 2023-12-05 15:03:37 +01:00
Reed von Redwitz 60b2198d13 fix: tailwind now respects basepath (#2138) 2023-12-05 13:13:33 +01:00
Marvin Hagemeister 80d35223d3 fix: route pattern parsing (#2142) 2023-12-05 13:11:34 +01:00
迷渡 04c62173fe fix: Unknown at rule @apply css(unknownAtRules) (#2141) 2023-12-05 11:28:21 +01:00
dependabot[bot] 508366e9d6 chore(deps): bump google-github-actions/auth from 1 to 2 (#2140)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-12-04 20:55:52 +01:00
Reed von Redwitz c8844ad98c fix: PluginRoute supports AsyncRoute and AsyncLayout (#2139) 2023-12-04 16:56:00 +01:00
Marvin Hagemeister 993f1020b6 docs: add note for aria + data with Tailwind CSS (#2137)
Fixes https://github.com/denoland/fresh/issues/2123
2023-12-04 12:31:52 +01:00
Christian SvenssonandMarvin Hagemeister 96644f5e22 fix: remove error frame HTML for non-dev mode (#2133)
Co-authored-by: Marvin Hagemeister <marvin@deno.com>
2023-12-04 11:14:11 +00:00
Christian SvenssonandMarvin Hagemeister c4e09d1cef fix: use real 500 error page in dev mode (#2134)
Co-authored-by: Marvin Hagemeister <marvin@deno.com>
2023-12-04 12:06:06 +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
Christos Hrousis f3578f863f docs: Remove references to deprecated types (#2125)
As per the [1.6
release](https://deno.com/blog/fresh-1.6#simplified-typings), and
commentary by @csvn
[here](https://github.com/denoland/fresh/issues/2108#issuecomment-1836625789),
this PR aims to replace the references to deprecated typing in the
documentation.

Please see inline commentary for parts I'm unclear on.
2023-12-02 11:14:37 +00:00
Marvin Hagemeister 6eccdcf1a1 fix: ensure tailwind is loaded lazily (#2124) 2023-12-02 10:34:12 +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
Marvin Hagemeister 8fecfb940c fix: make prompt a question to hint at user input (#2119) 2023-12-01 23:41:26 +01:00
Marvin Hagemeister 2acf72d512 fix: tailwind failing on non-existant files (#2118) 2023-12-01 23:38:22 +01:00
Marvin Hagemeister 8fecb589ba docs: fix release post link (#2114) 2023-12-01 16:38:38 +01:00
Marvin Hagemeister dace008611 chore: release 1.6.0 (#2113) 2023-12-01 16:20:40 +01:00
Marvin Hagemeister bd372b9535 fix: errors in plugin fixture + improve island docs (#2109) 2023-12-01 12:21:10 +01:00
Marvin Hagemeister 054ffbb44a fix: dots in island + route name not working (#2105) 2023-11-30 18:14:59 +01:00
Reed von Redwitz a0483bc357 chore: create manifest generation task (#2088) 2023-11-30 17:07:00 +01:00
Marvin Hagemeister 9e11c5c56b feat: expose config in context + simplify page props (#2102) 2023-11-30 16:11:31 +01:00
Marvin Hagemeister aafe048243 feat: make ready message one line (#2104) 2023-11-30 16:07:34 +01:00
Marvin Hagemeister 3b3e8fa497 feat: print more concise logs on Deploy (#2103) 2023-11-30 16:00:25 +01:00
Guilherme MiyakeandMarvin Hagemeister 1501699988 docs/examples: Client side components and libraries (#2089)
Co-authored-by: Marvin Hagemeister <marvin@deno.com>
2023-11-30 14:22:11 +01:00
Marvin Hagemeister 8ddc21eb90 Router cleanup (#2099) 2023-11-30 14:08:05 +01:00
Marvin Hagemeister a0a756a1ec fix: island module type in manifest (#2101) 2023-11-30 13:50:32 +01:00
Marvin Hagemeister daf8ca19d2 chore: fix twind test (#2100) 2023-11-30 13:18:19 +01:00
Marvin Hagemeister d12ad2fc5f docs: fix encoded text in TOC (#2098) 2023-11-30 03:21:54 +01:00
Marvin Hagemeister de55d80dee docs: improve design (#2097) 2023-11-29 22:50:51 +01:00
Reed von RedwitzandMarvin Hagemeister 9ab8651018 feat(server): Add basePath config to host from a directory (#2092)
Co-authored-by: Marvin Hagemeister <marvin@deno.com>
2023-11-29 16:44:25 +00:00
Marvin Hagemeister fe792455ab fix: add missing -h/--help to init (#2096) 2023-11-29 16:57:39 +01:00