File tree Expand file tree Collapse file tree 1 file changed +17
-1
lines changed
lib/components_guide_web/live Expand file tree Collapse file tree 1 file changed +17
-1
lines changed Original file line number Diff line number Diff line change @@ -54,11 +54,18 @@ defmodule ComponentsGuideWeb.LatencyComparisonLive do
54
54
@ impl true
55
55
def render ( assigns ) do
56
56
~H"""
57
+ < nav class = "pt-8 pb-8 " >
58
+ < ul class = "list-none flex justify-center gap-4 " >
59
+ < li > < . link href = "/latency-comparison/cdns " > CDNs</ . link > </ li >
60
+ < li > < . link href = "/latency-comparison/dev-blogs " > Dev Blogs</ . link > </ li >
61
+ < li > < . link href = "/latency-comparison/robots.txt " > Robots.txt</ . link > </ li >
62
+ </ ul >
63
+ </ nav >
57
64
< . form
58
65
for = { :editor }
59
66
id = "latency_comparison_form "
60
67
phx-submit = "submitted "
61
- class = "max-w-2xl mt-12 mx-auto space-y-2 "
68
+ class = "max-w-2xl mx-auto space-y-2 "
62
69
>
63
70
< div class = "flex flex-col items-center gap-4 " >
64
71
< button type = "submit " class = "px-3 py-1 text-xl text-blue-900 bg-blue-200 rounded " autofocus > Load</ button >
@@ -186,6 +193,15 @@ defmodule ComponentsGuideWeb.LatencyComparisonLive do
186
193
]
187
194
end
188
195
196
+ def default_urls ( "cdns" ) do
197
+ [
198
+ "https://cdn.jsdelivr.net/npm/[email protected] /underscore-esm-min.js" ,
199
+ "https://unpkg.com/[email protected] /underscore-esm-min.js" ,
200
+ "https://esm.sh/v107/[email protected] /es2021/underscore.js" ,
201
+ "https://cdnjs.cloudflare.com/ajax/libs/underscore.js/1.13.6/underscore-esm-min.min.js"
202
+ ]
203
+ end
204
+
189
205
def default_urls ( _ ) do
190
206
[
191
207
"https://workers.cloudflare.com/cf.json" ,
You can’t perform that action at this time.
0 commit comments