@@ -72,64 +72,18 @@ async function callRpc() {
7272 <h1 class =" text-4xl font-semibold tracking-tight text-highlighted" >
7373 {{ props.method.humanReadableName }}
7474 </h1 >
75- <p v-if = " props.method.description " class =" max-w-3xl text-base leading-7 text-muted" >
75+ <p class =" max-w-3xl text-base leading-7 text-muted" >
7676 {{ props.method.description }}
7777 </p >
78- </section >
79-
80- <UCard class =" border-0" >
81- <template #header >
82- <div class =" flex items-center justify-between gap-3" >
83- <div >
84- <h2 class =" text-lg font-semibold text-highlighted" >
85- Interactive playground
86- </h2 >
87- <p class =" text-sm text-muted" >
88- Try the method against a public RPC endpoint.
89- </p >
90- </div >
91- </div >
92- </template >
93-
94- <div class =" space-y-4" >
95- <UFormField label =" RPC endpoint" name =" server" >
96- <UInput v-model =" serverUrl" icon =" i-tabler:server" />
97- </UFormField >
98-
99- <div
100- v-if =" props.method.input.length"
101- class =" grid gap-4 md:grid-cols-2"
102- >
103- <UFormField
104- v-for =" input in props.method.input"
105- :key =" input.key"
106- :label =" input.label || input.key"
107- :name =" input.key"
108- >
109- <USwitch
110- v-if =" input.type === 'boolean'"
111- v-model =" booleanParams[input.key]"
112- />
113- <UInput
114- v-else
115- v-model =" textParams[input.key]"
116- :placeholder =" input.type"
117- />
118- </UFormField >
119- </div >
120-
121- <div class =" flex justify-end" >
122- <UButton
123- :loading =" loading"
124- label =" Call method"
125- trailing-icon =" i-tabler:player-play"
126- color =" primary"
127- class =" rounded-full"
128- @click =" callRpc"
129- />
130- </div >
78+ <div class =" flex flex-wrap items-center gap-2" >
79+ <UBadge color =" neutral" variant =" soft" >
80+ {{ props.method.name }}
81+ </UBadge >
82+ <UBadge :color =" props.method.popular ? 'primary' : 'secondary'" variant =" soft" >
83+ {{ props.method.popular ? 'popular method' : 'rpc method' }}
84+ </UBadge >
13185 </div >
132- </UCard >
86+ </section >
13387
13488 <div class =" grid gap-6 lg:grid-cols-2" >
13589 <UCard class =" border-0" >
@@ -192,6 +146,60 @@ async function callRpc() {
192146 </UCard >
193147 </div >
194148
149+ <UCard class =" border-0" >
150+ <template #header >
151+ <div class =" flex items-center justify-between gap-3" >
152+ <div >
153+ <h2 class =" text-lg font-semibold text-highlighted" >
154+ Interactive playground
155+ </h2 >
156+ <p class =" text-sm text-muted" >
157+ Try the method against a public RPC endpoint.
158+ </p >
159+ </div >
160+ </div >
161+ </template >
162+
163+ <div class =" space-y-4" >
164+ <UFormField label =" RPC endpoint" name =" server" >
165+ <UInput v-model =" serverUrl" icon =" i-tabler:server" />
166+ </UFormField >
167+
168+ <div
169+ v-if =" props.method.input.length"
170+ class =" grid gap-4 md:grid-cols-2"
171+ >
172+ <UFormField
173+ v-for =" input in props.method.input"
174+ :key =" input.key"
175+ :label =" input.label || input.key"
176+ :name =" input.key"
177+ >
178+ <USwitch
179+ v-if =" input.type === 'boolean'"
180+ v-model =" booleanParams[input.key]"
181+ />
182+ <UInput
183+ v-else
184+ v-model =" textParams[input.key]"
185+ :placeholder =" input.type"
186+ />
187+ </UFormField >
188+ </div >
189+
190+ <div class =" flex justify-end" >
191+ <UButton
192+ :loading =" loading"
193+ label =" Call method"
194+ trailing-icon =" i-tabler:player-play"
195+ color =" primary"
196+ class =" rounded-full"
197+ @click =" callRpc"
198+ />
199+ </div >
200+ </div >
201+ </UCard >
202+
195203 <UAlert
196204 v-if =" error"
197205 color =" error"
0 commit comments