Joe Lutz
0ea8b0dbc6
docs: fix wording related to route groups ( #2368 )
2024-03-18 21:01:58 +00:00
Casey Ydenberg
30a25dd2f3
Docs: Add page about setting raw HTML content ( #2189 ) ( #2295 )
...
Closes #2189
2024-03-18 19:11:34 +01:00
Roj
4f671ec961
docs: remove outdated information ( #2362 )
2024-03-14 15:12:51 +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
Michael Gearhardt
671751d572
fix: $fresh ref in import sources ( #2340 )
...
There was an issue with the tailwind error page being pulled in by ref
to $fresh, fixed so now it just uses the file
2024-03-12 12:14:23 +01:00
Reed von Redwitz
5ec06350e2
fix: allow multiple set-cookie headers to be set before render ( #2357 )
...
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.
2024-03-12 12:04:42 +01:00
Marvin Hagemeister
b7281792a0
chore: update deno_esbuild_loader to 0.9.0 ( #2337 )
...
Fixes https://github.com/denoland/fresh/issues/2332
2024-02-23 13:31:00 +01:00
Reed von Redwitz
8f3031317b
fix: properly prefix all scripts with base path ( #2334 )
...
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.
2024-02-23 13:30:42 +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
Marvin Hagemeister
f1c17bc67e
fix: invalid quote around partial script data ( #2323 )
...
This is a little emberassing 👀
2024-02-20 01:07:51 +01:00
William Weiss
0fc83be54b
startServer onListen logs https when key & cert specified ( #2321 )
...
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.
2024-02-19 15:14:20 +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
Marvin Hagemeister
bf0e33eda1
fix: update versions ( #2316 )
2024-02-14 22:42:33 +01:00
Marvin Hagemeister
b26a0d6c6e
fix: improve init choice design ( #2314 )
...
Before:
<img width="528" alt="Screenshot 2024-02-14 at 15 33 41"
src="https://github.com/denoland/fresh/assets/1062408/1c7093db-a509-4d42-998c-3b5282cd88d5 ">
After:
<img width="530" alt="Screenshot 2024-02-14 at 15 33 09"
src="https://github.com/denoland/fresh/assets/1062408/99e2bdeb-e0f5-4926-91e1-f972df1149c1 ">
2024-02-14 15:39:47 +01:00
Marvin Hagemeister
aeca15eeb9
fix: open redirect issue with trailing slash detection ( #2313 )
...
Passing a path like `/foo/bar` as the location header is interpreted as
a relative path. But when it contains two leading slashes like
`//evil.com/` it is interpreted as a port relative url. This has the
consequence that the origin of a URL can essentially be replaced:
```ts
new URL("//evil.com", "https://example.com/ ");
// -> 'https://evil.com/ '
```
Our trailing slash detection logic didn't guard against this case. By
normalizing the pathname of the URL and stripping sibling forward
slashes we sidestep this problem.
2024-02-14 15:25:16 +01:00
Roj [roːʒ]
d19c22d592
feat: add back twind in init wizard ( #2290 )
2024-01-30 12:34:38 +01:00
Aarvin R
dfabf5035e
docs: add link to deno ( #2281 )
...
This pull request replaces a code snippet mentioning Deno (`deno`) with
a link to deno.com ([deno](https://deno.com/ )), and will close #2280 .
2024-01-29 13:19:09 +00:00
Benjamin Jesuiter
2652b85532
fix: GH actions warning by upgrading to v4 #2285 ( #2286 )
...
I tested the change in my own repo, the warning on github disapears for
the "actions/checkout" action.
It is still there for the denoland/setup-deno action, but an upgrade PR
is already ongoing for this action, see:
https://github.com/denoland/setup-deno/pull/56
2024-01-29 14:13:32 +01:00
Reed von Redwitz
3f28cc8977
chore: upgrade tailwind to 3.4.1 ( #2287 )
2024-01-29 14:10:28 +01:00
Luca Casonato
34c875c71c
chore: update esbuild_deno_loader to 0.8.5 ( #2273 )
2024-01-23 21:52:30 +01:00
dependabot[bot]
80b4207326
chore(deps): bump actions/cache from 3 to 4 ( #2271 )
...
Bumps [actions/cache](https://github.com/actions/cache ) from 3 to 4.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a
href="https://github.com/actions/cache/releases ">actions/cache's
releases</a>.</em></p>
<blockquote>
<h2>v4.0.0</h2>
<h2>What's Changed</h2>
<ul>
<li>Update action to node20 by <a
href="https://github.com/takost "><code>@takost</code></a> in <a
href="https://redirect.github.com/actions/cache/pull/1284 ">actions/cache#1284</a></li>
<li>feat: save-always flag by <a
href="https://github.com/to-s "><code>@to-s</code></a> in <a
href="https://redirect.github.com/actions/cache/pull/1242 ">actions/cache#1242</a></li>
</ul>
<h2>New Contributors</h2>
<ul>
<li><a href="https://github.com/takost "><code>@takost</code></a> made
their first contribution in <a
href="https://redirect.github.com/actions/cache/pull/1284 ">actions/cache#1284</a></li>
<li><a href="https://github.com/to-s "><code>@to-s</code></a> made their
first contribution in <a
href="https://redirect.github.com/actions/cache/pull/1242 ">actions/cache#1242</a></li>
</ul>
<p><strong>Full Changelog</strong>: <a
href="https://github.com/actions/cache/compare/v3...v4.0.0 ">https://github.com/actions/cache/compare/v3...v4.0.0 </a></p>
<h2>v3.3.3</h2>
<h2>What's Changed</h2>
<ul>
<li>Cache v3.3.3 by <a
href="https://github.com/robherley "><code>@robherley</code></a> in <a
href="https://redirect.github.com/actions/cache/pull/1302 ">actions/cache#1302</a></li>
</ul>
<h2>New Contributors</h2>
<ul>
<li><a href="https://github.com/robherley "><code>@robherley</code></a>
made their first contribution in <a
href="https://redirect.github.com/actions/cache/pull/1302 ">actions/cache#1302</a></li>
</ul>
<p><strong>Full Changelog</strong>: <a
href="https://github.com/actions/cache/compare/v3...v3.3.3 ">https://github.com/actions/cache/compare/v3...v3.3.3 </a></p>
<h2>v3.3.2</h2>
<h2>What's Changed</h2>
<ul>
<li>Fixed readme with new segment timeout values by <a
href="https://github.com/kotewar "><code>@kotewar</code></a> in <a
href="https://redirect.github.com/actions/cache/pull/1133 ">actions/cache#1133</a></li>
<li>Readme fixes by <a
href="https://github.com/kotewar "><code>@kotewar</code></a> in <a
href="https://redirect.github.com/actions/cache/pull/1134 ">actions/cache#1134</a></li>
<li>Updated description of the lookup-only input for main action by <a
href="https://github.com/kotewar "><code>@kotewar</code></a> in <a
href="https://redirect.github.com/actions/cache/pull/1130 ">actions/cache#1130</a></li>
<li>Change two new actions mention as quoted text by <a
href="https://github.com/bishal-pdMSFT "><code>@bishal-pdMSFT</code></a>
in <a
href="https://redirect.github.com/actions/cache/pull/1131 ">actions/cache#1131</a></li>
<li>Update Cross-OS Caching tips by <a
href="https://github.com/pdotl "><code>@pdotl</code></a> in <a
href="https://redirect.github.com/actions/cache/pull/1122 ">actions/cache#1122</a></li>
<li>Bazel example (Take <a
href="https://redirect.github.com/actions/cache/issues/2 ">#2</a>️⃣) by
<a href="https://github.com/vorburger "><code>@vorburger</code></a> in
<a
href="https://redirect.github.com/actions/cache/pull/1132 ">actions/cache#1132</a></li>
<li>Remove actions to add new PRs and issues to a project board by <a
href="https://github.com/jorendorff "><code>@jorendorff</code></a> in <a
href="https://redirect.github.com/actions/cache/pull/1187 ">actions/cache#1187</a></li>
<li>Consume latest toolkit and fix dangling promise bug by <a
href="https://github.com/chkimes "><code>@chkimes</code></a> in <a
href="https://redirect.github.com/actions/cache/pull/1217 ">actions/cache#1217</a></li>
<li>Bump action version to 3.3.2 by <a
href="https://github.com/bethanyj28 "><code>@bethanyj28</code></a> in <a
href="https://redirect.github.com/actions/cache/pull/1236 ">actions/cache#1236</a></li>
</ul>
<h2>New Contributors</h2>
<ul>
<li><a href="https://github.com/vorburger "><code>@vorburger</code></a>
made their first contribution in <a
href="https://redirect.github.com/actions/cache/pull/1132 ">actions/cache#1132</a></li>
<li><a
href="https://github.com/jorendorff "><code>@jorendorff</code></a> made
their first contribution in <a
href="https://redirect.github.com/actions/cache/pull/1187 ">actions/cache#1187</a></li>
<li><a href="https://github.com/chkimes "><code>@chkimes</code></a> made
their first contribution in <a
href="https://redirect.github.com/actions/cache/pull/1217 ">actions/cache#1217</a></li>
<li><a
href="https://github.com/bethanyj28 "><code>@bethanyj28</code></a> made
their first contribution in <a
href="https://redirect.github.com/actions/cache/pull/1236 ">actions/cache#1236</a></li>
</ul>
<p><strong>Full Changelog</strong>: <a
href="https://github.com/actions/cache/compare/v3...v3.3.2 ">https://github.com/actions/cache/compare/v3...v3.3.2 </a></p>
<h2>v3.3.1</h2>
<h2>What's Changed</h2>
<ul>
<li>Reduced download segment size to 128 MB and timeout to 10 minutes by
<a href="https://github.com/kotewar "><code>@kotewar</code></a> in <a
href="https://redirect.github.com/actions/cache/pull/1129 ">actions/cache#1129</a></li>
</ul>
<p><strong>Full Changelog</strong>: <a
href="https://github.com/actions/cache/compare/v3...v3.3.1 ">https://github.com/actions/cache/compare/v3...v3.3.1 </a></p>
<h2>v3.3.0</h2>
<h2>What's Changed</h2>
<ul>
<li>Bug: Permission is missing in cache delete example by <a
href="https://github.com/kotokaze "><code>@kotokaze</code></a> in <a
href="https://redirect.github.com/actions/cache/pull/1123 ">actions/cache#1123</a></li>
</ul>
<!-- raw HTML omitted -->
</blockquote>
<p>... (truncated)</p>
</details>
<details>
<summary>Changelog</summary>
<p><em>Sourced from <a
href="https://github.com/actions/cache/blob/main/RELEASES.md ">actions/cache's
changelog</a>.</em></p>
<blockquote>
<h1>Releases</h1>
<h3>3.0.0</h3>
<ul>
<li>Updated minimum runner version support from node 12 -> node
16</li>
</ul>
<h3>3.0.1</h3>
<ul>
<li>Added support for caching from GHES 3.5.</li>
<li>Fixed download issue for files > 2GB during restore.</li>
</ul>
<h3>3.0.2</h3>
<ul>
<li>Added support for dynamic cache size cap on GHES.</li>
</ul>
<h3>3.0.3</h3>
<ul>
<li>Fixed avoiding empty cache save when no files are available for
caching. (<a
href="https://redirect.github.com/actions/cache/issues/624 ">issue</a>)</li>
</ul>
<h3>3.0.4</h3>
<ul>
<li>Fixed tar creation error while trying to create tar with path as
<code>~/</code> home folder on <code>ubuntu-latest</code>. (<a
href="https://redirect.github.com/actions/cache/issues/689 ">issue</a>)</li>
</ul>
<h3>3.0.5</h3>
<ul>
<li>Removed error handling by consuming actions/cache 3.0 toolkit, Now
cache server error handling will be done by toolkit. (<a
href="https://redirect.github.com/actions/cache/pull/834 ">PR</a>)</li>
</ul>
<h3>3.0.6</h3>
<ul>
<li>Fixed <a
href="https://redirect.github.com/actions/cache/issues/809 ">#809</a> -
zstd -d: no such file or directory error</li>
<li>Fixed <a
href="https://redirect.github.com/actions/cache/issues/833 ">#833</a> -
cache doesn't work with github workspace directory</li>
</ul>
<h3>3.0.7</h3>
<ul>
<li>Fixed <a
href="https://redirect.github.com/actions/cache/issues/810 ">#810</a> -
download stuck issue. A new timeout is introduced in the download
process to abort the download if it gets stuck and doesn't finish within
an hour.</li>
</ul>
<h3>3.0.8</h3>
<ul>
<li>Fix zstd not working for windows on gnu tar in issues <a
href="https://redirect.github.com/actions/cache/issues/888 ">#888</a> and
<a
href="https://redirect.github.com/actions/cache/issues/891 ">#891</a>.</li>
<li>Allowing users to provide a custom timeout as input for aborting
download of a cache segment using an environment variable
<code>SEGMENT_DOWNLOAD_TIMEOUT_MINS</code>. Default is 60 minutes.</li>
</ul>
<h3>3.0.9</h3>
<ul>
<li>Enhanced the warning message for cache unavailablity in case of
GHES.</li>
</ul>
<h3>3.0.10</h3>
<ul>
<li>Fix a bug with sorting inputs.</li>
<li>Update definition for restore-keys in README.md</li>
</ul>
<!-- raw HTML omitted -->
</blockquote>
<p>... (truncated)</p>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="https://github.com/actions/cache/commit/13aacd865c20de90d75de3b17ebe84f7a17d57d2 "><code>13aacd8</code></a>
Merge pull request <a
href="https://redirect.github.com/actions/cache/issues/1242 ">#1242</a>
from to-s/main</li>
<li><a
href="https://github.com/actions/cache/commit/53b35c543921fe2e8b288765ff817de9de8d906f "><code>53b35c5</code></a>
Merge branch 'main' into main</li>
<li><a
href="https://github.com/actions/cache/commit/65b8989fab3bb394817bdb845a453dff480c2b51 "><code>65b8989</code></a>
Merge pull request <a
href="https://redirect.github.com/actions/cache/issues/1284 ">#1284</a>
from takost/update-to-node-20</li>
<li><a
href="https://github.com/actions/cache/commit/d0be34d54485f31ca2ccbe66e6ea3d96544a807b "><code>d0be34d</code></a>
Fix dist</li>
<li><a
href="https://github.com/actions/cache/commit/66cf064d47313d2cccf392d01bd10925da2bd072 "><code>66cf064</code></a>
Merge branch 'main' into update-to-node-20</li>
<li><a
href="https://github.com/actions/cache/commit/1326563738ddb735c5f2ce85cba8c79f33b728cd "><code>1326563</code></a>
Merge branch 'main' into main</li>
<li><a
href="https://github.com/actions/cache/commit/e71876755e268d6cc25a5d3e3c46ae447e35290a "><code>e718767</code></a>
Fix format</li>
<li><a
href="https://github.com/actions/cache/commit/01229828ffa049a8dee4db27bcb23ed33f2b451f "><code>0122982</code></a>
Apply workaround for earlyExit</li>
<li><a
href="https://github.com/actions/cache/commit/3185ecfd6135856ca6d904ae032cff4f39b8b365 "><code>3185ecf</code></a>
Update "only-" actions to node20</li>
<li><a
href="https://github.com/actions/cache/commit/25618a0a675e8447e5ffc8ed9b7ddb2aaf927f65 "><code>25618a0</code></a>
Bump version</li>
<li>Additional commits viewable in <a
href="https://github.com/actions/cache/compare/v3...v4 ">compare
view</a></li>
</ul>
</details>
<br />
[](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores )
Dependabot will resolve any conflicts with this PR as long as you don't
alter it yourself. You can also trigger a rebase manually by commenting
`@dependabot rebase`.
[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)
---
<details>
<summary>Dependabot commands and options</summary>
<br />
You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits
that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after
your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge
and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating
it. You can achieve the same result by closing it manually
- `@dependabot show <dependency name> ignore conditions` will show all
of the ignore conditions of the specified dependency
- `@dependabot ignore this major version` will close this PR and stop
Dependabot creating any more for this major version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop
Dependabot creating any more for this minor version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop
Dependabot creating any more for this dependency (unless you reopen the
PR or upgrade to it yourself)
</details>
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-01-23 21:52:02 +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
Luca Casonato
4bd556970a
chore: update esbuild deno loader ( #2270 )
...
This fixes a bunch of bugs related to `npm:` imports.
2024-01-22 13:01:42 +00:00
Reed von Redwitz
099aa051be
Revert "chore: simplify deno check:types command" ( #2262 )
...
Reverts denoland/fresh#2259
Windows is failing with this change:
* my PR
https://github.com/denoland/fresh/actions/runs/7556810357/job/20574665605?pr=2261
* your PR
https://github.com/denoland/fresh/actions/runs/7543217433/job/20533721591
* the commit from merging your PR
https://github.com/denoland/fresh/actions/runs/7543221780/job/20533736560
```
Run deno task check:types
Task check:types deno check **/*.ts **/*.tsx
Error launching 'deno': The filename or extension is too long. (os error 206)
Error: Process completed with exit code 1.
```
2024-01-17 16:35:12 +01:00
Marvin Hagemeister
5268aaa6a5
chore: simplify deno check:types command ( #2259 )
2024-01-16 15:41:20 +01:00
Marvin Hagemeister
3d30930d73
chore: release 1.6.3 ( #2257 )
2024-01-15 19:43:28 +01:00
Marvin Hagemeister
9f81806c6e
fix: __FRSH_STATE potentially being overwritten by user code ( #2256 )
...
As outlined in https://github.com/denoland/fresh/issues/2254 it was
possible to overwrite the script tag that is used by Fresh to pass
island props from the server to the client. This could be done by
injecting raw HTML via `dangerouslySetInnerHTML` and simply using the
same id that Fresh was using.
With this PR we generate a unique id per render that cannot be guessed
anymore. It's composed of `__FRSH_STATE_<uuid>`
2024-01-15 19:41:12 +01:00
Luca Casonato
8583394481
fix: prototype pollution in deserializer ( #2255 )
...
This is not exploitable in practice unless a user maliciously crafts
serialized values in __FRSH_STATE, because `serializer()` never outputs
serialized representation that would be vulnerable to prototype
pollution. But hey, defense in depth.
2024-01-15 18:03:59 +00:00
Marvin Hagemeister
3bc43a1327
chore: release 1.6.2 ( #2252 )
...
🎉
2024-01-15 12:43:11 +01:00
Greg Zometa
e059a46ea5
docs: getting started - running locally ( #2245 )
...
Removes description of changing the port number with the deprecated
`port` property and updates with `server.port`.

2024-01-13 08:43:33 +01:00
Igor Brasileiro
e7bf6aca62
fix: Prevent update doc title from partial if not present ( #2244 )
...
fixes #2243
2024-01-12 18:47:40 +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
Marvin Hagemeister
d2e9ee99a2
fix: browser url not updated with form partials ( #2236 )
...
Fixes https://github.com/denoland/fresh/issues/2173
2024-01-10 15:36:30 +01:00
Marvin Hagemeister
6f6f551248
docs: add hints to AOT page ( #2232 )
2024-01-10 10:50:01 +01:00
Marvin Hagemeister
912f3782a3
feat: improve tailwind deployment flow ( #2227 )
...
By moving folks from `twind` over to the `tailwind` plugin we have
traded support questions about "how to get twind autocompletion
working?" with "my styles are not showing up in automatic mode". The
tailwind plugin has a hard requirement on having a build step. We have
documented this at various places and have a guide on how to set
everything up, but it's much better if we float those steps from Fresh
itself when we detect this.
With this PR we will prepare a `.github/workflows/deploy.yml` file
already where the user only needs to swap out the project name.
When Fresh is started in production mode, the tailwind plugin is active
and no snapshot files were loaded, then we print a helpful hint to the
console:
```sh
No pre-compiled tailwind styles found.
Did you forget to run "deno task build" prior to starting the production server?
```
When we are running inside Deno Deploy this PR goes one step further.
Since it is the first time many users might use Deno Deploy we'll also
show a simple page that shows how to finish the tailwind setup. I've
intentionally tried to not present this as a warning but rather as a
"finishing" step to avoid scaring users off. It's not the prettiest
page, but it's good enough for now.
<img width="892" alt="Screenshot 2024-01-09 at 23 41 27"
src="https://github.com/denoland/fresh/assets/1062408/9bf2a61b-5551-4d8e-bdf8-b498072f8e98 ">
Fixes https://github.com/denoland/fresh/issues/2223
2024-01-10 10:35:26 +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
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