forked from ProjectEvergreen/greenwood-demo-adapter-vercel
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feature/restore products page with Lit v3 (#12)
* restore products page with Lit v3 * patch missing SSR page chunks * patch in namespacing of SSR page chunks * narrow chunks on chunk naming convention * upgrade latest greenwood alpha.1 * remove patch package
- Loading branch information
1 parent
d34d6b0
commit 16cbfd4
Showing
9 changed files
with
816 additions
and
744 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
import { html } from 'lit'; | ||
import { getProducts } from '../services/products.js'; | ||
import '../components/card.js'; | ||
|
||
export const isolation = true; | ||
|
||
export async function getBody() { | ||
const products = await getProducts(); | ||
|
||
return html` | ||
${ | ||
products.map((product, idx) => { | ||
const { title, thumbnail } = product; | ||
return html` | ||
<app-card | ||
title="${idx + 1}) ${title}" | ||
thumbnail="${thumbnail}" | ||
></app-card> | ||
`; | ||
}) | ||
} | ||
`; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters