iway1 / trpc-panel

MIT License
627 stars 43 forks source link

Allow raw json (any) input #93

Open ferm10n opened 9 months ago

ferm10n commented 9 months ago

Procedure payload inputs can now be provided with raw json input, toggling between form-based input or json-editor input.

It's not a very good implementation because I'm not very familiar with next.js and react, but I wanted to share my work in case anyone has interest.

Also, next.js dev-app doesn't work anymore because the jsoneditor package can't be imported in SSR (self is undefined in the webpackUniversalModuleDefinition) and I don't know how to fix this in next.js