Commit Graph
297 Commits
Author SHA1 Message Date
Luca Casonato b7f0d5c860 feat: install @preact/signals by default (#710) 2022-09-08 01:00:05 +02:00
Luca Casonato ee8812d7f6 chore: tweak console output for init.ts script (#708) 2022-09-07 15:28:38 +02:00
vwkd 995ad45735 chore: HTML meta tag charset property casing (#704)
Corrects strange casing of HTML meta tag charset property for cleaner
visual appearance.
2022-09-07 15:18:33 +02:00
Luca Casonato 01052b31aa chore: update preact-render-to-string (#707) 2022-09-07 15:06:24 +02:00
Luca Casonato b19c4bb041 feat: add update.ts script (#706)
This commit adds an update.ts tool that makes it easy to upgrade
existing Fresh projects to the latest version of Fresh. This tool
updates dependency versions in the import map, and includes some code
mods:

1. update projects from classic JSX to automatic JSX
2. update projects from legacy twind integration to twind plugin

Both of these code mods get you about 95% of the way there most of the
time. Users might still need to do some manual work to get their
projects fully updated.
2022-09-07 09:36:23 +00:00
Luca CasonatoandElias Sjögreen 1b3c9f2569 fix(plugin/twind): load configuration as module (#705)
This commit loads the Twind configuration as an actual module rather
than evaluating it on the server and then serializing. This allows usage
of unserializable plugin functions.

Co-authored-by: Elias Sjögreen <eliassjogreen1@gmail.com>
2022-09-07 00:44:46 +02:00
hashrockandLuca Casonato 8e9658cae5 www: add showcase page (#699)
Co-authored-by: Luca Casonato <hello@lcas.dev>
2022-09-06 15:28:20 +02:00
Lino Le Van 28ae07da35 www: bump x/gfm version to aid translation software (#700) 2022-09-06 12:19:39 +00:00
Sourav Singh Rawat 08d43803f7 feat: add support for custom static folder in FreshOptions (#626)
Support custom (user provided) static assets folder or fallback to default behavior.
2022-09-05 12:00:47 +00:00
Nyx Iskandar 3a6cc935a1 docs: image alt for "Made with Fresh" badges (#689)
Included the `alt` attribute in `<img>` tags in README.
2022-09-02 20:10:20 +09:00
Lino Le Van 925ea42ca7 docs: fix issues with Deployment concepts page (#682) 2022-08-31 22:46:57 +02:00
Luca CasonatoandLino Le Van 0cc3cc7762 docs: add "Deployment" concepts page (#680)
Add docs for deploying using Docker (in addition to Deno Deploy).

Co-authored-by: Lino Le Van <11367844+lino-levan@users.noreply.github.com>
2022-08-31 13:24:36 +02:00
Luca Casonato 6ec04ea0f2 build: remove canary special case in CI (#654) 2022-08-31 12:35:29 +02:00
Vitor L Cavalcanti 54d6d67519 docs: fix syntax error on "Error Pages" page (#668) 2022-08-31 10:32:34 +00:00
Luca Casonato 6077bb65b7 chore: correct code comment (#679) 2022-08-31 12:25:21 +02:00
Luca Casonato b12867a582 feat: support JSX automatic mode (#610)
This commit adds support for JSX automatic mode instead of the default
mode that requires the presence of the JSX pragma in each file.

This commit also adds the config file to the `fresh.gen.ts` manifest,
which is used to determine if the client emit should use automatic mode.

The minimum Deno version has also been bumped to 1.25.0.
2022-08-26 11:03:00 +02:00
Luca Casonato bbe4277acb chore: update puppeteer (#659) 2022-08-25 15:26:44 +02:00
hashrock 1adbb030cd add "Made with Fresh" badges (#649)
this adds simple badges in README.
2022-08-25 19:22:20 +09:00
Luca Casonato 3d682d98cb chore: update preact & preact-render-to-string (#651)
preact@10.10.6 & preact-render-to-string@5.2.2
2022-08-23 22:09:06 +00:00
Luca Casonato 3cc6d6da72 docs: add frontmatter to concepts/static-files.md (#650) 2022-08-23 22:05:52 +00:00
ahuigo a00b97bac9 feat: support multiple middlewares with the same matcher (#553) 2022-08-23 23:50:57 +02:00
Elias SjögreenandLuca Casonato 6c2291f0de chore: use x/rutt instead of crux.land/router (#647)
Co-authored-by: Luca Casonato <hello@lcas.dev>
2022-08-23 21:33:11 +00:00
Marvin HagemeisterandLuca Casonato 7e0278bbb3 feat: add support for preact devtools in dev mode (#639)
Co-authored-by: Luca Casonato <hello@lcas.dev>
2022-08-23 13:29:12 +00:00
Benny Yen d798db2a5f www: use frontmatter parser from std (#621) 2022-08-23 13:26:44 +00:00
Roj 67b82d538b fix: add reference to dom.iterable (#641)
This fixes TypeScript errors with things like `URLSearchParams.entries`.
2022-08-23 13:26:21 +00:00
Luca Casonato 027f3f8bba chore: fix ci (#645) 2022-08-23 11:25:03 +00:00
Michael Pfisterandhashrock 3431555f95 Add 404 and 500 page #446 (#624)
* Add 404 and 500 page

Co-authored-by: hashrock <hashrock@users.noreply.github.com>
2022-08-16 23:52:06 +09:00
Michael Pfister 55f657827f fix: add missing icon bg colors on mobile (#609)
* Docs: Fix Small Grammar Issue

* fix missing label bg colors on mobile

* add missing icon bg colors on mobile

* Rearrange icon bg-colors for mobile
2022-08-11 21:02:11 +09:00
c7cbd23052 www: new landing page (#602)
* design: add icons to features

* www: update intro layout

* www: add copy button

* www: create CopyArea island

* www: update info style

* www: add showcase

* Update www/routes/index.tsx

Co-authored-by: Luca Casonato <lucacasonato@yahoo.com>

* www: set text-center to feature descriptions

* www: remove showcase image tabindex

add hover feedback to the showcase tiles

* www: add deno install / update links

* www: left align the feature descriptions on small screens

* www: fix broken getting started layout on mobile

* www: always show the copy buttons

* www: add some additional vertical spacing

* improve screenshots

Co-authored-by: Luca Casonato <lucacasonato@yahoo.com>
Co-authored-by: Luca Casonato <hello@lcas.dev>
2022-08-10 14:50:29 +09:00
Luca Casonato 7b0c190454 docs: export route config in routing chapter (#604) 2022-08-09 19:48:23 +00:00
Luca Casonato 660e0f5fef feat: twind plugin (#513)
This adds a first-party twind plugin to use twind for styling.
2022-08-09 21:41:11 +02:00
Luca Casonato fd4e2bbe17 feat: add initial plugin support (#512)
This commit adds initial support for fresh "plugins". These are bundles
of functionality that can be added to a fresh plugin through a simple
addition in the `main.ts` file.

Right now plugins are only able to hook into the render steps. This
means that they can inject styling and scripts. They can not yet hook
into routing.

Things that I think should be possible now:
- styling integrations for twind, unocss, and probably a few other tools

Things that are not possible yet:
- google analytics middleware
- database connectors
- CMS connectors

The routing additions to plugins can be added in a follow-up though.
2022-08-09 21:27:58 +02:00
Steven YungandLuca Casonato 49092ed83a feat: add ctx.renderNotFound() to explicitly render 404 template (#481)
Co-authored-by: Luca Casonato <hello@lcas.dev>
2022-08-09 19:23:17 +00:00
Michael Pfister b169d18ecb docs: fix small grammar issue (#589) 2022-08-08 21:23:39 +00:00
Yuki Tanaka 0449a4c73a docs: mention kebab case naming for islands (#572) 2022-08-08 21:22:58 +00:00
Kid 5b9ce720d0 chore: remove deno.unstable references (#600) 2022-08-08 23:19:26 +02:00
Kid bd45056893 refactor: clean up refresh script (#601) 2022-08-08 23:19:00 +02:00
Saeed Nasiri 6d50f4541e docs(README): fix error in getting started section (#576) 2022-08-02 15:20:12 +09:00
Hunter Paulson 4d027b8eeb Fixed minor typo (#567)
Fixed typo
2022-08-01 13:49:59 +09:00
Luca Casonato e1226c54e7 1.0.2 2022-07-31 21:16:42 +00:00
ashish 58f9769baf refactor: add components/ in starter project (#353)
This commit adds a `components/` folder to the starter project to
indicate that one can also create components that are not themselves
islands.
2022-07-30 15:56:42 +00:00
AbdulazizandLuca Casonato 1dc1f87fc3 refactor: use named status codes from std internally (#417)
Co-authored-by: Luca Casonato <hello@lcas.dev>
2022-07-30 15:35:31 +00:00
Luca Casonato ba20756c17 chore: update deps (#561)
Update std, esbuild, and preact.
2022-07-30 17:29:29 +02:00
Tim Smith a6aac89663 www: fix capitalization in footer (#524) 2022-07-30 15:12:41 +00:00
angellk11 fdc6a7409d docs: grammar fix (#528)
Changed "it's props" to "its props" to indicate possession instead of a contraction.
2022-07-30 15:10:59 +00:00
Ikko Ashimine d396348625 chore: fix typo in context.ts (#533)
occured -> occurred
2022-07-30 15:10:15 +00:00
ahuigo 39309e4c22 docs: add subtitles to concepts/routes (#554) 2022-07-30 15:05:55 +00:00
Makoto Tateno 0595f92ab8 fix: remove meta tag for IE (#545) 2022-07-30 15:05:10 +00:00
Luca Casonato b39608890e chore: run deno fmt with new deno version (#562) 2022-07-30 14:59:35 +00:00
Manuel Trinidad d9e5a71468 docs: fix wrong interface on handler parameter (#496) 2022-07-15 14:38:11 +00:00