Marvin Hagemeister
f63752062a
chore: change assert to with for import attributes ( #2231 )
2024-01-10 10:25:07 +01:00
Marvin Hagemeister
598237d5dd
fix: json import attribute error in island ( #2228 )
...
Fixes https://github.com/denoland/fresh/issues/2214
2024-01-10 00:33:38 +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
Reed von Redwitz
e12e08f146
docs: fix import_map link in creating-a-project ( #2218 )
...
closes https://github.com/denoland/fresh/issues/2208
2024-01-08 09:53:36 +00: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
Josh Simmons
1016e7f9a1
docs: fix deprecated type usage in example code ( #2203 )
...
Fixes deprecated example in docs.
<img width="760" alt="image"
src="https://github.com/denoland/fresh/assets/6600962/1e239f0f-0798-4ca0-b84d-d4266b6dfc31 ">
2023-12-28 22:24:38 +00:00
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:

Before with rogue anchor element in hover state:

After:

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 Klein and Marvin 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 Ydenberg and Marvin 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 Svensson and Marvin 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 Svensson and Marvin 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
迷渡 and Marvin 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