Something went wrong. Try again.
[READ-ONLY] Mirror of https://github.com/FoxxMD/multi-scrobbler. Scrobble plays from multiple sources to multiple clients docs.multi-scrobbler.app
deezer docker jellyfin koito lastfm listenbrainz maloja mopidy mpris music music-assistant plex scrobble self-hosted spotify subsonic tautulli youtube-music
Something went wrong. Try again.
1.0 kB · 39 lines
TSX
12345678910111213141516171819202122232425262728293031323334353637383940import React, {useEffect, useState} from "react"import BrowserOnly from "@docusaurus/BrowserOnly"
//import './Explorer.scss';import { JsonSchemaViewer } from 'cf-json-schema-viz';import '../json-schema-viewer-styles.css'
export interface ExplorerProps { schema: object}
// based on https://github.com/jy95/docusaurus-json-schema-plugin/blob/main/testsite/src/components/PlaygroundInner.tsxexport default function Explorer(props: ExplorerProps): JSX.Element {
//injectStyles();
return ( <div> <JsonSchemaViewer schema={props.schema} renderRootTreeLines={true} emptyText="No schema defined" defaultExpandedDepth={0} skipTopLevelDescription={false} markup/> </div> )}
// export default function PlaygroundComponent(): JSX.Element {// return (// <BrowserOnly fallback={<div>Loading...</div>}>// {() => {// return <PlaygroundInner />// }}// </BrowserOnly>// )// }