Commit Graph
575 Commits
Author SHA1 Message Date
Marvin Hagemeister 16be99e69b fix: change MultiHandler back to Handlers (#1396) 2023-07-03 09:57:46 +02:00
Reed von RedwitzandLino Le Van eb53d53ab8 fix(server): properly sanitize island names (#1393)
Co-authored-by: Lino Le Van <11367844+lino-levan@users.noreply.github.com>
2023-07-03 02:08:47 +02:00
Marvin Hagemeister ced2215446 chore: extract withPageName util (#1389) 2023-07-02 13:14:53 +02:00
Lautaro Suarez 582f56b033 chore: add function return type (#1370) 2023-07-01 19:30:13 +02:00
Reed von Redwitz 70e9c556c3 feat(starter): always initialize _app.tsx (#1380) 2023-07-01 12:59:10 +02:00
Reed von Redwitz f69a11c722 fix: update import map to satisfy vs code (#1382) 2023-07-01 12:55:56 +02:00
Reed von Redwitz 234deb18e3 fix(showcase): reorder to have blank entry at the bottom (#1383) 2023-07-01 12:55:26 +02:00
Marvin Hagemeister 18bf977052 www: landing page redesign (#1279) 2023-06-30 18:45:46 +02:00
Marvin Hagemeister 2dc23dd66c fix: terminal color glitches (#1377) 2023-06-30 18:42:39 +02:00
Reed von Redwitz 4de9394547 docs: add "Sharing state between islands" example (#1311) 2023-06-28 22:17:16 +02:00
Lautaro Suarez e0a1809452 chore: simplify ext -> content type mapping code (#1368) 2023-06-28 22:13:59 +02:00
Reed von Redwitz db357973ab docs: add "Rendering markdown" example (#1307) 2023-06-28 15:16:14 +02:00
Reed von Redwitz 86dcfcc0ca docs: add "Handling complex routes" example (#1365) 2023-06-28 12:55:03 +00:00
Reed von Redwitz 0db3a0911a feat: pass middleware state in props (#1264) 2023-06-28 14:53:42 +02:00
Aushwin 851f8d60aa refactor: changed Handlers type to MultiHandler (#1360) 2023-06-28 12:52:48 +00:00
Reed von Redwitz a30c6bdf5c fix(test): cli_test now retries to move files (#1372) 2023-06-28 14:47:26 +02:00
Kamil Ogórek aff31c0f15 fix: Use custom 500 page for *all* handlers if present (#1362) 2023-06-27 11:05:05 +02:00
Reed von Redwitz ee3e4a1145 docs: add "Creating a CRUD API" example (#1361)
closes https://github.com/denoland/fresh/issues/768
supersedes https://github.com/denoland/fresh/pull/853

I'm not sure if this is what Ryan had in mind when opened 768. But this
PR includes some working code, references Deno KV, and briefly touches
on `OPTIONS` as a bonus.

Should I link to https://deno.com/blog/build-crud-api-oak-denokv where I
borrowed some code from? I must admit I'm a bit confused about why Andy
chose to write about Oak instead of Fresh in this post...
2023-06-27 09:18:49 +02:00
Marvin Hagemeister 2b92b1c526 fix: conditional sibling islands DOM order (#1324) 2023-06-26 13:57:05 +02:00
Kamil Ogórek 62aaffa314 fix: error page content cut off (#1356)
Flex container will take care of the rest; centering, padding, and
making it not expand unnecessarily.

Too wide container (centered):
<img width="1728" alt="image"
src="https://github.com/denoland/fresh/assets/1523305/8d4ee8fa-0854-4eaa-8ef5-d869742d69dc">

Too narrow container (padded):
<img width="666" alt="image"
src="https://github.com/denoland/fresh/assets/1523305/48b2ab40-9943-4068-a376-222b1cc2919c">

Fixes https://github.com/denoland/fresh/issues/1344
2023-06-24 19:31:36 +02:00
Reed von Redwitz ae984924e5 fix: update script broken when using src dir (#1353)
closes https://github.com/denoland/fresh/issues/1338

This is more complex than first expected. It turns out the head of main
no longer has this error, because we started swallowing errors in
https://github.com/denoland/fresh/pull/1327. I'm not sure this is the
right implementation. It seems like we should explicitly check for the
`islands` folder instead of ignoring errors. But the obvious approach
(https://deno.land/std@0.192.0/fs/mod.ts?s=exists) is apparently
forbidden, due to some sort of nonsense with race conditions. Well, not
being able to find `islands` because it doesn't exist at all is
definitely different than it being buried in a source directory, so
we'll need to sort this out at some point.

I suppose that's now some technical debt to deal with, and not related
to this issue. The latest "error" when running `update` and using a
source directory is the following:
```
deno run -A -r file:///Users/reed/code/fresh/update.ts .
The manifest has been generated for 0 routes and 0 islands.
```
i.e. it just doesn't do anything. (To be fair, it does generate a
`fresh.gen.ts` in the incorrect location, so I suppose it does
_something_.)

But of course this isn't what we want. So we'll hunt for a source
directory, as defined by the precense of `main.ts`.

The fix for this is relatively straightforward. The test implements the
user's actions, i.e. init a project, move things, and then try to
update.
2023-06-24 13:28:05 +02:00
Karel Klíma bb5c27de70 showcase: add Battleship (#1354) 2023-06-24 13:15:26 +02:00
Reed von Redwitz 0c187c145a docs: add "Dealing with CORS" example (#1347) 2023-06-24 11:10:12 +00:00
Taylor Young 30349db939 fix link (#1352) 2023-06-24 13:07:00 +02:00
Reed von Redwitz 7a7d0e77d0 docs: add section about "Middleware Destination" feature (#1343) 2023-06-23 13:50:20 +00:00
Marvin Hagemeister 124c597112 chore: remove stray console.log in tests (#1351) 2023-06-23 13:41:31 +00:00
Reed von Redwitz 03dbbd4f8e fix: update script supports deno.jsonc files (#1349) 2023-06-23 14:26:22 +02:00
Marvin Hagemeister 95fc13a8cc fix: signals not serialized with newer versions (#1348) 2023-06-23 11:58:07 +02:00
Marvin Hagemeister 76d838cf10 chore: add index layout to island tests (#1340) 2023-06-22 16:23:05 +02:00
Ricardo de Arruda e556afb7e0 showcase: add Deno Place (#1325) 2023-06-21 17:44:50 +00:00
jneeee 33050b4137 showcase: add uspb.deno.dev (#1332) 2023-06-21 17:17:19 +00:00
arrow2nd ab461cd71d fix: update.ts fails when there is no islands directory (#1327) 2023-06-21 19:11:50 +02:00
Marvin Hagemeister 3a83c5974d chore: simplify folder tests (#1337) 2023-06-21 14:02:25 +02:00
Marvin Hagemeister 87b15885aa feat(starter): add 404 page template (#1336) 2023-06-21 11:01:48 +02:00
EBIBO 9b98e13e29 fix: raise minimum deno version to 1.31.0 (#1333)
Fresh uses `Deno.Command` which is not available in older versions of Deno.
2023-06-21 07:27:18 +00:00
Marvin Hagemeister 1e1257f92f fix: incorrect coloring in ansi256 terminals (#1323) 2023-06-18 22:23:07 +02:00
Luca Casonato 29966ad8bb feat: don't require connInfo in request handler (#1278) 2023-06-18 21:39:11 +02:00
Asher Gomez d0b277a135 docs: add "Contributing" section (#1233) 2023-06-18 13:42:23 +02:00
kit 4e2abd67dd feat(init): make project name as default header title (#1275)
default header title should be same as project name
2023-06-18 06:39:37 +02:00
Lino Le Van 4d66f95ef6 feat: serialize bigints for islands (#1317) 2023-06-17 20:31:58 +02:00
Marvin Hagemeister ea6a74237d feat: improve starter template design (#1320) 2023-06-17 20:31:08 +02:00
Lino Le VanandLuca Casonato 83925cc1e3 docs(examples): Using twind v1 + fix md code syntax highlighting (#1271)
Co-authored-by: Luca Casonato <lucacasonato@yahoo.com>
2023-06-17 19:16:12 +02:00
Kamil Ogórek 219ab574db fix: Exclude Twitter/Slack bots from root page redirects (#1318) 2023-06-17 19:13:04 +02:00
Kamil Ogórek 2b11803528 docs: Export missing Plugin types to fix broken links (#1319) 2023-06-17 19:05:14 +02:00
Luca Casonato 1d606416a8 www: fix copy button (#1312) 2023-06-16 20:54:35 +02:00
Reed von Redwitz 7deda2a7dd docs: add "Using Fresh canary version" example (#1306) 2023-06-16 17:13:16 +02:00
Kamil Ogórek d5a8692b78 feat: Allow passing props to renderNotFound method (#1310) 2023-06-16 17:12:01 +02:00
Reed von RedwitzandAsher Gomez 12fc103daa docs: add "initializing the server" example (#1292)
Co-authored-by: Asher Gomez <ashersaupingomez@gmail.com>
2023-06-16 10:33:54 +02:00
Asher Gomez a4f7172807 docs: fix Signal type typo (#1304) 2023-06-16 10:32:20 +02:00
Luca Casonato 1753ee8620 fix: remove duplicated esbuild imports (#1302)
This somehow snuck in during the src/build/ refactor.
2023-06-16 01:06:49 +02:00