Marvin Hagemeister
f2ea4055df
fix: init banner not colored in ansi256 terminals ( #1456 )
...
This basically uses the same fix as #1377 and #1323 for the init script.
Before:
<img width="505" alt="Screenshot 2023-07-12 at 22 18 29"
src="https://github.com/denoland/fresh/assets/1062408/e77c3110-d3e2-479e-8381-c67c39e216fa ">
After:
<img width="446" alt="Screenshot 2023-07-12 at 22 18 38"
src="https://github.com/denoland/fresh/assets/1062408/debda939-bdce-4890-8dfb-265a4e1b8328 ">
2023-07-13 00:56:36 +02:00
Marvin Hagemeister
62a5613a46
feat: support async route components ( #1388 )
2023-07-12 21:09:56 +02:00
Lino Le Van and Marvin Hagemeister
e2a1bf8643
feat: move to Deno.serve ( #1427 )
...
Co-authored-by: Marvin Hagemeister <marvin@deno.com >
2023-07-12 14:37:53 +02:00
Reed von Redwitz
46ae49d654
chore: add test for middleware error handling ( #1453 )
2023-07-12 10:12:43 +02:00
Marvin Hagemeister
0d141b7153
fix: twind including unused CSS rules ( #1415 )
2023-07-11 23:45:03 +02:00
Lino Le Van
c32f0cf9ce
fix: trailingSlash option ( #1426 )
2023-07-11 14:42:29 +02:00
Reed von Redwitz
9177d9afc3
feat: prevent duplicate routes when generating manifest ( #1410 )
2023-07-11 14:39:48 +02:00
Reed von Redwitz
d4c2258eb6
fix(server): middleware order incorrect ( #1280 )
2023-07-10 15:19:52 +02:00
Reed von Redwitz
724c81f2c7
feat(server): middleware params ( #1314 )
2023-07-10 15:06:43 +02:00
Reed von Redwitz
27622a190e
docs: add "Server Components" concept page ( #1390 )
2023-07-10 15:06:27 +02:00
Marvin Hagemeister
1d6e15ba36
fix: manifest file encoding non-latin chars ( #1433 )
2023-07-10 14:13:01 +02:00
Marvin Hagemeister
1dc3a992f2
refactor: optional directory check ( #1435 )
2023-07-10 14:07:03 +02:00
Marvin Hagemeister
17811dd593
feat: support Preact error boundaries ( #1442 )
2023-07-10 13:02:45 +02:00
Marvin Hagemeister
0131cffb29
www: fix agolia search exceptions ( #1402 )
2023-07-10 11:49:00 +02:00
Marvin Hagemeister
f061667822
www: update docs design ( #1423 )
2023-07-10 11:07:49 +02:00
Reed von Redwitz
4b18dc8b79
www: fix file locations in comments of crud api ( #1438 )
2023-07-10 08:47:58 +02:00
Yuki Tanaka
37f1618004
feat(init.ts): enable lint rules for fresh apps ( #1434 )
2023-07-09 10:11:36 +02:00
Lino Le Van
292b4c2d6f
chore: bump dependencies ( #1428 )
2023-07-08 22:47:12 +02:00
Marvin Hagemeister
92516e441e
feat: make vscode-deno default formatter ( #1431 )
2023-07-08 21:50:21 +02:00
Reed von Redwitz
f737e1c4e3
www: cleanup miscellaneous doc items ( #1419 )
2023-07-07 16:07:40 +02:00
David Balan
7aad800ced
showcase: add Kanji.Academy ( #1411 )
2023-07-06 11:43:39 +02:00
Marvin Hagemeister
bf3e82c093
www: add versioning to docs ( #1400 )
2023-07-04 12:33:47 +02:00
Reed von Redwitz
efcaec3658
www: convert toc to .ts ( #1381 )
2023-07-04 10:49:00 +02:00
ayame113
45ba10e9ee
chore(www): use View Transitions API ( #1399 )
2023-07-03 12:11:25 +02:00
Reed von Redwitz
a3f7c212f4
feat(server): multiple island exports ( #1397 )
2023-07-03 09:59:38 +02:00
Marvin Hagemeister
16be99e69b
fix: change MultiHandler back to Handlers ( #1396 )
2023-07-03 09:57:46 +02:00
Reed von Redwitz and Lino 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