From b49b3d1976863543f6a871d0818cd38fb29a728e Mon Sep 17 00:00:00 2001
From: "joshcs.eth" <46639943+jcstein@users.noreply.github.com>
Date: Fri, 6 Oct 2023 19:08:19 -0400
Subject: [PATCH 1/3] feat: add janky method link
---
src/pages/index.tsx | 31 ++++++++++++++++++++++++++-----
1 file changed, 26 insertions(+), 5 deletions(-)
diff --git a/src/pages/index.tsx b/src/pages/index.tsx
index fc84976..ca1a828 100644
--- a/src/pages/index.tsx
+++ b/src/pages/index.tsx
@@ -507,12 +507,33 @@ export default function Example() {
{filteredMethods.map((method) => (
-
- {method.name}(
- {method.params.map((param, i, { length }) => (
-
- {param.name}{' '}
+
+ {method.name}(
+ {method.params.map((param, i, { length }) => (
+
+ {param.name}{' '}
+ activateSidebar(param)}
+ >
+ {param.description}
+ {length - 1 != i && ', '}
+
+
+ ))}
+ )
+ {method.result.description != 'Null' && (
activateSidebar(param)}
+ className='ml-2 text-sm text-blue-500 hover:cursor-pointer hover:font-bold'
+ onClick={() => activateSidebar(method.result)}
>
- {param.description}
- {length - 1 != i && ', '}
+ {method.result.description}
+ )}
+
+ perms: {method.auth}
- ))}
- )
- {method.result.description != 'Null' && (
- activateSidebar(method.result)}
- >
- {method.result.description}
+ {method.description}
{method.name}(
@@ -653,7 +688,7 @@ const RPCMethod = ({
))}
- )
+ n )
{method.result.description != 'Null' && (
-
+ {
+ window.location.hash = `${pkg}.${method.name}`;
+ }}
+ >
#