1.0.19 • Published 8 months ago
@explorer02/api-playground v1.0.19
API Playground
React Playground for API Routes A component to ease up hitting utility routes based on different templates
Best usecase is to open the component in a Modal
API
Component - APIPlayground
Props => config: TemplateConfig[]
TemplateConfig is a union type for different type of templates
Template | Usecase | Options |
---|---|---|
Cache Viewer (CACHE_VIEWER) | View static data - Quickly peek into some environment configurations or user properties | - id(string) - unique id for template - title(string) - template title to be shown in sidenav - type(Template)- Template.STATIC_DATA - data(object|string) - JSON object or string to be shown - language(?Language) - Language of data (JSON, JAVASCRIPT), for syntax highlighting and formatting - readOnly(?boolean) - whether the content is editable or not |
How to build?
- compile
src/styles/root.scss
andsrc/styles/tailwind.scss
using VSCode live SASS compiler - execute
yarn build
License
ISC Licensed. Copyright (c) @explorer02 2023.
1.0.19
8 months ago
1.0.18
8 months ago
1.0.17
8 months ago
1.0.16
9 months ago
1.0.15
9 months ago
1.0.14
9 months ago
1.0.13
9 months ago
1.0.12
9 months ago
1.0.11
9 months ago
1.0.10
9 months ago
1.0.9
9 months ago
1.0.8
9 months ago
1.0.7
9 months ago
1.0.6
9 months ago
1.0.5
9 months ago
1.0.4
9 months ago
1.0.3
9 months ago
1.0.2
9 months ago
1.0.1
9 months ago
1.0.0
9 months ago