feat: Add account pages

Signed-off-by: Florian BOUILLON <f.bouillon@aptatio.com>
This commit is contained in:
2023-06-21 19:55:52 +02:00
parent eac88b2ec3
commit dc80dec6a8
4 changed files with 97 additions and 2 deletions

View File

@ -1,6 +1,4 @@
---
const json = JSON.stringify(Astro.props)
/**
* note: you MUST only pass simple items that can go in JSON format natively
*/
@ -12,5 +10,6 @@ export function load<T extends {} = {}>(): T {
return JSON.parse(tag.innerText)
}
const json = JSON.stringify(Astro.props)
---
<script id="ASTRO_DATA" is:inline type="application/json" set:html={json}></script>