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 Van and Luca 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 Redwitz and Asher 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
Luca Casonato
94f5d38f3b
www: actually link to 1.2 ( #1301 )
2023-06-15 21:35:48 +02:00
kit
0bc769053e
fix(www): incorrect path on examples docs page ( #1299 )
2023-06-15 21:16:13 +02:00
Marvin Hagemeister
ec821c9a86
www: update banner for v1.2 ( #1298 )
2023-06-15 20:55:56 +02:00
Marvin Hagemeister
710cf56d56
chore: update versions.json for 1.2.0 ( #1297 )
2023-06-15 19:32:06 +02:00
Reed von Redwitz
f5f8928c89
feat(server): trailing slash configuration ( #1291 )
2023-06-15 19:01:07 +02:00
Marvin Hagemeister
80306563d2
fix: rendering islands inside other islands ( #1295 )
2023-06-15 17:55:17 +02:00
Naju Mancheril
a1d266f0d3
Invoke getTime() on the Date value and not on the date signal ( #1284 )
2023-06-15 15:01:08 +00:00
Reed von Redwitz and Asher Gomez
673ed2d90f
docs: add "Changing the source directory" example ( #1286 )
...
Co-authored-by: Asher Gomez <ashersaupingomez@gmail.com >
2023-06-15 11:37:41 +02:00
Reed von Redwitz
f833c7262d
docs: add "Server configuration" concept explanation ( #1293 )
2023-06-15 11:37:23 +02:00
Marvin Hagemeister
ce0eda7654
feat: allow passing JSX children to island + nested islands ( #1285 )
2023-06-15 10:08:48 +02:00
Marvin Hagemeister
372d0dfffb
feat(init): add update task ( #1290 )
2023-06-14 15:48:52 +02:00
Luca Casonato
1faa80db59
fix: update script to work with non-embedded import maps ( #1283 )
...
The script now updates non-embedded import maps to embedded ones.
2023-06-14 14:57:49 +02:00
Asher Gomez
adc16c5c29
docs: fix "Writing Tests" example title typo ( #1288 )
...
To align the casing with the rest of the documentation titles.
2023-06-14 14:57:37 +02:00
Asher Gomez
5ef6fa34d9
fix: use await Deno.serve().finished ( #1287 )
...
[A recent change in the
runtime](https://github.com/denoland/deno/pull/19485 ) has changed the
behaviour of `Deno.serve()` such that it throws when called a promise.
The correct way to do it is instead to call `Deno.serve().finished` as a
promise. This PR does that.
Fixes
https://github.com/denoland/fresh/pull/1286#issuecomment-1589987387
2023-06-14 08:23:51 +10:00
47c7f4ec9a
feat: add "openai semantic search showcase. ( #1259 )
...
cc @lambtron @iuioiua
Co-authored-by: Andy Jiang <andyjiang@gmail.com >
Co-authored-by: Asher Gomez <ashersaupingomez@gmail.com >
Co-authored-by: hashrock <hashrock@users.noreply.github.com >
2023-06-13 18:35:55 +10:00
Asher Gomez
e3defa8e74
chore: remove www workflow ( #1282 )
...
This change removes the `www` workflow, simplifying CI to one workflow.
This is made more accessible, thanks to #1281 . This also fixes PR
merging nits for when the affected files lie only within the `/www`
folder. E.g.
https://github.com/denoland/fresh/pull/1259#issuecomment-1586050738
The same checks in the `www` workflow are performed in the `ci`
workflow.
2023-06-13 18:30:20 +10:00
Octo8080X and Asher Gomez
ac32c2deb6
docs: add "Writing Tests" example ( #1223 )
...
Fixes [#1222 ](https://github.com/denoland/fresh/issues/1222 )
Add example implementation and documentation of test code using
`createHandler()` newly added by
[#622 ](https://github.com/denoland/fresh/pull/622 )
---------
Co-authored-by: Asher Gomez <ashersaupingomez@gmail.com >
2023-06-13 07:37:12 +10:00