-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
81 lines (78 loc) · 2.6 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta
name="viewport"
content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0"
/>
<meta name="color-scheme" content="dark light" />
<title>Astro Decap Collection Demo</title>
<link rel="stylesheet" href="./src/demo/demo.css" />
<link rel="stylesheet" href="./node_modules/highlight.js/styles/atom-one-light.min.css" />
<script type="module" src="./src/demo/demo.ts"></script>
<script type="module" src="./src/index.ts"></script>
</head>
<body onload="window.handleLoad()">
<header>
<h1>Astro Decap Collection Demo</h1>
<p>
This is a simple demo generator to transform Decap collections to Astro compatible Zod
schemata.<br />
For more information, please visit the
<a href="https://github.com/davidenke/astro-decap-collection#readme">GitHub repository</a>.
</p>
<nav>
<a
href="https://astro.build/"
target="_blank"
aria-label="Go to Astro side generator documentation"
>
<img src="./node_modules/simple-icons/icons/astro.svg" alt="Astro" />
</a>
<a
href="https://decapcms.org/"
target="_blank"
aria-label="Go to Decap content management documentation"
>
<img src="./node_modules/simple-icons/icons/decapcms.svg" alt="Decap" />
</a>
<a
href="https://zod.dev/"
target="_blank"
aria-label="Go to Zod schema validation documentation"
>
<img src="./node_modules/simple-icons/icons/zod.svg" alt="Zod" />
</a>
<a
href="https://github.com/davidenke/astro-decap-collection#readme"
aria-label="Go to GitHub repository"
>
<img src="./node_modules/simple-icons/icons/github.svg" alt="GitHub" />
</a>
</nav>
</header>
<main>
<fieldset id="input">
<legend>Decap config</legend>
<div>
<pre><div><code></code></div></pre>
<textarea
oninput="window.handleInput(event)"
onscroll="window.handleScroll(event)"
placeholder="Paste your Decap config.yml here"
></textarea>
</div>
<nav></nav>
</fieldset>
<fieldset id="config">
<legend>Parsed config collections</legend>
<pre><div><code></code></div></pre>
</fieldset>
<fieldset id="schemas">
<legend>Zod schemata</legend>
<pre><div><code></code></div></pre>
</fieldset>
</main>
</body>
</html>