-
Notifications
You must be signed in to change notification settings - Fork 2
/
index.vto
110 lines (98 loc) · 3.25 KB
/
index.vto
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
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Deno Cheat Sheet</title>
<link rel="stylesheet" href="styles.css?cache={{ cache }}">
<script type="module" src="scripts/main.js?cache={{ cache }}"></script>
<script>if(!sessionStorage.getItem("_swa")&&document.referrer.indexOf(location.protocol+"//"+location.host)!== 0){fetch("https://counter.dev/track?"+new URLSearchParams({referrer:document.referrer,screen:screen.width+"x"+screen.height,user:"oscarotero",utcoffset:"2"}))};sessionStorage.setItem("_swa","1");</script>
</head>
<body>
<h1 class="main-title">
<img src="deno-logo.svg" width="50" height="50" alt="Deno Logo" class="logo">
<span>Deno cheat sheet</span>
<small>v1.43</small>
</h1>
<section class="section">
<div class="section-tools">
{{ for tool of tools }}
<section class="section-tool">
<h3 class="section-subtitle">
<a href="{{ tool.manual }}" data-modal>
{{ tool.title }}
</a>
{{ if !tool.stable }}
<span class="badge">unstable</span>
{{ /if }}
</h3>
{{ comp.deno.tool(tool) }}
</section>
{{ /for }}
</div>
</section>
<section class="section">
<header class="section-header">
<h2 class="section-title">Deno runtime API</h2>
</header>
<div class="section-content">
{{ for section of deno }}
<section class="section-subsection">
<h3 class="section-subtitle">{{ section.title }}</h3>
<ul class="section-items">
{{ for item of section.content.sort((a, b) => a.name.localeCompare(b.name)) }}
<li>
{{ comp.deno.api(item) }}
</li>
{{ /for }}
</ul>
</section>
{{ /for }}
</div>
</section>
<section class="section">
<header class="section-header">
<h2 class="section-title">Web APIs</h2>
</header>
<div class="section-content">
{{ for section of web }}
<section class="section-subsection">
<h3 class="section-subtitle">{{ section.title }}</h3>
<ul class="section-items">
{{ for item of section.content.sort((a, b) => a.name.localeCompare(b.name)) }}
<li>
{{ comp.deno.api(item) }}
</li>
{{ /for }}
</ul>
</section>
{{ /for }}
</div>
</section>
<section class="section">
<header class="section-header">
<h2 class="section-title">Standard library</h2>
</header>
<div class="section-content">
{{ for section of std }}
<section class="section-subsection">
<h3 class="section-subtitle">
<a href="https://deno.land/std{{ section.url }}">
{{ section.title }}
</a>
{{ if section.browser }}
<span class="badge is-browser">Browser</badger>
{{ /if }}
</h3>
{{ section.description |> md }}
</section>
{{ /for }}
</div>
</section>
<x-modal></x-modal>
<footer class="main-footer">
<p>Created by <a href="https://twitter.com/misteroom/">Óscar Otero</a> - <a href="https://github.com/oscarotero/deno-cheatsheet">See the code</a></p>
</footer>
</body>
</html>